//>>built
require({cache:{"parus/balanceLoadReportsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceLoadReportsDialog");b.require("dojo.io.iframe");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.balanceLoadReportsDialog",[parus.Dialog],{catalogTree:null,kind:null,onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},
saveFormLastValues:function(){this._lastValues.canOverWrite=this.canOverWrite.checked?1:0;this._lastValues.canSkipValues=this.canSkipValues.checked?1:0;this._lastValues.canSkipSubreports=this.canSkipSubreports.checked?1:0;this._lastValues.recalcReports=this.recalcReports.checked?1:0;this._lastValues.distrByCatalog=this.distrByCatalog.checked?1:0;this._lastValues.showReport=this.showReport.checked?1:0;this._lastValues.agent=this.agentEdit.attr("value")||"";this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,
this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.canOverWrite.attr("checked",this._lastValues.canOverWrite);this.canSkipValues.attr("checked",this._lastValues.canSkipValues);this.canSkipSubreports.attr("checked",this._lastValues.canSkipSubreports);this.recalcReports.attr("checked",this._lastValues.recalcReports);this.showReport.attr("checked",this._lastValues.showReport);this.distrByCatalog.attr("checked",this._lastValues.distrByCatalog);
this.agentEdit.attr("value",this._lastValues.agent);this.userSize=this._lastValues.userSize||null},_performLoad:function(a){this.catalogInput.value=a;this.postForm.action=parus.database.getLoadReportsUrl();this.postForm.method="POST";this.postForm.encoding="multipart/form-data";this.postForm.appendChild(this.fileData);this.postForm.canOverWrite.value=this.canOverWrite.checked?"on":"off";this.postForm.canSkipValues.value=this.canSkipValues.checked?"on":"off";this.postForm.canSkipSubreports.value=this.canSkipSubreports.checked?
"on":"off";this.postForm.recalcReports.value=this.recalcReports.checked?"on":"off";this.postForm.distrByCatalog.value=this.distrByCatalog.checked?"on":"off";this.postForm.showReport.value=this.showReport.checked?"on":"off";this.postForm.agent.value=this.agentEdit.attr("value")||"";this.postForm.kind.value=this.kind;b.io.iframe.send({method:"POST",form:this.postForm,handleAs:"html",handle:b.hitch(this,function(c,e){if(this.showReport.checked)if(parus.parus8._embeddedMode){var f="T"+ +new Date;mill.session.setValue(f,
c.body.innerHTML,!1);f=b.moduleUrl("parus","embeddedContent.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([f,"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432",1,""]);parus.embeddedMode.openTab(+new Date,"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432",f)}else{f=
new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",style:"height:100%;width:100%;padding:0"});var g=parus.balance._createHeadingPane("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432");f.addChild(g);var h=new t.layout.ContentPane({region:"center",content:c.body.innerHTML});f.addChild(h);g=new t.layout.ContentPane({title:parus.balance.formatPageTitle("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\x3cbr/\x3e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432"),
closable:!0,"class":"balanceTemplateContentPane",onClose:b.hitch(this,function(){parus.balance.TabContainer.selectChild("1"==this.kind?parus.balance.consolidatedPage:parus.balance.primaryPage);return!0})});h.parentPane=g;g.setContent(f);parus.balance.TabContainer.addChild(g);parus.balance.TabContainer.selectChild(g)}else parus.parus8.notificationMessage("\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430.");this.apply()})})},performLoad:function(){if(this.validate()&&
this.fileData.value){var a=this.catalogTree;(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),key:"BalanceReports",onDefaultNeeded:function(){var c=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return c?parus.parus8.nodeField(parus.parus8.rowNodes(c)[0],"PATH"):null},onSingle:function(){if(a.hiddenMode&&!this.distrByCatalog.checked)return parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("singleCatalog",{UNITCODE:"BalanceReports",ACTION_CODE:"BLREPORTS_CUSTOM_IMPORT"}))[0],
"CATALOG");var c=a.path;return a.model.getIdentity(c[c.length-1])},onPerform:b.hitch(this,function(c){this._performLoad(c);return!0})})).show()}}})})},"parus/digitalSignature":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.digitalSignature");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");parus.digitalSignature||b.mixin(parus,{digitalSignature:{}});window.Promise&&(b.isWebKit||b.isFF||b.isEdge)&&b.eval(b.cache("parus","digitalSignatureAsync.js"));b.mixin(parus.digitalSignature,
{pluginDef:null,pluginLoaded:!1,pluginTimedOut:!1,pluginUnavailable:!1,version:{major:0,minor:0,build:0},extension_version:null,extension_id:null,pluginDownloadURL:"https://www.cryptopro.ru/products/cades/plugin/get_2_0",extensionDownloadURLForFF:"https://www.cryptopro.ru/sites/default/files/products/cades/extensions/firefox_cryptopro_extension_latest.xpi",extensionDownloadURLForOpera:"https://addons.opera.com/en/extensions/details/cryptopro-extension-for-cades-browser-plug-in",pluginNotInstalled:function(){return'\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044f\u043c\u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u0438\u043b\u0438 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e. \x3cbr/\x3e\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \x3cbr/\x3e\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: \x3ca href\x3d"'+
this.pluginDownloadURL+'"\x3e'+this.pluginDownloadURL+"\x3c/a\x3e"},extensionNotInstalledForFF:function(){return'\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044f\u043c\u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u0438\u043b\u0438 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e. \x3cbr/\x3e\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: \x3ca href\x3d"'+
this.extensionDownloadURLForFF+'"\x3e'+this.extensionDownloadURLForFF+"\x3c/a\x3e"},extensionNotInstalledForOpera:function(){return'\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044f\u043c\u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u0438\u043b\u0438 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e. \x3cbr/\x3e\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: \x3ca href\x3d"'+
this.extensionDownloadURLForOpera+'"\x3e'+this.extensionDownloadURLForOpera+"\x3c/a\x3e"},pluginVersionUnsupported:function(){return'\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044f\u043c\u0438 \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0430. \x3cbr/\x3e\u0410\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: \x3ca href\x3d"'+
this.pluginDownloadURL+'"\x3e'+this.pluginDownloadURL+"\x3c/a\x3e"},pluginNotActivated:function(){return'\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044f\u043c\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e, \u043d\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \x3cbr/\x3e\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \x3cbr/\x3e\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 "\u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u0432\u0441\u0435\u0433\u0434\u0430" \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \x3cspan style\x3d"color:blue"\x3eCryptoPro CAdES NPAPI Browser Plug-in\x3c/span\x3e.'},
pluginActivateError:function(){return"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044f\u043c\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e, \u043d\u043e \u043d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b. \x3cbr/\x3e\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},
browserNotSupported:function(){return"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044f\u043c\u0438 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c. \x3cbr/\x3e"},
oldEdgeNotSupported:function(){return"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 Edge \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435\u0441\u044c \u0434\u043e Edge \u0432\u0435\u0440\u0441\u0438\u0438 \x3e\x3d 79. \x3cbr/\x3e"},signIsInvalid:function(a){return"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u043b\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438.\x3cbr\x3e"+
(b.isFF&&a.match(/.*NPObject.*/)?"":"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f: "+a)},decimalToHexString:function(a){0>a&&(a=4294967295+a+1);return a.toString(16).toUpperCase()},correctBase64Data:function(a){return a.replace(/(\r\n|\n|\r)/gm,"")},onPluginLoaded:function(){this.pluginLoaded=!0},onGetExtensionVersion:function(a){this.extension_version=a},onGetExtensionID:function(a){this.extension_id=
a},canAsync:function(){return!!cadesplugin.CreateObjectAsync},checkPlugin:function(){if(this.pluginDef)return this.pluginDef;this.pluginDef=new b.Deferred;window.cadesplugin_skip_extension_install=!0;window.cadesplugin_extension_loaded_callback=b.hitch(this,this.onPluginLoaded);b.eval(b.cache("parus","cadesplugin_api.js"));if(b.isIE)this.onPluginLoaded();var a=!!window.Promise;b.isEdge?this.rejectPlugin(this.oldEdgeNotSupported()):a?cadesplugin.then(b.hitch(this,function(){this.canAsync()?this.checkPluginAsync():
this.checkPluginNPAPI()}),b.hitch(this,this.rejectPlugin)):(window.addEventListener("message",b.hitch(this,function(c){"cadesplugin_loaded"==c.data?this.checkPluginNPAPI():"cadesplugin_load_error"==c.data&&this.rejectPlugin()}),!1),window.postMessage("cadesplugin_echo_request","*"));return this.pluginDef},checkPluginNPAPI:function(){try{cadesplugin.get_extension_version(b.hitch(this,this.onGetExtensionVersion));cadesplugin.get_extension_id(b.hitch(this,this.onGetExtensionID));var a=cadesplugin.CreateObject("CAdESCOM.About");
a&&(this.pluginDef.resolve(),b.mixin(this.version,{major:a.MajorVersion,minor:a.MinorVersion,build:a.BuildVersion}))}catch(c){this.rejectPlugin()}},rejectPlugin:function(a){"\u0418\u0441\u0442\u0435\u043a\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430"===a?this.pluginTimedOut=!0:"\u041f\u043b\u0430\u0433\u0438\u043d \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d"===
a&&(this.pluginUnavailable=!0);!a||this.pluginTimedOut||this.pluginUnavailable?(a=navigator.mimeTypes["application/x-cades"])?a.enabledPlugin?this.pluginDef.reject(this.pluginActivateError()):this.pluginDef.reject(this.pluginNotActivated()):this.pluginLoaded&&this.pluginTimedOut?this.pluginDef.reject(this.pluginNotActivated()):!this.pluginLoaded&&b.isFF?this.pluginDef.reject(this.extensionNotInstalledForFF()):!this.pluginLoaded&&b.isChromiumOpera?this.pluginDef.reject(this.extensionNotInstalledForOpera()):
this.pluginDef.reject(this.pluginNotInstalled()):this.pluginDef.reject(a)},checkPluginVersion:function(a){var c=!1;(c=this.version.major==a.major?this.version.major==a.major?this.version.minor==a.minor?!0:this.version.minor>a.minor:this.version.major>a.major:this.version.major>a.major)||parus.parus8.errorMessage(this.pluginVersionUnsupported());return c},getGOSTMethodsByOid:function(a,c){var e={version:0,keySize:0,signMethod:"",digestMethod:""};if("1.2.643.7.1.1.1.1"==a)e.version=2012,e.keySize=256,
e.signMethod="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr34102012-gostr34112012-256",e.digestMethod="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr34112012-256";else if("1.2.643.7.1.1.1.2"==a)e.version=2012,e.keySize=512,e.signMethod="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr34102012-gostr34112012-512",e.digestMethod="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr34112012-512";else if("1.2.643.2.2.19"==a)e.version=2001,e.keySize=0,e.signMethod="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr34102001-gostr3411",
e.digestMethod="urn:ietf:params:xml:ns:cpxmlsec:algorithms:gostr3411";else if(c)throw"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f XML \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438 \u0441 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438 \u0413\u041e\u0421\u0422 \u0420 34.10-2012 \u0438 \u0413\u041e\u0421\u0422 \u0420 34.10-2001: "+a;return e},isAllowedThumbprint:function(a,
c){if(c){a=a.toString();for(var e=0;e<c.length;e++)if(c[e]==a)return!0}else return!0},certificatesStore:function(a){var c=new b.Deferred;setTimeout(b.hitch(this,function(){if(this.canAsync())this.certificatesStoreAsync(c,a);else try{var e=[],f=cadesplugin.CreateObject("CAdESCOM.Store");f.Open();try{var g=0;try{g=f.Certificates.Count}catch(r){g=0}for(var h=new Date,l=1;l<=g;l++){var m=f.Certificates.Item(l);if(m&&h<new Date(m.ValidToDate)&&m.HasPrivateKey()&&this.isAllowedThumbprint(m.Thumbprint,a)){var p=
this.getGOSTMethodsByOid(m.PublicKey().Algorithm.Value,!1);e.push({SERIALNUMBER:m.SerialNumber,THUMBPRINT:m.Thumbprint,ISSUEDTO:m.GetInfo(cadesplugin.CAPICOM_CERT_INFO_SUBJECT_SIMPLE_NAME),ISSUER:m.GetInfo(cadesplugin.CAPICOM_CERT_INFO_ISSUER_SIMPLE_NAME),VALIDFROMDATE:new Date(m.ValidFromDate),VALIDTODATE:new Date(m.ValidToDate),OID:m.PublicKey().Algorithm.Value,GOST_VERSION:p.version,GOST_KEYSIZE:p.keySize})}}}finally{f.Close()}c.resolve(new b.data.ItemFileReadStore({data:{items:e,identifier:"THUMBPRINT"}}))}catch(r){c.reject(cadesplugin.getLastError(r))}}),
0);return c},signData:function(a,c){var e=new b.Deferred;setTimeout(b.hitch(this,function(){if(this.canAsync())this.signDataAsync(e,a,c);else try{var f=cadesplugin.CreateObject("CAdESCOM.Store");f.Open();try{var g=cadesplugin.CreateObject("CAdESCOM.CPSigner");g.Certificate=f.Certificates.Find(cadesplugin.CAPICOM_CERTIFICATE_FIND_SHA1_HASH,c).Item(1);g.Options=cadesplugin.CAPICOM_CERTIFICATE_INCLUDE_WHOLE_CHAIN;var h=cadesplugin.CreateObject("CAdESCOM.CadesSignedData");h.ContentEncoding=cadesplugin.CADESCOM_BASE64_TO_BINARY;
b.forEach(a,function(l){h.Content=this.correctBase64Data(l.data);l.signedData=h.SignCades(g,cadesplugin.CADESCOM_CADES_BES,!0,cadesplugin.CADESCOM_ENCODE_BASE64)},this);e.resolve(a)}finally{f.Close()}}catch(l){e.reject(cadesplugin.getLastError(l))}}),0);return e},checkSign:function(a){var c=new b.Deferred;setTimeout(b.hitch(this,function(){if(this.canAsync())this.checkSignAsync(c,a);else try{var e=cadesplugin.CreateObject("CAdESCOM.CadesSignedData");e.ContentEncoding=cadesplugin.CADESCOM_BASE64_TO_BINARY;
b.forEach(a,function(f){try{e.Content=this.correctBase64Data(f.data),e.VerifyCades(f.signedData,cadesplugin.CADESCOM_CADES_BES,!0),f.checkResult=!0}catch(g){f.checkResult=!1,f.checkError=this.signIsInvalid(cadesplugin.getLastError(g))}},this);c.resolve(a)}catch(f){c.reject(cadesplugin.getLastError(f))}}),0);return c},signXMLData:function(a,c,e){var f=new b.Deferred;setTimeout(b.hitch(this,function(){if(this.canAsync())this.signXMLDataAsync(f,a,c,e);else try{var g=cadesplugin.CreateObject("CAdESCOM.Store");
g.Open();try{var h=cadesplugin.CreateObject("CAdESCOM.CPSigner"),l=g.Certificates.Find(cadesplugin.CAPICOM_CERTIFICATE_FIND_SHA1_HASH,c).Item(1);h.Certificate=l;h.Options=cadesplugin.CAPICOM_CERTIFICATE_INCLUDE_WHOLE_CHAIN;var m=cadesplugin.CreateObject("CAdESCOM.SignedXML");if(e)m.SignatureType=cadesplugin.CADESCOM_XML_SIGNATURE_TYPE_TEMPLATE;else{var p=this.getGOSTMethodsByOid(l.PublicKey().Algorithm.Value,!0);m.SignatureType=cadesplugin.CADESCOM_XML_SIGNATURE_TYPE_ENVELOPED;m.SignatureMethod=p.signMethod;
m.DigestMethod=p.digestMethod}b.forEach(a,function(r){m.Content=r.data;r.signedData=m.Sign(h)});f.resolve(a)}finally{g.Close()}}catch(r){f.reject(cadesplugin.getLastError(r))}}),0);return f},checkXMLSign:function(a){var c=new b.Deferred;setTimeout(b.hitch(this,function(){if(this.canAsync())this.checkXMLSignAsync(c,a);else try{var e=cadesplugin.CreateObject("CAdESCOM.SignedXML");b.forEach(a,function(f){try{e.Verify(f.signedData),f.checkResult=!0}catch(g){f.checkResult=!1,f.checkError=cadesplugin.getLastError(g)}});
c.resolve(a)}catch(f){c.reject(cadesplugin.getLastError(f))}}),0);return c}})})},"parus/balanceUserReportParamsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceUserReportParamsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.customEdit");b.require("parus.excelFileFormatDialog");b.require("parus.excelColorModeDialog");b.require("parus.balanceUserProcParamsDialog");b.declare("parus.balanceUserReportParamsDialog",
[parus.balanceUserProcParamsDialog],{queryid:"userRepParams",rns:null,unitcode:null,userreporttype:null,postCreate:function(){this.inherited(arguments);this._storeKey="parus.balanceUserProcParamsDialog";"4"!=this.userreporttype&&this.OKButton.attr("dropDown",this.menu);"1"!=parus.database.attributes.useReportsQueue&&(this.QueueButton.domNode.style.display="none")},downloadExcel:function(){this.validate()&&this._download("xls")},downloadPDF:function(){this.validate()&&this._download("pdf")},downloadHTML:function(){this.validate()&&
this._download("html")},enqueue:function(){var a=parus.database.execute("enqueueUserReport",{RN:this.rns,UNITCODE:this.unitcode,USERREPORT:this.userproc,PARAMS:parus.xml.toXml({PARAMS:b.clone(this.paramValues())})});a&&((new parus.confirmationDialog({message:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442?",
onApply:function(){setTimeout(function(){parus.parus8.enqueuedUserReport(parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NQUEUE"))},100);return!0}})).show(),this.close())},_download:function(a,c){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var e=b.hitch(this,function(f,g){var h=document.createElement("form");h.method="POST";h.action=parus.database.getUserReportUrl(this.userreport,f);parus.parus8._embeddedMode||(h.target="_blank");var l=document.createElement("input");l.type="hidden";l.name="query";l.value=parus.xml.toXml({query:{rn:this.rns,unitcode:this.unitcode,userreport:this.userproc,colormode:g,params:parus.xml.toXml({PARAMS:b.clone(this.paramValues())})}});h.appendChild(l);document.body.appendChild(h);h.submit();document.body.removeChild(h);
this.close()});"xls"==a?"1"==parus.database.attributes.newoffice?(new parus.excelFileFormatDialog({onApply:function(){e(this.formatEdit.value,c);return!0}})).show():"2"==parus.database.attributes.newoffice?e("xlsx",c):e("xls",c):"pdf"!=a&&"html"!=a||void 0!==c&&null!==c?e(a,c):(new parus.excelColorModeDialog({onApply:function(){e(a,this.colorModeEdit.value);return!0}})).show()}}})})},"parus/catalogNameDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.catalogNameDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.catalogNameDialog",[parus.Dialog],{})})},"parus/statusModelRouteDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.statusModelRouteDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.declare("parus.statusModelRouteDialog",[parus.Dialog],{documentRN:null,
event:null,_nodes:[],_nodesByPoint:[],_edges:[],selected:null,postCreate:function(){this.inherited(arguments);parus.balance._createActionsButton(this.popupMenu,this.headerPane);var a=parus.userdata.get(this.declaredClass);a&&parus.gridSettingsDialog.mergeMenuSettings(this.popupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions)},onShow:function(){this.popupMenu.bindDomNode(this.dialog.containerNode);var a=b.query("canvas",this.dialog.containerNode)[0];this.popupMenu.bindDomNode(a);
a=b.query("*[role\x3d'graph']",this.dialog.containerNode)[0];this.popupMenu.bindDomNode(a);b.connect(this.statusModelGraphContentPane.domNode,"onmousedown",this,this.onMouseDown);this.refresh(!1)},refresh:function(a){var c=b.query("canvas",this.dialog.containerNode)[0],e=b.query("*[role\x3d'graph']",this.dialog.containerNode)[0];c.getContext("2d").clearRect(0,0,c.width,c.height);b.forEach(this._nodes,function(h){h.domNode.parentNode.removeChild(h.domNode)});this._nodes=[];this._nodesByPoint=[];this._edges=
[];var f=null,g=null;a&&(this.event=parus.balance.getStatusModelEventInfo(this.documentRN));(new b.DeferredList([parus.database.query("BalanceStatusModelRoutePoints",{EVENT:this.event.event},function(h){g=parus.parus8.rowNodes(h)}),parus.database.query("BalanceStatusModelRoutePasses",{EVENT:this.event.event},function(h){f=parus.parus8.rowNodes(h)})])).addCallback(b.hitch(this,function(){var h=null,l=null,m=null,p=null;b.forEach(g,b.hitch(this,function(B){var D=parseInt(parus.parus8.nodeField(B,"ORIGIN_X")),
I=parseInt(parus.parus8.nodeField(B,"ORIGIN_Y"));if(null==h||h>D)h=D;if(null==l||l>I)l=I;B={dialogObject:this,id:parus.parus8.nodeField(B,"NPOINT").toString(),info:B};this._nodes.push(B);this._nodesByPoint[B.id]=B}));b.forEach(f,b.hitch(this,function(B){var D=this._nodesByPoint[parus.parus8.nodeField(B,"NPOINT").toString()],I=this._nodesByPoint[parus.parus8.nodeField(B,"NEXT_POINT").toString()];D&&(D.hasOutput=!0);I&&(D.hasInput=!0);B={dialogObject:this,id:parus.parus8.nodeField(B,"NPASS").toString(),
info:B,fromPoint:parus.parus8.nodeField(B,"NPOINT").toString(),toPoint:parus.parus8.nodeField(B,"NEXT_POINT").toString()};this._edges.push(B)}));b.forEach(this._nodes,b.hitch(this,function(B){var D=B.info,I=b.place(b.trim(b.cache("parus","statusModelRoutePoint.html",'\x3cdiv class\x3d"statusModelPoint"\x3e\x3cdiv class\x3d"statusModelPointLevel1"\x3e\x3cdiv class\x3d"statusModelPointLevel2"\x3e\x3cspan class\x3d"pointText"\x3e\x26#160;\x3c/span\x3e\x3cbr class\x3d"pointSubText"/\x3e\x3cspan class\x3d"pointSubText"\x3e\x26#160;\x3c/span\x3e\x3cdiv class\x3d"statusModelPointPointerImage"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"statusModelPointSecond"\x3e\x3cdiv class\x3d"statusModelPointLevel1"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"statusModelPointThird"\x3e\x3cdiv class\x3d"statusModelPointLevel1"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e')),
e,"last");b.style(I,{left:parseInt(parus.parus8.nodeField(D,"ORIGIN_X"))-h+20+"px",top:parseInt(parus.parus8.nodeField(D,"ORIGIN_Y"))-l+20+"px"});var u=String.fromCharCode(160),y=[];"1"==parus.parus8.nodeField(D,"NPASSED_POINT")&&"0"==parus.parus8.nodeField(D,"NCURRENT_POINT")?u="(\u0442\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430)":"1"==parus.parus8.nodeField(D,"ROUTE_START")&&"1"==parus.parus8.nodeField(D,"NCURRENT_POINT")?u="(\u043d\u0430\u0447\u0430\u043b\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430)":
B.hasOutput||"1"!=parus.parus8.nodeField(D,"NCURRENT_POINT")?y.push("statusModelSimpleText"):u="(\u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d)";"1"==parus.parus8.nodeField(D,"NCURRENT_POINT")?(y.push("statusModelPointerImage"),y.push("statusModelPointBlackText"),y.push("statusModelPointOrangeBorder")):(y.push("statusModelPointGreyText"),y.push("statusModelPointGreyBorder"));"1"==parus.parus8.nodeField(D,"TOGETHER_SIGN")?"1"==parus.parus8.nodeField(D,
"ROUTE_START")?y.push("statusModelHexaple"):B.hasOutput?y.push("statusModelTriple"):y.push("statusModelHexaple"):"1"==parus.parus8.nodeField(D,"ROUTE_START")?y.push("statusModelDouble"):B.hasOutput?y.push("statusModelSingle"):y.push("statusModelDouble");"1"==parus.parus8.nodeField(D,"TOGETHER_SIGN")?"1"==parus.parus8.nodeField(D,"NCURRENT_POINT")?(parus.parus8.nodeField(D,"ROUTE_START"),y.push("statusModelPointGreenBackground")):"1"==parus.parus8.nodeField(D,"NPASSED_POINT")?"1"==parus.parus8.nodeField(D,
"ROUTE_START")?y.push("statusModelPointGreenBackground"):B.hasOutput?y.push("statusModelPointGreenBackground"):y.push("statusModelPointGreyBackground"):(parus.parus8.nodeField(D,"ROUTE_START"),y.push("statusModelPointGreyBackground")):"1"==parus.parus8.nodeField(D,"NCURRENT_POINT")?(parus.parus8.nodeField(D,"ROUTE_START"),y.push("statusModelPointYellowBackground")):"1"==parus.parus8.nodeField(D,"NPASSED_POINT")?"1"==parus.parus8.nodeField(D,"ROUTE_START")?y.push("statusModelPointYellowBackground"):
B.hasOutput?y.push("statusModelPointYellowBackground"):y.push("statusModelPointGreyBackground"):(parus.parus8.nodeField(D,"ROUTE_START"),y.push("statusModelPointGreyBackground"));b.query("span.pointText",I)[0].innerText=parus.parus8.nodeField(D,"EVNSTAT_CODE");b.query("span.pointSubText",I)[0].innerText=u;b.forEach(y,function(z){b.addClass(I,z)});parus.database.execute("BalanceStatusModelRoutePointTitle",{UNITCODE:"BalanceReports",DOCUMENT:this.documentRN,EVENT:this.event.event,POINT:B.id},function(z){if(z=
parus.parus8.nodeField(parus.parus8.rowNodes(z)[0],"clobRESULT"))I.title=z.split(String.fromCharCode(160)+String.fromCharCode(160)).join(String.fromCharCode(9745))});u=b.getMarginBox(I);if(null==m||m<u.l+u.w+20)m=u.l+u.w+20;if(null==p||p<u.t+u.h+20)p=u.t+u.h+20;D=parus.parus8.nodeField(D,"NPOINT").toString();I.id=D;this.popupMenu.bindDomNode(I);b.query("*",I).forEach(function(z){z.setAttribute("pointid",B.id)});b.mixin(B,{domNode:I,size:u})}));b.style(e,{width:m+"px",height:p+"px"});var r=b.place('\x3cdiv class\x3d"statusModelEdge"\x3e\x3c/div\x3e',
e,"last"),w=b.getComputedStyle(r).color;r.parentNode.removeChild(r);r=b.place('\x3cdiv class\x3d"statusModelPassedEdge"\x3e\x3c/div\x3e',e,"last");var x=b.getComputedStyle(r).color;r.parentNode.removeChild(r);c.width=m;c.height=p;var A=c.getContext("2d");b.forEach(this._edges,b.hitch(this,function(B,D){var I=0,u=0,y=B.fromPoint,z=B.toPoint;b.forEach(this._edges,function(M,P){if(y==M.fromPoint&&z==M.toPoint||z==M.fromPoint&&y==M.toPoint)u++,D==P&&(I=u)});var G=this._nodesByPoint[B.fromPoint].size,
E=this._nodesByPoint[B.toPoint].size,J=function(M){return{X:M.l+Math.floor(M.w/(u+1))*I,Y:M.t+Math.floor(M.h/(u+1))*I}},K=J(G),F=J(E),L=function(M,P,T,U,X,V,Y){return 0==T?(T=Math.round(-X/U),U=P.Y==M.Y?V>=M.X&&V<=P.X||V>=P.X&&V<=M.X?V:Y:Math.round(M.X+(-X/U-M.Y)*(P.X-M.X)/(P.Y-M.Y)),U>=V&&U<=Y&&(T>=M.Y&&T<=P.Y||T>=P.Y&&T<=M.Y)?{X:U,Y:T}:null):0==U?(U=Math.round(-X/T),T=P.X==M.X?V>=M.Y&&V<=P.Y||V>=P.Y&&V<=M.Y?V:Y:Math.round(M.Y+(-X/T-M.X)*(P.Y-M.Y)/(P.X-M.X)),T>=V&&T<=Y&&(U>=M.X&&U<=P.X||U>=P.X&&
U<=M.X)?{X:U,Y:T}:null):null};J=L(K,F,0,1,-G.t,G.l,G.l+G.w);J||(J=L(K,F,0,1,-(G.t+G.h),G.l,G.l+G.w),J||(J=L(K,F,1,0,-G.l,G.t,G.t+G.h),J||(J=L(K,F,1,0,-(G.l+G.w),G.t,G.t+G.h))||(J=K)));G=L(K,F,0,1,-E.t,E.l,E.l+E.w);G||(G=L(K,F,0,1,-(E.t+E.h),E.l,E.l+E.w),G||(G=L(K,F,1,0,-E.l,E.t,E.t+E.h),G||(G=L(K,F,1,0,-(E.l+E.w),E.t,E.t+E.h))||(G=F)));K=8;J.X>=G.X&&(K=-K);J.X==G.X?(G.X++,E=1,F=0):(F=Math.atan((G.Y-J.Y)/(G.X-J.X)),E=Math.sin(F),F=Math.cos(F));J.Y==G.Y&&G.Y++;A.beginPath();"1"==parus.parus8.nodeField(B.info,
"NPASSED")?(A.strokeStyle=x,A.fillStyle=x,A.setLineDash([])):(A.strokeStyle=w,A.fillStyle=w,A.setLineDash([10,5]));A.lineWidth=2;A.moveTo(J.X,J.Y);A.lineTo(G.X,G.Y);A.stroke();A.beginPath();A.lineWidth=1;A.moveTo(G.X,G.Y);A.lineTo(G.X-Math.round(K*(Math.sqrt(3)*F-E)/2),G.Y-Math.round(K*(Math.sqrt(3)*E+F)/2));A.lineTo(G.X-Math.round(K*(Math.sqrt(3)*F+E)/2),G.Y-Math.round(K*(Math.sqrt(3)*E-F)/2));A.fill();if("1"==parus.parus8.nodeField(B.info,"NAUTOMATED")){E=(J.X+G.X+16)/2;J=(J.Y+G.Y+16)/2;G=2*Math.PI;
K=G/14;F=35*K*.005;L=.25*K;var O=K,Q=!1;for(A.moveTo(E+8*Math.cos(L),J+8*Math.sin(L));O<=G;O+=K)Q?(A.lineTo(E+5*Math.cos(O-F),J+5*Math.sin(O-F)),A.lineTo(E+8*Math.cos(O+L),J+8*Math.sin(O+L))):(A.lineTo(E+8*Math.cos(O-L),J+8*Math.sin(O-L)),A.lineTo(E+5*Math.cos(O+F),J+5*Math.sin(O+F))),Q=!Q;A.closePath();A.moveTo(E+3,J);A.arc(E,J,3,0,G);A.fill("evenodd");A.lineWidth=2;A.stroke()}}));this.checkMenu()}))},onMouseDown:function(a){a.target&&(b.query(".statusModelPointSelected",this.dialog.containerNode).removeClass("statusModelPointSelected"),
(a=(a=a.target.getAttribute("pointid"))?this._nodesByPoint[a]:null)?(b.addClass(a.domNode,"statusModelPointSelected"),this.selected=a):this.selected=null,this.checkMenu())},checkMenu:function(){this.selected&&parus.parus8.nodeField(this.selected.info,"NPASSED_POINT");var a=!!this.selected&&"1"==parus.parus8.nodeField(this.selected.info,"NCURRENT_POINT"),c=!!this.selected&&"1"==parus.parus8.nodeField(this.selected.info,"NIS_NEXT_POINT"),e=!!this.selected&&"1"==parus.parus8.nodeField(this.selected.info,
"TOGETHER_SIGN");this.passMenuItem.attr("disabled",!this.selected||!(a||c));this.sendMenuItem.attr("disabled",!this.selected||!a);this.setMarkMenuItem.attr("disabled",!this.selected||!a||!e);this.removeMarkMenuItem.attr("disabled",!this.selected||!a||!e);this.executorsMenuItem.attr("disabled",!this.selected);this.\u0441oWorkingMenuItem.attr("disabled",!this.selected||!e);parus.parus8.checkMenuSeparators(this.popupMenu)},pass:function(){if(this.selected){var a=parus.parus8.nodeField(this.selected.info,
"EVNSTAT_CODE"),c="1"==parus.parus8.nodeField(this.selected.info,"NCURRENT_POINT"),e="1"==parus.parus8.nodeField(this.selected.info,"NIS_NEXT_POINT");if(c||e)if(c)parus.balance.statusModelPass(this.documentRN,b.hitch(this,function(){this.refresh(!0)}));else if(c=parus.parus8.rowNodes(parus.database.query("BalanceStatusModelPassSpecifiedStatus",{NPOINT:this.event.point,SEVENT_STATUS:a})),0==c.length)parus.parus8.errorMessage("\u041d\u0435\u043b\u044c\u0437\u044f \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443 - \u043e\u043d\u0430 \u043d\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u044f\u0437\u0435\u0439 \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c.");
else{e="1"==parus.parus8.nodeField(c[0],"ADDNOTE_ONCHST");var f="1"==parus.parus8.nodeField(c[0],"NEXT_ADDNOTE_ONCHST");e=e||f;c="1"==parus.parus8.nodeField(c[0],"DEFAULT_EXEC");parus.balance._statusModelPassToSpecifiedStatus(this.documentRN,this.event,a,e,c,b.hitch(this,function(){this.refresh(!0)}))}}},send:function(){this.selected&&"1"==parus.parus8.nodeField(this.selected.info,"NCURRENT_POINT")&&parus.balance.statusModelSend(this.documentRN,this.event,b.hitch(this,function(){this.refresh(!0)}))},
addNote:function(){parus.balance.statusModelAddNote(this.documentRN,this.event)},setMark:function(){this.selected&&"1"==parus.parus8.nodeField(this.selected.info,"NCURRENT_POINT")&&parus.balance.statusModelSetMark(this.documentRN,this.event)},removeMark:function(){this.selected&&"1"==parus.parus8.nodeField(this.selected.info,"NCURRENT_POINT")&&parus.balance.statusModelRemoveMark(this.documentRN,this.event,!0)},notes:function(){parus.balance.statusModelNotes(this.documentRN,this.event)},executors:function(){if(this.selected){var a=
parus.parus8.nodeField(this.selected.info,"EVNSTAT_CODE");parus.balance._selectStatusModelPointExecutors(this.event,a,!1,null)}},"\u0441oWorking":function(){this.selected&&"1"==parus.parus8.nodeField(this.selected.info,"TOGETHER_SIGN")&&parus.balance.statusModelCoWorking(this.documentRN,this.event,!0)},history:function(){parus.balance.statusModelHistory(this.documentRN)}})})},"parus/designerCheckDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerCheckDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.declare("parus.designerCheckDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.userProcEdit.attr("value",a.getValue(c,
"FORMULA_CODE")),this.nameEdit.attr("value",a.getValue(c,"FORMULA_NAME")),this.levelSelect.attr("value",a.getValue(c,"ERROR_LEVEL")));this.userProcEdit.onApplyDictionary=b.hitch(this,this.userProcChanged)},userProcChanged:function(a){a?this.nameEdit.attr("value",a.getFieldValue("NAME")):this.userProcEdit.showingDictionary||this.userProcEdit.attr("value")||this.nameEdit.attr("value","")},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceChecks.Insert",{PRN:this.prn,LEVEL:this.levelSelect.attr("value"),
FORMULA_CODE:this.userProcEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceChecks.Update",{RN:this.rn,LEVEL:this.levelSelect.attr("value"),FORMULA_CODE:this.userProcEdit.attr("value")})},executeDelete:function(a,c){parus.database.execute("designer.BalanceChecks.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/designerIndexDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerIndexDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editDictionaryDialog");b.require("parus.designerIndexInputPatternDialog");b.declare("parus.designerIndexDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",a.getValue(c,
"CODE")),this.nameEdit.attr("value",a.getValue(c,"NAME")),this.dataTypeSelect.attr("value",a.getValue(c,"BITYPE")),"0"==a.getValue(c,"BITYPE")?(this.strLenEdit.attr("value",a.getValue(c,"STRLEN")),this.begStrValueEdit.attr("value",a.getValue(c,"BEGSTRVAL")),this.patternEdit.attr("value",a.getValue(c,"PATTERN_CODE")),this.trimStrCheckBox.attr("checked","1"==a.getValue(c,"TRIMSTRVAL"))):"1"==a.getValue(c,"BITYPE")?(this.intPartEdit.attr("value",a.getValue(c,"INTPART")),this.fracPartEdit.attr("value",
a.getValue(c,"FRACPART")),this.begNumValueEdit.attr("value",a.getValue(c,"BEGNUMVAL")),this.minNumValueEdit.attr("value",a.getValue(c,"MINNUMVAL")),this.maxNumValueEdit.attr("value",a.getValue(c,"MAXNUMVAL"))):"2"==a.getValue(c,"BITYPE")&&(this.begDateValueEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"BEGDATEVAL"))),this.minDateValueEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"MINDATEVAL"))),this.maxDateValueEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"MAXDATEVAL")))));
this.dataTypeChanged()},dataTypeChanged:function(){var a=this.dataTypeSelect.attr("value");this.checkValuePane(this.strValuePane,"0"==a);this.checkValuePane(this.numValuePane,"1"==a);this.checkValuePane(this.dateValuePane,"2"==a)},checkValuePane:function(a,c){a.domNode.style.display=c?"":"none";b.forEach(a.getChildren(),function(e){e.attr("disabled",!c)})},strLenChanged:function(){var a=parseInt(this.strLenEdit.attr("value"));a&&(this.begStrValueEdit.maxLength=a)},intPartChanged:function(){if(!isNaN(this.intPartEdit.attr("value"))){var a=
parseInt(this.intPartEdit.attr("value"))-1;isNaN(this.fracPartEdit.attr("value"))||parseInt(this.fracPartEdit.attr("value"))>a&&this.fracPartEdit.attr("value",a);this.setControlsMaxNumber()}},fracPartChanged:function(){var a=parseInt(this.fracPartEdit.attr("value"));this.begNumValueEdit.constraints.fractional=!isNaN(a)&&0<a;this.minNumValueEdit.constraints.fractional=!isNaN(a)&&0<a;this.maxNumValueEdit.constraints.fractional=!isNaN(a)&&0<a;isNaN(a)||(this.begNumValueEdit.constraints.places=a,this.minNumValueEdit.constraints.places=
a,this.maxNumValueEdit.constraints.places=a,this.setControlsMaxNumber())},setControlsMaxNumber:function(){var a=this.getMaxNumber();this.begNumValueEdit.constraints.max=a;this.minNumValueEdit.constraints.max=a;this.maxNumValueEdit.constraints.max=a},getMaxNumber:function(){var a=parseInt(this.intPartEdit.attr("value"));if(!isNaN(a)){var c=parseInt(this.fracPartEdit.attr("value"));isNaN(c)||(a-=c);a=parus.formats.stringOfChar("9",a);if(isNaN(c))return parseInt(a);c=parus.formats.stringOfChar("9",c);
return parseFloat(a+"."+c)}},getExecParams:function(){var a=this.dataTypeSelect.attr("value"),c={CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value"),BITYPE:this.dataTypeSelect.attr("value")};"0"==a&&b.mixin(c,{STRLEN:this.strLenEdit.attr("value"),BEGSTRVAL:this.begStrValueEdit.attr("value"),PATTERN:this.patternEdit.attr("value"),TRIMSTRVAL:this.trimStrCheckBox.attr("checked")?"1":"0"});"1"==a&&b.mixin(c,{INTPART:this.intPartEdit.attr("value"),FRACPART:this.fracPartEdit.attr("value"),
BEGNUMVAL:isNaN(this.begNumValueEdit.attr("value"))?null:this.begNumValueEdit.attr("value"),MINNUMVAL:isNaN(this.minNumValueEdit.attr("value"))?null:this.minNumValueEdit.attr("value"),MAXNUMVAL:isNaN(this.maxNumValueEdit.attr("value"))?null:this.maxNumValueEdit.attr("value"),TRIMSTRVAL:this.trimStrCheckBox.attr("checked")?"1":"0"});"2"==a&&b.mixin(c,{BEGDATEVAL:parus.formats.dateToString(this.begDateValueEdit.attr("value")),MINDATEVAL:parus.formats.dateToString(this.minDateValueEdit.attr("value")),
MAXDATEVAL:parus.formats.dateToString(this.maxDateValueEdit.attr("value")),TRIMSTRVAL:this.trimStrCheckBox.attr("checked")?"1":"0"});return c},executeInsert:function(){var a=parus.database.execute("designer.BalanceIndexes.Insert",b.mixin(this.getExecParams(),{CRN:this.crn}));if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceIndexes.Update",b.mixin(this.getExecParams(),{RN:this.rn}))},executeDelete:function(a,
c){return!!parus.database.execute("designer.BalanceIndexes.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/exportGridDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.exportGridDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.Select");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridExtraRow");b.declare("parus.exportGridDialog",[parus.Dialog],{applyProgressLabel:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b",
_lastValues:null,grid:null,onShow:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.userSize=this._lastValues.userSize||null;this.formatEdit.attr("value",this._lastValues.formatEdit);this.dataEdit.attr("value",this._lastValues.dataEdit);this.colorModeEdit.attr("value",this._lastValues.colorModeEdit);parus.database.attributes.newoffice||this.formatEdit.removeOption("xlsx");"2"==parus.database.attributes.newoffice&&this.formatEdit.removeOption("xls")},onClose:function(){this._lastValues.formatEdit=
this.formatEdit.attr("value");this._lastValues.dataEdit=this.dataEdit.attr("value");this._lastValues.colorModeEdit=this.colorModeEdit.attr("value");this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},_itemToRow:function(a,c,e){var f={},g=null,h=0;b.forEach(this.grid.views.views[0].structure.cells[0],b.hitch(this,function(l){if(l.field&&!l.hidden){var m=null,p=null;if(l._props.propRN)m=parus._docPropsValueForGrid(parus.parus8.docPropValue(a,l._props.propRN),
l._props.dataType,l._props.dataSubType);else if(l._props.attrRN)m=parus._docPropsValueForGrid(parus.parus8.docAttrValue(a,l._props.attrRN),l._props.dataType,l._props.dataSubType);else if(m=this.grid.store.getValue(a,l.field)||null,l.formatter)try{m=l.formatter(m,e,l._props)}catch(B){}if(this.grid.colorConditions&&this.grid.colorConditions.length){var r="",w="",x=!1,A=function(B,D){B.mask.match(/.*!.*/)&&(w=B.color,x=B.applyToRow);if(B.mask)b.forEach(B.mask.split(";"),function(z){"!"==z.substring(0,
1)?(z="!*"==z?/^.+$/m:b.data.util.filter.patternToRegExp(z.substring(1,z.length),!1),D.match(z)&&(w="",x=!1)):(z="*"==z?/^.+$/m:b.data.util.filter.patternToRegExp(z,!1),D.match(z)&&(r=B.color,x=B.applyToRow))});else{var I=b.number.parse(D),u=b.number.parse(B.fromValue),y=b.number.parse(B.toValue);isNaN(I)||(!isNaN(u)&&!isNaN(y)&&I>=u&&I<=y?(r=B.color,x=B.applyToRow):!isNaN(u)&&isNaN(y)&&I>=u?(r=B.color,x=B.applyToRow):isNaN(u)&&!isNaN(y)&&I<=y&&(r=B.color,x=B.applyToRow));y={selector:"date",datePattern:"dd.MM.yyyy"};
I=b.date.locale.parse(D,y);u=b.date.locale.parse(B.fromValue,y);y=b.date.locale.parse(B.toValue,y);I&&(u&&y&&I>=u&&I<=y?r=B.color:u&&!y&&I>=u?(r=B.color,x=B.applyToRow):!u&&y&&I<=y&&(r=B.color,x=B.applyToRow))}};b.forEach(this.grid.colorConditions,function(B){r||w||B.field==l.field&&A(B,m||"")});r&&!w?x?g=r:p=r:w&&!r&&(x?g=r:p=w)}b.place("\x3cspan\x3e"+(m||"")+"\x3c/span\x3e",c,"only");f["f"+h++]={color:p,value:parus.parus8.getTextContent(c)}}}));return{row:f,color:g}},onApply:function(){var a={},
c=document.createElement("div"),e=0;b.forEach(this.grid.views.views[0].structure.cells[0],b.hitch(this,function(w,x){w.field&&!w.hidden&&(b.place("\x3cspan\x3e"+w.name+"\x3c/span\x3e",c,"only"),a["f"+e++]={title:parus.parus8.getTextContent(c),dataType:w.dataType||"0",intPart:w.intPart||w._props.intPart||"0",fractPart:w.fracPart||w._props.fracPart||"0"})}));var f={},g=0;if(this.grid.extraRowObject&&this.grid.extraRowObject.visible)for(var h=0;h<this.grid.extraRowObject.rowCount;h++){var l={};e=0;b.forEach(this.grid.views.views[0].structure.cells[0],
b.hitch(this,function(w){w.field&&!w.hidden&&(b.place("\x3cspan\x3e"+this.grid.onExtraRowValue(w,h)+"\x3c/span\x3e",c,"only"),l["f"+e++]={color:null,value:parus.parus8.getTextContent(c)})}));f["r"+g++]={row:l,color:null,bold:1}}if("1"==this.dataEdit.attr("value")){var m=this.grid.selection.getFirstSelected();if(m)for(h=0;h<this.grid.selection.getSelectedCount();h++)f["r"+g++]=this._itemToRow(m,c,h),m=this.grid.selection.getNextSelected(m)}else this.grid.store.forEach&&this.grid.store.forEach(b.hitch(this,
function(w,x,A){f["r"+g++]=this._itemToRow(x,c,A)}));var p=this.colorModeEdit.attr("value"),r=this.formatEdit.attr("value");setTimeout(function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");else{var w=document.createElement("form");
w.method="POST";w.action=parus.database.getExportDataUrl(r);parus.parus8._embeddedMode||(w.target="_blank");var x=document.createElement("input");x.type="hidden";x.name="data";x.value=parus.xml.toXml({data:{colcnt:e,rowcnt:g,columns:a,rows:f}});w.appendChild(x);x=document.createElement("input");x.type="hidden";x.name="colormode";x.value=p;w.appendChild(x);document.body.appendChild(w);w.submit();document.body.removeChild(w)}},500);return!0}})})},"parus/balanceRemarksDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceRemarksDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridSettingsDialog");b.declare("parus.balanceRemarksDialog",[parus.Dialog],{store:null,queryInfo:null,pane:null,readonly:!1,postCreate:function(){this.inherited(arguments);this.remarksGrid.attr("store",this.store);this.remarksGrid.setQuery(this.queryInfo);
this.remarksGrid.selection.select(0);this.remarksGridPopupMenu.bindDomNode(this.remarksGrid.viewsNode);parus.balance._createActionsButton(this.remarksGridPopupMenu,this.headerPane);var a=parus.userdata.get(this.declaredClass);a&&(parus.gridSettingsDialog.mergeMenuSettings(this.remarksGridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.remarksGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.remarksGrid,
a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.remarksGrid,a.showFilterBar,a.filterValues,a.sortInfo));this.noteEdit.attr("value",null);setTimeout(b.hitch(this,function(){this._selected()}),100)},_selected:function(){var a=this.remarksGrid.getItem(this.remarksGrid.selection.getSelectedIndex());this.noteEdit.attr("value",this.store.getValue(a,"NOTE"));b.forEach(this.remarksGridPopupMenu.getChildren(),function(c){var e=a?!1:!0;c.itemAction||(e=!1);"dijit.MenuSeparator"!=c.declaredClass&&
c.attr("disabled",e)});this.readonly&&(this.addRemerkMenuItem.attr("disabled",!0),this.duplicateRemerkMenuItem.attr("disabled",!0),this.clearRemarksMenuItem.attr("disabled",!0));parus.parus8.checkMenuSeparators(this.remarksGridPopupMenu)},clearRemarks:function(){this.pane.clearRemarks(b.clone(this.queryInfo),b.hitch(this,b.hitch(this,this._remarkCreated)))},addRemark:function(){this.pane.createRemark(b.clone(this.queryInfo),b.hitch(this,b.hitch(this,this._remarkCreated)))},duplicateRemark:function(){var a=
this.remarksGrid.getItem(this.remarksGrid.selection.getSelectedIndex());a={NOTE:this.store.getValue(a,"NOTE"),CODE:this.store.getValue(a,"CODE")};b.mixin(a,this.queryInfo);this.pane.createRemark(a,b.hitch(this,this._remarkCreated))},_remarkCreated:function(){var a=b.clone(this.queryInfo);b.mixin(a,{onComplete:b.hitch(this,function(){this.remarksGrid.selection.select(this.remarksGrid._by_idx.length-1);this.remarksGrid.updateRow(this.remarksGrid._by_idx.length-1);this.remarksGrid.scrollToRow(this.remarksGrid._by_idx.length-
1)})});this.remarksGrid.setQuery(a)},settings:function(){parus.balance.executeSettings(this.remarksGrid,this.remarksGridPopupMenu,this.declaredClass)},destroy:function(){this.store=null;this.inherited(arguments)},gridFilterChanged:function(a,c){parus.balance.gridFilterChanged(this.declaredClass,a,c)}})})},"parus/designerTableModelTotalDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTableModelTotalDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");
b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelIndexDialog");b.require("parus.designerTableModelIndexesDictionaryDialog");b.declare("parus.designerTableModelTotalDialog",[parus.editDictionaryDialog],
{priority:null,index:null,formula:null,onLoadParams:function(a,c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));a&&c&&(this.intermediateKindRadio.attr("checked","0"==a.getValue(c,"KIND")),this.totalKindRadio.attr("checked","1"==a.getValue(c,"KIND")),this.priorityEdit.attr("value",a.getValue(c,"PRIORITY")),this.indexEdit.attr("value",a.getValue(c,"BALANCEINDEX")),this.formulaEdit.attr("value",a.getValue(c,"FORMULA")),this.underDataRadio.attr("checked","0"==a.getValue(c,
"LOCATION")),this.overDataRadio.attr("checked","1"==a.getValue(c,"LOCATION")),this.editMode&&(this.priority=a.getValue(c,"PRIORITY"),this.index=this.indexEdit.attr("value"),this.formula=this.formulaEdit.attr("value")));this.kindChanged(this.totalKindRadio.attr("checked"))},kindChanged:function(a){a&&(this.index=this.indexEdit.attr("value"),this.formula=this.formulaEdit.attr("value"));parus.controlActions.setDisabled(this.indexEdit,a);parus.controlActions.setDisabled(this.formulaEdit,a);a&&this.priorityEdit.attr("value",
0);a||(this.indexEdit.attr("value",this.index),this.formulaEdit.attr("value",this.formula),a=this.priority,this.editMode&&0!=a||(a=this.executeGetNextPriority()),this.priorityEdit.attr("value",a))},getIndexCondition:function(){return{PRN:this.prn}},getExecParams:function(){return{KIND:this.totalKindRadio.attr("checked")?"1":"0",BALANCEINDEX:this.indexEdit.attr("value"),PRIORITY:this.priorityEdit.attr("value"),FORMULA:this.formulaEdit.attr("value"),LOCATION:this.underDataRadio.attr("checked")?"0":
"1"}},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceTableModels.Totals.Insert",b.mixin(this.getExecParams(),{PRN:this.prn})))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTableModels.Totals.Update",b.mixin(this.getExecParams(),{RN:this.rn}))},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceTableModels.Totals.Delete",{RN:a.getValue(c,"RN")})},executeChangePriority:function(a,
c,e){return!!parus.database.execute("designer.BalanceTableModels.Totals.ChangePriority",{RN:a.getValue(c,"RN"),DIRECT:e?"-1":"1"})},executeGetNextPriority:function(){var a=parus.database.execute("designer.BalanceTableModels.Totals.GetNextPriority",{PRN:this.prn});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"PRIORITY")}})})},"parus/designerReportPeriodDateDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportPeriodDateDialog");b.require("dijit.Dialog");
b.require("dijit.form.Button");b.require("dijit.form.DateTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.formats");b.require("parus.editDictionaryDialog");b.declare("parus.designerReportPeriodDateDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&this.dateEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"BDATE")))},executeInsert:function(a){if(a=parus.database.execute("insertDesignerReportPeriodDate",{PRN:this.prn,
BDATE:parus.formats.dateToString(this.dateEdit.attr("value"))}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("updateDesignerReportPeriodDate",{RN:this.rn,BDATE:parus.formats.dateToString(this.dateEdit.attr("value"))})},executeDelete:function(a,c){return!!parus.database.execute("deleteDesignerReportPeriodDate",{RN:a.getValue(c,"RN")})}})})},"parus/designerTableModelsDictionaryDialog":function(){define(["dijit","dojo","dojox"],
function(t,b,H){b.provide("parus.designerTableModelsDictionaryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.require("parus.gridActions");b.require("parus.catalogActions");b.require("parus.dictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelDialog");b.require("parus.designerTableModelIndexDialog");
b.require("parus.designerTableIndexChangePriorityDialog");b.require("parus.designerTableModelTotalDialog");b.require("parus.designerTableModelFormulaDialog");b.declare("parus.designerTableModelsDictionaryDialog",[parus.editableDictionaryDialog],{createMenu:function(){var a=new t.Menu({"class":"balanceMenu"});a.addChild(new t.MenuItem({label:"\u0418\u0442\u043e\u0433\u0438...",itemAction:!0,onClick:b.hitch(this,this.showTotals)}));a.addChild(new t.MenuItem({label:"\u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430...",
itemAction:!0,onClick:b.hitch(this,function(){this.showFormulas(!1)})}));a.addChild(new t.MenuItem({label:"\u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u0438 \u0438\u0442\u043e\u0433\u043e\u0432...",itemAction:!0,onClick:b.hitch(this,function(){this.showFormulas(!0)})}));a.startup();this.menu=a;this.inherited(arguments);return a},createDetailMenu:function(){this.detailMenu=this.createIndexPopupMenu(this,this.detailGrid,!0,this.getTableModelRN);this.inherited(arguments);
return this.detailMenu},getTableModelRN:function(){return this.detailGrid.store.parentRN},createIndexPopupMenu:function(a,c,e,f){var g=new t.Menu({"class":"balanceMenu"});g.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u043e\u043c...",itemAction:!1,detailAction:e,onClick:b.hitch(a,function(){parus.balance.showIndexes(!0,b.hitch(a,function(h){if((h=h.getValue())&&0<h.length){var l=f.call(a);parus.designerTableModelIndexDialog.prototype.executeInsertList(l,
h)&&parus.balance.refreshGrid(c)}}))})}));g.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443...",itemAction:!1,detailAction:e,onClick:b.hitch(a,function(){parus.balance.showIndexesGroups(!1,b.hitch(a,function(h){h=h.getLabel();var l=f.call(a);parus.designerTableModelIndexDialog.prototype.executeInsertGroup(l,h)&&parus.balance.refreshGrid(c)}))})}));g.addChild(new t.MenuItem({label:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430...",
itemAction:!1,detailAction:e,onClick:b.hitch(a,function(){var h=f.call(a);(new parus.designerTableIndexChangePriorityDialog({prn:h,onApply:b.hitch(a,function(l){(l=parus.designerTableModelIndexDialog.prototype.executeChangePriority(h,l.priorityEdit.attr("value")))&&parus.balance.refreshGrid(c);return l})})).show()})}));g.startup();return g},showTotals:function(){var a=this.grid,c=a.store;a=a.selection.getFirstSelected();c=c.getValue(a,"RN");a=parus.dictionaries.DesignerBalanceTableModelsTotals;var e=
new t.Menu({"class":"balanceMenu"});e.addChild(new t.MenuItem({label:"\u041f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c",itemAction:!0,onClick:b.hitch(this,function(){this.totalsChangePriority(f,!0)})}));e.addChild(new t.MenuItem({label:"\u041f\u043e\u043d\u0438\u0437\u0438\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c",itemAction:!0,onClick:b.hitch(this,function(){this.totalsChangePriority(f,!1)})}));e.startup();b.mixin(a,{dictionary:a,unitCode:a.unitCode,
multiselect:!0,hideCancel:!0,editByDoubleClick:!0,editDialogClass:parus.designerTableModelTotalDialog,gridConditions:{PRN:c},menu:e});var f=new parus.editableDictionaryDialog(a);f.show()},totalsChangePriority:function(a,c){var e=a.grid,f=e.store,g=e.selection.getFirstSelected();"1"!=f.getValue(g,"KIND")&&parus.designerTableModelTotalDialog.prototype.executeChangePriority(f,g,c)&&parus.balance.refreshGrid(e,"RN",f.getValue(g,"RN"))},showFormulas:function(a){var c=this.grid,e=c.store;c=c.selection.getFirstSelected();
e=e.getValue(c,"RN");c=parus.dictionaries[a?"DesignerBalanceTableModelsTotalFormulas":"DesignerBalanceTableModelsFormulas"];b.mixin(c,{dictionary:c,unitCode:c.unitCode,multiselect:!0,hideCancel:!0,editByDoubleClick:!0,editDialogClass:parus.designerTableModelFormulaDialog,gridConditions:{PRN:e,KIND:a?"1":"0"}});(new parus.editableDictionaryDialog(c)).show()}})})},"parus/designerReportIndexDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportIndexDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerIndexDialog");b.require("parus.designerIndexFormulaDialog");b.declare("parus.designerReportIndexDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,
c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));if(a&&c&&(this.indexEdit.attr("value",a.getValue(c,"BALANCEINDEX")),this.dictionaryEdit.attr("value",a.getValue(c,"DICTIONARY")),this.priorityEdit.attr("value",a.getValue(c,"PRIORITY")),this.agrFuncSelect.attr("value",a.getValue(c,"AGR_FUNC")),this.nullableCheckBox.attr("checked","1"==a.getValue(c,"NULLABLE")),this.dictCheckCheckBox.attr("checked","1"==a.getValue(c,"DICT_CHECK")),this.dictValNoteCheckBox.attr("checked",
"1"==a.getValue(c,"DICT_VAL_NOTE")),this.editMode)){var f="1"==a.getValue(c,"BITYPE");parus.controlActions.setDisabled(this.agrFuncSelect,!f);a.getValue(c,"DICTIONARY")&&(this.dictCheckCheckBox.attr("disabled",!1),f="0"==a.getValue(c,"FORMAT"),parus.controlActions.setDisabled(this.dictValNoteCheckBox,!f))}this.indexEdit.onApplyDictionary=b.hitch(this,this.indexChanged);this.dictionaryEdit.onApplyDictionary=b.hitch(this,this.dictionaryChanged)},indexChanged:function(a){a?(a="1"==a.getFieldValue("BITYPE"),
parus.controlActions.setDisabled(this.agrFuncSelect,!a)):this.indexEdit.showingDictionary||this.indexEdit.attr("value")||parus.controlActions.setDisabled(this.agrFuncSelect,!0)},dictionaryChanged:function(a){a?(this.dictCheckCheckBox.attr("disabled",!1),this.dictCheckCheckBox.attr("checked",!0),a="0"==a.getFieldValue("FORMAT"),parus.controlActions.setDisabled(this.dictValNoteCheckBox,!a)):this.dictionaryEdit.showingDictionary||this.dictionaryEdit.attr("value")||(parus.controlActions.setDisabled(this.dictCheckCheckBox,
!0),parus.controlActions.setDisabled(this.dictValNoteCheckBox,!0))},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceReportForm.Indexes.Insert",{RN:a?this.rn:null,PRN:this.prn,BALANCEINDEX:this.indexEdit.attr("value"),DICTIONARY:this.dictionaryEdit.attr("value"),PRIORITY:this.priorityEdit.attr("value"),AGR_FUNC:this.agrFuncSelect.attr("value"),NULLABLE:this.nullableCheckBox.attr("checked")?"1":"0",DICT_CHECK:this.dictCheckCheckBox.attr("checked")?"1":"0",DICT_VAL_NOTE:this.dictValNoteCheckBox.attr("checked")?
"1":"0"}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceReportForm.Indexes.Update",{RN:this.rn,BALANCEINDEX:this.indexEdit.attr("value"),DICTIONARY:this.dictionaryEdit.attr("value"),PRIORITY:this.priorityEdit.attr("value"),AGR_FUNC:this.agrFuncSelect.attr("value"),NULLABLE:this.nullableCheckBox.attr("checked")?"1":"0",DICT_CHECK:this.dictCheckCheckBox.attr("checked")?"1":"0",DICT_VAL_NOTE:this.dictValNoteCheckBox.attr("checked")?
"1":"0"})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceReportForm.Indexes.Delete",{RN:a.getValue(c,"RN")})},executeInsertList:function(a,c){return parus.database.execute("designer.BalanceReportForm.Indexes.InsertList",{PRN:a,RN:c})},executeInsertGroup:function(a,c){return parus.database.execute("designer.BalanceReportForm.Indexes.InsertGroup",{PRN:a,GROUP:c})}})})},"parus/designerTableModelFormulaDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTableModelFormulaDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerRecalculateTypeDialog");b.declare("parus.designerTableModelFormulaDialog",[parus.editDictionaryDialog],{kind:null,onLoadParams:function(a,c,e){this.inherited(arguments);
this.prn||(this.prn=this.getParentDialogCondition("PRN"));this.kind=this.getParentDialogCondition("KIND");a&&c&&(this.recalculateTypeEdit.attr("value",a.getValue(c,"RECALCTYPE")),this.userProcEdit.attr("value",a.getValue(c,"USERPROC")),this.dateFromEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"BEGINDATE"))),this.dateToEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"ENDDATE"))))},executeInsert:function(){var a=parus.database.execute("designer.BalanceTableModels.Formulas.Insert",
{PRN:this.prn,KIND:this.kind,RECALCTYPE:this.recalculateTypeEdit.attr("value"),USERPROC:this.userProcEdit.attr("value"),BEGINDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value"))});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTableModels.Formulas.Update",{RN:this.rn,KIND:this.kind,RECALCTYPE:this.recalculateTypeEdit.attr("value"),
USERPROC:this.userProcEdit.attr("value"),BEGINDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value"))})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceTableModels.Formulas.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/treeDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.treeDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");
b.require("parus.dialog");b.declare("parus.treeDialog",[parus.Dialog],{validate:function(){return this.catalogTree.model.isValid(this.catalogTree.selectedItem)},treeChange:function(){this.OKButton.attr("disabled",this.validate()?!1:!0);this.menu&&this._checkTreePopupMenu()},title:"\u0412\u044b\u0431\u043e\u0440 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430",model:null,key:null,restoreSelected:!0,menu:null,checkPopupMenu:null,postCreate:function(){this.inherited(arguments);this.menu&&(this.menu.dialogObject=
this,this.menu.bindDomNode(this.catalogTree.domNode))},_checkTreePopupMenu:function(){parus.catalogActions.checkPopupMenuItemAction(this.menu,this.catalogTree);this.checkPopupMenu&&this.checkPopupMenu.call(this,this,this.menu,this.catalogTree)},onDefaultNeeded:function(){return null},onSingle:function(){return null},onPerform:function(a,c){return!0},value:null,show:function(){var a=this.onSingle();if(a&&this.onPerform(a,null))return new b.DeferredList([]);a=parus.userdata.get(this.declaredClass+(this.key?
"-"+this.key:""))||{};this.userSize=a.userSize||null;this.value=this.value||(this.restoreSelected?a.selected:null)||this.onDefaultNeeded()||null;return this.inherited(arguments)},_onShow:function(){this.catalogTree.model=this.model;if(this.catalogTree.dndController&&!b.isString(this.catalogTree.dndController)){var a=this.catalogTree.dndController.declaredClass;this.catalogTree.dndController.destroy();this.catalogTree.tree.dndController=a}this.catalogTree.postMixInProperties();this.catalogTree.postCreate();
this.value&&this.catalogTree.attr("path",this.value.split(";")).then(b.hitch(this,this.treeChange));this.inherited(arguments)},onApply:function(){return this.onPerform(this.catalogTree.model.getIdentity(this.catalogTree.selectedItem),this.catalogTree.model.getLabel(this.catalogTree.selectedItem))},_onClose:function(){var a=[];this.restoreSelected&&(a=b.map(this.catalogTree.path||[],b.hitch(this,function(c){return this.catalogTree.model.getIdentity(c)})));parus.userdata.set(this.declaredClass+(this.key?
"-"+this.key:""),{selected:a.length?a.join(";"):null,userSize:this.userSize},!0);this.inherited(arguments)}})})},"parus/notificationDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.notificationDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.notificationDialog",[parus.messageDialog],{})})},"parus/balanceConsolidatedReportDialog":function(){define(["dijit","dojo","dojox"],function(t,
b,H){b.provide("parus.balanceConsolidatedReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.customEdit");b.declare("parus.balanceConsolidatedReportDialog",[parus.Dialog],{_agentCodeLoaded:!1,_agentNameLoaded:!1,agentsChanged:function(a){a&&a.disabled||(""==this.agentCodeEdit.value&&""==this.agentNameEdit.value?(this.agentCodeEdit.attr("disabled",!1),this.agentNameEdit.attr("disabled",!1)):""!=this.agentCodeEdit.value&&
"agentCodeEdit"==a.dojoAttachPoint?this._agentCodeLoaded?this._agentCodeLoaded=!1:(this.agentNameEdit.attr("disabled",!0),this.agentNameEdit.attr("value",null)):""!=this.agentNameEdit.value&&"agentNameEdit"==a.dojoAttachPoint&&(this._agentNameLoaded?this._agentNameLoaded=!1:(this.agentCodeEdit.attr("disabled",!0),this.agentCodeEdit.attr("value",null))),setTimeout(b.hitch(this,function(){var c=parus.parus8.rowNodes(parus.database.execute("getAgentInfo",{AGENT_CODE:this.agentCodeEdit.disabled?"":this.agentCodeEdit.value,
AGENT_NAME:this.agentNameEdit.disabled?"":this.agentNameEdit.value}))[0];this.agentCodeEdit.disabled&&this.agentCodeEdit.attr("value",parus.parus8.nodeField(c,"RAGNABBR"));this.agentNameEdit.disabled&&this.agentNameEdit.attr("value",parus.parus8.nodeField(c,"RAGNNAME"));this.agentHeadEdit.disabled&&this.agentHeadEdit.attr("value",parus.parus8.nodeField(c,"RHEAD"));""==this.agentCodeEdit.value&&""==this.agentNameEdit.value&&(this.agentCodeEdit.attr("disabled",!1),this.agentNameEdit.attr("disabled",
!1))}),100))}})})},"parus/balanceReportRecalculateValuesDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportRecalculateValuesDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceReportRecalculateValuesDialog",[parus.Dialog],{noGrid:!1,rn:null,isSubReport:!1,applyProgressLabel:"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439...",
onShow:function(){var a=this.getDefaultCalculationTypeValue();this.recalculateTypeEdit.attr("value",a.CALCTYPECODE);this.calculateResultSubReportsCheckBox.attr("checked",a.CALCRESULTS)},getDefaultCalculationTypeValue:function(){var a={CALCTYPECODE:"",CALCRESULTS:!1};if(!this.rn){var c=parus.balance.primaryMasterGrid;this.isSubReport&&(c=parus.balance.primaryDetailGrid);var e=c.store,f=c.selection.getSelectedIndex();f=c.getItem(f);this.rn=e.getValue(f,"RN")}if(this.rn||1==c.selection.getSelectedCount())c=
"getReportDefaultsRecalculateType",this.isSubReport&&(c="getSubReportDefaultsRecalculateType"),(c=parus.database.execute(c,{RN:this.rn}))&&(a={CALCTYPECODE:parus.parus8.nodeField(parus.parus8.rowNodes(c)[0],"CALCTYPECODE"),CALCRESULTS:"1"==parus.parus8.nodeField(parus.parus8.rowNodes(c)[0],"CALCRESULTS")});return a},onApply:function(){var a="recalculateReportValues",c=this.noGrid?null:parus.balance.primaryMasterGrid;this.isSubReport&&(a="recalculateSubReportValues",c=this.noGrid?null:parus.balance.primaryDetailGrid);
if(c){var e=c.store,f=!this.isSubReport,g=this.calculateResultSubReportsCheckBox.checked?1:0,h=this.recalculateTypeEdit.value;parus.progressDialog.iterateOverGrid(this.applyProgressLabel,c,function(l){parus.database.execute(a,{RN:e.getValue(l,"RN"),RESCOUNT:g,CALCTYPE_CODE:h})},function(){parus.balance.refreshGrid(c,"RN",e.getValue(c.selection.getFirstSelected(),"RN"));f&&parus.balance.refreshGrid(parus.balance.primaryDetailGrid,"RN",parus.balance.primaryDetailGrid.store.getValue(parus.balance.primaryDetailGrid.selection.getFirstSelected(),
"RN"))});return!0}this.rn&&(parus.database.execute(a,{RN:this.rn,RESCOUNT:this.calculateResultSubReportsCheckBox.checked?1:0,CALCTYPE_CODE:this.recalculateTypeEdit.value}),c&&parus.balance.refreshGrid(c,"RN",this.rn));!this.isSubReport&&c&&parus.balance.refreshGrid(parus.balance.primaryDetailGrid,"RN",parus.balance.primaryDetailGrid.store.getValue(parus.balance.primaryDetailGrid.selection.getFirstSelected(),"RN"));return!0},show:function(){if("0"!=parus.parus8.optionValue("Balance_ShowCalculationParamsForm"))return this.inherited(arguments);
if(this.noGrid){var a=new parus.progressDialog({message:this.applyProgressLabel});a.show();setTimeout(b.hitch(this,function(){this.onShow();this.applied=!0;this.onApply();a.close();a.destroyRecursive();this.onClose()}),1E3)}else return(new parus.confirmationDialog({message:"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f "+(this.isSubReport?"\u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430":"\u043e\u0442\u0447\u0435\u0442\u0430")+
"?",onApply:b.hitch(this,function(){var c=new parus.progressDialog({message:this.applyProgressLabel});c.show();setTimeout(b.hitch(this,function(){this.onShow();this.applied=!0;this.onApply();c.close();c.destroyRecursive();this.onClose()}),1E3);return!0}),onClose:b.hitch(this,this.onClose)})).show()}})})},"parus/dialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.dialog");b.require("dijit._Widget");b.require("dijit._Templated");b.require("dijit.Dialog");b.require("dijit.layout.BorderContainer");
b.require("dijit.layout.ContentPane");b.require("dijit.layout.TabContainer");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.CheckBox");b.require("dijit.form.Select");b.require("dojox.layout.ResizeHandle");b.declare("parus.Dialog",[t._Widget,t._TemplatedMixin],{widgetsInTemplate:!1,destroyOnClose:!0,dialog:null,title:null,applied:!1,sizeable:"xy",autoSize:!1,defaultUserSize:null,userSize:null,userSizeDataSection:null,style:"display:none",applyProgressLabel:null,
postMixInProperties:function(){this.inherited(arguments);if(!this.templateString){var a=this.declaredClass.split(".");this.templateString=b.cache(b.moduleUrl(a[0],a[1]+".html"))}this.userSizeDataSection=this.declaredClass+"-userSize"},postCreate:function(){this.inherited(arguments);10<=b.isIE&&b.query("*[gutters\x3d'true']",this.domNode).forEach(function(e){e.setAttribute("gutters","false");b.addClass(e,"dialogContentPaneColor");for(var f=0;f<e.childNodes.length;f++)e.childNodes[f]&&e.childNodes[f].style&&
(e.childNodes[f].style.margin="5px")});var a=b.parser.parse({rootNode:this.domNode,template:!0});b.mixin(this,{dialog:a[0]});if(!this.dialog)throw Error("Dialog element is not defined for class "+this.declaredClass+".");this.dialog.domNode.style.top="-1800px";this.dialog.containerNode.style.padding="0";b.connect(this.dialog,"onCancel",this,"close");b.mixin(this.dialog,{_position:b.hitch(this.dialog,this.__positionDialog),_size:b.hitch(this.dialog,this.__sizeDialog)});this.title&&(this.dialog.titleNode.innerHTML=
this.title);b.forEach(a,b.hitch(this,function(e){b.mixin(e,{dialogObject:this,dialog:this.dialog});var f=e.dojoAttachPoint;f&&-1!=b.indexOf(this._attachPoints,f)&&(this[f]=e)}));var c=b.hitch(this.dialog,this.dialog._onKey);b.mixin(this.dialog,{_onKey:b.hitch(this,function(e){c(e);13==e.keyCode&&"TEXTAREA"!==e.target.nodeName&&(t.focus(this.dialog.domNode),this.apply())})});this.onLoad(this)},getDefaultAutoSize:function(){var a=b.window.getBox();return{width:.8*a.w+"px",height:.8*a.h+"px"}},isPercentValue:function(a){return a&&
"string"==typeof a&&a.endsWith("%")},userSizeFromPercentToPixels:function(a){if(this.isPercentValue(a.width)||this.isPercentValue(a.height)){var c=b.window.getBox();this.isPercentValue(a.width)&&(a.width=c.w*(parseInt(a.width)/100)+"px");this.isPercentValue(a.height)&&(a.height=c.h*(parseInt(a.height)/100)+"px")}return a},show:function(){this.sizeable&&(this.userSize=parus.userdata.get(this.userSizeDataSection)||this.userSize,this.userSize.height||this.userSize.width||!this.autoSize||this.defaultUserSize||
(this.defaultUserSize=this.getDefaultAutoSize()));this._onShow();this.validate();t._masterTT&&t._masterTT.isShowingNow&&t.hideTooltip(t._masterTT.aroundNode);var a=new b.DeferredList([this.dialog.show()]);if(this.dialog._singleChild){var c=b.getMarginSize(this.dialog._singleChild.domNode);b.style(this.dialog._singleChild.domNode,{minWidth:c.w,minHeight:c.h})}else c=b.getMarginSize(this.dialog.containerNode),b.style(this.dialog.containerNode,{minWidth:c.w,minHeight:c.h});this.sizeable&&this._startupResize();
return a},close:function(){this.sizeable&&parus.userdata.set(this.userSizeDataSection,this.userSize);this.dialog.open?(new b.DeferredList([this.dialog.hide()])).addCallback(b.hitch(this,function(a){this._onClose();if(this.destroyOnClose)return this.dialog.destroyRecursive(),this.dialog=null,this.destroyRecursive(),a})):(this._onClose(),this.destroyOnClose&&(this.dialog.destroyRecursive(),this.dialog=null,this.destroyRecursive()))},validate:function(){return!this.dialog||this.dialog.validate()},apply:function(){if(this.validate())if(this.applyProgressLabel){var a=
b.hitch(this,function(){var c=new parus.progressDialog({message:this.applyProgressLabel});c.show().addCallback(b.hitch(this,function(){try{this.applied=this.onApply(this)}catch(e){this.applied=!1}c.close();c.destroyRecursive();this.applied&&this.close()}))});this.dialog.open?(new b.DeferredList([this.dialog.hide()])).addCallback(a):a()}else(this.applied=this.onApply(this))&&this.close()},onLoad:function(){},onApply:function(a){return!0},onShow:function(a){},_onShow:function(){this.onShow(this)},onClose:function(a){},
_onClose:function(){this.onClose(this)},helpButtonClick:function(){parus.balance.showHelp(this.declaredClass)},_sizeDifferences:null,_startupResize:function(){var a=b.getMarginSize(this.dialog.domNode),c=b.getMarginSize(this.dialog.containerNode);if(a.w||a.h||c.w||c.h){this._sizeDifferences={dh:a.h-c.h,dw:a.w-c.w};if(this.userSize||this.defaultUserSize)a=this.userSize,this.userSize.height||this.userSize.width||!this.defaultUserSize||(a=this.userSizeFromPercentToPixels(this.defaultUserSize)),b.style(this.dialog.domNode,
{width:parseInt(a.width)+this._sizeDifferences.dw+"px",height:parseInt(a.height)+this._sizeDifferences.dh+"px"}),this._onResize(!1),this.dialog.resize(),this.dialog._position();a=document.createElement("div");this.dialog.domNode.appendChild(a);this._resizeHandle=new H.layout.ResizeHandle({targetId:this.dialog.id,resizeAxis:this.sizeable,activeResize:!0,animateSizing:!0,intermediateChanges:!1,minHeight:c.h,minWidth:c.w,onResize:b.hitch(this,function(){setTimeout(b.hitch(this,function(){this._onResize(!0)}),
1)})},a);this._resizeHandle.startup()}},_resizeHandle:null,_onResize:function(a){var c=b._getMarginSize(this.dialog.domNode);if(c.w||c.h)a&&(this.userSize={height:this.dialog.domNode.style.height,width:this.dialog.domNode.style.width}),b.style(this.dialog.containerNode,{height:c.h-this._sizeDifferences.dh+"px",width:c.w-this._sizeDifferences.dw+"px"}),this._resizeChildren()},_resizeChildren:function(){for(var a=[],c=0;c<this.dialog.containerNode.childNodes.length;c++){var e=this.dialog.containerNode.childNodes[c];
e.style&&(b.style(e,{minHeight:this.dialog.containerNode.clientHeight,minWidth:this.dialog.containerNode.clientWidth}),(e=t.byNode(e))&&e.layout&&a.push(e))}a.length&&b.forEach(a,function(f){f.resize()})},__sizeDialog:function(){if(this.dialogObject.sizeable){this._checkIfSingleChild();this._singleChild?(this._singleChildOriginalStyle&&(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle||""),delete this._singleChildOriginalStyle):b.style(this.containerNode,{width:"auto",height:"auto"});
var a=b.isIE?1:parus.parus8.getZoom(),c=b._getMarginSize(this.domNode),e=b.window.getBox(),f=b._getMarginSize((this._singleChild?this._singleChild.domNode:null)||this.containerNode);e.w=e.w-(c.w-f.w)*a-3;e.h=e.h-(c.h-f.h)*a-3;c.w*a>=e.w||c.h*a>=e.h?(f=Math.min(c.w*a,Math.floor(e.w)),c=Math.min(c.h*a,Math.floor(e.h)),this._singleChild&&this._singleChild.resize?(this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText,this._singleChild.resize({w:f/a,h:c/a})):b.style(this.containerNode,
{width:f/a+"px",height:c/a+"px"})):this._singleChild&&this._singleChild.resize&&this._singleChild.resize()}},__positionDialog:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,c=b.isIE?1:parus.parus8.getZoom(),e=b.window.getBox(),f=this._relativePosition,g=f?null:b.marginBox(a),h=Math.floor(e.l+(f?f.x:(e.w-g.w*c)/2));e=Math.floor(e.t+(f?f.y:(e.h-g.h*c)/2));b.isOpera||b.getComputedStyle(b.body()).zoom||(c=1);g&&(g.l||g.t||g.w||g.h)&&b.style(a,{left:h/c+"px",top:e/c+"px"})}},_activateResize:function(){this.sizeable&&
!this._resizeHandle&&t.Dialog._dialogStack[t.Dialog._dialogStack.length-1].dialog.id==this.dialog.id&&(this.userSize=parus.userdata.get(this.userSizeDataSection)||this.userSize,this.userSize.height||this.userSize.width||!this.autoSize||this.defaultUserSize||(this.defaultUserSize=this.getDefaultAutoSize()),this.dialog._position(),this.dialog._size(),this._startupResize(),this._onResize(!1))}});b.declare("parus.messageDialog",[parus.Dialog],{message:null,sizeable:null,_additionalHeight:null,postCreate:function(){this.inherited(arguments);
this.messageText.innerHTML=this.message},_activateResize:function(){this._place()},onShow:function(){this._place()},_place:function(){setTimeout(b.hitch(this,function(){b.style(this.dialog.containerNode,{minWidth:"",minHeight:"",backgroundColor:b.getComputedStyle(b.query("*[class]",this.dialog.containerNode)[0]).backgroundColor});var a=b.getMarginSize(this.dialog.domNode),c=b.getMarginSize(this.dialog.containerNode),e=b._getMarginSize(this.messageText);this._sizeDifferences={dh:a.h-c.h,dw:a.w-c.w};
310>e.w&&(e.w=310);e.h+=this._additionalHeight||0;this._onResize(!1);this.dialog.domNode.style.width=e.w+70+this._sizeDifferences.dw+"px";this.dialog.domNode.style.height=e.h+70+this._sizeDifferences.dh+"px";this.dialog.containerNode.style.width=e.w+70+"px";this.dialog.containerNode.style.height=e.h+70+"px";this.dialog.resize();this.dialog.containerNode.style.overflowX="hidden";this.dialog._position()}),100)}})})},"parus/designerCheckListDialog":function(){define(["dijit","dojo","dojox"],function(t,
b,H){b.provide("parus.designerCheckListDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.editDictionaryDialog");b.declare("parus.designerCheckListDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",a.getValue(c,"CODE")),this.nameEdit.attr("value",
a.getValue(c,"NAME")))},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceCheckLists.Insert",{CRN:this.crn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceCheckLists.Update",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceCheckLists.Delete",
{RN:a.getValue(c,"RN")})}})})},"parus/designerReportEditionDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportEditionDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editDictionaryDialog");b.require("parus.designerReportPeriodDialog");
b.require("parus.designerReportPeriodDateDialog");b.require("parus.designerRecalculateTypeDialog");b.declare("parus.designerReportEditionDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.dateFromEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"BEGDATE"))),this.dateToEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"ENDDATE"))),this.recalculateTypeEdit.attr("value",a.getValue(c,"CALC_CODE")),this.calculateResultSubReportsCheckBox.attr("checked",
"1"==a.getValue(c,"RESULTS")),this.periodEdit.attr("value",a.getValue(c,"PERIOD_CODE")),this.autoRecalculateCheckBox.attr("checked","1"==a.getValue(c,"AUTOCALC")),this.noteEdit.attr("value",a.getValue(c,"NOTES")),this.subscriptToTextEdit.attr("value",a.getValue(c,"EXPORTFOOTER")),this.uploadWithSubReportsCheckBox.attr("checked","1"==a.getValue(c,"EXPORTSUBREPORTS")),this.ignoreWarningsCheckBox.attr("checked","1"==a.getValue(c,"IGNORE_WARNINGS")))},executeInsert:function(a){if(a=parus.database.execute(a?
"duplicateDesignerReportEdition":"insertDesignerReportEdition",{RN:a?this.rn:null,PRN:this.prn,BEGDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value")),CALCTYPE:this.recalculateTypeEdit.attr("value"),RESULTS:this.calculateResultSubReportsCheckBox.attr("checked")?"1":"0",PERIOD:this.periodEdit.attr("value"),AUTOCALC:this.autoRecalculateCheckBox.attr("checked")?"1":"0",NOTES:this.noteEdit.attr("value"),EXPORTFOOTER:this.subscriptToTextEdit.attr("value"),
EXPORTSUBREPORTS:this.uploadWithSubReportsCheckBox.attr("checked")?"1":"0",IGNORE_WARNINGS:this.ignoreWarningsCheckBox.attr("checked")?"1":"0"}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("updateDesignerReportEdition",{RN:this.rn,BEGDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value")),CALCTYPE:this.recalculateTypeEdit.attr("value"),RESULTS:this.calculateResultSubReportsCheckBox.attr("checked")?
"1":"0",PERIOD:this.periodEdit.attr("value"),AUTOCALC:this.autoRecalculateCheckBox.attr("checked")?"1":"0",NOTES:this.noteEdit.attr("value"),EXPORTFOOTER:this.subscriptToTextEdit.attr("value"),EXPORTSUBREPORTS:this.uploadWithSubReportsCheckBox.attr("checked")?"1":"0",IGNORE_WARNINGS:this.ignoreWarningsCheckBox.attr("checked")?"1":"0"})},executeDelete:function(a,c){return!!parus.database.execute("deleteDesignerReportEdition",{RN:a.getValue(c,"RN")})}})})},"parus/balanceReportAttachedDocumentsDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportAttachedDocumentsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("parus.parus8");b.require("parus.gridData");b.require("parus.dialog");b.require("parus.balanceReportAttachedDocumentActionDialog");b.declare("parus.balanceReportAttachedDocumentsDialog",[parus.Dialog],{rn:null,unitcode:"BalanceReports",postCreate:function(){this.inherited(arguments);this.docsGrid.attr("store",this.docsGridStore());
this.docsGrid.setQuery(this.docsGrid.query);this.docsGridPopupMenu.bindDomNode(this.docsGrid.viewsNode);parus.balance._createActionsButton(this.docsGridPopupMenu,this.docsGridHeaderPane);var a=parus.userdata.get(this.declaredClass);a&&(parus.gridSettingsDialog.mergeGridSettings(this.docsGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.docsGrid,a.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.docsGridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,
a.userAppsActions),parus.gridSettingsDialog.mergeFilterBar(this.docsGrid,a.showFilterBar,a.filterValues,a.sortInfo))},docsGridStore:function(){return parus.gridData({queryid:"AttachedDocuments",onGetConditions:b.hitch(this,function(a){return{RN:this.rn,UNITCODE:this.unitcode}}),onComplete:b.hitch(this,function(a,c){0<c.length&&!this.docsGrid.selection.getSelectedCount()&&(this.docsGrid.selection.select(0),this.docsGrid.autoSelected=!0)})})},refresh:function(){var a=this.docsGrid,c=a.selection.getSelectedIndex();
c=a.getItem(c);parus.balance.refreshGrid(a,"RN",a.store.getValue(c,"RN"))},insertFile:function(){(new parus.balanceReportAttachedDocumentActionDialog({title:"\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b: \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435",grid:this.docsGrid,prn:this.rn,unitcode:this.unitcode})).show()},updateFile:function(){var a=this.docsGrid,c=a.selection.getSelectedIndex();
c=a.getItem(c);(new parus.balanceReportAttachedDocumentActionDialog({title:"\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b: \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",grid:this.docsGrid,prn:this.rn,rn:a.store.getValue(c,"RN"),docCode:a.store.getValue(c,"CODE"),docType:a.store.getValue(c,"FILE_TYPE_CODE"),catalog:a.store.getValue(c,"CATALOG"),note:a.store.getValue(c,"NOTE"),unitcode:this.unitcode})).show()},
deleteFile:function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var a=this.docsGrid,c=a.selection.getFirstSelected(),e=0;e<a.selection.getSelectedCount();e++)parus.database.execute("DeleteAttachedDocument",{RN:a.store.getValue(c,"RN")}),c=a.selection.getNextSelected(c);parus.balance.refreshGrid(a,"RN",a.store.getValue(a.selection.getFirstSelected(),
"RN"));return!0})})).show()},downloadFile:function(){for(var a=this.docsGrid,c=a.selection.getFirstSelected(),e=0;e<a.selection.getSelectedCount();e++)parus.balance.downloadAttachedFile(a.store.getValue(c,"RN")),c=a.selection.getNextSelected(c)},insertFiles:function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else if(parus.parus8.optionValue("BalanceOnlineCacheContractorDictValues")){var a=document.createElement("form");a.method="POST";a.encoding="multipart/form-data";a.action=parus.database.getLoadAttachedDocumentsUrl();var c=document.createElement("input");c.type="hidden";c.name="prn";c.value=this.rn;a.appendChild(c);c=document.createElement("input");c.type="hidden";c.name="unitcode";c.value=this.unitcode;a.appendChild(c);c=document.createElement("input");c.type="file";c.name="filedata";c.multiple=!0;
c.onchange=b.hitch(this,function(){if(c.files.length){var e=new parus.progressDialog({message:"\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b..."});e.show();b.xhrGet({url:"../.system/session.xml?filedata\x3d",handleAs:"xml",sync:!1,preventCache:!0,load:b.hitch(this,function(f){b.io.iframe.send({method:"POST",form:a,handleAs:10<=b.isIE?"html":"xml",handle:b.hitch(this,function(g,h){document.body.removeChild(a);b.isIE||g.normalize();"error"==g.documentElement.nodeName&&
(parus.parus8.errorMessage(parus.parus8.nodeField(g.documentElement,"message")),g=null);e.close();e.destroyRecursive();this.refresh()})});return f})})}else document.body.removeChild(a)});a.appendChild(c);document.body.appendChild(a);c.click()}else parus.parus8.errorMessage("\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \u0442\u0438\u043f \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.")}})})},
"parus/balanceReportsConditionsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportsConditionsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.TitlePane");b.require("dijit.form.DateTextBox");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.groupBox");b.require("parus.dictEdit");b.declare("parus.balanceReportsConditionsDialog",[parus.Dialog],
{consolidated:!1,_docprops:null,setCheckBoxes:function(a,c){var e=c?c.split(";"):[];b.forEach(a.widgets(),function(f){"none"!=f.domNode.parentNode.style.display&&f.attr("checked",0==e.length||0<=b.indexOf(e,f.numericValue.toString()))})},getCheckBoxes:function(a){var c=[],e=!1;b.forEach(a.widgets(),function(f){"none"!=f.domNode.parentNode.style.display&&(f.checked?c.push(f.numericValue.toString()):e=!0)});return e?c.join(";"):""},show:function(){if(this.consolidated){this.mainContainer.domNode.style.width=
"850px";var a=this.statusTable.rows[0].cells;a[2].style.display="none";a[4].style.display="";a[5].style.display="";a[6].style.display="";a[0].width="10%";a[1].width="10%";a[3].width="10%";a[4].width="18%";a[5].width="18%";a[6].width="23%";a[7].width="11%"}this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this._docprops={};if(parus.balance._docprops.length){this.requsitesPane.domNode.style.margin="0";var a=new t.layout.TabContainer({region:"center","class":"balanceInternalPages"});
a.addChild(this.requsitesPane);var c=new t.layout.ContentPane({title:"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430","class":"dialogContentPane",style:"overflow-y:scroll"}),e=document.createElement("table");e.cellSpacing="5";e.width="100%";b.forEach(parus.balance._docprops,b.hitch(this,function(f){var g=e.insertRow(-1);if(parus.parus8.nodeField(f,"DICTIONARY")||"0"==parus.parus8.nodeField(f,"DATATYPE")){var h=g.insertCell(-1);h.appendChild(document.createElement("b")).appendChild(document.createTextNode(parus.parus8.nodeField(f,
"PROMPT")+":"));h=g.insertCell(-1);h.align="right";h.colSpan=3;var l=parus.customEditProperties(parus.parus8.nodeField(f,"DICTIONARY"),"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE"),!1,2E3,parus.parus8.nodeField(f,"INTPART"),parus.parus8.nodeField(f,"FRACPART"));b.mixin(l.params,{multiselect:!0,arbitrary:!0});var m=new (l.constructor())(l.params,h.appendChild(document.createElement("div")));parus._docPropsValueValueForWidget(m,
null,"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE"));this._docprops[parus.parus8.nodeField(f,"RN")]={dataType:"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),dataSubType:parus.parus8.nodeField(f,"SUBTYPE"),single:m}}else h=g.insertCell(-1),h.appendChild(document.createElement("b")).appendChild(document.createTextNode(parus.parus8.nodeField(f,"PROMPT")+" \u0441:")),l=parus.customEditProperties(parus.parus8.nodeField(f,
"DICTIONARY"),"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE"),!1,2E3,parus.parus8.nodeField(f,"INTPART"),parus.parus8.nodeField(f,"FRACPART")),h=g.insertCell(-1),h.align="right",m=new (l.constructor())(l.params,h.appendChild(document.createElement("div"))),parus._docPropsValueValueForWidget(m,null,"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE")),h=g.insertCell(-1),
h.appendChild(document.createElement("b")).appendChild(document.createTextNode("\u043f\u043e :")),h=g.insertCell(-1),h.align="right",g=new (l.constructor())(l.params,h.appendChild(document.createElement("div"))),parus._docPropsValueValueForWidget(g,null,"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE")),this._docprops[parus.parus8.nodeField(f,"RN")]={dataType:"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,
"DATATYPE"),dataSubType:parus.parus8.nodeField(f,"SUBTYPE"),from:m,to:g}}));c.containerNode.appendChild(e);a.addChild(c);this.mainContainer.addChild(a);b.style(this.mainContainer.domNode,{height:parus.parus8.styleSize(this.mainContainer.domNode.style.height)+30+"px"})}},clearConditions:function(){this.formCodeEdit.attr("value",null);this.agentCodeEdit.attr("value",null);this.agentNameEdit.attr("value",null);this.dateFromEdit.attr("value",null);this.dateToEdit.attr("value",null);b.forEach(this.statusGroupBox.widgets().concat(this.checkGroupBox.widgets()).concat(this.sentGroupBox.widgets()).concat(this.historyGroupBox.widgets()).concat(this.historyLastGroupBox.widgets()),
function(e){e.attr("checked",!0)});for(var a in this._docprops){var c=this._docprops[a];b.forEach([c.from,c.single,c.to],function(e){e&&(e.attr("value",null),e.subWidget&&e.subWidget.attr("value",null))})}},loadConditions:function(a){this.formCodeEdit.attr("value",a.FORM_CODE);this.agentCodeEdit.attr("value",a.AGNABBR);this.agentNameEdit.attr("value",a.AGNNAME);this.dateFromEdit.attr("value",a.DATE_FROM?b.date.locale.parse(a.DATE_FROM.substring(2,1E3),{datePattern:"dd.MM.yyyy",selector:"date"}):null);
this.dateToEdit.attr("value",a.DATE_TO?b.date.locale.parse(a.DATE_TO.substring(2,1E3),{datePattern:"dd.MM.yyyy",selector:"date"}):null);this.setCheckBoxes(this.statusGroupBox,a.STATE);this.setCheckBoxes(this.checkGroupBox,a.CHECKED);this.setCheckBoxes(this.sentGroupBox,a.SENT);this.setCheckBoxes(this.historyGroupBox,a.USE_HISTORY);this.setCheckBoxes(this.historyLastGroupBox,a.ONLY_LAST_HISTORY);if(a=a.DOCPROPS)for(var c in a){var e=a[c],f=c.substr(1,c.length);(f=this._docprops[f])&&f.dataType==e.dataType&&
f.dataSubType==e.dataSubType&&(f.single&&parus._docPropsValueValueForWidget(f.single,e.value,f.dataType,f.dataSubType),f.from&&parus._docPropsValueValueForWidget(f.from,e.from,f.dataType,f.dataSubType),f.to&&parus._docPropsValueValueForWidget(f.to,e.to,f.dataType,f.dataSubType))}},saveConditions:function(){var a={};a.FORM_CODE=this.formCodeEdit.value;a.AGNABBR=this.agentCodeEdit.value;a.AGNNAME=this.agentNameEdit.value;a.DATE_FROM=""!=this.dateFromEdit.toString()?"\x3e\x3d"+b.date.locale.format(this.dateFromEdit.value,
{selector:"date",datePattern:"dd.MM.yyyy"}):"";a.DATE_TO=""!=this.dateToEdit.toString()?"\x3c\x3d"+b.date.locale.format(this.dateToEdit.value,{selector:"date",datePattern:"dd.MM.yyyy"}):"";a.STATE=this.getCheckBoxes(this.statusGroupBox);a.CHECKED=this.getCheckBoxes(this.checkGroupBox);a.SENT=this.getCheckBoxes(this.sentGroupBox);a.USE_HISTORY=this.getCheckBoxes(this.historyGroupBox);a.ONLY_LAST_HISTORY=this.getCheckBoxes(this.historyLastGroupBox);a.DOCPROPS={};for(var c in this._docprops){var e=this._docprops[c];
a.DOCPROPS["P"+c]=e.single?{value:parus._docPropsValueValueFromWidget(e.single),dataType:e.dataType,dataSubType:e.dataSubType}:{from:parus._docPropsValueValueFromWidget(e.from),to:parus._docPropsValueValueFromWidget(e.to),dataType:e.dataType,dataSubType:e.dataSubType}}return a}})})},"parus/loginDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.loginDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");
b.require("parus.database");b.require("parus.changePasswordDialog");b.require("parus.openIDRegistrationDialog");b.require("parus.negotiateRegistrationDialog");b.declare("parus.loginDialog",[parus.Dialog],{task:null,sizeable:null,title:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u0435\u0430\u043d\u0441",sessionUserName:null,sessionUserHandler:null,sessionPassword:null,sessionNegotiate:null,sessionSSLCert:null,postCreate:function(){this.inherited(arguments);parus.loginDialog.instance=this;var a=!1,
c=!1;b.xhrGet({handleAs:"xml",sync:!0,headers:{"Disable-Basic-Auth":"yes"},preventCache:!0,url:"../.system/contents.xml",load:b.hitch(this,function(f){parus.parus8._hasInstantMessagesHandler=!1;(function(r){for(var w=r.childNodes,x=w.length-1;0<=x;x--)1==w[x].nodeType?arguments.callee(w[x]):r.removeChild(w[x])})(f.documentElement);for(var g=0;g<f.documentElement.childNodes.length;g++){var h=f.documentElement.childNodes[g];if(h.getAttribute("class").toString()==parus.parus8.CLASS_InstantMessageHandler.toString()&&
"1"!=(h.getAttribute("disabled")||0).toString())parus.parus8._hasInstantMessagesHandler=h.getAttribute("ID");else if(h.getAttribute("class").toString()!=parus.parus8.CLASS_ParusBalanceContentHandler.toString()&&h.getAttribute("class").toString()!=parus.parus8.CLASS_PPCBalanceContentHandler.toString()||"1"==(h.getAttribute("disabled")||0).toString())h.getAttribute("class").toString()==parus.parus8.CLASS_FolderContentHandler.toString()&&"1"!=(h.getAttribute("disabled")||0).toString()&&"parusproxyjs"==
h.getAttribute("ID").toString()&&1<navigator.userAgent.split("Windows").length&&(this.remoteAccessButton.domNode.style.display="");else{for(var l=!1,m=h.childNodes,p=0;p<m.length;p++)"parusSessionIdentAuth"==m[p].getAttribute("ID")&&(l=!0);if(!l){l=h.childNodes[0].childNodes;for(p=0;p<l.length;p++)l[p].childNodes[0]&&l[p].childNodes[0].getAttribute("value")&&this.databaseSelect.addOption({value:h.getAttribute("ID")+";"+l[p].childNodes[0].getAttribute("value"),label:(h.getAttribute("FriendlyName")?
h.getAttribute("FriendlyName")+" - ":"")+l[p].childNodes[0].getAttribute("value")});for(p=0;p<m.length;p++)"parusOpenIDAuth"==m[p].getAttribute("ID")?(this.incAuthHeight(),this.EnterOpenIDDiv.style.display="","1"==h.getAttribute("AllowRegisterOpenIDLogin")&&(this.registerOpenIDButton.domNode.style.display="")):"parusNegotiateAuth"==m[p].getAttribute("ID")?(this.incAuthHeight(),this.EnterNegotiateDiv.style.display="","1"==h.getAttribute("AllowRegisterNegotiateLogin")&&(this.registerNegotiateButton.domNode.style.display=
""),a=!0):"parusSSLCertAuth"==m[p].getAttribute("ID")&&(this.incAuthHeight(),this.EnterSSLCertDiv.style.display="",c=!0)}}}return f})});this.dialog.closeButtonNode.style.display="none";this.dialog.containerNode.style.padding=0;this.loginEdit.attr("value",this.sessionUserName);this.databaseSelect.attr("value",this.sessionUserHandler);this.headingDiv.appendChild(document.createTextNode(this.task));this.passwordEdit.attr("value",this.sessionPassword);this.storePassword.attr("checked",this.passwordEdit.value&&
this.loginEdit.value);if(a||c)this.negotiateAuth.attr("checked",this.sessionNegotiate),this.sslCertAuth.attr("checked",this.sessionSSLCert),this.passwordLessAuthClick();this.passwordEdit.value&&this.loginEdit.value?t.focus(this.OKButton.focusNode):this.loginEdit.value?t.focus(this.passwordEdit.focusNode):t.focus(this.loginEdit.focusNode);250>document.body.clientHeight&&(this.headingPane.destroyRecursive(),this.dialog.titleNode.innerHTML=this.dialog.titleNode.innerHTML+String.fromCharCode(160)+String.fromCharCode(34)+
this.task+String.fromCharCode(34),this.MainBorderContainer.domNode.style.height="222px",this.MainBorderContainer.layout());this.dialog.domNode.setAttribute("logindialog",1);var e=b.hitch(this.dialog,this.dialog._onKey);b.mixin(this.dialog,{_onKey:b.hitch(this,function(f){(f.charOrCode||f.keyCode)!=b.keys.ESCAPE&&e(f)})})},apply:function(){if(this.validate()&&this.databaseSelect.value){if(!this.negotiateAuth.checked&&!this.sslCertAuth.checked){var a=this.loginEdit.value;var c=this.passwordEdit.value}parus.database.connect(this.databaseSelect.value,
a,c,null,null,this.sslCertAuth.checked)?(b.cookie("loggedUserHandler-c",this.databaseSelect.value,{expires:365}),this.negotiateAuth.checked||this.sslCertAuth.checked?this.negotiateAuth.checked?(b.cookie("loggedAsNegotiate-c","1"),b.cookie("loggedAsSSLCert-c","")):this.sslCertAuth.checked&&(b.cookie("loggedAsNegotiate-c",""),b.cookie("loggedAsSSLCert-c","1")):(b.cookie("loggedUserName-c",this.loginEdit.value,{expires:365}),this.storePassword.checked?b.cookie("loggedUserPassword-c",this.passwordEdit.value,
{expires:365}):b.cookie("loggedUserPassword-c",""),b.cookie("loggedAsNegotiate-c",""),b.cookie("loggedAsSSLCert-c","")),this.inherited(arguments)):parus.database.authException||alert("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0432\u0435\u0440\u043d\u044b. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0430.")}},
incAuthHeight:function(){b.style(this.MainBorderContainer.domNode,{height:parus.parus8.styleSize(this.MainBorderContainer.domNode.style.height)+20+"px"});b.style(this.sidebarDiv.domNode,{height:parus.parus8.styleSize(this.sidebarDiv.domNode.style.height)+20+"px"});b.style(this.CustomAuthDiv.domNode,{height:parus.parus8.styleSize(this.CustomAuthDiv.domNode.style.height)+20+"px"})},changePassword:function(){this.validate()&&this.databaseSelect.value&&(this.negotiateAuth.checked||this.sslCertAuth.checked||
(new parus.changePasswordDialog({handler:this.databaseSelect.value,login:this.loginEdit.value,password:this.passwordEdit.value})).show())},storePasswordClick:function(){this.storePassword.checked&&(confirm("\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u043e\u0432. \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c?")||
this.storePassword.attr("checked",!1))},passwordLessAuthClick:function(){this.negotiateAuth.checked||this.sslCertAuth.checked?(this.loginEdit.attr("value",null),this.passwordEdit.attr("value",null),this.storePassword.attr("checked",!1)):(this.loginEdit.attr("value",this.sessionUserName),this.passwordEdit.attr("value",this.sessionPassword),this.storePassword.attr("checked",this.passwordEdit.value&&this.loginEdit.value));var a=this.negotiateAuth.checked||this.sslCertAuth.checked?!0:!1;this.loginEdit.attr("disabled",
a);this.passwordEdit.attr("disabled",a);this.storePassword.attr("disabled",a);this.registerOpenIDButton.attr("disabled",a);this.registerNegotiateButton.attr("disabled",a)},helpButtonClick:function(){(new t.Dialog({href:"../parusjs/parusLoginDialogHelp.html",extractContent:!0,style:"width:80%;height:80%;overflow:scroll",title:"\u041a\u0430\u043a \u0432\u043e\u0439\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443?"})).show()},remoteAccess:function(){parus.parus8.remoteAccessDialog||(parus.parus8.remoteAccessDialog=
new t.Dialog({href:"../parusproxyjs/proxy.html",extractContent:!0,style:"width:80%;height:80%;overflow:scroll",title:"\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043b\u044f Windows",onLoad:function(){parus.parus8.buildParusProxyLaunchersList([parus.parus8.CLASS_OCIProxyParusBalanceContentHandler,parus.parus8.CLASS_PPCProxyBalanceContentHandler],"../parusproxyjs/Launchers/")}}));parus.parus8.remoteAccessDialog.show()},registerOpenID:function(){this.validate()&&
this.databaseSelect.value&&(this.negotiateAuth.checked||this.sslCertAuth.checked||(new parus.openIDRegistrationDialog({handler:this.databaseSelect.value,login:this.loginEdit.value,password:this.passwordEdit.value})).show())},registerNegotiate:function(){if(this.validate()&&this.databaseSelect.value&&!this.negotiateAuth.checked&&!this.sslCertAuth.checked){var a=new parus.negotiateRegistrationDialog({handler:this.databaseSelect.value,login:this.loginEdit.value,password:this.passwordEdit.value});a.assignCurrentNegotiateUserName()?
a.show():a.close()}}});b.mixin(parus.parus8,{remoteAccessDialog:null});b.mixin(parus.loginDialog,{enterOpenID:function(){var a=t.byNode(b.query("*[logindialog]")[0]).dialogObject,c=new t.Dialog({title:"\u0412\u0445\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 OpenID",content:b.cache("parus","openIDLoginDialog.html",'\x3cdiv\x3e\x3cdiv\x3e OpenID:\x26#160;\x26#160;\x26#160; \x3cinput dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:400px" trim\x3d"true"\x3e\x3c/input\x3e\x3cbr/\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, username.id.mail.ru\x3c/i\x3e\x3c/div\x3e\x3cdiv align\x3d"right" style\x3d"margin-top:5px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode).perform()"\x3e\x3cb\x3e \u041e\u041a \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e'),
perform:b.hitch(this,function(){var e=t.byNode(b.query("*[widgetId]",c.domNode)[0]);if(e.validate()){var f=function(m,p){p.xhr.getResponseHeader("X-Location")?window.open(p.xhr.getResponseHeader("X-Location"),"_self"):(parus.parus8.errorMessage("\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c OpenID-\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c.\x3cbr/\x3e\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d."),
c.hide());return m},g=a.databaseSelect.value,h="",l=g.split(";");1<l.length&&(g=l[0],h=l[1]);b.xhrGet({handleAs:"xml",sync:!1,headers:{"Disable-Basic-Auth":"yes"},url:"../"+g+"/sysinfo.xml",content:{SessionCompanyName:h,openid_identifier:e.attr("value"),openid_location_header:"X-Location",openid_return_to:document.location.pathname,loggedUserHandler:a.databaseSelect.value},load:f,error:f})}})});c.show()}})})},"parus/balanceZoomDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceZoomDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.NumberTextBox");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceZoomDialog",[parus.Dialog],{})})},"parus/themeEditor":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.themeEditor");b.require("parus.parus8");parus||(parus={});parus.parus8||b.mixin(parus,{parus8:{}});b.mixin(parus.parus8,{_nativeCSS:"",_themeCSSNode:null,_imageNames:null,_inspecting:!1,_inspectingTimeout:null,
toColor:function(a){for(a=Number(a).toString(16);6>a.length;)a="0"+a;return"#"+a},toColorIndex:function(a){return eval(a.split("rgb").join("(function(r,g,b){return r*256*256+g*256+b;})"))},themeEditor:function(){this._themeEditorMode=!0;b.cookie("bc","",{expires:-1});parus.parus8._nativeCSS=b.cache("parus","theme/custom/theme.css",'@import url("Common.css");\n@import url("layout/ContentPane.css");\n@import url("layout/TabContainer.css");\n@import url("layout/AccordionContainer.css");\n@import url("layout/SplitContainer.css");\n@import url("layout/BorderContainer.css");\n@import url("form/Common.css");\n@import url("form/Button.css");\n@import url("form/Checkbox.css");\n@import url("form/RadioButton.css");\n@import url("form/Slider.css");\n@import url("form/Select.css");\n@import url("Tree.css");\n@import url("ProgressBar.css");\n@import url("TitlePane.css");\n@import url("Calendar.css");\n@import url("TimePicker.css");\n@import url("Toolbar.css");\n@import url("Dialog.css");\n@import url("Menu.css");\n@import url("Editor.css");\n@import url("ColorPalette.css");\n@import url("Grid.css");\n@import url("ScrollPane.css");\n@import url("TemplateGrid.css");\n@import url("UpDown.css");\n@import url("balance.css");\n@import url("abonent.css");\n@import url("sheet.css");\n@import url("statusModel.css");');
parus.parus8._themeCSSNode=b.place('\x3cstyle type\x3d"text/css"\x3e\x3c/style\x3e',document.head,"last");parus.parus8._imageNames=eval(b.cache("parus","theme/images.js"));parus.parus8._colorNames=eval(b.cache("parus","theme/colors.js"));parus.parus8._indexedCSS=parus.parus8._nativeCSS;b.forEach(parus.parus8._colorNames,function(a,c){parus.parus8._indexedCSS=parus.parus8._indexedCSS.split("custom-"+a.name+"-custom").join(parus.parus8.toColor(c))});parus.parus8.themeChanged()},blinkColor:function(a){var c=
[{name:"custom-custom-custom",value:"custom"}];b.xhrGet({url:document.location.protocol+"//editor/theme.less",handleAs:"text",sync:!0,load:function(g){b.forEach(g.split(";"),function(h,l){1<=l&&(h=h.split(":"),1<h.length&&c.push({name:"custom-"+b.trim(h[0]||"").split("@").join("")+"-custom",value:b.trim(h[1]||"")}))})}});var e=parus.parus8._nativeCSS;b.forEach(parus.parus8._imageNames,function(g,h){e=e.split("../images/"+g.name).join(document.location.protocol+"//editor/img?idx\x3d"+h);e=e.split("images/"+
g.name).join(document.location.protocol+"//editor/img?idx\x3d"+h)});var f="white black green red blue fuchsia white black green red blue fuchsia white black green red blue fuchsia".split(" ");setTimeout(function(){var g=e;f.length?(b.forEach(c,function(h){g=g.split(h.name).join(h.name=="custom-"+a+"-custom"?f.shift():h.value)}),setTimeout(arguments.callee,150)):b.forEach(c,function(h){g=g.split(h.name).join(h.value)});parus.parus8._themeCSSNode.innerHTML=g},150)},themeChanged:function(){var a=[{name:"custom-custom-custom",
value:"custom"}];b.xhrGet({url:document.location.protocol+"//editor/theme.less",handleAs:"text",sync:!0,load:function(f){b.forEach(f.split(";"),function(g,h){1<=h&&(g=g.split(":"),1<g.length&&a.push({name:"custom-"+b.trim(g[0]||"").split("@").join("")+"-custom",value:b.trim(g[1]||"")}))})}});var c=parus.parus8._nativeCSS;b.forEach(a,function(f){c=c.split(f.name).join(f.value)});var e=+new Date;b.forEach(parus.parus8._imageNames,function(f,g){c=c.split("../images/"+f.name).join(document.location.protocol+
"//editor/img?idx\x3d"+g+"\x26preventCache\x3d"+e);c=c.split("images/"+f.name).join(document.location.protocol+"//editor/img?idx\x3d"+g+"\x26preventCache\x3d"+e)});parus.parus8._themeCSSNode.innerHTML=c},selectElementColors:function(a){var c=parus.parus8._themeCSSNode.innerHTML;parus.parus8._themeCSSNode.innerHTML=parus.parus8._indexedCSS;for(var e=[];a;){for(var f=document.styleSheets,g=0;g<f.length;g++)if(!f[g].href)for(var h=f[g].rules,l=0;l<h.length;l++)for(var m=h[l],p=document.querySelectorAll(m.selectorText.split("custom-custom-custom").join("custom")),
r=0;r<p.length;r++)if(p[r]==a){var w=m.cssText.match(/rgb\([0-9, ]*\)/g);if(w)for(var x=0;x<w.length;x++){var A=parus.parus8.toColorIndex(w[x]);0>b.indexOf(e,A)&&e.push(A)}}a=a.parentNode}parus.parus8._themeCSSNode.innerHTML=c;e.length?b.xhrGet({url:document.location.protocol+"//editor/selectColor?idx\x3d"+e.join(","),handleAs:"text",sync:!0,loaded:function(){}}):alert("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0446\u0432\u0435\u0442\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.")},
_inspectEvents:"click auxclick contextmenu dblclick mousedown onfocus onfocusin dragstart pointerdown pointerup selectstart mouseup".split(" "),inspectElementClick:function(a){if(parus.parus8._inspecting){var c=a.target;a.stopPropagation();a.stopImmediatePropagation();a.preventDefault();a.cancelBubble=!0;a.bubbles=!1;a.returnValue=!0;a.target=null;parus.parus8._inspectingTimeout||(parus.parus8._inspectingTimeout=setTimeout(b.hitch(function(){parus.parus8._inspectingTimeout=null;setTimeout(parus.parus8.unInspectElement,
500);parus.parus8.selectElementColors(c)}),100))}return!1},inspectElement:function(){parus.parus8.unInspectElement();b.forEach(parus.parus8._inspectEvents,function(a){window.addEventListener(a,parus.parus8.inspectElementClick,!0)});parus.parus8._inspecting=!0},unInspectElement:function(){parus.parus8._inspecting=!1;b.forEach(parus.parus8._inspectEvents,function(a){window.removeEventListener(a,parus.parus8.inspectElementClick,!0)});parus.parus8._inspectingTimeout&&(clearTimeout(parus.parus8._inspectingTimeout),
parus.parus8._inspectingTimeout=null)}})})},"parus/balanceUserCalcsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceUserCalcsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceUserCalcsDialog",[parus.Dialog],{calcs:null,postCreate:function(){this.inherited(arguments);this.calcsGrid.attr("store",new parus.gridData({persistent:!0,_data:this.calcs}));this.calcsGrid.setQuery({})}})})},
"parus/designerReportFormulaDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportFormulaDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerRecalculateTypeDialog");
b.declare("parus.designerReportFormulaDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));a&&c&&(this.recalculateTypeEdit.attr("value",a.getValue(c,"RECALCTYPE")),this.userProcEdit.attr("value",a.getValue(c,"USERPROC")),this.dateFromEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"BEGINDATE"))),this.dateToEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"ENDDATE"))))},executeInsert:function(a){if(a=
parus.database.execute("designer.BalanceReportForm.Formulas.Insert",{PRN:this.prn,RECALCTYPE:this.recalculateTypeEdit.attr("value"),USERPROC:this.userProcEdit.attr("value"),BEGINDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value"))}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceReportForm.Formulas.Update",{RN:this.rn,RECALCTYPE:this.recalculateTypeEdit.attr("value"),
USERPROC:this.userProcEdit.attr("value"),BEGINDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value"))})},executeDelete:function(a,c){parus.database.execute("designer.BalanceReportForm.Formulas.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/catalogActions":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.catalogActions");b.require("dijit.Tree");b.require("dijit.tree._dndSelector");b.require("parus.database");
b.require("parus.catalogNameDialog");b.require("parus.balanceFolderDialog");parus||(parus={});parus.catalogActions||b.mixin(parus,{catalogActions:{}});b.mixin(parus.catalogActions,{listCatalogTree:function(a){a.listMode=!a.listMode;a.listMode&&(a.checked=[]);this.refreshCatalogTree(a)},expandCatalogTree:function(a){a.forAllChildren(a.selectedNode)},insertCatalog:function(a){(new parus.catalogNameDialog({title:"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430",
onLoad:function(){this.catalogNameEdit.attr("value","\u041d\u043e\u0432\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433")},onApply:function(){var c=a.path;parus.database.execute("insertCatalog",{NPRN:a.model.getIdentity(c[c.length-1]),SNAME:this.catalogNameEdit.value},function(e){a.model.newItemCreated(c[c.length-1],function(){a.model.getChildren(c[c.length-1],function(f){(new b.DeferredList([a.selectedNode.setChildItems(f),a._expandNode(a.selectedNode)])).then(function(){c.push(parus.parus8.nodeField(parus.parus8.rowNodes(e)[0],
"NRN"));a.set("path",c);a.selectedNode.domNode.scrollIntoView(!1);a.onClick()})})})});return!0}})).show()},updateCatalog:function(a){(new parus.catalogNameDialog({title:"\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430",onLoad:function(){var c=a.path;this.catalogNameEdit.attr("value",a.model.getLabel(c[c.length-1]))},onApply:function(){var c=a.path;if(!parus.database.execute("updateCatalog",{NRN:a.model.getIdentity(c[c.length-1]),
SNAME:this.catalogNameEdit.value}))return!1;parus.catalogActions.refreshCatalogTree(a);return!0}})).show()},moveCatalog:function(a,c){var e=a.path;(new parus.treeDialog({title:"\u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430",model:b.getObject(a.model.declaredClass,!1)({queryid:a.model.queryid,onGetConditions:a.model.onGetConditions}),onPerform:function(f){if(!parus.database.execute(c||"moveCatalog",{NRN:a.model.getIdentity(e[e.length-
1]),NCRN:f}))return!1;parus.catalogActions.refreshCatalogTree(a);return!0}})).show()},deleteCatalog:function(a){var c=a.path;(new parus.confirmationDialog({message:'\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 "'+a.model.getLabel(c[c.length-1])+'"?',onApply:b.hitch(this,function(){if(!parus.database.execute("deleteCatalog",{NRN:a.model.getIdentity(c[c.length-1])}))return!1;c.pop();a.attr("path",c);parus.catalogActions.refreshCatalogTree(a);return!0})})).show()},
insertFolder:function(a){var c=a.path,e=parus.xml.fromXml(parus.parus8.rowNodes(parus.database.query("conditionFolderContent",{RN:a.model.getIdentity(c[c.length-1])}))[0]),f=new parus.balanceFolderDialog({schema:e.XMLSCHEMA[0],onApply:function(){var g=parus.database.execute("insertConditionFolder",{PARENT:a.model.getIdentity(c[c.length-1]),NAME:f.nameEdit.attr("value"),NOTE:f.noteEdit.value,VALUES:f.buildFolder(),QUERY:f.customQuery?f.query:null});if(!g)return!1;a.model.newItemCreated(c[c.length-
1],function(){a.model.getChildren(c[c.length-1],function(h){(new b.DeferredList([a.selectedNode.setChildItems(h),a._expandNode(a.selectedNode)])).then(function(){c.push(parus.parus8.nodeField(parus.parus8.rowNodes(g)[0],"NRN"));a.set("path",c);a.selectedNode.domNode.scrollIntoView(!1);a.onClick()})})});return!0}});f.show()},updateFolder:function(a,c){var e=a.path,f=parus.xml.fromXml(parus.parus8.rowNodes(parus.database.query("conditionFolderContent",{RN:a.model.getIdentity(e[e.length-1])}))[0]),g=
new parus.balanceFolderDialog({schema:f.XMLSCHEMA[0],folder:f.XMLFOLDER[0],query:f.QUERY?f.QUERY[0]["#text"]:null,name:f.NAME[0]["#text"],note:f.NOTE[0]["#text"]||null,customQuery:"1"==(f.CUSTOM_QUERY[0]["#text"]||null),onApply:function(){if(!parus.database.execute("updateConditionFolder",{RN:a.model.getIdentity(e[e.length-1]),NAME:g.nameEdit.attr("value"),NOTE:g.noteEdit.value,VALUES:g.buildFolder(),QUERY:g.customQuery?g.query:null}))return!1;var h=parus.catalogActions.refreshCatalogTree(a);h&&c&&
h.addCallback(function(){c()});return!0}});g.show()},moveFolder:function(a){var c=a.path;(new parus.treeDialog({title:"\u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430",model:b.getObject(a.model.declaredClass,!1)({queryid:a.model.queryid,onGetConditions:a.model.onGetConditions}),onPerform:function(e){if(!parus.database.execute("moveConditionFolder",{NRN:a.model.getIdentity(c[c.length-1]),NCRN:e}))return!1;parus.catalogActions.refreshCatalogTree(a);
return!0}})).show()},deleteFolder:function(a){var c=a.path;(new parus.confirmationDialog({message:'\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443 "'+a.model.getLabel(c[c.length-1])+'"?',onApply:b.hitch(this,function(){if(!parus.database.execute("deleteConditionFolder",{NRN:a.model.getIdentity(c[c.length-1])}))return!1;c.pop();a.attr("path",c);parus.catalogActions.refreshCatalogTree(a);return!0})})).show()},refreshCatalogTree:function(a){var c=a.path;a.hiddenMode||a.model.refresh();
a._itemNodesMap={};a.selectedItems=null;a.selectedItem=null;if(a.dndController&&!b.isString(a.dndController)){var e=a.dndController.declaredClass;a.dndController.destroy();a.tree.dndController=e}a.rootNode&&(a.rootNode.destroyRecursive(),a.rootNode=null);a.postMixInProperties();a.postCreate();return a.hiddenMode?null:a.set("path",c)},checkChildren:function(a){1!=a.path.length||a.listMode?a.forAllChildren(a.selectedNode,function(c){c.setChecked(!0)}):parus.catalogActions.listCatalogTree(a)},checkPopupMenuItemAction:function(a,
c){var e=c.selectedItem,f=c.model.isValid(c.selectedItem);b.forEach(a.getChildren(),function(g){g.itemAction&&g.attr("disabled",!e||!f);g.toolBarButton&&g.toolBarButton.attr("disabled",g.disabled)})},deleteCatalogTreeItem:function(a,c,e){var f=a.path;(new parus.confirmationDialog({message:c+' "'+a.model.getLabel(f[f.length-1])+'"?',onApply:b.hitch(this,function(){if(!parus.database.execute(e,{NRN:a.model.getIdentity(f[f.length-1])}))return!1;f.pop();a.attr("path",f);parus.catalogActions.refreshCatalogTree(a);
return!0})})).show()}})})},"parus/userdata":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.userdata");b.require("parus.parus8");b.require("parus.database");b.require("parus.xml");parus||(parus={});parus.userdata||b.mixin(parus,{userdata:{}});b.mixin(parus.userdata,{_store:null,_signature:"version 1.0.0.0",_timeoutID:null,load:function(){var a={};if(nodes=parus.parus8.rowNodes(parus.database.execute("GetUserData",{}))[0])if(nodes=nodes.firstChild)if(nodes=nodes.firstChild)if(nodes=
nodes.childNodes)for(var c=0;c<nodes.length;c++)a[nodes[c].nodeName]=nodes[c].firstChild.nodeValue;this._store=a._signature==this._signature?a:{}},_extractIdent:function(a){return a.replace(/[^a-zA-Z0-9_\-\.]/g,"")},get:function(a){try{return this._store?b.fromJson(this._store[this._extractIdent(a)]||"{}"):{}}catch(c){return{}}},set:function(a,c,e){if(this._store){this._store._signature=this._signature;var f=this.get(a);b.mixin(f,c);this._store[this._extractIdent(a)]=b.toJson(f);this._timeoutID&&
clearTimeout(this._timeoutID);this._timeoutID=setTimeout(b.hitch(this,function(){this._timeoutID=null;parus.database.execute("SetUserData",{blobDATA:{DATA:b.clone(this._store)}},function(){})}),e?1:6E3)}},cleanUp:function(){this._store={_signature:this._signature};this._timeoutID&&clearTimeout(this._timeoutID);this._timeoutID=null;parus.database.execute("SetUserData",{blobDATA:{DATA:b.clone(this._store)}})},spread:function(a){this._store._signature=this._signature;this._timeoutID&&clearTimeout(this._timeoutID);
this._timeoutID&&clearTimeout(this._timeoutID);this._timeoutID=null;parus.database.execute("SpreadUserData",{blobDATA:{DATA:b.clone(this._store)},RN:a.join(";")})}})})},"parus/balancePrimaryReportFormingDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balancePrimaryReportFormingDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balancePrimaryReportFormingDialog",[parus.Dialog],{_agentCodeLoaded:!1,
_agentNameLoaded:!1,formCode:null,agentsChanged:function(a){a&&a.disabled||(""==this.agentCodeEdit.value&&""==this.agentNameEdit.value?(this.agentCodeEdit.attr("disabled",!1),this.agentNameEdit.attr("disabled",!1)):""!=this.agentCodeEdit.value&&"agentCodeEdit"==a.dojoAttachPoint?this._agentCodeLoaded?this._agentCodeLoaded=!1:(this.agentNameEdit.attr("disabled",!0),this.agentNameEdit.attr("value",null)):""!=this.agentNameEdit.value&&"agentNameEdit"==a.dojoAttachPoint&&(this._agentNameLoaded?this._agentNameLoaded=
!1:(this.agentCodeEdit.attr("disabled",!0),this.agentCodeEdit.attr("value",null))),setTimeout(b.hitch(this,function(){var c=parus.parus8.rowNodes(parus.database.execute("getAgentInfo",{AGENT_CODE:this.agentCodeEdit.disabled?"":this.agentCodeEdit.value,AGENT_NAME:this.agentNameEdit.disabled?"":this.agentNameEdit.value}))[0];this.agentCodeEdit.disabled&&this.agentCodeEdit.attr("value",parus.parus8.nodeField(c,"RAGNABBR"));this.agentNameEdit.disabled&&this.agentNameEdit.attr("value",parus.parus8.nodeField(c,
"RAGNNAME"));this.agentHeadEdit.disabled&&this.agentHeadEdit.attr("value",parus.parus8.nodeField(c,"RHEAD"));""==this.agentCodeEdit.value&&""==this.agentNameEdit.value&&(this.agentCodeEdit.attr("disabled",!1),this.agentNameEdit.attr("disabled",!1))}),100))},getDatesCondition:function(){return{FORM_CODE:this.formCode||parus.parus8.CLASS_EmptyData}},onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},saveFormLastValues:function(){this._lastValues.userSize=this.userSize;
this._lastValues.catalogInput=this.catalogInput.attr("value");parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.userSize=this._lastValues.userSize||null;this.catalogInput.attr("value",this._lastValues.catalogInput)}})})},"parus/designerTableIndexChangePriorityDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTableIndexChangePriorityDialog");b.require("dijit.Dialog");
b.require("dijit.form.Button");b.require("dijit.form.DateTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.formats");b.declare("parus.designerTableIndexChangePriorityDialog",[parus.Dialog],{})})},"parus/userReportPane":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.userReportPane");b.require("dojo.window");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.TabContainer");
b.require("dijit.layout.ContentPane");b.require("dijit.Menu");b.require("dijit.form.NumberTextBox");b.require("dijit.form.DateTextBox");b.require("dijit.form.ValidationTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.dictEdit");b.require("parus.xml");b.require("parus.progressDialog");b.require("parus.balanceZoomDialog");b.require("parus.excelFileFormatDialog");b.require("parus.excelColorModeDialog");b.declare("parus.userReportPane",[t.layout.ContentPane],
{userreport:null,rn:null,unitcode:null,paramValues:null,headingContentPane:null,zoom:1,"class":"balanceTemplateContentPaneContent",ioMethod:function(a){return b.xhrPost(a)},_progressIndicator:null,postMixInProperties:function(){this.inherited(arguments);this._progressIndicator=new parus.progressDialog({message:"\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442...."});
this._progressIndicator.show();this.setIoArgs();this.href=parus.database.getUserReportUrl(this.userreport,"html")},setIoArgs:function(){b.mixin(this.ioArgs,{content:{query:parus.xml.toXml({query:[{rn:this.rn},{unitcode:this.unitcode},{userreport:this.userreport},{colormode:0},{params:parus.xml.toXml({PARAMS:this.paramValues})}]})},headers:{"Disable-Basic-Auth":"yes"}})},changeZoom:function(a){this.zoom=0<a?1.2*this.zoom:0>a?this.zoom/1.2:1;this._zoomChanged()},_zoomChanged:function(){for(var a=0;a<
this.domNode.childNodes.length;a++)this.domNode.childNodes[a].style&&b.style(this.domNode.childNodes[a],{zoom:100*this.zoom+"%",MozTransform:"scale("+this.zoom+")",MozTransformOrigin:"0 0"})},downloadExcel:function(a,c){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var e=b.hitch(this,function(f,g){var h=document.createElement("form");h.method="POST";h.action=parus.database.getUserReportUrl(this.userreport,f);parus.parus8._embeddedMode||(h.target="_blank");var l=document.createElement("input");l.type="hidden";l.name="query";l.value=parus.xml.toXml({query:{rn:this.rn,unitcode:this.unitcode,userreport:this.userreport,colormode:g,params:parus.xml.toXml({PARAMS:this.paramValues})}});h.appendChild(l);document.body.appendChild(h);h.submit();document.body.removeChild(h)});
"xls"==a?"1"==parus.database.attributes.newoffice?(new parus.excelFileFormatDialog({onApply:function(){e(this.formatEdit.value,c);return!0}})).show():"2"==parus.database.attributes.newoffice?e("xlsx",c):e("xls",c):"pdf"!=a&&"html"!=a||void 0!==c&&null!==c?e(a,c):(new parus.excelColorModeDialog({onApply:function(){e(a,this.colorModeEdit.value);return!0}})).show()}},reload:function(){b.fadeOut({node:this.domNode,onEnd:b.hitch(this,function(){this._progressIndicator=new parus.progressDialog({message:"\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442...."});
this._progressIndicator.show();this.setIoArgs();this.refresh()})}).play()},createPopupMenu:function(){var a=new t.Menu({"class":"balanceMenu"});a.addChild(new t.MenuItem({defaultIcon:"PCxlsCustomIcon",label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 Excel...",onClick:b.hitch(this,this.downloadExcel,"xls",0)}));a.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF...",onClick:b.hitch(this,this.downloadExcel,
"pdf",null)}));a.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML...",onClick:b.hitch(this,this.downloadExcel,"html",null)}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",defaultIcon:"PCisyncCustomIcon",onClick:b.hitch(this,this.reload)}));var c=new t.Menu({"class":"balanceMenu"});c.addChild(new t.MenuItem({label:"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c",
onClick:b.hitch(this,function(){this.changeZoom(1)})}));c.addChild(new t.MenuItem({label:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",onClick:b.hitch(this,function(){this.changeZoom(-1)})}));c.addChild(new t.MenuSeparator);c.addChild(new t.MenuItem({label:"100%",onClick:b.hitch(this,function(){this.changeZoom(0)})}));c.addChild(new t.MenuItem({label:"\u0417\u0430\u0434\u0430\u0442\u044c...",onClick:b.hitch(this,function(){var e=new parus.balanceZoomDialog({onShow:b.hitch(this,function(){e.zoomEdit.attr("value",
100*this.zoom)}),onApply:b.hitch(this,function(){this.zoom=e.zoomEdit.attr("value")/100;this._zoomChanged();return!0})});e.show()})}));a.addChild(new t.MenuSeparator);a.addChild(new t.PopupMenuItem({label:"\u041c\u0430\u0441\u0448\u0442\u0430\u0431",popup:c}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438...",onClick:b.hitch(this,function(){parus.balance.executeSettings(null,a,this.declaredClass)})}));a.startup();return a},
onLoad:function(){this._progressIndicator&&this._progressIndicator.close();this._progressIndicator=null;this.headingContentPane&&(this.headingContentPane.actionsButton&&this.headingContentPane.actionsButton.destroyRecursive(),this.headingContentPane.toolbar&&this.headingContentPane.toolbar.destroyRecursive(),b.mixin(this.headingContentPane,{actionsButton:null,toolbar:null}));var a=document.body.onload;b.query("script",this.containerNode).forEach(b.hitch(this,function(r){b.mixin(this,b.fromJson(!b.isIE||
10<=b.isIE?r.textContent:r.innerHTML))}));document.body.onload=a;a=b.query("canvas",this.containerNode);for(var c=a.length-1;0<=c;c--)this.drawCanvasText.call(this,a[c]);a=b.query("*[rid\x3dv]",this.containerNode);for(c=a.length-1;0<=c;c--)this.checkToolTips.call(this,a[c]);a=b.query("*[rid\x3dw]",this.containerNode);if(1==a.length){a=a[0];c=a.getAttribute("fixedrows");var e=a.getAttribute("fixedcols"),f=a.getAttribute("fixedrowsheight"),g=a.getAttribute("fixedcolswidth"),h=b.getMarginBox(a);if(e){var l=
document.createElement("div");b.style(l,{position:"absolute",top:"0px",left:"0px",width:g+"px",height:h.h+"px",border:"1px solid transparent",zIndex:"20",overflow:"clip",background:"#FFFFFF"});b.query("[fixedcol]",this.containerNode).forEach(function(r){l.appendChild(b.clone(r))});a.parentNode.appendChild(l)}if(c){var m=document.createElement("div");b.style(m,{position:"absolute",top:"0px",left:"0px",width:h.w+"px",height:f+"px",border:"1px solid transparent",zIndex:"10",overflow:"clip",background:"#FFFFFF"});
b.query("[fixedrow]",this.containerNode).forEach(function(r){m.appendChild(b.clone(r))});a.parentNode.appendChild(m)}if(e&&c){var p=document.createElement("div");b.style(p,{position:"absolute",top:"0px",left:"0px",width:g+"px",height:f+"px",border:"1px solid transparent",zIndex:"30",overflow:"clip",background:"#FFFFFF"});b.query("[fixedrow][fixedcol]",this.containerNode).forEach(function(r){p.appendChild(b.clone(r))});a.parentNode.appendChild(p)}(e||c)&&b.connect(this.containerNode,"onscroll",this,
function(){l&&(l.style.left=this.containerNode.scrollLeft+"px");m&&(m.style.top=this.containerNode.scrollTop+"px");p&&(p.style.top=this.containerNode.scrollTop+"px",p.style.left=this.containerNode.scrollLeft+"px")})}a=this.createPopupMenu();parus.balance._createActionsButton(a,this.headingContentPane);a.bindDomNode(this.domNode);(c=parus.userdata.get(this.declaredClass))&&parus.gridSettingsDialog.mergeMenuSettings(a,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions);this.onLoaded();
b.fadeIn({node:this.domNode,onEnd:b.hitch(this,function(){if("1"==parus.database.attributes.useReportsQueue){var r=parus.database.execute("enqueueUserReport",{RN:this.rn,UNITCODE:this.unitcode,USERREPORT:this.userreport,PARAMS:parus.xml.toXml({PARAMS:this.paramValues})});r&&(new parus.confirmationDialog({message:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442?",
onApply:function(){setTimeout(function(){parus.parus8.enqueuedUserReport(parus.parus8.nodeField(parus.parus8.rowNodes(r)[0],"NQUEUE"))},100);return!0}})).show()}})}).play()},onClose:function(){this.returnToPane&&this.returnToPane.domNode&&parus.balance.TabContainer.selectChild(this.returnToPane);return!0},onLoaded:function(){}});parus||(parus={});parus.userReport||b.mixin(parus,{userReport:{}});b.mixin(parus.userReport,{startup:function(){var a=null;b.xhrGet({url:"../.system/session.xml",handleAs:"xml",
sync:!0,preventCache:!0,load:function(p){b.isIE||p.normalize();for(var r=p.documentElement.getElementsByTagName("*"),w=0;w!=r.length;w++)"params"==r[w].nodeName&&(a=r[w].childNodes.item(0).nodeValue);return p}});a=parus.parus8.hexDecodeParams(a);for(var c=a[0],e=a[1],f=a[2],g={},h=a[3],l=4;l<a.length;l+=2)g[a[l]]=a[l+1];var m=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",style:"height:100%;width:100%;padding:0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"},
b.place("\x3cdiv\x3e\x3c/div\x3e",b.body(),"last"));h=parus.balance._createHeadingPane('\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442 "'+h+'"');m.addChild(h);c=new parus.userReportPane({region:"center",userreport:c,rn:e,unitcode:f,paramValues:g,headingContentPane:h,onLoaded:function(){loadingDiv.style.display="none";b.fadeIn({node:m.domNode,duration:300}).play()}});m.addChild(c);m.startup()}})})},"parus/balanceStatusModel":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceStatusModel");b.require("parus.parus8");b.require("parus.balance");b.require("parus.statusModelRouteDialog");b.require("parus.statusModelNoteDialog");b.require("parus.statusModelCoWorkingDialog");parus||(parus={});parus.balance||b.mixin(parus,{balance:{}});b.mixin(parus.balance,{statusModelColumns:function(){var a=[];a.push({field:"ST$SFULLCODE",name:"\u041d\u043e\u043c\u0435\u0440 \u0441\u043e\u0431\u044b\u0442\u0438\u044f (\u0423\u0414\u041f)",
formatter:parus.balance.formatStatusModelFullCodeValue,width:"121px",sortField:"regexp_substr(dbms_lob.substr(xml_STATUSMODEL, 4000, 1), '\x3cSFULLCODE\x3e.*\x3c/SFULLCODE\x3e')"});a.push({field:"ST$SEVENT_TYPE",name:"\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c (\u0423\u0414\u041f)",formatter:parus.balance.formatStatusModelEventTypeValue,width:"121px",sortField:"regexp_substr(dbms_lob.substr(xml_STATUSMODEL, 4000, 1), '\x3cSEVENT_TYPE\x3e.*\x3c/SEVENT_TYPE\x3e')"});
a.push({field:"ST$SEVENT_STAT",name:"\u0421\u0442\u0430\u0442\u0443\u0441 (\u0423\u0414\u041f)",formatter:parus.balance.formatStatusModelStatusValue,width:"121px",sortField:"regexp_substr(dbms_lob.substr(xml_STATUSMODEL, 4000, 1), '\x3cSEVENT_STAT\x3e.*\x3c/SEVENT_STAT\x3e')"});a.push({field:"ST$NCOWORKING",name:"\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 (\u0423\u0414\u041f)",formatter:parus.balance.formatStatusModelCoworkingValue,
width:"81px",sortField:"regexp_substr(dbms_lob.substr(xml_STATUSMODEL, 4000, 1), '\x3cNCOWORKING\x3e.*\x3c/NCOWORKING\x3e')"});a.push({field:"ST$SEXECUTER",name:"\u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c (\u0423\u0414\u041f)",dataType:"1",formatter:parus.balance.formatStatusModelExecuterValue,width:"181px",sortField:"regexp_substr(dbms_lob.substr(xml_STATUSMODEL, 4000, 1), '\x3cSEXECUTER\x3e.*\x3c/SEXECUTER\x3e')"});a.push({field:"ST$NCOEXECUTER",name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c-\u0441\u043e\u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c (\u0423\u0414\u041f)",
dataType:"1",formatter:parus.balance.formatStatusModelCoExecuterValue,width:"81px",sortField:"regexp_substr(dbms_lob.substr(xml_STATUSMODEL, 4000, 1), '\x3cNCOEXECUTER\x3e.*\x3c/NCOEXECUTER\x3e')"});a.push({field:"ST$SNOTE",name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u043a \u0441\u0442\u0430\u0442\u0443\u0441\u0443 (\u0423\u0414\u041f)",dataType:"1",formatter:parus.balance.formatStatusModelNoteValue,width:"181px",sortField:"regexp_substr(dbms_lob.substr(xml_STATUSMODEL, 4000, 1), '\x3cSNOTE\x3e.*\x3c/SNOTE\x3e')"});
return a},getStatusModelValue:function(a,c,e){a=a.getItem(c);return(a=parus.parus8.rowNodes(parus.parus8.nodeField(a,"XML_STATUSMODEL")))&&a.length?parus.parus8.nodeField(a[0],e):null},formatStatusModelFullCodeValue:function(a,c,e){return parus.balance.getStatusModelValue(e.grid,c,"SFULLCODE")},formatStatusModelEventTypeValue:function(a,c,e){return parus.balance.getStatusModelValue(e.grid,c,"SEVENT_TYPE")},formatStatusModelStatusValue:function(a,c,e){return parus.balance.getStatusModelValue(e.grid,
c,"SEVENT_STAT")},formatStatusModelCoworkingValue:function(a,c,e){a=parus.balance.getStatusModelValue(e.grid,c,"NCOWORKING");return null==a?null:parus.parus8.formatBoolean(a)},formatStatusModelExecuterValue:function(a,c,e){return parus.balance.getStatusModelValue(e.grid,c,"SEXECUTER")},formatStatusModelCoExecuterValue:function(a,c,e){a=parus.balance.getStatusModelValue(e.grid,c,"NCOEXECUTER");return null==a?null:parus.parus8.formatBoolean(a)},formatStatusModelNoteValue:function(a,c,e){return parus.balance.getStatusModelValue(e.grid,
c,"SNOTE")},checkStatusModel:function(a,c){var e=this.getStatusModelValue(a,c,"SEVENT_TYPE");return null==e||""===e?(parus.parus8.errorMessage("\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0434\u043b\u044f \u043e\u0442\u0447\u0435\u0442\u0430."),!1):!0},statusModelGridPass:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);this.checkStatusModel(a,
e)&&parus.balance.statusModelPass(c.getValue(f,"RN"))},statusModelGridSend:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);this.checkStatusModel(a,e)&&parus.balance.statusModelSend(c.getValue(f,"RN"))},statusModelGridAddNote:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);this.checkStatusModel(a,e)&&parus.balance.statusModelAddNote(c.getValue(f,"RN"))},statusModelGridSetMark:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);
this.checkStatusModel(a,e)&&parus.balance.statusModelSetMark(c.getValue(f,"RN"))},statusModelGridRemoveMark:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);this.checkStatusModel(a,e)&&parus.balance.statusModelRemoveMark(c.getValue(f,"RN"))},statusModelGridHistory:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);this.checkStatusModel(a,e)&&parus.balance.statusModelHistory(c.getValue(f,"RN"))},statusModelGridNotes:function(a){var c=a.store,e=a.selection.getSelectedIndex(),
f=a.getItem(e);this.checkStatusModel(a,e)&&parus.balance.statusModelNotes(c.getValue(f,"RN"))},statusModelGridRoute:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);this.checkStatusModel(a,e)&&parus.balance.statusModelRoute(c.getValue(f,"RN"))},statusModelGridCoWorking:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e);this.checkStatusModel(a,e)&&parus.balance.statusModelCoWorking(c.getValue(f,"RN"))},getStatusModelEventInfo:function(a){a=parus.database.execute("getStatusModelEvent",
{UNITCODE:"BalanceReports",RN:a});var c=parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NEVENT");if(null!=c)return{event:c,eventCode:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SEVENT"),eventType:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NEVENT_TYPE"),eventTypeCode:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SEVENT_TYPE"),eventStatus:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NEVENT_STAT"),eventStatusCode:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SEVENT_STAT"),
initPerson:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SINIT_PERSON"),initAuthName:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SINIT_AUTHNAME"),clientClient:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SCLIENT_CLIENT"),clientPerson:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SCLIENT_PERSON"),sendPerson:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SSEND_PERSON"),sendUserName:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"SSEND_USER_NAME"),point:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],
"NPOINT"),closed:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NCLOSED"),togetherSign:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"TOGETHER_SIGN"),addNoteOnSend:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"ADDNOTE_ONSEND")};parus.parus8.errorMessage("\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0434\u043b\u044f \u043e\u0442\u0447\u0435\u0442\u0430.")},
statusModelPass:function(a,c){var e=this.getStatusModelEventInfo(a);if(null!=e){var f=parus.dictionaries.BalanceStatusModelPassNextStatus;b.mixin(f,{dictionary:f,unitCode:f.unitCode,gridConditions:{SEVENT_TYPE:e.eventTypeCode,SEVENT_STATUS:e.eventStatusCode},gridOnComplete:function(g,h){0==h.length&&(parus.parus8.errorMessage("\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u043e\u0447\u043a\u0438, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430."),
this.close())},onApply:b.hitch(this,function(g){var h=g.getValue(),l="1"==g.getFieldValue("ADDNOTE_ONCHST"),m="1"==g.getFieldValue("NEXT_ADDNOTE_ONCHST");l=l||m;g="1"==g.getFieldValue("DEFAULT_EXEC");this._statusModelPassToSpecifiedStatus(a,e,h,l,g,c);return!0})});(new parus.dictionaryDialog(f)).show()}},_statusModelPassToSpecifiedStatus:function(a,c,e,f,g,h){var l=b.hitch(this,function(m){this._checkNeedNoteAndExecuteAction(c,f,b.hitch(this,function(p,r){this._changeStatusModelEventState(c.event,
e,m,f,p,r);parus.balance.refreshGrid(parus.balance.primaryMasterGrid,"RN",a);h&&h()}))});g?l(null):this._selectStatusModelPointExecutors(c,e,!1,b.hitch(this,function(m){l(m)}))},statusModelSend:function(a,c,e){if(!c&&(c=this.getStatusModelEventInfo(a),null==c))return;this._selectStatusModelPointExecutors(c,c.eventStatusCode,!0,b.hitch(this,function(f){if(null==c.addNoteOnSend)parus.parus8.errorMessage("\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u0447\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430.");
else{var g="1"==c.addNoteOnSend;this._checkNeedNoteAndExecuteAction(c,g,b.hitch(this,function(h,l){this._sendStatusModelEvent(c.event,f,g,h,l);parus.balance.refreshGrid(parus.balance.primaryMasterGrid,"RN",a);e&&e()}))}}))},statusModelAddNote:function(a,c){if(!c&&(c=this.getStatusModelEventInfo(a),null==c))return;(new parus.statusModelNoteDialog({event:c.event,eventTypeRN:c.eventType,onApply:b.hitch(this,function(e){(e=e.insertNote())&&parus.balance.refreshGrid(parus.balance.primaryMasterGrid,"RN",
e);return!!e})})).show()},statusModelSetMark:function(a,c,e){if(!c&&(c=this.getStatusModelEventInfo(a),null==c))return;if("1"!=c.togetherSign)parus.parus8.errorMessage("\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.");
else if(a=parus.database.execute("getStatusModelEventPointByStatus",{SEVENT_TYPE:c.eventTypeCode,SEVENT_STATUS:c.eventStatusCode}),a=parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NPOINT"),null!=a){var f=parus.dictionaries.BalanceStatusModelNextPerformMarks;b.mixin(f,{dictionary:f,unitCode:f.unitCode,gridConditions:{EVENT:a},onApply:b.hitch(this,function(g){var h=g.getValue(),l=g.getLabel(),m="1"==g.getFieldValue("NOTE_ADD_SIGN");this._checkNeedNoteAndExecuteAction(c,m,b.hitch(this,function(p,
r){this._setStatusModelEventPerformMark(c.event,h,l,m,p,r);e&&e()}));return!0})});(new parus.dictionaryDialog(f)).show()}},statusModelRemoveMark:function(a,c,e,f){if(!c&&(c=this.getStatusModelEventInfo(a),null==c))return;"1"!=c.togetherSign?parus.parus8.errorMessage("\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435."):
e?(new parus.confirmationDialog({message:"\u0421\u043d\u044f\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438?",onApply:b.hitch(this,function(){parus.database.execute("removeStatusModelEventPerformMark",{EVENT:c.event});f&&f();return!0})})).show():(parus.database.execute("removeStatusModelEventPerformMark",{EVENT:c.event}),f&&f())},statusModelHistory:function(a,c){if(!c&&(c=this.getStatusModelEventInfo(a),null==c))return;
var e=parus.dictionaries.BalanceStatusModelHistory;b.mixin(e,{dictionary:e,unitCode:e.unitCode,hideCancel:!0,gridConditions:{EVENT:c.event}});(new parus.dictionaryDialog(e)).show()},statusModelNotes:function(a,c,e){if(!c&&(c=this.getStatusModelEventInfo(a),null==c))return;a=null==e||e==c.eventStatus;var f=parus.dictionaries.BalanceStatusModelNotes,g=new t.Menu({"class":"balanceMenu"});a&&(g.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",itemAction:!1,defaultIcon:"PCHardwareadaltCustomIcon",
onClick:b.hitch(this,function(){(new parus.statusModelNoteDialog({event:c.event,eventTypeRN:c.eventType,onApply:b.hitch(this,function(l){(l=l.insertNote())&&parus.balance.refreshGrid(h.grid,"RN",l);return!!l})})).show()})})),g.addChild(new t.MenuItem({label:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c...",itemAction:!0,defaultIcon:"PCcopyCustomIcon",onClick:b.hitch(this,function(){var l=h.grid.store,m=h.grid.selection.getFirstSelected();(new parus.statusModelNoteDialog({event:c.event,
eventTypeRN:c.eventType,noteHeader:l.getValue(m,"NOTE_HEADER"),note:l.getValue(m,"NOTE"),onApply:b.hitch(this,function(p){(p=p.insertNote())&&parus.balance.refreshGrid(h.grid,"RN",p);return!!p})})).show()})})));g.addChild(new t.MenuItem({label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",itemAction:!0,"default":!0,defaultIcon:"PCdocumentCustomIcon",onClick:b.hitch(this,function(){var l=h.grid.store,m=h.grid.selection.getFirstSelected();(new parus.statusModelNoteDialog({event:c.event,
RN:l.getValue(m,"RN"),noteHeader:l.getValue(m,"NOTE_HEADER"),note:l.getValue(m,"NOTE"),onApply:b.hitch(this,function(p){(p=p.updateNote())&&parus.balance.refreshGrid(h.grid,"RN",l.getValue(m,"RN"));return p})})).show()})}));g.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",itemAction:!0,defaultIcon:"PCreduceCustomIcon",onClick:b.hitch(this,function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){for(var l=h.grid.store,m=h.grid.selection.getFirstSelected(),p=0;p<h.grid.selection.getSelectedCount();p++)parus.database.execute("deleteStatusModelNote",{RN:l.getValue(m,"RN")}),m=h.grid.selection.getNextSelected(m);h.grid.selection.deselectAll();parus.balance.refreshGrid(h.grid);return!0})})).show()})}));g.startup();b.mixin(f,{dictionary:f,unitCode:f.unitCode,multiselect:!0,hideCancel:!0,gridConditions:{EVENT:c.event,EVENT_STAT:e?e:null},menu:g});var h=new parus.dictionaryDialog(f);
h.show()},statusModelRoute:function(a){var c=this.getStatusModelEventInfo(a);null!=c&&(new parus.statusModelRouteDialog({documentRN:a,event:c})).show()},statusModelCoWorking:function(a,c,e){if(!c&&(c=this.getStatusModelEventInfo(a),null==c))return;if("1"!=c.togetherSign)parus.parus8.errorMessage("\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.");
else{var f=parus.database.execute("fillStatusModelPredefinedExecutors",{EVENT:c.event,EVENT_STAT:c.eventStatus,NCLIENT_CLIENT:c.clientClient,NCLIENT_PERSON:c.clientPerson,NPOINT:c.point});f=parus.parus8.nodeField(parus.parus8.rowNodes(f)[0],"COWORKING_DATE");null!=f&&(new parus.statusModelCoWorkingDialog({documentRN:a,event:c,coWorkingDate:f,readOnly:!!e,onApply:b.hitch(this,function(g){return!0})})).show()}},_selectStatusModelPointExecutors:function(a,c,e,f){a=parus.database.execute("fillTempStatusModelPointExecutors",
{EVENT:a.event,SEVENT_TYPE:a.eventTypeCode,SEVENT_STAT:c,SINIT_PERSON:a.initPerson,SINIT_AUTHNAME:a.initAuthName,SCLIENT_CLIENT:a.clientClient,SCLIENT_PERSON:a.clientPerson,SPERSON_CODE:e?a.sendPerson:null,SUSER_NAME:e?a.sendUserName:null});var g=parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"IDENT");null!=g&&(new parus.treeDialog({title:"\u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u0438 \u0432 \u0442\u043e\u0447\u043a\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430",
key:"BalanceStatusModelExecutors",restoreSelected:!1,model:this._executorsTreeStoreModel(g),getIconClass:function(h,l){return"1"!=parus.parus8.nodeField(h,"ISVALID")?"dijitFolderDisabled":"dijitLeaf"},onLoad:function(){this.catalogTree.showRoot=!1;this.catalogTree.autoExpand=!0;this.catalogTree.getIconClass=this.getIconClass},onApply:function(h){var l=h.catalogTree.model;h=h.catalogTree.selectedItem;f&&f({client:l.getValue(h,"CLIENT_CODE"),division:l.getValue(h,"DIVISION_CODE"),post:l.getValue(h,
"POST_CODE"),postInDiv:l.getValue(h,"POST_IN_DIV_CODE"),person:l.getValue(h,"PERSON_CODE"),staffGroup:l.getValue(h,"STAFFGRP_CODE"),userGroup:l.getValue(h,"USER_GROUP_CODE"),userName:l.getValue(h,"USER_NAME")});return!0},onClose:function(){parus.database.execute("clearTempStatusModelPointExecutors",{IDENT:g})}})).show()},_checkNeedNoteAndExecuteAction:function(a,c,e){c?(new parus.statusModelNoteDialog({event:a.event,eventTypeRN:a.eventType,onApply:b.hitch(this,function(f){e&&e(f.noteHeaderEdit.attr("value"),
f.noteEdit.attr("value"));return!0})})).show():e&&e(null,null)},_executorsTreeStoreModel:function(a){return new parus.catalogTreeModel({queryid:"BalanceStatusModelPointExecutors",onGetConditions:b.hitch(this,function(c,e){return{IDENT:a,HRN:e?c.getIdentity(e):"!*"}})})},_changeStatusModelEventState:function(a,c,e,f,g,h){parus.database.execute("changeStatusModelEventState",{EVENT:a,SEVENT_STAT:c,SSEND_CLIENT:e?e.client:null,SSEND_DIVISION:e?e.division:null,SSEND_POST:e?e.post:null,SSEND_PERFORM:e?
e.postInDiv:null,SSEND_PERSON:e?e.person:null,SSEND_STAFFGRP:e?e.staffGroup:null,SSEND_USER_GROUP:e?e.userGroup:null,SSEND_USER_NAME:e?e.userName:null,NEED_NOTE:f?"1":"0",NOTE_HEADER:g,NOTE:h})},_sendStatusModelEvent:function(a,c,e,f,g){parus.database.execute("sendStatusModelEvent",{EVENT:a,SSEND_CLIENT:c?c.client:null,SSEND_DIVISION:c?c.division:null,SSEND_POST:c?c.post:null,SSEND_PERFORM:c?c.postInDiv:null,SSEND_PERSON:c?c.person:null,SSEND_STAFFGRP:c?c.staffGroup:null,SSEND_USER_GROUP:c?c.userGroup:
null,SSEND_USER_NAME:c?c.userName:null,NEED_NOTE:e?"1":"0",NOTE_HEADER:f,NOTE:g})},_setStatusModelEventPerformMark:function(a,c,e,f,g,h){parus.database.execute("setStatusModelEventPerformMark",{EVENT:a,PERF_MARK_CODE:e,NEED_NOTE:f?"1":"0",NOTE_HEADER:g,NOTE:h})}})})},"parus/xml":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.xml");parus||(parus={});parus.xml||b.mixin(parus,{xml:{}});b.mixin(parus.xml,{_escape:function(a){a=a.split("\x26").join("\x26amp;");a=a.split("\x3e").join("\x26gt;");
a=a.split("\x3c").join("\x26lt;");return a=a.split(String.fromCharCode(34)).join("\x26quot;")},toXml:function(a){if(void 0===a)return"undefined";var c=typeof a;if("number"==c)return(isNaN(a)?"":a)+"";if("boolean"==c)return a+"";if(null===a)return"";if(b.isString(a))return parus.xml._escape(a);var e=arguments.callee;if(b.isArray(a))return b.map(a,function(r){r=e(r);"string"!=typeof r&&(r="undefined");return r}).join("");c=[];for(var f in a){if("number"==typeof f)var g=isNaN(f)?"":f;else if("string"==
typeof f)g=parus.xml._escape(f);else continue;var h=a[f];var l=e(h);if("string"==typeof l){var m=[];if(b.isArray(h))for(var p in h)h.hasOwnProperty(p)&&!p.match(/^\d+$/)&&m.push(p+"\x3d"+String.fromCharCode(34)+parus.xml._escape(e(h[p]))+String.fromCharCode(34));c.push("\x3c"+g+(m.length?" "+m.join(" "):"")+"\x3e"+l+"\x3c/"+g+"\x3e")}}return c.join("")},fromXml:function(a,c){c||(c={});if(a.attributes)for(var e=0;e<a.attributes.length;e++)c[a.attributes[e].nodeName]=a.attributes[e].nodeValue;for(e=
0;e<a.childNodes.length;e++)if(a.childNodes[e])if(3!=a.childNodes[e].nodeType){var f=arguments.callee(a.childNodes[e],{});c[a.childNodes[e].nodeName]?c[a.childNodes[e].nodeName].push(f):c[a.childNodes[e].nodeName]=[f]}else(f=!b.isIE||10<=b.isIE?a.childNodes[e].textContent:a.childNodes[e].text)&&b.string.trim(f)&&(c["#text"]=f);return c}})})},"parus/balanceCheckAbsentReportsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceCheckAbsentReportsDialog");b.require("dijit.Dialog");
b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceCheckAbsentReportsDialog",[parus.Dialog],{_lastValues:null,onShow:function(){this.restoreFormLastValues();this.reportDate.attr("value")||this.reportDate.attr("value",new Date);var a=parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("GetDefaultAgentGroup",{}))[0],"VALUE");a&&this.agentsGroupEdit.attr("value",a)},onClose:function(){this.saveFormLastValues()},saveFormLastValues:function(){this._lastValues.agentsGroupEdit=
this.agentsGroupEdit.value;this._lastValues.reportDate=b.date.locale.format(this.reportDate.value,{selector:"date",datePattern:"dd.MM.yyyy"});this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.reportDate.attr("value",this._lastValues.reportDate?b.date.locale.parse(this._lastValues.reportDate,{datePattern:"dd.MM.yyyy",selector:"date"}):null);this.agentsGroupEdit.attr("value",
this._lastValues.agentsGroupEdit);this.userSize=this._lastValues.userSize||null}})})},"parus/excelFormulas":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.excelFormulas");b.declare("parus.excelFormulas",[],{trueValue:"\u0418\u0421\u0422\u0418\u041d\u0410",falseValue:"\u041b\u041e\u0416\u042c",getCellValue:function(a,c,e,f){return 0},getCellNode:function(a,c,e){return null},__R:null,__C:null,__currentFormatCondition:function(a,c){return{value:new parus.formulaValue({numval:0}),
node:null}},__applyFormatCondition:function(a,c){},__exportBoolean:function(a){return a?""!=a.asString()&&a.asString()!=this.falseValue:!1},__export:function(a,c,e){var f=!1,g="";a&&(a.isNumber()&&c&&e&&(f=(c=this.getCell("R"+c+"C"+e))&&c.getAttribute("fmt")),f?(g=a.asNumber(),g=isNaN(g)||Infinity==Math.abs(g)?a.asString():g):g=a.asString());return g},__exception:function(a,c,e){},__fromNumber:function(a){return new parus.excelFormulas.value({asNumber:function(){return a}})},__fromString:function(a){return new parus.excelFormulas.value({asString:function(){return a}})},
__fromValue:function(a){return new parus.excelFormulas.value({asString:function(){return parus.parus8.valueToExternalString(a)},asNumber:function(){var c="number"==typeof a?a:b.number.parse(a);return isNaN(c)||Infinity==Math.abs(c)?0:c}})},__fromReference:function(a,c,e){return new parus.excelFormulas.cell({Row:a,Col:c,Ident:e,formulas:this})},__fromRange:function(a,c){return new parus.excelFormulas.range({Row1:a.Row,Col1:a.Col,Row2:c.Row,Col2:c.Col,formulas:this})},__operatorMinusUnary:function(a){return new parus.excelFormulas.value({asNumber:function(){return-a.asNumber()}})},
__operatorPercent:function(a){return new parus.excelFormulas.value({asNumber:function(){return a.asNumber()/100}})},__operatorMinusUnary:function(a){return new parus.excelFormulas.value({asNumber:function(){return-a.asNumber()}})},__operatiorMinusUnary:function(a){return new parus.excelFormulas.value({asNumber:function(){return-a.asNumber()}})},__operatorAsteric:function(a,c){return new parus.excelFormulas.value({asNumber:b.hitch(this,function(){var e=a.asNumber()*c.asNumber();return Math.abs(e)<=
this.__epsilon()?0:this.__fixAccuracy(e)})})},__operatorSlash:function(a,c){return new parus.excelFormulas.value({asNumber:b.hitch(this,function(){var e=a.asNumber()/c.asNumber();return Math.abs(e)<=this.__epsilon()?0:this.__fixAccuracy(e)})})},__operatorPlus:function(a,c){return new parus.excelFormulas.value({asNumber:b.hitch(this,function(){var e=a.asNumber()+c.asNumber();return Math.abs(e)<=this.__epsilon()?0:this.__fixAccuracy(e)})})},__epsilon:function(){return 5E-7},__fixAccuracy:function(a){return parseFloat(a.toFixed(7))},
__operatorMinus:function(a,c){return new parus.excelFormulas.value({asNumber:b.hitch(this,function(){var e=a.asNumber()-c.asNumber();return Math.abs(e)<=this.__epsilon()?0:this.__fixAccuracy(e)})})},__operatorAmpersand:function(a,c){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asString()+c.asString()}})},__operatorEqual:function(a,c){var e=this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.isNumber()&&
c.isNumber()?Math.abs(a.asNumber()-c.asNumber())<=e.__epsilon()?e.trueValue:e.falseValue:a.asString()==c.asString()?e.trueValue:e.falseValue}})},__operatorNotEqual:function(a,c){var e=this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.isNumber()&&c.isNumber()?Math.abs(a.asNumber()-c.asNumber())>e.__epsilon()?e.trueValue:e.falseValue:a.asString()!=c.asString()?e.trueValue:e.falseValue}})},__operatorMore:function(a,c){var e=this;return new parus.excelFormulas.value({isNumber:function(){return!1},
asString:function(){return a.asNumber()>c.asNumber()?e.trueValue:e.falseValue}})},__operatorMoreEqual:function(a,c){var e=this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asNumber()>=c.asNumber()?e.trueValue:e.falseValue}})},__operatorLess:function(a,c){var e=this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asNumber()<c.asNumber()?e.trueValue:e.falseValue}})},__operatorLessEqual:function(a,c){var e=
this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asNumber()<=c.asNumber()?e.trueValue:e.falseValue}})},__operatorDesignator:function(a,c){return new parus.excelFormulas.value({asNumber:function(){return Math.pow(a.asNumber(),c.asNumber())}})},__functionSUM:function(){var a=arguments,c=this;return new parus.excelFormulas.value({asNumber:function(){var e=0;b.forEach(a,function(f){f.forEach(function(g){e+=g.asNumber()})});return Math.abs(e)<=c.__epsilon()?
0:c.__fixAccuracy(e)}})},__functionPI:function(){return new parus.excelFormulas.value({asNumber:function(){return Math.PI}})},__functionTRUE:function(){var a=this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.trueValue}})},__functionFALSE:function(){var a=this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.falseValue}})},__functionISBLANK:function(a){var c=this;return new parus.excelFormulas.value({isNumber:function(){return!1},
asString:function(){return""==a.asString()?c.trueValue:c.falseValue}})},__functionIF:function(a,c,e){var f=this;return new parus.excelFormulas.value({asString:function(){return f.__exportBoolean(a)?c.asString():e?e.asString():""},asNumber:function(){return f.__exportBoolean(a)?c.asNumber():e?e.asNumber():""}})},__functionAND:function(){var a=this,c=arguments;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var e=!0;b.forEach(c,function(f){e&&(a.__exportBoolean(f)||
(e=!1))});return e?a.trueValue:a.falseValue}})},__functionOR:function(){var a=this,c=arguments;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var e=!1;b.forEach(c,function(f){e||a.__exportBoolean(f)&&(e=!0)});return e?a.trueValue:a.falseValue}})},__functionNOT:function(a){var c=this;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return c.__exportBoolean(a)?c.falseValue:c.trueValue}})},__functionCOUNT:function(){var a=
arguments;return new parus.excelFormulas.value({asNumber:function(){var c=0;b.forEach(a,function(e){e.forEach(function(f){(f.asNumber()||"0"==f.asString())&&c++})});return c}})},__functionCOUNTA:function(){var a=arguments;return new parus.excelFormulas.value({asNumber:function(){var c=0;b.forEach(a,function(e){e.forEach(function(f){f.asString()&&c++})});return c}})},__functionCOUNTBLANK:function(){var a=arguments;return new parus.excelFormulas.value({asNumber:function(){var c=0;b.forEach(a,function(e){e.forEach(function(f){f.asString()||
c++})});return c}})},__functionAVERAGE:function(){var a=arguments;return new parus.excelFormulas.value({asNumber:function(){var c=0,e=0;b.forEach(a,function(f){f.forEach(function(g){if(g=g.asNumber())c+=g,e++})});return e?c/e:c}})},__functionAVERAGEA:function(){var a=arguments;return new parus.excelFormulas.value({asNumber:function(){var c=0,e=0;b.forEach(a,function(f){f.forEach(function(g){if(g=g.asNumber())c+=g,e++})});return e?c/e:c}})},__functionFIXED:function(a,c,e){var f=this;return new parus.excelFormulas.value({asString:function(){var g=
"#0";if(c){c.asNumber()&&(g+=".");for(var h=0;h<c.asNumber();h++)g+="0"}f.__exportBoolean(e)||(g="#,#"+g);return parus.parus8.formatExcelValue(a.asNumber(),g,!0)}})},__functionROUND:function(a,c){return new parus.excelFormulas.value({asNumber:function(){var e=c?c.asNumber():0;return b.number.round((a.asNumber()*Math.pow(10,e)).toPrecision(13+e))/Math.pow(10,e)}})},__functionROUNDUP:function(a,c){return new parus.excelFormulas.value({asNumber:function(){var e=c?c.asNumber():0;return Math.ceil(a.asNumber()*
Math.pow(10,e))/Math.pow(10,e)}})},__functionROUNDDOWN:function(a,c){return new parus.excelFormulas.value({asNumber:function(){var e=c?c.asNumber():0;return Math.floor(a.asNumber()*Math.pow(10,e))/Math.pow(10,e)}})},__functionABS:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.abs(a.asNumber())}})},__functionSIN:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.sin(a.asNumber())}})},__functionCOS:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.cos(a.asNumber())}})},
__functionTAN:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.tan(a.asNumber())}})},__functionACOS:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.acos(a.asNumber())}})},__functionASIN:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.asin(a.asNumber())}})},__functionATAN:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.atan(a.asNumber())}})},__functionATAN2:function(a,
c){return new parus.excelFormulas.value({asNumber:function(){return Math.atan2(a.asNumber(),c.asNumber())}})},__functionEXP:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.exp(a.asNumber())}})},__functionLN:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.log(a.asNumber())}})},__functionLOG:function(a,c){return new parus.excelFormulas.value({asNumber:function(){return Math.log(a.asNumber()/Math.log(c.asNumber()))}})},__functionLOG10:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.log(a.asNumber()/
Math.log(10))}})},__functionSQRT:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.sqrt(a.asNumber())}})},__functionACOSH:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.log(a.asNumber()+Math.sqrt(a.asNumber()*a.asNumber()-1))}})},__functionASC:function(a){return new parus.excelFormulas.value({asString:function(){return a.asString()}})},__functionASINH:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.log(a.asNumber()+
Math.sqrt(a.asNumber()*a.asNumber()+1))}})},__functionATANH:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.log((1+a.asNumber())/(1-a.asNumber()))/2}})},__functionCOSH:function(a){return new parus.excelFormulas.value({asNumber:function(){return(Math.exp(a.asNumber())+Math.exp(-a.asNumber()))/2}})},__functionMAXA:function(){var a=arguments;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var c="";b.forEach(a,function(e){e.forEach(function(f){f=
f.asString();f>c&&(c=f)})});return c}})},__functionMINA:function(){var a=arguments;return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var c="";b.forEach(a,function(e){e.forEach(function(f){f=f.asString();if(!c||f<c)c=f})});return c}})},__functionMAX:function(){var a=arguments;return new parus.excelFormulas.value({asNumber:function(){var c=null;b.forEach(a,function(e){e.forEach(function(f){var g=f.asNumber();f.asString()&&(!c||g>c)&&(c=g)})});return c}})},__functionMIN:function(){var a=
arguments;return new parus.excelFormulas.value({asNumber:function(){var c=null;b.forEach(a,function(e){e.forEach(function(f){var g=f.asNumber();f.asString()&&(!c||g<c)&&(c=g)})});return c}})},__functionSINH:function(a){return new parus.excelFormulas.value({asNumber:function(){return(Math.exp(a.asNumber())-Math.exp(-a.asNumber()))/2}})},__functionTANH:function(a){return new parus.excelFormulas.value({asNumber:function(){return(Math.exp(2*a.asNumber())-1)/(Math.exp(2*a.asNumber())+1)}})},__functionADDRESS:function(a,
c,e){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var f=e?e.asNumber():1;if(1==f)return"R"+a.asNumber()+"C"+c.asNumber();if(2==f)return"R"+a.asNumber()+"C["+(c.asNumber()-C)+"]";if(3==f)return"R["+(a.asNumber()-R)+"]C"+c.asNumber();if(4==f)return"R["+(a.asNumber()-R)+"]C["+(c.asNumber()-C)+"]"}})},__functionHLOOKUP:function(a,c,e){if(c.Row1&&c.Row2&&c.Col1&&c.Col2)for(var f=c.Col1;f<=c.Col2;f++){if(this.__exportBoolean(this.__operatorEqual(a,this.__fromReference(c.Row1,
f,null))))return this.__fromReference(c.Row1-1+e.asNumber(),f,null)}else throw Error("\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0430\u0440\u0433\u0443\u043c\u0435\u0442\u0430.");},__functionVLOOKUP:function(a,c,e){if(c.Row1&&c.Row2&&c.Col1&&c.Col2)for(var f=c.Row1;f<=c.Row2;f++){if(this.__exportBoolean(this.__operatorEqual(a,this.__fromReference(f,c.Col1,null))))return this.__fromReference(f,c.Col1-1+e.asNumber(),null)}else throw Error("\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0430\u0440\u0433\u0443\u043c\u0435\u0442\u0430.");
},__functionTIMEVALUE:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asString(),e=null;8==c.length?e=b.date.locale.parse(c,{selector:"time",timePattern:"HH:mm:ss"}):5==c.length&&(e=b.date.locale.parse(c,{selector:"time",timePattern:"HH:mm"}));return e?e.getHours()/24+e.getMinutes()/24/60+e.getSeconds()/24/60/60:null}})},__functionTIME:function(a,c,e){return new parus.excelFormulas.value({asNumber:function(){return a.asNumber()/24+c.asNumber()/24/60+e.asNumber()/24/60/
60}})},__functionCHOOSE:function(){return arguments[arguments[0].toNumber()]},__functionPOWER:function(a,c){return new parus.excelFormulas.value({asNumber:function(){return Math.pow(a.asNumber(),c.asNumber())}})},__functionPRODUCT:function(){var a=arguments;return new parus.excelFormulas.value({asNumber:function(){var c=1;b.forEach(a,function(e){e.forEach(function(f){c*=f.asNumber()})});return c}})},__functionMOD:function(a,c){return new parus.excelFormulas.value({asNumber:function(){return a.asNumber()%
c.asNumber()}})},__functionLEN:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asString();return c?c.length:0}})},__functionLEFT:function(a,c){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asString().substr(0,c.asNumber())}})},__functionRIGHT:function(a,c){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var e=a.asString();return e.substr(e.length-c.asNumber(),c.asNumber())}})},
__functionMID:function(a,c,e){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var f=a.asString(),g=e?e.asNumber():1E4;return f.substr(c.asNumber()-1,g)}})},__functionSEARCH:function(a,c,e){return new parus.excelFormulas.value({asNumber:function(){return(e?c.asString().toUpperCase().indexOf(a.asString().toUpperCase(),e.asNumber()-1):c.asString().toUpperCase().indexOf(a.asString().toUpperCase()))+1}})},__functionFIND:function(a,c,e){return new parus.excelFormulas.value({asNumber:function(){return(e?
c.asString().indexOf(a.asString(),e.asNumber()-1):c.asString().indexOf(a.asString()))+1}})},__functionSUBSTITUTE:function(a,c,e,f){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){var g=c.asString(),h=e.asString(),l=a.asString().split(g);if(!l.length)return a.asString();for(var m="",p=f?f.asNumber():1,r=0;r<l.length;r++)m+=l[r],r==p-1?m+=h:r<l.length-1&&(m+=g);return m}})},__functionTRIM:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},
asString:function(){return b.trim(a.asString())}})},__functionEXACT:function(a,c){return this.__operatorEqual(a,c)},__functionLOWER:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asString().toLowerCase()}})},__functionUPPER:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asString().toUpperCase()}})},__functionCONCATENATE:function(){var a=arguments;return new parus.excelFormulas.value({isNumber:function(){return!1},
asString:function(){var c="";b.forEach(a,function(e){e.forEach(function(f){c+=f.asString()})});return c}})},__functionYEAR:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asString();return(c=b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy"})||null)?c.getFullYear():null}})},__functionMONTH:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asString();return(c=
b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy"})||null)?c.getMonth()+1:null}})},__functionMINUTE:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asString();return(c=b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy"})||null)?c.getMinutes():null}})},__functionDAY:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=
a.asString();return(c=b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy"})||null)?c.getDate():null}})},__functionWEEKDAY:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asString();return(c=b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy"})||null)?c.getDay()+1:null}})},__functionHOUR:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=
a.asString();return(c=b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy"})||null)?c.getHours():null}})},__functionSECOND:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asString();return(c=b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(c,{selector:"date",datePattern:"dd.MM.yyyy"})||null)?c.getSeconds():null}})},__functionDEGREES:function(a){return new parus.excelFormulas.value({asNumber:function(){return 180*
a.asNumber()/Math.PI}})},__functionRADIANS:function(a){return new parus.excelFormulas.value({asNumber:function(){return a.asNumber()*Math.PI/180}})},__functionDATE:function(a,c,e){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return b.date.locale.format(new Date(a.asNumber(),c.asNumber()-1,e.asNumber()),{selector:"date",datePattern:"dd.MM.yyyy"})||null}})},__functionDATEVALUE:function(a){return a},__functionINDIRECT:function(a){if(a=a.asString().match(/^R(\d+)C(\d+)$/))return this.__fromReference(a[1],
a[2]);throw Error("\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 RC-\u0441\u0442\u0438\u043b\u044c \u0441\u0441\u044b\u043b\u043e\u043a.");},__functionDAYS360:function(a,c){return new parus.excelFormulas.value({asNumber:function(){var e=a.asString();e=b.date.locale.parse(e,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||b.date.locale.parse(e,{selector:"date",datePattern:"dd.MM.yyyy"})||null;var f=c.asString();f=b.date.locale.parse(f,{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"})||
b.date.locale.parse(f,{selector:"date",datePattern:"dd.MM.yyyy"})||null;return e&&f?(f-e)/1E3/24/3600:null}})},__functionISLOGICAL:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){return a.asString()==this.trueValue||a.asString()==this.falseValue?this.trueValue:this.falseValue})})},__functionISNA:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){return a&&a.asString()?this.trueValue:
this.falseValue})})},__functionISNONTEXT:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){return a.asNumber()?this.trueValue:this.falseValue})})},__functionISERR:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){if(!a)return this.falseValue;try{var c=a.asString();return"Infinity"==c||"NaN"==c?this.trueValue:this.falseValue}catch(e){return this.trueValue}})})},__functionISERROR:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},
asString:b.hitch(this,function(){if(!a)return this.falseValue;try{var c=a.asString();return"Infinity"==c||"NaN"==c?this.trueValue:this.falseValue}catch(e){return this.trueValue}})})},__functionISREF:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){return a&&(a.Col||a.Row)?this.trueValue:this.falseValue})})},__functionISTEXT:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){return a.asNumber()?
this.falseValue:this.trueValue})})},__functionISNUMBER:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){return a.asNumber()?this.trueValue:this.falseValue})})},__functionSIGN:function(a){return new parus.excelFormulas.value({asNumber:function(){var c=a.asNumber();return 0>c?-1:0<c?1:0}})},__functionVALUE:function(a){return a},__functionINFO:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){a.asString();
return"parusBalanceOnLine"}})},__functionCODE:function(a){return new parus.excelFormulas.value({asNumber:function(){return a.charCodeAt(0)}})},__functionCHAR:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return String.fromCharCode(a.asNumber)}})},__functionNA:function(){return new parus.excelFormulas.value({asString:function(){return null},asNumber:function(){return null}})},__functionODD:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},
asString:b.hitch(this,function(){return 1==a.asNumber()%2?this.trueValue:this.falseValue})})},__functionEVEN:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:b.hitch(this,function(){return 0==a.asNumber()%2?this.trueValue:this.falseValue})})},__functionCEILING:function(a,c){return new parus.excelFormulas.value({asNumber:function(){d=c?c.asNumber():0;return Math.ceil(a.asNumber()*Math.pow(10,d))/Math.pow(10,d)}})},__functionFLOOR:function(a,c){return new parus.excelFormulas.value({asNumber:function(){d=
c?c.asNumber():0;return Math.floor(a.asNumber()*Math.pow(10,d))/Math.pow(10,d)}})},__functionTRUNC:function(a,c){return new parus.excelFormulas.value({asNumber:function(){d=c?c.asNumber():0;return Math.floor(a.asNumber()*Math.pow(10,d))/Math.pow(10,d)}})},__functionCLEAN:function(a){return a},__functionREPT:function(a,c){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){for(var e=a.asString(),f=[],g=0;g<(c.asNumber()||0);g++)f.push(e);return f.join("")}})},__functionMATCH:function(){var a=
arguments;return new parus.excelFormulas.value({asNumber:function(){var c=0,e=null,f=0;b.forEach(a,function(g){g.forEach(function(h){e?c||h.asNumber()!=e||(c=f):e=h.asNumber();f++})});return c}})},__functionPROPER:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return b.map((text.asString()||"").split(" "),function(c){return(c||"").substring(1,1).toUpperCase()+(c||"").substring(2).toLowerCase()}).join(" ")}})},__functionLOOKUP:function(){var a=arguments;
return new parus.excelFormulas.value({asNumber:function(){var c=0,e=null,f=0;b.forEach(a,function(g){g.forEach(function(h){e?c||h.asNumber()!=e||(c=f):e=h.asNumber();f++})});return c}})},__functionDOLLAR:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return b.currency.format(a.asNumber())}})},__functionTODAY:function(){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return b.date.locale.format(new Date,{selector:"date",
datePattern:"dd.MM.yyyy"})}})},__functionRAND:function(){return new parus.excelFormulas.value({asNumber:function(){return Math.random()}})},__functionCOLUMN:function(a){var c=this;return new parus.excelFormulas.value({asNumber:b.hitch(this,function(){var e=null;a?a.Row&&a.Col||a.Ident?e=c.pane.cellShiftedAddress(c.getCellNode(a.Row,a.Col,a.Ident)):a.Row1&&a.Col1&&(e=c.pane.cellShiftedAddress(c.getCellNode(a.Row1,a.Col1,null))):e=c.pane.cellShiftedAddress(c.getCellNode(c.__R,c.__C,null));return e?
e.c:0})})},__functionROW:function(a){var c=this;return new parus.excelFormulas.value({asNumber:b.hitch(this,function(){var e=null;a?a.Row&&a.Col||a.Ident?e=c.pane.cellShiftedAddress(c.getCellNode(a.Row,a.Col,a.Ident)):a.Row1&&a.Col1&&(e=c.pane.cellShiftedAddress(c.getCellNode(a.Row1,a.Col1,null))):e=c.pane.cellShiftedAddress(c.getCellNode(c.__R,c.__C,null));return e?e.r:0})})},__functionT:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asString()}})},
__functionNOW:function(){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return b.date.locale.format(new Date,{formatLength:"full",timePattern:"HH:mm:ss"})}})},__functionTEXT:function(a){return new parus.excelFormulas.value({isNumber:function(){return!1},asString:function(){return a.asString()}})},__functionINT:function(a){return new parus.excelFormulas.value({asNumber:function(){return Math.floor(a.asNumber())}})},__functionN:function(a){return new parus.excelFormulas.value({asNumber:function(){return a.asNumber()}})},
__functionRANK:function(a,c,e){var f=a.asNumber(),g=e?e.asNumber():0;return new parus.excelFormulas.value({asNumber:function(){var h=0;c.forEach(function(l){l.isNumber()&&(l=l.asNumber(),g?l<f&&h++:l>f&&h++)});return h+1}})},__functionRANKAVG:function(a,c,e){var f=a.asNumber(),g=e?e.asNumber():0;return new parus.excelFormulas.value({asNumber:function(){var h=0,l=0,m=0;c.forEach(function(p){p.isNumber()&&(p=p.asNumber(),p==f&&(l++,m+=l),g?p<f&&h++:p>f&&h++)});return l?h+m/l:0}})},__functionRANKEQ:function(a,
c,e){return this.__functionRANK(a,c,e)},__functionFDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionFINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionZTEST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionSYD:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSLN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionBETAINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionBETADIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionFV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionBINOMDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionWEIBULL:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionPROB:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionIRR:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionGAMMALN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionGAMMAINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionGAMMADIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionHYPGEOMDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionHYPERLINK:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionDDB:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionVAR:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionVARA:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionVARP:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionVARPA:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionDB:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCONFIDENCE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionINDEX:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionDEVSQ:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionQUARTILE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionRSQ:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCOVAR:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCORREL:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionNPER:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCRITBINOM:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionLOGEST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionLINEST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionLOGINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionLOGNORMDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionMIRR:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionMEDIAN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionMINVERSE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionMODE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionMDETERM:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionMMULT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionLARGE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSMALL:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSLOPE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionRATE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSTANDARDIZE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionNORMINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionNORMDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionNORMSINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionNORMSDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionNPV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionAREAS:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionPPMT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionNEGBINOMDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionINTERCEPT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionVDB:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionPERMUT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionPERCENTILE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionPV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionPEARSON:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionIPMT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionPMT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionFORECAST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionPERCENTRANK:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionPOISSON:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionROMAN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionGROWTH:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSKEW:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionOFFSET:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionHARMEAN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionGEOMEAN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionAVEDEV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSTDEV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSTDEVA:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionSTDEVP:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSTDEVPA:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSTEYX:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionTDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionTINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSUMIF:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionSUMSQ:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSUMXMY2:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSUMPRODUCT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionSUMX2MY2:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionSUMX2PY2:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCOUNTIF:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionTREND:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionTYPE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionTRANSPOSE:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionTTEST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionTRIMMEAN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionFACT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionFISHER:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionFISHERINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionFTEST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionCHIINV:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCHIDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCHITEST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionFREQUENCY:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCOMBIN:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionCOLUMNS:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionROWS:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionEXPONDIST:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");},__functionKURT:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");
},__functionCELL:function(){throw Error("\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430.");}});b.declare("parus.excelFormulas.value",[],{postscript:function(a){a&&b.mixin(this,a)},asString:function(){return parus.parus8.valueToExternalString(this.asNumber())},asNumber:function(){var a=this.asString();a="number"==typeof a?a:b.number.parse(a);return isNaN(a)||Infinity==Math.abs(a)?0:a},isNumber:function(){var a=
this.asString();a="number"==typeof a?a:b.number.parse(a);return isNaN(a)||Infinity==Math.abs(a)?!1:!0},forEach:function(a){a(this)}});b.declare("parus.excelFormulas.cell",[],{Col:null,Row:null,Ident:null,formulas:null,postscript:function(a){a&&b.mixin(this,a)},asString:function(){return this.formulas.getCellValue(this.Row,this.Col,this.Ident,!0)},asNumber:function(){return this.formulas.getCellValue(this.Row,this.Col,this.Ident,!1)},isNumber:function(){var a=this.asString();a="number"==typeof a?a:
b.number.parse(a);return isNaN(a)||Infinity==Math.abs(a)?!1:!0},forEach:function(a){a(this)}});b.declare("parus.excelFormulas.range",[],{Row1:null,Row2:null,Col1:null,Col2:null,formulas:null,postscript:function(a){a&&b.mixin(this,a)},forEach:function(a){for(var c=this.Row1;c<=this.Row2;c++)for(var e=this.Col1;e<=this.Col2;e++){var f="R"+c+"C"+e;this.formulas.getCell(f)?a(this.formulas.__fromReference(c,e,null)):b.forEach(this.formulas.pane._tables,function(g){b.forEach(g.clones,function(h){h.formulas.getCell(f)&&
a(h.formulas.__fromReference(c,e,null))})})}}})})},"parus/progressDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.progressDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.ProgressBar");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.progressDialog",[parus.messageDialog],{max:null,_value:null,postCreate:function(){this.inherited(arguments);this.dialog.closeButtonNode.style.display="none";this.max&&this.setMax(this.max)},
setMax:function(a){if(this.max=a)this.bar.attr("indeterminate",!1),this.bar.attr("maximum",this.max),this.bar.attr("value",0),this._value=0},step:function(){this._value++;this.bar.attr("value",this._value)}});b.mixin(parus.progressDialog,{iterateOverGrid:function(a,c,e,f){for(var g=c.selection.getFirstSelected(),h=[],l=0;l<c.selection.getSelectedCount();l++)h.push(g),g=c.selection.getNextSelected(g);parus.progressDialog.iterateOverArray(a,h,e,f)},iterateOverArray:function(a,c,e,f){var g=new parus.progressDialog({message:a,
max:c.length});g.show();var h=b.clone(c),l=function(){var m=h.shift();if(m){try{e(m)}catch(p){throw g.step(),setTimeout(l,50),p;}g.step();setTimeout(l,50)}else g.close(),g.destroyRecursive(),f&&f()};setTimeout(l,50)}})})},"parus/balanceReportsExchangeExportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportsExchangeExportDialog");b.require("dojo.io.iframe");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");
b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.balanceReportsExchangeExportDialog",[parus.Dialog],{kind:null,_lastValues:null,applyProgressLabel:"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430.",onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},useJournalChanged:function(){this.useJournal.attr("checked")?(this.journalCatalog.attr("disabled",
!1),this.reportTypeEdit.attr("disabled",!0),this.reportTypeEdit.attr("value","0")):(this.journalCatalog.attr("disabled",!0),this.journalCatalog.attr("value",null),this.reportTypeEdit.attr("disabled",!1))},exchangeKindChanged:function(){var a=parus.database.execute("BalanceReportExchangeKindInfo",{CODE:this.exchangeKind.value});a&&(a=parus.parus8.rowNodes(a)[0],"1"==parus.parus8.nodeField(a,"NWEB_SIGN")?(this.journalCatalog.attr("disabled",!1),this.useJournal.attr("disabled",!0),this.useJournal.attr("checked",
!0),this.useJournalLabel.style.color="#808080",this.reportTypeEdit.attr("disabled",!0),this.reportTypeEdit.attr("value","0")):(this.journalCatalog.attr("disabled",!0),this.journalCatalog.attr("value",null),this.useJournal.attr("disabled",!1),this.useJournal.attr("checked",!1),this.useJournalLabel.style.color="",this.reportTypeEdit.attr("disabled",!1)))},saveFormLastValues:function(){this._lastValues.useJournal=this.useJournal.checked;this._lastValues.exchangeKind=this.exchangeKind.value;this._lastValues.versionNumber=
this.versionNumber.value;this._lastValues.periodEdit=this.periodEdit.value;this._lastValues.reportEdit=this.reportEdit.value;this._lastValues.reportTypeEdit=this.reportTypeEdit.value;this._lastValues.archiveEdit=this.archiveEdit.value;this._lastValues.archiveNameEdit=this.archiveNameEdit.value;this._lastValues.journalCatalog=this.journalCatalog.value;this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||
{};this.exchangeKind.attr("value",this._lastValues.exchangeKind);setTimeout(b.hitch(this,function(){this.useJournal.attr("checked",this._lastValues.useJournal);setTimeout(b.hitch(this,function(){this.versionNumber.attr("value",this._lastValues.versionNumber);this.periodEdit.attr("value",this._lastValues.periodEdit);this.reportEdit.attr("value",this._lastValues.reportEdit);this.reportTypeEdit.attr("value",this._lastValues.reportTypeEdit);this.archiveEdit.attr("value",this._lastValues.archiveEdit);
this.archiveNameEdit.attr("value",this._lastValues.archiveNameEdit);this.journalCatalog.attr("value",this._lastValues.journalCatalog)}),100)}),100);this.userSize=this._lastValues.userSize||null}})})},"parus/designerReportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");
b.require("parus.dictEdit");b.require("parus.editDictionaryDialog");b.declare("parus.designerReportDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",a.getValue(c,"CODE")),this.nameEdit.attr("value",a.getValue(c,"NAME")),this.statusModelEdit.attr("value",a.getValue(c,"SSTATUS_MODEL")))},executeInsert:function(a){if(a=parus.database.execute(a?"duplicateDesignerReport":"insertDesignerReport",{RN:a?this.rn:null,CRN:this.crn,
CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value"),STATUS_MODEL:this.statusModelEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("updateDesignerReport",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value"),STATUS_MODEL:this.statusModelEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("deleteDesignerReport",{RN:a.getValue(c,"RN")})}})})},
"parus/balanceSpecialActions":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceSpecialActions");b.require("parus.balance");b.require("parus.balanceReportRecalculateValuesDialog");b.require("parus.balanceReportCheckProtocolTabPage");b.require("parus.balanceReportConsolidateDialog");b.require("parus.signDialog");b.require("parus.balanceReportDigitalSignaturesDialog");b.require("parus.balanceCheckAbsentReportsDialog");b.require("parus.balanceAbsentReportsDialog");b.require("parus.balancePrimaryReportFormingDialog");
b.require("parus.balanceReportAttachedDocumentsDialog");b.require("parus.balanceDeconsolidateDialog");b.require("parus.balanceValuesHistoryDialog");b.require("parus.balanceStatusesDialog");b.require("parus.balanceReportsExchangeExportDialog");b.require("parus.balanceReportsExchangeImportDialog");b.require("parus.balanceReportsExchangeJournalDialog");b.require("parus.excelFileFormatDialog");b.require("parus.excelColorModeDialog");parus||(parus={});parus.balance||b.mixin(parus,{balance:{}});b.mixin(parus.balance,
{getMasterGridCurrentRecordFieldValue:function(a,c){var e=a.store,f=a.selection.getSelectedIndex();f=a.getItem(f);return e.getValue(f,c)},primaryBalanceReportsRecalculateValues:function(a){(new parus.balanceReportRecalculateValuesDialog({isSubReport:a})).show()},balanceReportsClearValues:function(a,c){(new parus.confirmationDialog({message:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439?",
onApply:b.hitch(this,function(){var e="clearReportValues";c&&(e="clearSubReportValues");for(var f=a.store,g=a.selection.getFirstSelected(),h=0;h<a.selection.getSelectedCount();h++)parus.database.execute(e,{RN:f.getValue(g,"RN")}),g=a.selection.getNextSelected(g);parus.balance.refreshGrid(a,"RN",f.getValue(a.selection.getFirstSelected(),"RN"));return!0})})).show()},getAcceptValue:function(a){return a?1:2},balanceSetReportAccepted:function(a,c){for(var e=a.store,f=a.selection.getFirstSelected(),g=0;g<
a.selection.getSelectedCount();g++)parus.database.execute("acceptReport",{RN:e.getValue(f,"RN"),ACCEPT:this.getAcceptValue(c)}),f=a.selection.getNextSelected(f);parus.balance.refreshGrid(a,"RN",e.getValue(a.selection.getFirstSelected(),"RN"));return!0},balanceStatesHistory:function(a){var c=a.store,e=a.selection.getSelectedIndex();a=a.getItem(e);e=parus.dictionaries.BalanceReportsStatesHistory;b.mixin(e,{dictionary:e,unitCode:e.unitCode,hideCancel:!0,gridConditions:{PRN:c.getValue(a,"RN")},onApply:b.hitch(this,
function(f){return!0})});(new parus.dictionaryDialog(e)).show()},balanceStatusesHistory:function(a){var c=a.store,e=a.selection.getSelectedIndex();a=a.getItem(e);e=parus.dictionaries.BalanceReportsStatusesHistory;b.mixin(e,{dictionary:e,unitCode:e.unitCode,hideCancel:!0,gridConditions:{PRN:c.getValue(a,"RN")},onApply:b.hitch(this,function(f){return!0})});(new parus.dictionaryDialog(e)).show()},balanceSubStatusesHistory:function(a){var c=a.store,e=a.selection.getSelectedIndex();a=a.getItem(e);e=parus.dictionaries.BalanceSubReportsStatusesHistory;
b.mixin(e,{dictionary:e,unitCode:e.unitCode,hideCancel:!0,gridConditions:{PRN:c.getValue(a,"RN")},onApply:b.hitch(this,function(f){return!0})});(new parus.dictionaryDialog(e)).show()},balanceValuesHistory:function(a,c){var e=a.store,f=a.selection.getSelectedIndex(),g=a.getItem(f),h=e.getValue(g,"KIND");f=parus.dictionaries.BalanceReportsValuesHistory;var l={};c?b.mixin(l,{PRN:e.getValue(g,"PRN"),BLSUBREPORT:e.getValue(g,"RN")}):b.mixin(l,{PRN:e.getValue(g,"RN")});e=new t.Menu({"class":"balanceMenu"});
e.addChild(new t.MenuItem({label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",itemAction:!0,defaultIcon:"PCdocumentCustomIcon",onClick:b.hitch(this,function(){var r=new parus.balanceValuesHistoryDialog({onShow:function(){var w=p.grid.store,x=p.grid.selection.getFirstSelected();r.userEdit.attr("value",w.getValue(x,"USERNAME"));r.dateEdit.attr("value",w.getValue(x,"REPORT_DATE"));r.noteEdit.attr("value",w.getValue(x,"NOTE"))},onApply:function(){var w=p.grid.store,x=p.grid.selection.getFirstSelected();
parus.database.execute("updateValuesHistory",{RN:w.getValue(x,"RN"),NOTE:r.noteEdit.value});parus.balance.refreshGrid(p.grid);return!0}});r.show()})}));e.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c...",defaultIcon:"PCreduceCustomIcon",itemAction:!0,onClick:b.hitch(this,function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var r=
p.grid.store,w=p.grid.selection.getFirstSelected(),x=0;x<p.grid.selection.getSelectedCount();x++)parus.database.execute("deleteValuesHistory",{RN:r.getValue(w,"RN")}),w=p.grid.selection.getNextSelected(w);parus.balance.refreshGrid(p.grid);return!0})})).show()})}));e.addChild(new t.MenuSeparator);e.addChild(new t.MenuItem({label:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c...",defaultIcon:"PCapplicationsCustomIcon",itemAction:!0,"default":!0,onClick:b.hitch(this,function(){var r=parus.parus8.rowNodes(parus.database.execute("GetValuesHistoryInfo",
{RN:p.getValue()}))[0];r=parus.balance.describeReport(parus.parus8.nodeField(r,"REPORT_RN"),parus.parus8.nodeField(r,"SUBREPORT_RN"),null,null,null,parus.parus8.nodeField(r,"TIMESTAMP"),parus.parus8.nodeField(r,"AUTHID"),4);if(parus.parus8._embeddedMode){var w=b.moduleUrl("parus","embeddedContent.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams(["",r+" (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f)",
"1",parus.database.getHistoryUrl("html",p.getValue())]);parus.embeddedMode.openTab("history_"+p.getValue(),r,w)}else{w=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",style:"height:100%;width:100%;padding:0"});var x=parus.balance._createHeadingPane(r+" (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f)");w.addChild(x);var A=new t.layout.ContentPane({region:"center",href:parus.database.getHistoryUrl("html",
p.getValue()),"class":"balanceTemplateContentPaneContent",onLoad:function(){b.fadeIn({node:A.domNode}).play()}});w.addChild(A);r=new t.layout.ContentPane({title:parus.balance.formatPageTitle(r),closable:!0,"class":"balanceTemplateContentPane",onClose:b.hitch(this,function(){parus.balance.TabContainer.selectChild("1"==h?parus.balance.consolidatedPage:parus.balance.primaryPage);return!0})});r.setContent(w);parus.balance.TabContainer.addChild(r);parus.balance.TabContainer.selectChild(r);r.controlButton&&
b.query("*",r.controlButton.containerNode).addClass("balanceReadOnlyHeader")}p.close()})}));var m=function(r,w){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");else{var x=document.createElement("form");x.method="GET";
x.action=parus.database.getHistoryUrl(r);"html"!=r||parus.parus8._embeddedMode||(x.target="_blank");var A=document.createElement("input");A.type="hidden";A.name="rn";A.value=p.getValue();x.appendChild(A);void 0!=w&&(A=document.createElement("input"),A.type="hidden",A.name="colormode",A.value=w,x.appendChild(A));document.body.appendChild(x);x.submit();document.body.removeChild(x)}};e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 Excel...",defaultIcon:"PCxlsCustomIcon",
itemAction:!0,onClick:b.hitch(this,function(){m("xls")})}));e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF...",itemAction:!0,onClick:b.hitch(this,function(){(new parus.excelColorModeDialog({onApply:function(){m("pdf",this.colorModeEdit.value);return!0}})).show()})}));e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML...",
itemAction:!0,onClick:b.hitch(this,function(){(new parus.excelColorModeDialog({onApply:function(){m("html",this.colorModeEdit.value);return!0}})).show()})}));e.startup();b.mixin(f,{dictionary:f,unitCode:f.unitCode,hideCancel:!0,gridConditions:l,onApply:b.hitch(this,function(r){return!0}),menu:e});var p=new parus.dictionaryDialog(f);p.show()},userExternalAccounts:function(){var a=parus.dictionaries.UserExternalAccounts,c=new t.Menu({"class":"balanceMenu"});c.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c...",
itemAction:!0,onClick:b.hitch(this,function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var f=e.grid.store,g=e.grid.selection.getFirstSelected(),h=0;h<e.grid.selection.getSelectedCount();h++)parus.database.execute("UnRegisterExternalUserAccount",{RN:f.getValue(g,"RN")}),g=e.grid.selection.getNextSelected(g);parus.balance.refreshGrid(e.grid);return!0})})).show()})}));
c.startup();b.mixin(a,{dictionary:a,hideCancel:!0,onApply:b.hitch(this,function(f){return!0}),menu:c});var e=new parus.dictionaryDialog(a);e.show()},checkReportTitle:function(a,c){return parus.parus8.rowNodes(parus.database.query("GetReportInfoParts",{REPORT:a,SUBREPORT:c}))[0]},balanceShowCheckReportProtocol:function(a,c,e,f,g,h){if(parus.parus8._embeddedMode||!parus.balance.TabContainer)if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{if(!g&&a){var l=a.store;var m=a.selection.getFirstSelected();g=[];for(var p=0;p<a.selection.getSelectedCount();p++)g.push(l.getValue(m,"RN")),m=a.selection.getNextSelected(m);g=g.join(";")}f=b.moduleUrl("parus","checkreport.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([c,e?1:0,0,b.isArray(g)?g.join(";"):g,h]);parus.parus8._embeddedMode?(a?(l=a.store,m=a.selection.getFirstSelected(),m=(0==c?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":
"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \x3cbr\x3e",1==a.selection.getSelectedCount()&&(g=a.selection.getSelectedIndex(),m=a.getItem(g),g=l.getValue(m,"RN"),p=this.checkReportTitle(e?l.getValue(m,"PRN"):l.getValue(m,"RN"),e?l.getValue(m,"RN"):null),m=parus.parus8.nodeField(p,"CAPTION"))):(p=this.checkReportTitle(e?null:g,e?g:null),m=parus.parus8.nodeField(p,
"CAPTION")),m=parus.balance.formatPageTitle(m),a=["checkreport",g,h].join("_"),f=b.moduleUrl("parus","checkreport.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([c,e?1:0,0,b.isArray(g)?g.join(";"):g,h]),parus.embeddedMode.openTab(a,m,f)):(parus.parus8.registerAction(),f=b.moduleUrl("parus","checkreport.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([c,e?1:0,0,b.isArray(g)?g.join(";"):g,
h]),window.open(f,"_blank"))}else{if(a){l=a.store;m=a.selection.getFirstSelected();m=(0==c?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \x3cbr\x3e";1==a.selection.getSelectedCount()&&(g=a.selection.getSelectedIndex(),m=a.getItem(g),p=this.checkReportTitle(e?l.getValue(m,"PRN"):l.getValue(m,"RN"),e?
l.getValue(m,"RN"):null),m=parus.parus8.nodeField(p,"CAPTION"));m=parus.balance.formatPageTitle(m);c=new parus.balanceReportCheckProtocolTabPage({ownerTabContainer:parus.balance.TabContainer,title:m,kind:c,checklist:h});g=[];h=[];m=a.selection.getFirstSelected();for(p=0;p<a.selection.getSelectedCount();p++)e?(g.push(l.getValue(m,"PRN")),h.push(l.getValue(m,"RN"))):g.push(l.getValue(m,"RN")),m=a.selection.getNextSelected(m);c.rn=g;e&&(c.subRn=h)}else p=this.checkReportTitle(e?null:g[0],e?g[0]:null),
m=parus.parus8.nodeField(p,"CAPTION"),m=parus.balance.formatPageTitle(m),c=new parus.balanceReportCheckProtocolTabPage({ownerTabContainer:parus.balance.TabContainer,title:m,kind:c,checklist:h}),c.rn=g,e?(c.rn=[parus.parus8.nodeField(p,"REPORT")],c.subRn=g):c.rn=g;c.showResultReportOnly=f;c.show()}},doShowReportContents:function(a,c){var e="\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f",f={};c?(e+=": \u0421\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b",
f.PRN=a.join(";")):(e+=": \u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b",f.REPORT=a.join(";"));var g=b.clone(parus.dictionaries.ConsolidationReports);g.columns=c?[g.columns[0],g.columns[1],g.columns[2],g.columns[3],g.columns[4],g.columns[5],g.columns[6],g.columns[7],g.columns[8],g.columns[9]]:[g.columns[0],g.columns[1],g.columns[10],g.columns[11],g.columns[12],g.columns[13],g.columns[14],g.columns[15],g.columns[16],g.columns[17]];var h=new t.Menu({"class":"balanceMenu"});
h.addChild(new t.MenuItem({defaultIcon:"PCapplicationsCustomIcon",label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",itemAction:!0,"default":!0,onClick:b.hitch(this,function(){var p=m.grid.store,r=m.grid.selection.getSelectedIndex();r=m.grid.getItem(r);c?parus.balance.executeEditValues(p.getValue(r,"REPORT"),null,p.getValue(r,"BDATE"),p.getValue(r,"CODE"),p.getValue(r,"AGNABBR"),null,p.getValue(r,"KIND"),p.getValue(r,"AGENT")):parus.balance.executeEditValues(p.getValue(r,
"PRN"),null,p.getValue(r,"BDATE"),p.getValue(r,"CODE"),p.getValue(r,"AGNABBR1"),null,p.getValue(r,"KIND1"),p.getValue(r,"AGENT1"));m.close()})}));h.addChild(new t.MenuItem({defaultIcon:"PCCheckCustomIcon",label:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",itemAction:!0,onClick:b.hitch(this,function(){var p=m.grid.store,r=m.grid.selection.getSelectedIndex();r=m.grid.getItem(r);var w=c?p.getValue(r,"KIND"):p.getValue(r,"KIND1");(new parus.balanceCheckReportDialog({grid:null,
kind:w,isSubReport:!1,rn:[c?p.getValue(r,"REPORT"):p.getValue(r,"PRN")],formedRn:[p.getValue(r,"EDITION")],reportRn:[c?p.getValue(r,"REPORT"):p.getValue(r,"PRN")],title:("0"==w?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"})).show();m.close()})}));h.addChild(new t.MenuItem({label:"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438...",
itemAction:!0,onClick:b.hitch(this,function(){var p=m.grid.store,r=m.grid.selection.getSelectedIndex();r=m.grid.getItem(r);parus.balance.balanceShowCheckReportProtocol(null,c?p.getValue(r,"KIND"):p.getValue(r,"KIND1"),!1,!1,[c?p.getValue(r,"REPORT"):p.getValue(r,"PRN")],null);m.close()})}));h.addChild(new t.MenuSeparator);h.addChild(new t.MenuItem({label:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439...",itemAction:!0,onClick:b.hitch(this,function(){var p=
m.grid.store,r=m.grid.selection.getSelectedIndex();r=m.grid.getItem(r);var w=parus.dictionaries.BalanceReportsStatesHistory;b.mixin(w,{dictionary:w,unitCode:w.unitCode,hideCancel:!0,gridConditions:{PRN:c?p.getValue(r,"REPORT"):p.getValue(r,"PRN")},onApply:b.hitch(this,function(x){return!0})});(new parus.dictionaryDialog(w)).show()})}));h.addChild(new t.MenuSeparator);if(c){var l=new t.Menu({"class":"balanceMenu"});l.addChild(new t.MenuItem({label:"\u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b...",
itemAction:!0,onClick:b.hitch(this,function(){for(var p=[],r=m.grid.store,w=m.grid.selection.getFirstSelected(),x=0;x<m.grid.selection.getSelectedCount();x++)p.push(r.getValue(w,"REPORT")),w=m.grid.selection.getNextSelected(w);m.close();parus.balance.doShowReportContents(p,!1)})}))}else l=new t.Menu({"class":"balanceMenu"}),l.addChild(new t.MenuItem({label:"\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u044b...",itemAction:!0,onClick:b.hitch(this,
function(){var p=m.grid.store;parus.progressDialog.iterateOverGrid("\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u043e\u0432...",m.grid,function(r){parus.database.execute("doBeforeHandReport",{RN:p.getValue(r,"PRN")})},function(){parus.balance.refreshGrid(m.grid,"RN",p.getValue(m.grid.selection.getFirstSelected(),"RN"))})})})),l.addChild(new t.MenuItem({label:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0435...",
itemAction:!0,onClick:b.hitch(this,function(){var p=m.grid.store;parus.progressDialog.iterateOverGrid("\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f...",m.grid,function(r){parus.database.execute("confirmReportConsolidation",{RN:p.getValue(r,"PRN")})},function(){parus.balance.refreshGrid(m.grid,"RN",p.getValue(m.grid.selection.getFirstSelected(),"RN"))})})})),l.addChild(new t.MenuItem({defaultIcon:"PCcloseCustomIcon",
label:"\u0420\u0430\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0434...",itemAction:!0,onClick:b.hitch(this,function(){var p=new parus.balanceDeconsolidateDialog({onApply:b.hitch(this,function(){var r=m.grid,w=r.store,x=p.multiLevel.checked?"1":"0";parus.progressDialog.iterateOverGrid("\u0420\u0430\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u0430...",r,function(A){parus.database.execute("deconsolidateReport",
{RN:w.getValue(A,"PRN"),MULTI_SIGN:x})},function(){parus.balance.refreshGrid(m.grid,"RN",w.getValue(m.grid.selection.getFirstSelected(),"RN"))})})});p.show()})})),h.addChild(new t.PopupMenuItem({label:"\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435",popup:l})),l=new t.Menu({"class":"balanceMenu"}),l.addChild(new t.MenuItem({label:"\u0421\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b...",itemAction:!0,onClick:b.hitch(this,function(){for(var p=[],r=m.grid.store,
w=m.grid.selection.getFirstSelected(),x=0;x<m.grid.selection.getSelectedCount();x++)p.push(r.getValue(w,"PRN")),w=m.grid.selection.getNextSelected(w);m.close();parus.balance.doShowReportContents(p,!0)})}));h.addChild(new t.PopupMenuItem({label:"\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f/\u0441\u043e\u0441\u0442\u0430\u0432",popup:l}));h.startup();b.mixin(g,{dictionary:g,gridConditions:f,title:e,hideCancel:!0,menu:h,userDataSection:"parus.dictionaryDialog-"+g.code+(c?"1":"0")});var m=new parus.dictionaryDialog(g);
m.show()},balanceShowReportContents:function(a,c){var e=[],f=a.store,g=a.selection.getSelectedIndex();g=a.getItem(g);for(var h=0;h<a.selection.getSelectedCount();h++)e.push(f.getValue(g,"RN")),g=a.selection.getNextSelected(g);parus.balance.doShowReportContents(e,c)},balanceReportsConsolidate:function(){var a=[];grid=parus.balance.consolidatedMasterGrid;for(var c=grid.store,e=grid.selection.getFirstSelected(),f=0;f<grid.selection.getSelectedCount();f++)a.push(c.getValue(e,"RN")),e=grid.selection.getNextSelected(e);
(new parus.balanceReportConsolidateDialog({rn:a,title:"\u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f"})).show()},balanceReportsDeConsolidate:function(){var a=new parus.balanceDeconsolidateDialog({onApply:b.hitch(this,function(){var c=parus.balance.consolidatedMasterGrid,e=c.store,f=a.multiLevel.checked?"1":"0";parus.progressDialog.iterateOverGrid("\u0420\u0430\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u0430...",
c,function(g){parus.database.execute("deconsolidateReport",{RN:e.getValue(g,"RN"),MULTI_SIGN:f})},function(){parus.balance.refreshGrid(c,"RN",e.getValue(c.selection.getFirstSelected(),"RN"));var g=parus.balance.consolidatedDetailGrid;parus.balance.refreshGrid(g,"RN",g.store.getValue(g.selection.getFirstSelected(),"RN"))});return!0})});a.show()},balanceReportsDoBeforeHand:function(){grid=parus.balance.consolidatedMasterGrid;var a=grid.store;parus.progressDialog.iterateOverGrid("\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u043e\u0432...",
grid,function(c){parus.database.execute("doBeforeHandReport",{RN:a.getValue(c,"RN")})},function(){parus.balance.refreshGrid(grid,"RN",a.getValue(grid.selection.getFirstSelected(),"RN"))})},balanceReportsConfirmConsolidation:function(){grid=parus.balance.consolidatedMasterGrid;var a=grid.store;parus.progressDialog.iterateOverGrid("\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f...",grid,function(c){parus.database.execute("confirmReportConsolidation",
{RN:a.getValue(c,"RN")})},function(){parus.balance.refreshGrid(grid,"RN",a.getValue(grid.selection.getFirstSelected(),"RN"))})},balanceReportsUndoExport:function(a){(new parus.confirmationDialog({message:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430 \u0443\u0447\u0435\u0442\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432?",onApply:b.hitch(this,
function(){for(var c=a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("undoReportExport",{RN:c.getValue(e,"RN")}),e=a.selection.getNextSelected(e);parus.balance.refreshGrid(a,"RN",c.getValue(a.selection.getFirstSelected(),"RN"));return!0})})).show()},balanceReportsDoExport:function(a){(new parus.confirmationDialog({message:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430?",
onApply:b.hitch(this,function(){for(var c=a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("DoReportExport",{RN:c.getValue(e,"RN")}),e=a.selection.getNextSelected(e);parus.balance.refreshGrid(a,"RN",c.getValue(a.selection.getFirstSelected(),"RN"));return!0})})).show()},balanceReportsSign:function(a,c){for(var e=[],f=a.store,g=a.selection.getFirstSelected(),h=0;h<a.selection.getSelectedCount();h++)e.push(f.getValue(g,"RN")),g=a.selection.getNextSelected(g);
if(e.length){var l=new parus.signDialog({rn:e,unitCode:c,onApply:function(){var m=l.getIsSimpleSign(),p=l.getNote(),r=l.getIssuedBy(),w=l.getIssuedTo(),x=l.getValidFrom(),A=l.getValidTo(),B=l.getSerialNumber(),D=l.getThumbprint(),I=l.isUserCertificatesUsed?D:null,u=[];b.forEach(e,function(z){var G=m?null:parus.database.execute("GetSignData",{RN:z,UNITCODE:c});(G||m)&&u.push({rn:z,data:m?null:parus.parus8.nodeField(parus.parus8.rowNodes(G)[0],"clobDOC_DATA"),signedData:null})});var y=function(){b.forEach(u,
function(z){(z.signedData||m)&&parus.database.execute("SaveSign",{RN:z.rn,UNITCODE:c,SIMPLESIGN:m?"1":"0",clobSIGN:z.signedData,NOTE:p,ISSUER:r,OWNER:w,VALID_FROM:x,VALID_TO:A,SERIALNUMBER:B,THUMBPRINT:D,THUMBPRINT_TO_SAVE:I})});parus.balance.refreshGrid(a,"RN",e[0])};m?y():parus.digitalSignature.signData(u,D).then(y,function(z){parus.parus8.errorMessage(z)});return!0}});l.show()}},balanceReportsRemoveSign:function(a,c){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c (\u043f\u043e\u0434\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){for(var e=a.store,f=a.selection.getFirstSelected(),g=0;g<a.selection.getSelectedCount();g++)parus.database.execute("DeleteSign",{RN:e.getValue(f,"RN"),UNITCODE:c}),f=a.selection.getNextSelected(f);parus.balance.refreshGrid(a,"RN",e.getValue(a.selection.getFirstSelected(),"RN"));return!0})})).show()},balanceReportsDigitalSignatures:function(a,c){var e=a.store,f=a.selection.getSelectedIndex();f=a.getItem(f);(new parus.balanceReportDigitalSignaturesDialog({rn:e.getValue(f,
"RN"),unitCode:c})).show()},balanceCheckAbsentReports:function(a,c){var e=new parus.balanceCheckAbsentReportsDialog({kind:c,onApply:function(){(new parus.balanceAbsentReportsDialog({kind:c,date:b.date.locale.format(e.reportDate.value,{selector:"date",datePattern:"dd.MM.yyyy"}),agentGroup:e.agentsGroupEdit.value,onClose:b.hitch(this,function(f){parus.balance.refreshGrid(a,"RN",a.store.getValue(a.selection.getFirstSelected(),"RN"))})})).show();return!0}});e.show()},balancePrimaryReportForming:function(){var a=
parus.balance.consolidatedMasterGrid,c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e),g=new parus.balancePrimaryReportFormingDialog({formCode:c.getValue(f,"FORM_CODE"),onShow:b.hitch(this,function(){g.restoreFormLastValues();g.agentCodeEdit.attr("value",c.getValue(f,"AGNABBR"));g.agentNameEdit.attr("disabled",!1);g.agentNameEdit.attr("value",c.getValue(f,"AGNNAME"));g.agentHeadEdit.attr("value",c.getValue(f,"HEAD_ORG_NAME"));g.reportDateEdit.attr("value",c.getValue(f,"BDATE"))}),onApply:b.hitch(this,
function(){response=parus.database.execute("primaryReportForming",{RN:c.getValue(f,"RN"),CATALOG_NAME:g.catalogInput.value,AGENT_CODE:g.agentCodeEdit.value,AGENT_NAME:g.agentNameEdit.value,BDATE:g.reportDateEdit.value,RELOAD:g.reloadCheckBox.value?1:0});if(!response)return!1;parus.parus8.notificationMessage("\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d.");return!0})});g.show()},balanceReportsAttachedDocuments:function(a,
c){if(-1==b.indexOf(parus.balance.availableUnits,"FileLinks"))parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.');
else{var e=a.store,f=a.selection.getSelectedIndex();f=a.getItem(f);(new parus.balanceReportAttachedDocumentsDialog({rn:e.getValue(f,"RN"),unitcode:c})).show()}},changeStatus:function(a,c){var e=a.store;a.selection.getSelectedIndex();for(var f=[],g=null,h=a.selection.getFirstSelected(),l=0;l<a.selection.getSelectedCount();l++){g=g||e.getValue(h,"STATUS")||"null";if((e.getValue(h,"STATUS")||"null")!=(g||"null")){parus.parus8.errorMessage("\u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c.");
return}f.push(e.getValue(h,"RN"));h=a.selection.getNextSelected(h)}f.length&&parus.database.query("BalanceReportStatuses",{REPORT:f.join(";")},b.hitch(this,function(m){m=parus.parus8.rowNodes(m);if(0==m.length)parus.parus8.errorMessage("\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0442\u0430\u0442\u0443\u0441\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043e\u0442\u0447\u0435\u0442\u0430.");
else{var p=new parus.balanceStatusesDialog({statuses:m,onApply:b.hitch(this,function(){parus.database.execute("reportSetStatus",{REPORT:f.join(";"),STATUS:p.statusesGrid.store.getValue(p.statusesGrid.selection.getFirstSelected(),"RN","")});this.refreshGrid(a,"RN",f[0]);return!0})});p.show()}}))},changeSubreportStatus:function(a,c){var e=a.store;a.selection.getSelectedIndex();for(var f=[],g=null,h=a.selection.getFirstSelected(),l=0;l<a.selection.getSelectedCount();l++){g=g||e.getValue(h,"STATUS")||
"null";if((e.getValue(h,"STATUS")||"null")!=(g||"null")){parus.parus8.errorMessage("\u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c.");return}f.push(e.getValue(h,"RN"));h=a.selection.getNextSelected(h)}f.length&&parus.database.query("BalanceSubReportStatuses",{SUBREPORT:f.join(";")},b.hitch(this,
function(m){m=parus.parus8.rowNodes(m);if(0==m.length)parus.parus8.errorMessage("\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0442\u0430\u0442\u0443\u0441\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430.");else{var p=new parus.balanceStatusesDialog({statuses:m,
onApply:b.hitch(this,function(){parus.database.execute("subreportSetStatus",{SUBREPORT:f.join(";"),STATUS:p.statusesGrid.store.getValue(p.statusesGrid.selection.getFirstSelected(),"RN","")});this.refreshGrid(a,"RN",f[0]);return!0})});p.show()}}))},balanceReportsExchangeExport:function(a,c,e){var f=new parus.balanceReportsExchangeExportDialog({onApply:b.hitch(this,function(){for(var g=a.store,h=a.selection.getFirstSelected(),l=[],m=0;m<a.selection.getSelectedCount();m++)l.push(g.getValue(h,"RN")),
h=a.selection.getNextSelected(h);g=parus.database.execute("BalanceReportExchangeExport",{RN:l.join(";"),CODE:f.exchangeKind.value,JRNL_SIGN:f.useJournal.attr("checked")?"1":"0",VERSIONNUMBER:f.versionNumber.value||"",PERIOD:f.periodEdit.value||"",LOGGING:f.reportTypeEdit.attr("value"),LOG_KIND:f.reportEdit.value||"",ARCH_KIND:f.archiveEdit.value||"",ARCH_NAME:f.archiveNameEdit.value||"",JOURNAL_CATALOG:f.journalCatalog.value||""});if(!g)return!1;g=parus.parus8.rowNodes(g)[0];var p=[parus.parus8.nodeField(g,
"MESSAGE"),"\x3cbr/\x3e"];h=(parus.parus8.nodeField(g,"clobFILES")||"").split(";")||[];var r=parus.parus8.nodeField(g,"IDENT"),w=!1;b.forEach(h,function(x){parus.parus8._themeEditorMode?alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e."):x&&(w||(p.push("\x3cbr/\x3e\u0424\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f:\x3cbr/\x3e"),
w=!0),x=x.split("|"),p.push('\x3ca target\x3d"_blank" href\x3d"'+parus.database.getBufferUrl(x[0])+'"\x3e'+x[1]+"\x3c/a\x3e\x3cbr/\x3e"))});setTimeout(function(){parus.parus8.notificationMessage(p.join(""),function(){parus.database.execute("clearFileBuffer",{IDENT:r})})},100);return!0})});f.show()},balanceReportsExchangeImport:function(a,c,e){var f=function(h,l,m){b.mixin(h,{RN:l,IDENT:m});if(h=parus.database._xhr("exchangeimport.xml",null,h)){var p=parus.parus8.rowNodes(h)[0];setTimeout(function(){var r=
[parus.parus8.nodeField(p,"MESSAGE")];"1"==parus.parus8.nodeField(p,"HASLOG")&&(r.push("\x3cbr/\x3e"),r.push("\x3cbr/\x3e"),r.push('\x3ca href\x3d"'+parus.database.getExchangeImportLogUrl()+'"\x3e\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438\x3c/a\x3e'));parus.parus8.notificationMessage(r.join(""));parus.balance.refreshGrid(a)},100)}};var g=new parus.balanceReportsExchangeImportDialog({onShow:function(){g.restoreFormLastValues();
var h=c.path;g.reportsCatalog.attr("value",c.model.getLabel(h[h.length-1]));setTimeout(function(){t.hideTooltip(g.fileData)},10)},onApply:b.hitch(this,function(){var h={CODE:g.exchangeKind.value,JRNL_SIGN:g.useJournal.attr("checked")?"1":"0",REPORTS_CATALOG:g.reportsCatalog.value,KIND:e,BDATE:g.reportDate.attr("value")?b.date.locale.format(g.reportDate.attr("value"),{selector:"date",datePattern:"dd.MM.yyyy"}):"",AGENT:g.agentCode.attr("value"),LOGGING:g.reportTypeEdit.attr("value"),LOG_KIND:g.reportEdit.value||
"",RELOAD:g.canOverWrite.attr("value")||"2",RECALC:g.recalcReports.checked?"1":"0",JRNL_SHOW:g.showJournal.checked?"1":"0",JOURNAL_CATALOG:g.journalCatalog.value||""},l=g.showJournal.checked,m=new parus.progressDialog({message:"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430."}),p=function(A){m.close();m.destroyRecursive();if(l){var B=new parus.balanceReportsExchangeJournalDialog({applyProgressLabel:"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430.",
kind:e,catalog_name:g.journalCatalog.value||"*",onApply:function(){for(var D=B.grid.store,I=B.grid.selection.getFirstSelected(),u=[],y=0;y<B.grid.selection.getSelectedCount();y++)u.push(D.getValue(I,"RN")),I=B.grid.selection.getNextSelected(I);f(h,u.join(";")||"!*",A);return!0}});B.show()}else f(h,"!*",A)},r=b.filter(g._files,function(A){return!!A.value});m.show();if(r.length){var w=r.length-1,x=null;parus.database.toBuffer(r[w],"clob",x,function(A){x=x||A;w--;0<=w?parus.database.toBuffer(r[w],"clob",
x,arguments.callee):p(x)})}else p(null);return!0})});g.show()}})})},"parus/designerReportTableNotIncludedIndexesDictionaryDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportTableNotIncludedIndexesDictionaryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.require("parus.gridActions");
b.require("parus.catalogActions");b.require("parus.dictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelIndexDialog");b.require("parus.designerTableIndexChangePriorityDialog");b.require("parus.designerTableModelsDictionaryDialog");b.declare("parus.designerReportTableNotIncludedIndexesDictionaryDialog",[parus.editableDictionaryDialog],{createMenu:function(){this.menu=parus.designerTableModelsDictionaryDialog.prototype.createIndexPopupMenu(this,this.grid,!1,
this.getTableModelRN);this.inherited(arguments);return this.menu},getTableModelRN:function(){return this.getParentDialogMasterGridItem("MODEL_RN")}})})},"parus/templateGridPane":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.templateGridPane");b.require("dojo.window");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.TabContainer");b.require("dijit.layout.ContentPane");b.require("dijit.Menu");b.require("dijit.Tooltip");
b.require("dijit.TooltipDialog");b.require("dijit.form.NumberTextBox");b.require("dijit.form.DateTextBox");b.require("dijit.form.ValidationTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.dictEdit");b.require("parus.xml");b.require("parus.balanceRowCountDialog");b.require("parus.balanceIndexConsDialog");b.require("parus.templateGridPaneMixins");b.require("parus.progressDialog");b.require("parus.balanceRemarksDialog");b.require("parus.balanceRemarkDialog");
b.require("parus.templateGridPaneSaveLogConfirmation");b.require("parus.balanceZoomDialog");b.require("parus.balanceIndexConsComparation");b.require("parus.balanceIndexConsComparationItem");b.require("parus.balanceIndexConsComparationItems");b.declare("parus.templateGridPane",[t.layout.ContentPane],{report:null,subreport:null,template:null,kind:null,agent:null,section:null,direction:null,editing:null,modified:!1,headingContentPane:null,readonly:!1,reportDate:null,formCode:null,username:null,ignoreWarnings:!0,
_lastClicked:null,info:null,templateNode:null,focusNode:null,clipboardNode:null,pane:null,parentPane:null,autonomousMode:!1,useHistory:null,onDone:null,returnToPane:null,remarksShown:!1,zoom:1,defaultZoom:100,gutterSize:0,gutterNode:null,_gutterLevels:null,_forceScrollGutter:!1,_minTotalLevel:null,_maxTotalLevel:null,_allValuesLoaded:!1,_progressIndicator:null,_remarksStore:null,_logStore:null,_logGrid:null,_logPane:null,moveAfterReturnDirection:40,"class":"balanceTemplateContentPaneContent",postCreate:function(){this.inherited(arguments);
this.ioArgs={headers:{"Disable-Basic-Auth":"yes","If-None-Match":"none"}}},changeZoom:function(a){this.zoom=0<a?1.2*this.zoom:0>a?this.zoom/1.2:1;this._zoomChanged()},_zoomChanged:function(){b.style(this.templateNode,{zoom:100*this.zoom+"%",MozTransform:"scale("+this.zoom+")",MozTransformOrigin:"0 0"});this.gutterNode&&b.style(this.gutterNode,{zoom:100*this.zoom+"%",MozTransform:"scale("+this.zoom+")",MozTransformOrigin:"0 0"})},_checkConsComparationMenuItem:null,_checkConsComparationIcon:function(){if(this._checkConsComparationMenuItem&&
"PCwifiCustomIcon"==this._checkConsComparationMenuItem.customIcon){var a=parus.parus8.consComparationData?"PCwificheckedCustomIcon":"PCwifiCustomIcon";this._checkConsComparationMenuItem.attr("iconClass",a);this._checkConsComparationMenuItem.toolBarButton&&this._checkConsComparationMenuItem.toolBarButton.attr("iconClass",a+"Big")}},_layout:function(){this._checkConsComparationIcon();return this.inherited(arguments)},progressIndicate:function(a){a?this._progressIndicator?this._progressIndicator.messageText.innerHTML=
a:(this._progressIndicator=new parus.progressDialog({message:a}),this._progressIndicator.show()):this._progressIndicator&&(this._progressIndicator.close(),this._progressIndicator=null)},logGrid:function(a){if(a&&0!=a.length){this._logStore=new parus.gridData({persistent:!0,_data:a});if(this._logGrid)this._logGrid.setStore(this._logStore);else{var c=new t.layout.ContentPane({region:"bottom",style:"height:33%",preload:!0,parseOnLoad:!1,href:b.moduleUrl("parus","templateGridPaneSaveLog.html").toString(),
onLoad:b.hitch(this,function(){var e=b.parser.parse({rootNode:c.domNode,template:!0});b.forEach(e,b.hitch(this,function(f){b.mixin(f,{templatePane:this});var g=f.dojoAttachPoint;g&&(c[g]=f)}));this._logGrid=c.logGrid;c.logGridPopupMenu.bindDomNode(c.logGrid.viewsNode);c.closeLogGridMenuItem.onClick=b.hitch(this,this.closeLogGrid);c.followLogGridMenuItem.onClick=b.hitch(this,this.followLogGrid);c.excelLogGridMenuItem.onClick=b.hitch(this,function(){parus.balance.exportGrid(this._logGrid,null,null)});
this._logPane=c;this._logGrid.setStore(this._logStore)})});this.parentPane.getChildren()[0].addChild(c);c.templatePane=this}return this._logGrid}this._logPane&&(this.parentPane.getChildren()[0].removeChild(this._logPane),this._logPane.destroyRecursive());this._logStore=this._logGrid=this._logPane=null},closeLogGrid:function(){this._logPane&&(this.parentPane.getChildren()[0].removeChild(this._logPane),this._logPane.destroyRecursive());this._logStore=this._logGrid=this._logPane=null},followLogGrid:function(){var a=
this._logGrid,c=a.store,e=a.selection.getSelectedIndex();a=a.getItem(e);parus.templateGridPane.followLogMessage(this.id,c.getValue(a,"BALANCEINDEX")||"",c.getValue(a,"TABLE_RN")||"",c.getValue(a,"ROW_NUMB")||"",c.getValue(a,"BLTABLESIND")||"")},postMixInProperties:function(){this.inherited(arguments);this.pane=this;this.progressIndicate("\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442 \u043e\u0442\u0447\u0435\u0442\u0430....");this.href=
parus.database.getTemplateUrl(this.template)},_monitorChanges:!1,_changedCells:null,setCellText:function(a,c,e){if(!a&&!c)return!1;c||(c=this.getValueNode(a));if(!a)for(a=c;a&&!a.getAttribute("cid");)a=a.parentNode;e=parus.parus8.formatExcelValue(e,a.getAttribute("fmt"),!1,a.getAttribute("intpart"),a.getAttribute("fracpart"));if(c.innerHTML.toString()==e.toString())return!1;this._monitorChanges&&a.getAttribute("wt")&&!a.getAttribute("clid")&&(this._changedCells=this._changedCells||{},this._changedCells[a.getAttribute("uid")]||
e!=c.innerHTML&&(this._changedCells[a.getAttribute("uid")]=a));c.innerHTML=e;this._allValuesLoaded&&(6>=b.isIE||this.checkCellHeight(a,c,!1,null,!0));this.drawAllCanvas();return!0},_checkCellHeightNode:null,checkCellHeight:function(a,c,e,f,g){if("0"==this.direction&&a&&a.getAttribute("wt")&&(c||(c=this.getValueNode(a)),parus.parus8.getTextContent(c))){if(f)var h=f.size;else this.__deferredAttrs?(c=this.__deferredAttrs[a.getAttribute("uid")])?(h=c.h?c.h:a.offsetHeight,h+=c.dh):h=a.offsetHeight:h=a.offsetHeight;
this._checkCellHeightNode||(this._checkCellHeightNode=document.createElement("div"),b.style(this._checkCellHeightNode,{overflowY:"visible",left:"-10000px",top:"-10000px",height:"auto",position:"absolute"}),document.body.appendChild(this._checkCellHeightNode));this._checkCellHeightNode.className=a.className;this._checkCellHeightNode.innerHTML=a.innerHTML;var l=this._checkCellHeightNode.offsetHeight;if(l>h){c=/^R(\d+)C(\d+)$/g.exec(a.getAttribute("cid"));var m=Number(c[1]),p=Number(a.getAttribute("rcnt")),
r=this;c=function(A){var B=/^R(\d+)C(\d+)$/g.exec(A.getAttribute("cid"));B=Number(B[1]);var D=Number(A.getAttribute("rcnt"));B<m&&B+D-1>=m?r.__setDefferedAttr(A,"dh",l-h):B==m?D==p&&l?r.__setDefferedAttr(A,"h",l):r.__setDefferedAttr(A,"dh",l-h):B>m&&r.__setDefferedAttr(A,"dy",l-h)};var w=f?f.part:this._parts[a.getAttribute("pid")];if(w){if(w.table){var x=f?f.table:this._tables.byKey[a.getAttribute("tid")];(f=f||x.clones.byKey[a.getAttribute("clid")])||b.forEach(x.totals,function(A){f||(f=A.clones.byKey[a.getAttribute("clid")])});
f&&(b.forEach(f.cells,c),this.__setDefferedAttr(f.node,"dh",l-f.size),f.size+=l-h,f.table.offsetSize+=l-h,this.shiftClones(x,f.commonIndex,l-h,e))}else b.query("[cid]",w.node).forEach(c);g&&this.shiftParts(w,l-h,e);e||this.__fireDefferedAttrs()}}}},drawAllCanvas:function(){this._allValuesLoaded&&this.drawCanvasText&&(!b.isIE||10<=b.isIE)&&b.query("canvas",this.containerNode).forEach(b.hitch(this,function(a){this.drawCanvasText(a)}))},getValueNode:function(a){return a?b.query("[rid\x3d'v']",a)[0]:
null},saveHistory:function(a){this.progressIndicate("\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f....");var c={VALUES:{INDEXES:[],TABLES:[]}};b.forEach(this._staticValues,function(e){var f=parus.parus8.getTextContent(e.valueNode);c.VALUES.INDEXES.push({ROW:{COL:e.col,ROWN:e.row,VALUE:f,BITYPE:e.dataType}})});b.forEach(this._tables,function(e){b.forEach(e.clones,function(f){b.forEach(f._staticValues,
function(g){var h=parus.parus8.getTextContent(g.valueNode);c.VALUES.TABLES.push({ROW:{RN:e.rn,NUMB:f.rn,INDEXRN:g.balanceIndex,TOTAL:null,VALUE:h,BITYPE:e.indexes.byKey[g.balanceIndex].dataType}})})});b.forEach(e.totals,function(f){b.forEach(f.clones,function(g){b.forEach(g._staticValues,function(h){var l=parus.parus8.getTextContent(h.valueNode);c.VALUES.TABLES.push({ROW:{RN:e.rn,NUMB:g.rn,INDEXRN:h.balanceIndex,TOTAL:f.rn,VALUE:l}})})})})});this.progressIndicate("\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f....");
parus.database._xhr("storehistory.xml",null,{REPORT:this.report,SUBREPORT:this.subreport,TEMPLATE:this.template,DATA:c},b.hitch(this,function(e){this.progressIndicate();"error"!=e.documentElement.nodeName&&a&&a()}))},saveValues:function(a,c){var e={VALUES:{INDEXES:[],TABLES:[]}};b.forEach(this._staticValues,function(m){var p=parus.parus8.getTextContent(m.valueNode),r={};r["ID_"+m.balanceIndex]=p;e.VALUES.INDEXES.push(r)});var f=0;b.forEach(this._tables,function(m){b.forEach(m.clones,function(p){p.freeClone&&
f++})});if(f){ids=parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("CreateIdents",{COUNT:f}))[0],"clobIDENTS").split(";");var g=0,h=this._remarksStore._data;b.forEach(this._tables,function(m){b.forEach(m.clones,function(p){if(p.freeClone&&!p.uninitialized){var r=p.rn;p.rn=ids[g];delete m.clones.byKey[r];m.clones.byKey[p.rn]=p;b.forEach(p.cells,function(w){w.setAttribute("clid",p.rn)});b.forEach(h,function(w){parus.parus8.nodeField(w,"_NEW")&&w.CLONERN==r&&(w.CLONERN=p.rn)});p.freeClone=
!1;g++}})})}b.forEach(this._tables,function(m){var p=[];b.forEach(m.clones,function(w){if(!w.uninitialized){var x=[];b.forEach(w._staticValues,function(A){var B=parus.parus8.getTextContent(A.valueNode),D={};D["TID_"+A.balanceIndex]=B;x.push(D)});b.mixin(x,{NUMB:w.rn});p.push({ROW:x})}});b.forEach(m.totals,function(w){b.forEach(w.clones,function(x){var A=[];b.forEach(x._staticValues,function(B){var D=parus.parus8.getTextContent(B.valueNode),I={};I["TID_"+B.balanceIndex]=D;A.push(I)});b.mixin(A,{TOTAL:w.totalkey,
NUMB:x.rn});p.push({ROW:A})})});var r={};r["T_"+m.rn]=p;e.VALUES.TABLES.push(r)});var l={REMARKS:[]};b.forEach(this._remarksStore._data,function(m){l.REMARKS.push({REMARK:{INDEXRN:parus.parus8.nodeField(m,"INDEXRN"),CLONERN:parus.parus8.nodeField(m,"CLONERN")||null,TABLERN:parus.parus8.nodeField(m,"TABLERN")||null,CHANGE_DATE:parus.parus8.nodeField(m,"CHANGE_DATE"),NOTE:parus.parus8.nodeField(m,"NOTE"),CODE:parus.parus8.nodeField(m,"CODE"),AUTHID:parus.parus8.nodeField(m,"AUTHID")||""}})});this.progressIndicate("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f....");
parus.database.execute("SaveValues",{REPORT:this.report,SUBREPORT:this.subreport,TEMPLATE:this.template,DATA:e,REMARKS:l,IGNORE_WARNINGS:a?1:0},b.hitch(this,function(m){this.progressIndicate();if("error"!=m.documentElement.nodeName){var p=parus.parus8.rowNodes(parus.parus8.nodeField(parus.parus8.rowNodes(m)[0],"xmlLOG")),r=parus.parus8.nodeField(parus.parus8.rowNodes(m)[0],"AUTOCALC");0==p.length?(b.forEach(this._remarksStore._data,function(w){w._NEW&&(w._NEW=!1)}),"1"==r?this.refreshTemplate().addCallback(b.hitch(this,
function(){this._logGrid&&this.logGrid([]);c&&c();this.modified=!1;this.onModified()})):(this._logGrid&&this.logGrid([]),c&&c(),this.modified=!1,this.onModified())):(r=parus.parus8.optionValue("Balance_CanSaveReportsWithWarnings"),r="0"==r?!0:"1"==r?!1:this.ignoreWarnings,(new parus.templateGridPaneSaveLogConfirmation({message:"\u041f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u044b \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.",
ignoreWarnings:b.hitch(this,function(){this.saveValues(!0,c)}),canIgnoreWarnings:r,continueEditing:b.hitch(this,function(){var w=parus.parus8.rowNodes(parus.parus8.nodeField(parus.parus8.rowNodes(m)[0],"xmlDATA")),x=parus.parus8.rowNodes(parus.parus8.nodeField(parus.parus8.rowNodes(m)[0],"xmlREMARKS"));0<w.length&&this.loadNewData(w,x);this.logGrid(p)})})).show())}}))},refreshTemplate:function(){this.progressIndicate("\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442 \u043e\u0442\u0447\u0435\u0442\u0430....");
b.empty(this.templateNode);this.gutterNode&&b.empty(this.gutterNode);this._maxTotalLevel=this._minTotalLevel=this._gutterLevels=this.gutterNode=null;this.gutterSize=0;this.title=null;this.logGrid([]);return this.refresh()},reload:function(){this.performConfirmation(b.hitch(this,function(){b.fadeOut({node:this.domNode,onEnd:b.hitch(this,function(){this.refreshTemplate()})}).play()}),!0)},_setTemplate:function(a,c){this.template=a;this.direction=c;this.href=parus.database.getTemplateUrl(this.template);
this.refreshTemplate()},_chooseTemplateAction:function(){b.fadeOut({node:this.domNode,onEnd:b.hitch(this,function(){parus.database.query("BalanceReportTemplates",{REPORT:this.report},b.hitch(this,function(a){a=parus.parus8.rowNodes(a);if(0==a.length)parus.parus8.errorMessage("\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.");
else{if(1==a.length){var c=parus.parus8.nodeField(a[0],"RN");var e=parus.parus8.nodeField(a[0],"DIRECT_TABLE")}else b.forEach(a,function(g){"1"==parus.parus8.nodeField(g,"EDIT_DEFAULT")&&(c=parus.parus8.nodeField(g,"RN"),e=parus.parus8.nodeField(g,"DIRECT_TABLE"))});if(c)this._setTemplate(c,e);else{var f=new parus.balanceTemplatesDialog({templates:a,onApply:b.hitch(this,function(){b.forEach(f.templatesGrid.selection.getSelected(),function(g){c=f.templatesGrid.store.getValue(g,"RN","");e=f.templatesGrid.store.getValue(g,
"DIRECT_TABLE","")});return!0}),onClose:b.hitch(this,function(){this._setTemplate(c||this.template,e||this.direction)})});f.show()}}}))})}).play()},chooseTemplate:function(){this.performConfirmation(b.hitch(this,this._chooseTemplateAction),!0)},_cells:null,_staticValues:null,_tables:null,_parts:null,__staticValuesIndex:null,splitPart:function(a,c,e,f){"0"==this.direction?(a=1,e=this.cols):(c=1,f=this.rows);var g={node:document.createElement("div"),table:null,col:a,row:c,width:e,height:f,index:this._parts.length},
h=this.cellCoords(a,c,a+e-1,c+f-1);b.style(g.node,{width:h.w+"px",height:h.h+"px",left:h.l+"px",top:h.t+"px",margin:0,padding:0,position:"absolute",overflow:"hidden"});g.node.setAttribute("uid",this._cellnums++);for(var l=a;l<=a+e-1;l++)for(var m=c;m<=c+f-1;m++){var p=this._cells["R"+m+"C"+l];p&&(0==h.t&&0==h.l||b.style(p,{top:parus.parus8.styleSize(p.style.top)-h.t+"px",left:parus.parus8.styleSize(p.style.left)-h.l+"px"}),p.setAttribute("pid",g.index),g.node.appendChild(p))}b.query("*[rid\x3d'w']\x3e*[rid\x3d's']",
this.templateNode).forEach(function(r){var w=parus.parus8.styleSize(r.style.top),x=parus.parus8.styleSize(r.style.left);h.t<=w&&h.t+h.h>=w&&h.l<=x&&h.l+h.w>=x&&(g.node.appendChild(r),b.style(r,{left:x-h.l+"px",top:w-h.t+"px"}))});this.templateNode.appendChild(g.node);this._parts.push(g);return g},_focusNodeConnection:null,selectCell:function(a,c){if(!this.editing&&a){a.target&&(a=a.target);for(;a&&!a.getAttribute("cid");)a=a.parentNode;if(a&&this._lastClicked!=a){b.query(".templateGridSelectedCellBk",
this.templateNode).removeClass("templateGridSelectedCellBk");b.query(".templateGridSelectedCellBorder",this.templateNode).removeClass("templateGridSelectedCellBorder");if(c&&a&&this._lastClicked){var e=a.getAttribute("pid"),f=a.getAttribute("clid"),g=a.getAttribute("ttid"),h=/^R(\d+)C(\d+)$/g.exec(a.getAttribute("cid")),l=Number(h[1]),m=Number(h[2]),p=this._lastClicked.getAttribute("pid"),r=this._lastClicked.getAttribute("clid"),w=this._lastClicked.getAttribute("ttid");h=/^R(\d+)C(\d+)$/g.exec(this._lastClicked.getAttribute("cid"));
var x=Number(h[1]);h=Number(h[2]);if(e>p){var A=p;p=e;e=A;A=r;r=f;f=A;A=w;w=g;g=A}m>h&&(A=h,h=m,m=A);l>x&&(A=x,x=l,l=A);var B=this._parts[e].table?g==this._parts[e].table.rn?this._parts[e].table.clones.byKey[f]:this._parts[e].table.totals.byKey[g].clones.byKey[f]:null,D=this._parts[p].table?w==this._parts[p].table.rn?this._parts[p].table.clones.byKey[r]:this._parts[p].table.totals.byKey[w].clones.byKey[r]:null;e==p&&B&&D&&B.commonIndex>D.commonIndex&&(A=D,D=B,B=A);for(f=m;f<=h;f++)for(g=l;g<=x;g++){m=
"R"+g+"C"+f;for(var I=e;I<=p;I++)b.query("[cid\x3d"+m+"]",this._parts[I].node).forEach(b.hitch(this,function(u){if(u!=a){if(I==e&&B){var y=u.getAttribute("ttid");y=y==this._parts[e].table.rn?this._parts[e].table.clones.byKey[u.getAttribute("clid")].commonIndex:this._parts[e].table.totals.byKey[y].clones.byKey[u.getAttribute("clid")].commonIndex;if(y<B.commonIndex)return}if(I==p&&D&&(y=u.getAttribute("ttid"),y=y==this._parts[p].table.rn?this._parts[p].table.clones.byKey[u.getAttribute("clid")].commonIndex:
this._parts[p].table.totals.byKey[y].clones.byKey[u.getAttribute("clid")].commonIndex,y>D.commonIndex))return;b.addClass(u,"templateGridSelectedCellBk");b.addClass(u,"templateGridSelectedCellBorder");b.query("[class]",u).addClass("templateGridSelectedCellBk")}}))}this._focusTemplateID&&clearTimeout(this._focusTemplateID)}this._lastClicked&&(b.removeClass(this._lastClicked,"templateGridActiveCellBorder"),b.removeClass(this._lastClicked,"templateGridActiveCellBk"),b.query("[class]",this._lastClicked).removeClass("templateGridActiveCellBk"));
this._lastClicked=a;b.addClass(this._lastClicked,"templateGridActiveCellBorder");b.addClass(this._lastClicked,"templateGridActiveCellBk");b.query("[class]",this._lastClicked).addClass("templateGridActiveCellBk");this._focusNodeConnection&&b.disconnect(this._focusNodeConnection);this._lastClicked.appendChild(this.focusNode);this._focusNodeConnection=b.connect(this.focusNode,"onkeydown",this,this.keyDown)}}},_cellnums:0,loadCells:function(){var a=b.query("[cid]",this.templateNode);a.forEach(b.hitch(this,
function(c){this._cells[c.getAttribute("cid")]=c;c.setAttribute("uid",this._cellnums++)}));a.connect("onclick",b.hitch(this,function(c){c=c||event;parus.parus8.registerAction();this.selectCell(c,!!c.shiftKey||!!c.altKey||!!c.ctrlKey);c.shiftKey||c.altKey||c.ctrlKey||this.focusTemplate()}))},loadStaticValues:function(a){b.mixin(this._staticValues,{byKey:{}});a=parus.parus8.rowNodes(a);b.forEach(a,b.hitch(this,function(c){var e="R"+parus.parus8.nodeField(c,"ROWN")+"C"+parus.parus8.nodeField(c,"COL"),
f=parus.parus8.nodeField(c,"XMLDICTS");f&&(f=b.map(f,function(g){return parus.parus8.nodeField(g,"DICT")}));parus.parus8.nodeField(c,"CODE")&&parus.parus8.extraDictionaries._canCacheExtraDictionaries&&parus.parus8.extraDictionaries.getStore(parus.parus8.nodeField(c,"CODE"),this.agent,this.section);c=new parus.templateGridPaneInplaceEditor({id:e,pane:this,value:parus.parus8.externalStringToValue(parus.parus8.nodeField(c,"VALUE")||"",parus.parus8.nodeField(c,"BITYPE")),dataType:parus.parus8.nodeField(c,
"BITYPE"),strLen:parus.parus8.nodeField(c,"STRLEN"),intPart:parus.parus8.nodeField(c,"INTPART"),fracPart:parus.parus8.nodeField(c,"FRACPART"),minVal:parus.parus8.nodeField(c,"MINVAL"),maxVal:parus.parus8.nodeField(c,"MAXVAL"),trim:parus.parus8.nodeField(c,"TRIMSTRVAL"),regExp:parus.parus8.nodeField(c,"PATTERN"),nullable:"1"==parus.parus8.nodeField(c,"NULLABLE"),dictCheck:"1"==parus.parus8.nodeField(c,"DICT_CHECK"),dictNote:"1"==parus.parus8.nodeField(c,"DICT_VAL_NOTE"),col:parus.parus8.nodeField(c,
"COL"),row:parus.parus8.nodeField(c,"ROWN"),dictionary:parus.parus8.nodeField(c,"CODE"),balanceIndex:parus.parus8.nodeField(c,"RN"),valueChanged:b.hitch(this,this.valueChanged),dicts:b.clone(f)});if(f=this._cells[e]){this.__staticValuesIndex[f.getAttribute("uid")]=c;f.setAttribute("iid",c.balanceIndex);if(e=!this.readonly&&!f.getAttribute("ro")&&!this.formulas[e])f.style.cursor=b.isIE?"hand":"pointer";b.mixin(c,{node:f,canEdit:e,valueNode:this.getValueNode(f),connection:e?b.connect(f,"onclick",b.hitch(c,
c.clickHandler)):null});c.intPart&&f.setAttribute("intpart",c.intPart);c.fracPart&&f.setAttribute("fracpart",c.fracPart);""!==c.value&&null!==c.value&&this.setCellText(f,c.valueNode,c.value);this._staticValues.push(c);this._staticValues.byKey[c.balanceIndex]=c}}))},_expandTable:function(a){a.gutterTreeNode&&a.gutterTreeNode.attr("expanded",!0);var c=[];b.forEach(a.totals,function(e){b.forEach(e.clones,function(f){f.gutterTreeNode&&c.push(f)})});c.sort(function(e,f){return(e.owner.level||1E3)-(f.owner.level||
1E3)});b.forEach(c,function(e){e.gutterTreeNode.attr("expanded",!0)})},_neighbor:function(a,c){var e=/^R(\d+)C(\d+)$/g.exec(a.getAttribute("cid")),f=Number(e[1]);e=Number(e[2]);if("1"==this.direction)if("top"==c)for(;0<f;){f--;q='[ids~\x3d"R'+f+"C"+e+'"]';var g=b.query(q,a.parentNode);if(g.length)return g[0]}else if("bottom"==c)for(f+=parseInt(a.getAttribute("rcnt"));f<=this.rows;){q='[ids~\x3d"R'+f+"C"+e+'"]';g=b.query(q,a.parentNode);if(g.length)return g[0];f++}else if("left"==c){var h=a.getAttribute("pid"),
l=this._parts[h],m=a.parentNode;for(e--;0<=h;){for(var p=l.col;m;){for(;e>=p;){q='[ids~\x3d"R'+f+"C"+e+'"]';g=b.query(q,m);if(g.length)return g[0];e--}m=l.table?m.previousSibling:null;e=l.col+l.width-1}h--;0<=h&&(l=this._parts[h],m=l.table?l.node.lastChild:l.node,e=l.col+l.width-1)}}else{if("right"==c)for(h=a.getAttribute("pid"),l=this._parts[h],m=a.parentNode,e+=parseInt(a.getAttribute("ccnt"));h<this._parts.length;){for(p=l.col+l.width-1;m;){for(;e<=p;){q='[ids~\x3d"R'+f+"C"+e+'"]';g=b.query(q,
m);if(g.length)return g[0];e++}m=l.table?m.nextSibling:null;e=l.col}h++;h<this._parts.length&&(l=this._parts[h],m=l.table?l.node.firstChild:l.node,e=l.col)}}else if("left"==c)for(;0<e;){if(e--,q='[ids~\x3d"R'+f+"C"+e+'"]',g=b.query(q,a.parentNode),g.length)return g[0]}else if("right"==c)for(e+=parseInt(a.getAttribute("ccnt"));e<=this.cols;){q='[ids~\x3d"R'+f+"C"+e+'"]';g=b.query(q,a.parentNode);if(g.length)return g[0];e++}else if("top"==c)for(h=a.getAttribute("pid"),l=this._parts[h],m=a.parentNode,
f--;0<=h;){for(p=l.row;m;){for(;f>=p;){q='[ids~\x3d"R'+f+"C"+e+'"]';g=b.query(q,m);if(g.length)return g[0];f--}m=l.table?m.previousSibling:null;f=l.row+l.height-1}h--;0<=h&&(l=this._parts[h],m=l.table?l.node.lastChild:l.node,f=l.row+l.height-1)}else if("bottom"==c)for(h=a.getAttribute("pid"),l=this._parts[h],m=a.parentNode,f+=parseInt(a.getAttribute("rcnt"));h<this._parts.length;){for(p=l.row+l.height-1;m;){for(;f<=p;){q='[ids~\x3d"R'+f+"C"+e+'"]';g=b.query(q,m);if(g.length)return g[0];f++}m=l.table?
m.nextSibling:null;f=l.row}h++;h<this._parts.length&&(l=this._parts[h],m=l.table?l.node.firstChild:l.node,f=l.row)}return null},performConfirmation:function(a,c){this.modified?(new parus.confirmationDialog({message:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0412\u0430\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f?",onShow:function(){c&&(this.cancelButton.domNode.style.display="",this.noButton.onClick=b.hitch(this,
function(){a&&a();this.close()}))},onApply:b.hitch(this,function(){"2"==this.useHistory?(new parus.confirmationDialog({message:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439?",onApply:b.hitch(this,function(){this.saveHistory(b.hitch(this,function(){this.saveValues(!1,a)}));return!0}),onClose:b.hitch(this,function(e){e.applied||this.saveValues(!1,a)})})).show():"1"==this.useHistory?this.saveHistory(b.hitch(this,
function(){this.saveValues(!1,a)})):this.saveValues(!1,a);return!0})})).show():a()},recalculate:function(){this.performConfirmation(b.hitch(this,function(){var a={noGrid:!0,onClose:b.hitch(this,function(){c.applied&&b.fadeOut({node:this.domNode,onEnd:b.hitch(this,function(){this.refreshTemplate()})}).play()})};this.subreport?b.mixin(a,{rn:this.subreport,isSubReport:!0}):b.mixin(a,{rn:this.report,isSubReport:!1});var c=new parus.balanceReportRecalculateValuesDialog(a);c.show()}),!0)},downloadExcel:function(a,
c){this.performConfirmation(b.hitch(this,function(){setTimeout(b.hitch(this,function(){parus.balance.downloadExcelWorkBook(this.section?"BalanceSubReports":"BalanceReports",this.report,this.section?this.subreport:null,this.template,a,c)}),100)}),!0)},createPopupMenu:function(){var a=new t.Menu({"class":"balanceMenu",preAction:b.hitch(this,function(){this.editing&&this.editing.cancelValue&&this.editing.cancelValue()}),_openMyself:b.hitch(this,function(e){this.editing&&this.editing.cancelValue&&this.editing.cancelValue();
for(var f=e.target;f&&f.getAttribute&&!f.getAttribute("cid");)f=f.parentNode;f&&f.getAttribute&&(this.selectCell(f),t.Menu.prototype._openMyself.apply(a,arguments))})});a.addChild(new t.MenuItem({label:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f",defaultIcon:"PCfloppyCustomIcon",disabled:this.readonly,onClick:b.hitch(this,function(){var e=b.hitch(this,function(){parus.parus8.notificationMessage("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b.")});
"2"==this.useHistory?(new parus.confirmationDialog({message:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439?",onApply:b.hitch(this,function(){this.saveHistory(b.hitch(this,function(){this.saveValues(!1,e)}));return!0}),onClose:b.hitch(this,function(f){f.applied||this.saveValues(!1,e)})})).show():"1"==this.useHistory?this.saveHistory(b.hitch(this,function(){this.saveValues(!1,e)})):this.saveValues(!1,
e)})}));"1"==this.useHistory&&a.addChild(new t.MenuItem({label:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439",disabled:this.readonly,onClick:b.hitch(this,function(){this.saveHistory(b.hitch(this,function(){parus.parus8.notificationMessage("\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430.")}))})}));
0==this.kind&&(a.addChild(new t.MenuSeparator),a.addChild(new t.MenuItem({label:"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c...",defaultIcon:"PCcalculator2CustomIcon",disabled:this.readonly,onClick:b.hitch(this,this.recalculate)})));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c...",defaultIcon:"PCCheckCustomIcon",onClick:b.hitch(this,this.checkValues)}));a.addChild(new t.MenuItem({label:"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438...",
onClick:b.hitch(this,this.checkReport)}));a.addChild(new t.MenuSeparator);var c=new t.Menu({"class":"balanceMenu"});c.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",disabled:this.readonly,onClick:b.hitch(this,function(){if(this._lastClicked){var e=this._lastClicked.getAttribute("iid"),f=this._lastClicked.getAttribute("tid"),g=this._lastClicked.getAttribute("clid");e?(e={INDEXRN:e},f&&b.mixin(e,{CLONERN:g,TABLERN:f}),this.createRemark(e)):parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \x3cbr/\x3e\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u0438\u0435.")}})}));
c.addChild(new t.MenuItem({label:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c...",onClick:b.hitch(this,this.indexRemarks)}));c.addChild(new t.MenuItem({label:"\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c",onClick:b.hitch(this,this.showRemarksPopups)}));c.addChild(new t.MenuItem({label:"\u0421\u043a\u0440\u044b\u0442\u044c",onClick:b.hitch(this,this.hideRemarksPopups)}));a.addChild(new t.PopupMenuItem({label:"\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f",
popup:c}));a.addChild(new t.MenuSeparator);c=new t.Menu({"class":"balanceMenu"});"0"==this.direction?(c.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443",defaultIcon:"PCHardwareadaltCustomIcon",disabled:this.readonly,onClick:b.hitch(this,this.addClone)})),c.addChild(new t.MenuItem({label:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443",defaultIcon:"PCcopyCustomIcon",disabled:this.readonly,
onClick:b.hitch(this,this.duplicateClone)})),c.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443",defaultIcon:"PCreduceCustomIcon",disabled:this.readonly,onClick:b.hitch(this,this.deleteClone)})),c.addChild(new t.MenuSeparator),c.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443 \u0441\u0442\u0440\u043e\u043a...",disabled:this.readonly,onClick:b.hitch(this,this.addClones)})),
c.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443 \u0441\u0442\u0440\u043e\u043a...",disabled:this.readonly,onClick:b.hitch(this,this.deleteClones)}))):(c.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446",defaultIcon:"PCHardwareadaltCustomIcon",disabled:this.readonly,onClick:b.hitch(this,this.addClone)})),c.addChild(new t.MenuItem({label:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446",
defaultIcon:"PCcopyCustomIcon",disabled:this.readonly,onClick:b.hitch(this,this.duplicateClone)})),c.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446",defaultIcon:"PCreduceCustomIcon",disabled:this.readonly,onClick:b.hitch(this,this.deleteClone)})),c.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432...",disabled:this.readonly,
onClick:b.hitch(this,this.addClones)})));a.addChild(new t.PopupMenuItem({label:"\u0422\u0430\u0431\u043b\u0438\u0446\u0430",popup:c}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f...",defaultIcon:"PCsherlockCustomIcon",onClick:b.hitch(this,this.indexCons)}));a.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e...",
defaultIcon:"PCDefaultappsCustomIcon",onClick:b.hitch(this,this.addToConsComparation)}));a.addChild(new t.MenuItem({label:"\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443...",onClick:b.hitch(this,this.addTemplateToConsComparation)}));this._checkConsComparationMenuItem=new t.MenuItem({label:"\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439...",
defaultIcon:"PCwifiCustomIcon",onClick:b.hitch(this,this.consComparation)});a.addChild(this._checkConsComparationMenuItem);a.addChild(new t.MenuItem({label:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f...",onClick:b.hitch(this,this.clearConsComparation)}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 Excel...",
defaultIcon:"PCxlsCustomIcon",onClick:b.hitch(this,this.downloadExcel,"xls",0)}));a.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF...",onClick:b.hitch(this,this.downloadExcel,"pdf",null)}));a.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML...",onClick:b.hitch(this,this.downloadExcel,"html",null)}));a.addChild(new t.MenuSeparator);
a.addChild(new t.MenuItem({label:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",defaultIcon:"PCisyncCustomIcon",onClick:b.hitch(this,this.reload)}));a.addChild(new t.MenuItem({label:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442...",onClick:b.hitch(this,this.chooseTemplate)}));c=new t.Menu({"class":"balanceMenu"});c.addChild(new t.MenuItem({label:"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c",onClick:b.hitch(this,function(){this.changeZoom(1)})}));
c.addChild(new t.MenuItem({label:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c",onClick:b.hitch(this,function(){this.changeZoom(-1)})}));c.addChild(new t.MenuSeparator);c.addChild(new t.MenuItem({label:"100%",onClick:b.hitch(this,function(){this.changeZoom(0)})}));100!=this.defaultZoom&&c.addChild(new t.MenuItem({label:"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e ("+this.defaultZoom+"%)",onClick:b.hitch(this,function(){this.zoom=this.defaultZoom/100;this._zoomChanged()})}));
c.addChild(new t.MenuItem({label:"\u0417\u0430\u0434\u0430\u0442\u044c...",onClick:b.hitch(this,function(){var e=new parus.balanceZoomDialog({onShow:b.hitch(this,function(){e.zoomEdit.attr("value",100*this.zoom)}),onApply:b.hitch(this,function(){this.zoom=e.zoomEdit.attr("value")/100;this._zoomChanged();return!0})});e.show()})}));a.addChild(new t.MenuSeparator);a.addChild(new t.PopupMenuItem({label:"\u041c\u0430\u0441\u0448\u0442\u0430\u0431",popup:c}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0431\u0443\u0444\u0435\u0440",
onClick:b.hitch(this,function(){this.copySelection()})}));a.addChild(new t.MenuItem({label:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u0431\u0443\u0444\u0435\u0440\u0430",disabled:this.readonly,onClick:b.hitch(this,function(){parus.parus8._internalClipboard?this._lastClicked?this._doPasteTexts(this._lastClicked,parus.parus8._internalClipboard):parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u044f\u0447\u0435\u0439\u043a\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0431\u0443\u0444\u0435\u0440\u0430."):
parus.parus8.errorMessage('\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043a\u0430\u043a\u0438\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u044f\u0447\u0435\u0439\u043a\u0438.\x3cbr/\x3e\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0449\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u043c\u0443 \u0443\u0433\u043b\u0443 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0443 Ctrl,\x3cbr/\x3e\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \x3cbr/\x3e"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0431\u0443\u0444\u0435\u0440"')})}));
a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438...",onClick:b.hitch(this,function(){parus.balance.executeSettings(null,a,this.declaredClass+this.kind,null,[{title:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u0438\u0442\u043e\u0433\u043e\u0432 \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u0430",id:"showGutter",
get:function(){return parus.balance.showTemplateGutter},set:function(e){parus.balance.showTemplateGutter=e;e=parus.userdata.get("parus.balance.primaryMasterGrid");e.additions.showGutter=parus.balance.showTemplateGutter;parus.userdata.set("parus.balance.primaryMasterGrid",e)}}])})}));a.startup();return a},copySelection:function(){var a=[];b.query(".templateGridSelectedCellBorder,.templateGridActiveCellBorder",this.templateNode).forEach(b.hitch(this,function(f){var g=f.getAttribute("clid"),h=/^R(\d+)C(\d+)$/g.exec(f.getAttribute("cid")),
l=Number(h[1]);h=Number(h[2]);a[g||0]||(a[g||0]=[]);a[g||0][l]||(a[g||0][l]=[]);a[g||0][l][h]=parus.parus8.getTextContent(this.getValueNode(f)||f)}));var c=[];b.forEach(a,function(f){f&&b.forEach(f,function(g){if(g){var h=[];b.forEach(g,function(l){void 0!=l&&h.push(l)});h.length&&c.push(h)}})});parus.parus8._internalClipboard=c.length?c:null;var e=b.map(c,function(f){return b.map(f,function(g){return g}).join("\t")}).join("\n");this.clipboardNode.value=e;this.clipboardNode.select();t.focus(this.clipboardNode);
try{document.execCommand("copy")}catch(f){}t.focus(this.focusNode)},_doPasteTexts:function(a,c){var e=this,f=a,g=!1;b.forEach(c,function(h){if(f){var l=f;b.forEach(h,function(m){if(l){var p=e.__staticValuesIndex[l.getAttribute("uid")];p&&p.canEdit&&(m=b.trim(m),e.setCellText(p.node,p.valueNode,parus.parus8.externalStringToValue(m,p.dataType)),p.modified=!0,p.valueChanged(p.id),g=!0);l=e._neighbor(l,"right")}});f=e._neighbor(f,"bottom")}});g&&(e.modified=!0,e.onModified())},indexRemarks:function(){if(this._lastClicked){var a=
this._lastClicked.getAttribute("iid"),c=this._lastClicked.getAttribute("tid"),e=this._lastClicked.getAttribute("clid");a?(a={INDEXRN:a},c&&b.mixin(a,{CLONERN:e,TABLERN:c}),(new parus.balanceRemarksDialog({pane:this,store:this._remarksStore,queryInfo:a,readonly:this.readonly})).show()):parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \x3cbr/\x3e\u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c.")}},
hideRemarksPopups:function(){b.query("[rid\x3d'h']",this.templateNode).orphan();this.remarksShown=!1},showRemarksPopups:function(){this.hideRemarksPopups();var a={};this._gutterLevels&&b.forEach(this._gutterLevels,function(m){m._expand()});this._remarksStore.forEach(b.hitch(this,function(m,p){var r=m.getValue(p,"INDEXRN");m.getValue(p,"CLONERN")&&(r=r+";"+m.getValue(p,"CLONERN"));m.getValue(p,"TABLERN")&&(r=r+";"+m.getValue(p,"TABLERN"));var w=null;if(m.getValue(p,"TABLERN")){var x=this._tables.byKey[m.getValue(p,
"TABLERN")];if(!x)return;x=x.clones.byKey[m.getValue(p,"CLONERN")];if(!x)return;x=x._staticValues.byKey[m.getValue(p,"INDEXRN")]}else x=this._staticValues.byKey[m.getValue(p,"INDEXRN")];x&&(w=x.node);w&&(a[r]={cell:w,params:p})}),!0);var c=b.coords(this.templateNode),e;for(e in a){for(var f=a[e].params,g=a[e].cell,h=b.coords(g);"w"!=g.getAttribute("rid");){g=g.parentNode;var l=b.coords(g);h.t+=l.t;h.l+=l.l}f=b.place('\x3cdiv rid\x3d"h" hid\x3d"'+e+'" style\x3d"z-index:50;cursor: pointer;" onclick\x3d"parus.templateGridPane.remarkToTop(this)" class\x3d"dijitPopup dijitTooltipDialogPopup"\x3e\x3cdiv class\x3d"dijitTooltipDialog dijitTooltipBelow dijitTooltipABRight"\x3e\x3cdiv class\x3d"dijitTooltipContainer templateHintContainer"\x3e\x3cdiv style\x3d"font-size: 80%;font-weight: 600;border-bottom: 1px solid black;"\x3e'+
this._remarksStore.getValue(f,"NAME")+" "+this._remarksStore.getValue(f,"CHANGE_DATE")+'\x3c/div\x3e\x3cdiv style\x3d"margin-top:5px;font-weight:700;"\x3e'+this._remarksStore.getValue(f,"NOTE")+'\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dijitTooltipConnector templateHintConnector"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',this.templateNode,"last");g=b.coords(f);b.style(f,{position:"absolute",left:h.l-c.l+h.w-g.w+"px",top:h.t-c.t+h.h+"px"})}this.remarksShown=!0},clearRemarks:function(a,c){if(parus.database.execute("ClearRemarksAccess",
{SUBREPORT:this.subreport||"0",REPORT:this.report||"0",TABLERN:a.TABLERN||"0"})){var e=a.INDEXRN;a.CLONERN&&(e=e+";"+a.CLONERN);a.TABLERN&&(e=e+";"+a.TABLERN);this._remarksStore.remove(function(g){var h=parus.parus8.nodeField(g,"INDEXRN");parus.parus8.nodeField(g,"CLONERN")&&(h=h+";"+parus.parus8.nodeField(g,"CLONERN"));parus.parus8.nodeField(g,"TABLERN")&&(h=h+";"+parus.parus8.nodeField(g,"TABLERN"));return h==e});var f={INDEXRN:a.INDEXRN};a.CLONERN&&b.mixin(f,{CLONERN:a.CLONERN});a.TABLERN&&b.mixin(f,
{TABLERN:a.TABLERN});b.query("[hid\x3d"+e+"]",this.templateNode).orphan();this.applyRemarkColor(f);c&&c();this.modified=!0;this.onModified()}},createRemark:function(a,c){if(parus.database.execute("AddRemarkAccess",{SUBREPORT:this.subreport||"0",REPORT:this.report||"0",TABLERN:a.TABLERN||"0"})){var e=new parus.balanceRemarkDialog({onShow:b.hitch(this,function(){e.noteEdit.attr("value","");a.NOTE&&e.noteEdit.attr("value",a.NOTE);a.CODE&&e.statusEdit.attr("value",a.CODE)}),onApply:b.hitch(this,function(){var f=
parus.parus8.rowNodes(parus.database.execute("BalanceRemarkInfo",{CODE:e.statusEdit.attr("value"),REPORT:this.report}))[0],g=0,h=a.INDEXRN;a.CLONERN&&(h=h+";"+a.CLONERN);a.TABLERN&&(h=h+";"+a.TABLERN);b.forEach(this._remarksStore._data,function(l){var m=parus.parus8.nodeField(l,"INDEXRN");parus.parus8.nodeField(l,"CLONERN")&&(m=m+";"+parus.parus8.nodeField(l,"CLONERN"));parus.parus8.nodeField(l,"TABLERN")&&(m=m+";"+parus.parus8.nodeField(l,"TABLERN"));h==m&&(l=parseInt(parus.parus8.nodeField(l,"NUMB")),
l>g&&(g=l))});b.mixin(a,{NUMB:++g,CHANGE_DATE:parus.parus8.nodeField(f,"CHANGE_DATE"),NAME:parus.parus8.nodeField(f,"NAME"),COLOR:parus.parus8.nodeField(f,"COLOR"),NOTE:e.noteEdit.attr("value"),CODE:e.statusEdit.attr("value"),_NEW:!0});this._remarksStore.add(a);this.applyRemarkColor(a);this.remarksShown&&this.showRemarksPopups();c&&c();this.modified=!0;this.onModified();return!0})});e.show()}},applyRemarkColor:function(a){var c=null;if(parus.parus8.nodeField(a,"TABLERN")){var e=this._tables.byKey[parus.parus8.nodeField(a,
"TABLERN")];if(!e)return;e=e.clones.byKey[parus.parus8.nodeField(a,"CLONERN")];if(!e)return;e=e._staticValues.byKey[parus.parus8.nodeField(a,"INDEXRN")]}else e=this._staticValues.byKey[parus.parus8.nodeField(a,"INDEXRN")];e&&(c=e.node);c&&(parus.parus8.nodeField(a,"COLOR")?("8"==b.isIE?c.getAttribute("no-remark-color")||c.setAttribute("no-remark-color",c.style.backgroundColor||"inherit"):c.hasAttribute("no-remark-color")||c.setAttribute("no-remark-color",c.style.backgroundColor),c.style.backgroundColor=
parus.parus8.colorToCssColor(parus.parus8.nodeField(a,"COLOR"))):c.style.backgroundColor=c.getAttribute("no-remark-color"))},consComparation:function(){parus.parus8.consComparationData?parus.parus8.showIndexConsComparationItems({onClose:b.hitch(this,this._checkConsComparationIcon)}):parus.parus8.errorMessage("\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438, \u0441\u043e\u0441\u0442\u0430\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c.")},
addTemplateToConsComparation:function(){var a=new parus.balanceIndexConsComparationTemplatesDialog({onApply:b.hitch(this,function(){b.forEach(a.templatesGrid.selection.getSelected(),function(c){parus.parus8.addIndexConsComparationTemplate(c)});parus.parus8.consComparationDataModified();this._checkConsComparationIcon();parus.parus8.consComparationData&&parus.parus8.showIndexConsComparationItems({onClose:b.hitch(this,this._checkConsComparationIcon)});return!0})});a.show()},addToConsComparation:function(){if(this._lastClicked){var a=
this._lastClicked.getAttribute("iid"),c=this._lastClicked.getAttribute("tid"),e=this._lastClicked.getAttribute("clid");if(a){var f=parus.parus8.rowNodes(parus.database.execute("IndexConsInfo",{REPORT:this.report,SUBREPORT:this.subreport,INDEX:a,TABLE:c,ROWID:e}))[0];parus.parus8.consComparationData=parus.parus8.consComparationData||{dataType:parus.parus8.nodeField(f,"DATATYPE"),result:parus.parus8.nodeField(f,"RESULT"),intPart:parus.parus8.nodeField(f,"INTPART"),fracPart:parus.parus8.nodeField(f,
"FRACPART"),items:[]};parus.parus8.consComparationData.intPart=Math.max(parus.parus8.consComparationData.intPart||0,parus.parus8.nodeField(f,"INTPART")||0);parus.parus8.consComparationData.fracPart=Math.max(parus.parus8.consComparationData.fracPart||0,parus.parus8.nodeField(f,"FRACPART")||0);parus.parus8.consComparationData.dataType!=parus.parus8.nodeField(f,"DATATYPE")?parus.parus8.errorMessage("\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043a \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c."):
parus.parus8.consComparationData.result!=parus.parus8.nodeField(f,"RESULT")?parus.parus8.errorMessage("\u0422\u0438\u043f \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043a \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c."):
(parus.parus8.addIndexConsComparationItem({REPORT:this.report,SUBREPORT:this.subreport,INDEX:a,TABLE:c,ROWID:e,TITLE:parus.parus8.nodeField(f,"TITLE")}),this._checkConsComparationIcon())}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0441\u043e\u0441\u0442\u0430\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \x3cbr/\x3e\u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e.")}},
clearConsComparation:function(){(new parus.confirmationDialog({message:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u0430?",onApply:b.hitch(this,function(){parus.parus8.consComparationData=null;parus.parus8.consComparationDataModified();this._checkConsComparationIcon();return!0})})).show()},
indexCons:function(){if(this._lastClicked){var a=this._lastClicked.getAttribute("iid"),c=this._lastClicked.getAttribute("tid"),e=this._lastClicked.getAttribute("clid");if(a){var f={REPORT:this.report,SUBREPORT:this.subreport,INDEX:a,TABLE:c,ROWID:e},g=parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("IndexConsIDData",{REPORT:this.report,SUBREPORT:this.subreport,INDEX:a,TABLE:c,ROWID:e}))[0],"clobDATA");parus.database.execute("IndexCons",f,b.hitch(this,function(h){var l=h.documentElement.childNodes[0].childNodes[0].childNodes.length?
parus.parus8.rowNodes(h.documentElement.childNodes[0].childNodes[0].childNodes[0]):[];if(0==l.length)parus.parus8.errorMessage("\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u0430.");else{var m=new parus.balanceIndexConsDialog({intPart:h.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[0].firstChild?h.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[0].firstChild.nodeValue:
null,fracPart:h.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[1].firstChild?h.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[1].firstChild.nodeValue:null,consItems:l,queryConditions:f,description:h.documentElement.childNodes[0].childNodes[1].firstChild.nodeValue,onApply:b.hitch(this,function(){b.forEach(m.consItemsGrid.selection.getSelected(),b.hitch(this,function(p){var r=m.consItemsGrid.store.getValue(p,"REPORT",""),w=m.consItemsGrid.store.getValue(p,"SUBREPORT",
"");if(this.autonomousMode&&!parus.parus8._embeddedMode)parus.parus8._themeEditorMode?alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e."):window.open(b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([r,
w,this.template]),"_blank");else if(parus.parus8._embeddedMode){p=b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([r,w,this.template]);var x=parus.balance.describeReport(r,w,this.template,null,null,null,null,0);[r,w,+new Date].join("_");parus.embeddedMode.openTab(null,x,p)}else{var A=g;A=A.replace(/(<AGENT>)(.*)(<\/AGENT>)/,"$1"+(m.consItemsGrid.store.getValue(p,"AGNABBR","")||"")+"$3");A=A.replace(/(<KIND>)(.*)(<\/KIND>)/,
"$1"+(m.consItemsGrid.store.getValue(p,"KIND","")||"")+"$3");A=A.replace(/(<SECTION>)(.*)(<\/SECTION>)/,"$1"+(m.consItemsGrid.store.getValue(p,"CODE","")||"")+"$3");parus.balance.showReportValues(r,w,this.reportDate,this.formCode,m.consItemsGrid.store.getValue(p,"AGNABBR",""),m.consItemsGrid.store.getValue(p,"CODE",""),this.template,this.direction,m.consItemsGrid.store.getValue(p,"KIND",""),m.consItemsGrid.store.getValue(p,"AGENT",""),function(B){var D=parus.parus8.rowNodes(parus.database.execute("IndexConsDataID",
{DATA:A}))[0];parus.templateGridPane.followLogMessage(B.id,parus.parus8.nodeField(D,"INDEX"),parus.parus8.nodeField(D,"TABLE"),parus.parus8.nodeField(D,"ROWID"),parus.parus8.nodeField(D,"INDEX"))})}}));return!0})});m.show()}}))}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0441\u043e\u0441\u0442\u0430\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \x3cbr/\x3e\u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c.")}},
deleteClone:function(){if(this._lastClicked)if(this._lastClicked.getAttribute("tid")){var a=this._tables.byKey[this._lastClicked.getAttribute("tid")];if(a)if(a.readOnly)parus.parus8.errorMessage("\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442.\u043a. \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430 \u043e\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439");
else if(this._lastClicked.getAttribute("clid")){var c=a.clones.byKey[this._lastClicked.getAttribute("clid")];c?(this._expandTable(a),c.node.parentNode.removeChild(c.node),c.size&&(this.shiftClones(a,c.commonIndex,-c.size),this.shiftParts(c.table.part,-c.size)),c.table.offsetSize-=c.size,c.owner.clones.splice(b.indexOf(c.owner.clones,c),1),delete c.owner.clones.byKey[c.rn],a.clones.length||a.placeClone(null,!0,!1),this.valueChanged(),this.modified=!0,this.onModified()):parus.parus8.errorMessage("\u042d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f.")}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439\x3cbr/\x3e\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446.");
else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439\x3cbr/\x3e\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446.")}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439\x3cbr/\x3e\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446.")},
__deferredAttrs:null,__fireDefferedAttrs:function(){if(this.__deferredAttrs){for(var a in this.__deferredAttrs){var c=this.__deferredAttrs[a];if(c.h||c.w){var e={};c.h&&(e.height=c.h+"px");c.w&&(e.width=c.w+"px");b.style(c.cell,e)}}for(a in this.__deferredAttrs)if(c=this.__deferredAttrs[a],c.dx||c.dy||c.dh||c.dw){e={};c.dx&&(e.left=parus.parus8.styleSize(c.cell.style.left)+c.dx+"px");c.dy&&(e.top=parus.parus8.styleSize(c.cell.style.top)+c.dy+"px");if(c.dh){var f=parus.parus8.styleSize(c.cell.style.height);
f||(f=b.marginBox(c.cell).h);e.height=f+c.dh+"px"}c.dw&&(f=parus.parus8.styleSize(c.cell.style.width),f||(f=b.marginBox(c.cell).w),e.width=f+c.dw+"px");b.style(c.cell,e)}this.__deferredAttrs=null}},__setDefferedAttr:function(a,c,e){this.__deferredAttrs||(this.__deferredAttrs={});var f=a.getAttribute("uid");a=this.__deferredAttrs[f]||{dx:0,dy:0,dh:0,dw:0,h:0,w:0,cell:a};a[c]="w"==c||"h"==c?e:a[c]+e;this.__deferredAttrs[f]=a},shiftClones:function(a,c,e,f){if(e){var g=b.hitch(this,f?"0"==this.direction?
function(l){this.__setDefferedAttr(l,"dy",e)}:function(l){this.__setDefferedAttr(l,"dx",e)}:"0"==this.direction?function(l){b.style(l,{top:parus.parus8.styleSize(l.style.top)+e+"px"})}:function(l){b.style(l,{left:parus.parus8.styleSize(l.style.left)+e+"px"})}),h;b.forEach(a.clones,function(l){l.commonIndex==c?h=l:l.commonIndex>c&&g(l.node)});h||b.forEach(a.totals,function(l){b.forEach(l.clones,function(m){m.commonIndex==c&&(h=m)})});b.forEach(a.totals,function(l){b.forEach(l.clones,function(m){m.commonIndex>
c?(g(m.node),m.gutterTreeNode&&(0<=b.indexOf(m.treeChildren||[],h)?m.gutterTreeNode.height+=e:m.gutterTreeNode.top+=e,m.gutterTreeNode._resize())):m.gutterTreeNode&&0<=b.indexOf(m.treeChildren||[],h)&&(m.gutterTreeNode.height+=e,m.gutterTreeNode._resize())})})}},duplicateClone:function(){if(this._lastClicked)if(this._lastClicked.getAttribute("tid")){var a=this._tables.byKey[this._lastClicked.getAttribute("tid")];if(a)if(a.readOnly)parus.parus8.errorMessage("\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442.\u043a. \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430 \u043e\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439");
else if(this._lastClicked.getAttribute("clid")){var c=a.clones.byKey[this._lastClicked.getAttribute("clid")];c?(this._expandTable(a),a=a.placeClone(null,!1,!0),b.forEach(a._staticValues,b.hitch(this,function(e,f){e.valueNode.innerHTML=c._staticValues[f].valueNode.innerHTML})),this.valueChanged(),this.selectCell(a.cells[0]),this.focusTemplate(),this.modified=!0,this.onModified()):parus.parus8.errorMessage("\u042d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f.")}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446, \u043a\u043e\u0442\u043e\u0440\u044b\u0439\x3cbr/\x3e\u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c.");
else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u043a\u043e\u0442\u043e\u0440\u043e\u0439\x3cbr/\x3e\u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c.")}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u043a\u043e\u0442\u043e\u0440\u043e\u0439\x3cbr/\x3e\u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c.")},
addClone:function(){if(this._lastClicked)if(this._lastClicked.getAttribute("tid")){var a=this._tables.byKey[this._lastClicked.getAttribute("tid")];a?a.readOnly?parus.parus8.errorMessage("\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442.\u043a. \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430 \u043e\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439"):
(this._expandTable(a),this.selectCell(a.placeClone(null,!1,!0).cells[0]),this.focusTemplate(),this.valueChanged(),this.modified=!0,this.onModified()):parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \x3cbr/\x3e\u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446.")}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \x3cbr/\x3e\u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446.")},
addClones:function(){if(this._lastClicked)if(this._lastClicked.getAttribute("tid")){var a=this._tables.byKey[this._lastClicked.getAttribute("tid")];if(a)if(a.readOnly)parus.parus8.errorMessage("\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442.\u043a. \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u0430 \u043e\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439");
else{var c=new parus.balanceRowCountDialog({onApply:b.hitch(this,function(){this._expandTable(a);for(var e=1;e<=c.rowCountEdit.value;e++)a.placeClone(null,!1,!0);this.valueChanged();this.selectCell(a.clones[a.clones.length-1].cells[0]);this.focusTemplate();this.modified=!0;this.onModified();return!0})});c.show()}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \x3cbr/\x3e\u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u044b.")}else parus.parus8.errorMessage("\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \x3cbr/\x3e\u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u043b\u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u044b.")},
deleteClones:function(){var a=[];b.query(".templateGridSelectedCellBorder,.templateGridActiveCellBorder",this.templateNode).forEach(b.hitch(this,function(c){var e=c.getAttribute("tid");e&&(c=c.getAttribute("clid"))&&(e=this._tables.byKey[e].clones.byKey[c])&&0>b.indexOf(a,e)&&a.push(e)}));a.length?(b.forEach(a,b.hitch(this,function(c){var e=c.table;this._expandTable(e);c.node.parentNode.removeChild(c.node);c.size&&(this.shiftClones(e,c.commonIndex,-c.size),this.shiftParts(c.table.part,-c.size));c.table.offsetSize-=
c.size;c.owner.clones.splice(b.indexOf(c.owner.clones,c),1);delete c.owner.clones.byKey[c.rn];e.clones.length||e.placeClone(null,!0,!1)})),this.valueChanged(),this.modified=!0,this.onModified()):parus.parus8.errorMessage("\u0412\u044b\u0434\u0435\u043b\u0438\u0442\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0443\u044e \u0443\u0434\u0430\u043b\u044f\u0435\u043c\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.\x3cbr/\x3e\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0449\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u043c\u0443 \u0443\u0433\u043b\u0443 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0443 Ctrl.")},
checkValues:function(){this.performConfirmation(b.hitch(this,function(){var a={grid:null,kind:this.kind,isSubReport:this.section?1:0,rn:[this.section?this.subreport:this.report],formedRn:[parus.parus8.nodeField(this.info,"EDITION")],reportRn:[this.report],title:(0==this.kind?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"};
this.autonomousMode&&b.mixin(a,{showProtocol:function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");else{parus.parus8.registerAction();var e=b.moduleUrl("parus","checkreport.html").toString()+"?loggedUserHandler\x3d"+
parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([c.kind,c.isSubReport,c.showResultReportCheckBox.checked?1:0,c.rn[0],c.checks||""]);window.open(e,"_blank")}}});var c=new parus.balanceCheckReportDialog(a);c.show()}),!0)},checkReport:function(){if(this.autonomousMode&&!parus.parus8._embeddedMode)if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var a=b.moduleUrl("parus","checkreport.html").toString()+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([this.kind,this.section?1:0,0,this.section?this.subreport:this.report,""]);window.open(a,"_blank");parus.parus8.registerAction()}else parus.balance.balanceShowCheckReportProtocol(null,this.kind,this.subreport,!1,[this.subreport||this.report])},getCell:function(a){return this.pane._cells[a]},resolveCellIdent:function(a){var c=null;b.forEach(this._staticValues,
b.hitch(this,function(e){"ID_"+e.balanceIndex==a&&(c=e)}));return c},loadDiagrams:function(){var a;b.query("[rid\x3d's']",this.templateNode).filter("[it\x3d'3']").forEach(b.hitch(this,function(c){var e=b.hitch(this,function(){this.performConfirmation(b.hitch(this,function(){var h=b.connect(c,"onload",b.hitch(this,function(){b.disconnect(h);c.src=parus.database.getDiagramUrl(this.template,this.report,this.subreport,c.getAttribute("idx"));a&&(a.parentNode.removeChild(a),a=null);b.connect(c,"ondblclick",
e);f.bindDomNode(c)}));c.src="../dojo/dojo/resources/blank.gif"}),!0)}),f=new t.Menu({"class":"balanceMenu"});f.addChild(new t.MenuItem({label:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443",onClick:e}));f.startup();a=document.createElement("div");b.style(a,{position:c.style.position,left:c.style.left,top:c.style.top,width:c.style.width,height:c.style.height,zIndex:c.style.zIndex+1,border:"1px solid black",opacity:"0.5",backgroundColor:"#A0A0A0",
font:"bold 18px Tahoma, Verdana, sans-serif"});a.align="center";var g=a.appendChild(document.createElement("div"));b.style(g,{color:"black",margin:"20px"});g.appendChild(document.createTextNode("\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u0449\u0435\u043b\u0447\u043a\u043e\u043c."));c.parentNode.appendChild(a);b.connect(a,"ondblclick",e);f.bindDomNode(a)}))},getCellValue:function(a,c,e,f){if(a&&
c){a=this.getCell("R"+a+"C"+c);var g=this.getValueNode(a)}else e&&(a=this.resolveCellIdent(e))&&(g=a.valueNode,a=a.node);g=parus.parus8.getTextContent(g);return f?g:b.number.parse(g)||0},getCellNode:function(a,c,e){if(a&&c)var f=this.getCell("R"+a+"C"+c);else e&&(a=this.resolveCellIdent(e))&&(f=a.node);return f},onLoad:function(){this.progressIndicate("\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0441\u044f....");var a=[];this.headingContentPane&&(this.headingContentPane.actionsButton&&
this.headingContentPane.actionsButton.destroyRecursive(),this.headingContentPane.toolbar&&this.headingContentPane.toolbar.destroyRecursive(),b.mixin(this.headingContentPane,{actionsButton:null,toolbar:null}));this._allValuesLoaded=!1;this._staticValues=[];this.__staticValuesIndex={};this._cells={};this._tables=[];b.mixin(this._tables,{byKey:{}});this._parts=[];this.gutterNode=this.templateNode=null;this._gutterLevels=[];b.query("[rid\x3d'w']",this.containerNode).forEach(b.hitch(this,function(p){this.templateNode?
(p.parentNode.removeChild(p),b.query("[cid]",p).forEach(function(r){r.removeAttribute("cid")}),a.push(p)):(this.templateNode=p,this.templateNode.setAttribute("uid",this._cellnums++))}));if(a.length){var c=this.templateNode.parentNode;c.removeChild(this.templateNode);c.style.height="100%";c.style.width="100%";var e=[];e.push('\x3cdiv dojoType\x3d"dijit.layout.TabContainer" style\x3d"width:100%;height:100%" tabPosition\x3d"bottom"\x3e');e.push('\x3cdiv class\x3d"balanceTemplateContentPaneContentOpaque" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442"\x3e');
e.push("\x3c/div\x3e");b.forEach(a,function(p){e.push('\x3cdiv class\x3d"balanceTemplateContentPaneContentOpaque" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"'+p.getAttribute("sheetname")+'"\x3e');e.push("\x3c/div\x3e")});e.push("\x3c/div\x3e");b.place(e.join(""),c,"only");c=b.parser.parse({rootNode:c,template:!0});c[1].containerNode.appendChild(this.templateNode);for(var f=2;f<c.length;f++)c[f].containerNode.appendChild(a[f-2])}if(this.templateNode){this.templateNode.style.border=
"1px solid #40407F";c=this.templateNode.getAttribute("moveAfterReturnDirection");this.moveAfterReturnDirection="left"==c?37:"right"==c?39:"up"==c?38:40;b.query("script",this.containerNode).forEach(b.hitch(this,function(p){b.mixin(this,b.fromJson(!b.isIE||10<=b.isIE?p.textContent:p.innerHTML))}));this.fixedCols&&this.fixedCols>=this.cols&&(this.fixedCols=0);this.fixedRows&&this.fixedRows>=this.rows&&(this.fixedRows=0);this.loadCells();if(this.onInit)this.onInit();var g,h,l,m;this.progressIndicate("\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f....");
(new b.DeferredList([parus.database.query("ReportValues",{TEMPLATE:this.template,REPORT:this.report,SUBREPORT:this.subreport},function(p){g=p}),parus.database.query("TemplateTables",{TEMPLATE:this.template},function(p){h=p}),parus.database.queryObject("TableValues",{TEMPLATE:this.template,REPORT:this.report,SUBREPORT:this.subreport},function(p){l=p}),parus.database.query("valuesRemarks",{TEMPLATE:this.template,REPORT:this.report,SUBREPORT:this.subreport},function(p){m=p}),parus.database.execute("GetReportInfo",
{REPORT:this.report,SUBREPORT:this.subreport,TEMPLATE:this.template},b.hitch(this,function(p){this.info=parus.parus8.rowNodes(p)[0];this.formCode=parus.parus8.nodeField(this.info,"FORM_CODE");this.agent=parus.parus8.nodeField(this.info,"AGENT");this.section=parus.parus8.nodeField(this.info,"SECTION");this.kind=parus.parus8.nodeField(this.info,"KIND");this.reportDate=parus.parus8.nodeField(this.info,"BDATE");this.direction=parus.parus8.nodeField(this.info,"DIRECT_TABLE");this.subreport=this.subreport||
parus.parus8.nodeField(this.info,"SUBREPORT_RN");this.username=parus.parus8.nodeField(this.info,"USERNAME");this.ignoreWarnings="1"==parus.parus8.nodeField(this.info,"IGNORE_WARNINGS");this.title||this.attr("title",parus.balance.describeReport(this.report,this.subreport,this.template,null,null,null,null,0))}))])).addCallback(b.hitch(this,function(){this.defaultZoom=this.defaultZoom||100;100!=this.defaultZoom&&(this.zoom=this.defaultZoom/100,this._zoomChanged());this.readonly="1"==parus.parus8.nodeField(this.info,
"FORCEREADONLY");this.useHistory=parus.parus8.nodeField(this.info,"USE_HISTORY");this.readonly&&!this.autonomousMode&&this.headingContentPane.containerNode.firstChild.appendChild(document.createTextNode(String.fromCharCode(160)+"(\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435)"));var p=this.createPopupMenu();parus.balance._createActionsButton(p,this.headingContentPane);p.bindDomNode(this.domNode);var r=parus.userdata.get(this.declaredClass+this.kind);r&&parus.gridSettingsDialog.mergeMenuSettings(p,
r.actionSettings,r.userProcsActions,r.userReportsActions,r.userAppsActions);this.progressIndicate("\u0413\u043e\u0442\u043e\u0432\u044f\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439....");this._monitorChanges=!0;this.loadStaticValues(g);this.progressIndicate("\u0413\u043e\u0442\u043e\u0432\u044f\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b....");this.loadTables(parus.xml.fromXml(h),l);this.loadDiagrams();
if(this.formulas&&(this.progressIndicate("\u0413\u043e\u0442\u043e\u0432\u044f\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u044b...."),b.mixin(this.formulas,new parus.templateGridPaneFormulasMixin),b.mixin(this.formulas,{pane:this,getCell:b.hitch(this,this.getCell),getCellValue:b.hitch(this,this.getCellValue),getCellNode:b.hitch(this,this.getCellNode),getValueNode:b.hitch(this,this.getValueNode),resolveCellIdent:b.hitch(this,this.resolveCellIdent)}),this.dependencies&&this.formulas.calcAll(this.dependencies),
this.formatConditions))for(var w in this.formatConditions)b.hitch(this.formulas,this.formatConditions[w])();this.templateNode.insertAdjacentHTML("beforeend","\x3cinput rid\x3d'f' type\x3d'checkbox' style\x3d'position: absolute;left:-150px;top:-150px'/\x3e");this.templateNode.insertAdjacentHTML("beforeend","\x3ctextarea rid\x3d'clp' style\x3d'position: absolute;left:-150px;top:-150px'/\x3e");this.focusNode=b.query("[rid\x3d'f']",this.templateNode)[0];this.clipboardNode=b.query("[rid\x3d'clp']",this.templateNode)[0];
p=this.domNode.parentNode.parentNode;(r=b.hasClass(p,"dijitHidden"))&&b.removeClass(p,"dijitHidden");if(!(6>=b.isIE))for(var x in this._changedCells)this.checkCellHeight(this._changedCells[x],null,!0,null,!0);this._monitorChanges=!1;this._changedCells=null;r&&b.addClass(p,"dijitHidden");this.progressIndicate("\u0413\u043e\u0442\u043e\u0432\u044f\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f....");this._remarksStore=new parus.gridData({persistent:!0,_data:parus.parus8.rowNodes(m)});
b.forEach(this._remarksStore._data,b.hitch(this,this.applyRemarkColor));this.remarksShown&&this.showRemarksPopups();this.progressIndicate("\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f....");this.__fireDefferedAttrs();!this.gutterNode&&this.gutterSize&&"0"==this.direction&&(this.gutterNode=document.createElement("div"),this.gutterNode.className="gutterPane",this.templateNode.parentNode.appendChild(this.gutterNode),
"0"==this.direction?(this.templateNode.style.left=this.gutterSize+1+"px",b.style(this.gutterNode,{width:this.gutterSize+"px",height:this.templateNode.style.height})):(this.templateNode.style.top=this.gutterSize+1+"px",b.style(this.gutterNode,{height:this.gutterSize+"px",width:this.templateNode.style.width})),setTimeout(b.hitch(this,this.buildGutterTree),100),this._forceScrollGutter=!!a.length);b.connect(this.focusNode,"onkeydown",this,this.keyDown);(this.fixedCols||this.fixedRows||this.gutterNode)&&
b.connect(this.templateNode.parentNode,"onscroll",this,this._doscroll);this.modified=!1;this.onModified();b.fadeIn({node:this.domNode,onEnd:b.hitch(this,function(){this._allValuesLoaded=!0;this.drawAllCanvas();this.progressIndicate();var A=b.query("[ids]",this.templateNode);A.length&&this.selectCell(A[0]);t.focus(this.focusNode);if(this.onDone)this.onDone(this);this.readonly&&parus.parus8.notificationMessage('\u041e\u0442\u0447\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 "\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f",\x3cbr/\x3e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443\u0442.',
b.hitch(this,function(){this.focusTemplate()}));this.focusTemplate()})}).play();return!0}))}else this.progressIndicate(),b.fadeIn({node:this.domNode}).play(),b.style(this.containerNode,{color:"red",fontSize:"200%",padding:"5px"})},buildGutterTree:function(){b.empty(this.gutterNode);b.forEach(this._gutterLevels,function(e){e.destroyRecursive()});this._gutterLevels=[];for(var a=0;a<this._maxTotalLevel+1;a++){var c=new parus.templateGridPane.gutterTreeLevel({level:a,pane:this},this.gutterNode.appendChild(document.createElement("div")));
this._gutterLevels.push(c)}b.forEach(this._tables,b.hitch(this,function(e){if(e.clones.length&&!e.clones[0].uninitialized){var f=new parus.templateGridPane.verticalGutterTreeNode({height:parus.parus8.styleSize(e.part.node.style.height),top:parus.parus8.styleSize(e.part.node.style.top),pane:this,table:e},this.gutterNode.appendChild(document.createElement("div")));e.gutterTreeNode=f;b.forEach(e.totals,b.hitch(this,function(g){b.forEach(g.clones,b.hitch(this,function(h){var l=h.treeChildren||[];if(l.length){var m=
h.size,p=parus.parus8.styleSize(h.node.style.top);b.forEach(l,function(r){m+=r.size;"0"==g.location&&(p-=r.size)});l=new parus.templateGridPane.verticalGutterTreeNode({height:m,top:p+parus.parus8.styleSize(h.part.node.style.top),left:20*g.level,pane:this,clone:h},this.gutterNode.appendChild(document.createElement("div")));h.gutterTreeNode=l}}))}))}}))},_doscroll:function(a){if(a=this.templateNode.parentNode){var c=this.zoom;if("0"==this.direction){if(this.gutterNode&&this._forceScrollGutter&&(this.gutterNode.style.top=
-a.scrollTop/c+"px"),this.gutterNode&&b.query("*.gutterLevelIndex",this.gutterNode).forEach(b.hitch(this,function(f){b.animateProperty({node:f,duration:200,properties:{top:{end:this.gutterNode.parentNode.scrollTop,unit:"px"}}}).play()})),this.fixedRows&&(this._parts[0].node.style.top=a.scrollTop/c+"px"),this.fixedCols){var e=parseInt(a.scrollLeft)/c;b.query("[fo]",this.containerNode).forEach(function(f){f.style.left=e+parseInt(f.getAttribute("fo"))+"px"})}}else this.fixedCols&&(this._parts[0].node.style.left=
a.scrollLeft/c+"px"),this.fixedRows&&(e=parseInt(a.scrollTop)/c,b.query("[fo]",this.containerNode).forEach(function(f){f.style.top=e+parseInt(f.getAttribute("fo"))+"px"}))}},_focusTemplateID:null,focusTemplate:function(){this._focusTemplateID&&clearTimeout(this._focusTemplateID);this._focusTemplateID=setTimeout(b.hitch(this,function(){if(!this.autonomousMode){var a=t.getEnclosingWidget(this.domNode.parentNode);if(a&&(a=t.getEnclosingWidget(a.domNode.parentNode))){var c=t.getEnclosingWidget(a.domNode.parentNode);
if(c&&c.selectedChildWidget!=a)return}}if(!this.editing&&(a=this.focusNode)&&a.focus)try{if(b.isFF){var e=this.containerNode.scrollTop;a.focus({preventScroll:!0});this.containerNode.scrollTop=e}else a.focus({preventScroll:!0})}catch(f){}}),100)},cellShiftedAddress:function(a){var c=this._parts[a.getAttribute("pid")],e=a.getAttribute("cid").toString().match(/^R(\d+)C(\d+)$/),f=0,g=0;if("0"==this.direction)if(g=e[2],b.forEach(this._parts,function(m){m.index<c.index&&(m.table?(b.forEach(m.table.clones,
function(p){f+=p.cellsize}),b.forEach(m.table.totals,function(p){b.forEach(p.clones,function(r){f+=r.cellsize})})):f+=m.height)}),c.table){var h=a.getAttribute("clid");a=a.getAttribute("ttid");var l=a==c.table.rn?c.table.clones.byKey[h]:c.table.totals.byKey[a].clones.byKey[h];h=a==c.table.rn?null:c.table.totals.byKey[a];b.forEach(c.table.clones,function(m){m.commonIndex<l.commonIndex&&(f+=m.cellsize)});b.forEach(c.table.totals,function(m){b.forEach(m.clones,function(p){p.commonIndex<l.commonIndex&&
(f+=p.cellsize)})});h?f+=e[1]-h.row+1:(b.forEach(c.table.totals,function(m){m.row<e[1]&&(f-=m.height)}),f+=e[1]-c.row+1)}else f+=e[1]-c.row+1;else f=e[1],b.forEach(this._parts,function(m){m.index<c.index&&(m.table?(b.forEach(m.table.clones,function(p){g+=p.cellsize}),b.forEach(m.table.totals,function(p){b.forEach(p.clones,function(r){g+=r.cellsize})})):g+=m.width)}),c.table?(h=a.getAttribute("clid"),a=a.getAttribute("ttid"),l=a==c.table.rn?c.table.clones.byKey[h]:c.table.totals.byKey[a].clones.byKey[h],
h=a==c.table.rn?null:c.table.totals.byKey[a],b.forEach(c.table.clones,function(m){m.commonIndex<l.commonIndex&&(g+=m.cellsize)}),b.forEach(c.table.totals,function(m){b.forEach(m.clones,function(p){p.commonIndex<l.commonIndex&&(g+=p.cellsize)})}),h?g+=e[2]-h.col+1:(b.forEach(c.table.totals,function(m){m.col<e[2]&&(g-=m.width)}),\u0441+=e[2]-c.col+1)):g+=e[2]-c.col+1;return{r:f,c:g}},_lastKeyEvent:null,keyDown:function(a){if((!this._lastKeyEvent||this._lastKeyEvent!=a.timeStamp)&&this._lastClicked)if(parus.parus8.registerAction(),
67==a.keyCode&&a.ctrlKey||45==a.keyCode&&a.ctrlKey)this.copySelection();else{if(37==a.keyCode||9==a.keyCode&&a.shiftKey)var c="left";else if(38==a.keyCode)c="top";else if(39==a.keyCode||9==a.keyCode&&!a.shiftKey)c="right";else if(40==a.keyCode)c="bottom";else{this._lastClicked.click();return}c=this._neighbor(this._lastClicked,c);c||9!=a.keyCode||(c=this._lastClicked);this._lastKeyEvent=a.timeStamp;if(c)return this.followCell(c),a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),
a.cancelBubble=!0,a.keyCode=0,!1}},followCell:function(a){this.selectCell(a);this.focusTemplate();b.window.scrollIntoView(a);(this.fixedCols||this.fixedRows)&&setTimeout(b.hitch(this,function(){var c=b.coords(a),e=b.coords(this._parts[0].node);"0"==this.direction?this.fixedRows&&c.y<e.y+e.h&&(this.containerNode.scrollTop-=e.y+e.h-c.y):this.fixedCols&&c.x<e.x+e.w&&(this.containerNode.scrollLeft-=e.x+e.w-c.x)}),1)},onModified:function(){},onTitleChanged:function(){},_confirmed:!1,onClose:function(){if(this.editing&&
!this.editing.postValue())if(this.editing.cancelValue)this.editing.cancelValue();else return!1;var a=b.hitch(this,function(){this._confirmed=!0;parus.parus8._embeddedMode?parus.embeddedMode.closeTab():(parus.balance.TabContainer.selectChild("0"==this.kind?parus.balance.primaryPage:parus.balance.consolidatedPage,!1),parus.balance.TabContainer&&parus.balance.TabContainer.removeChild(this.parentPane))});if(this._confirmed)return!0;if(!this.modified)return a(),!1;(new parus.confirmationDialog({message:"\u0412\u044b \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439. \x3cbr/\x3e\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0412\u0430\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f?",
onShow:function(){this.cancelButton.domNode.style.display="";this.noButton.onClick=b.hitch(this,function(){a();this.close()})},onApply:b.hitch(this,function(){"2"==this.useHistory?(new parus.confirmationDialog({message:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439?",onApply:b.hitch(this,function(){this.saveHistory(b.hitch(this,function(){this.saveValues(!1,a)}));return!0}),onClose:b.hitch(this,function(c){c.applied||
this.saveValues(!1,a)})})).show():"1"==this.useHistory?this.saveHistory(b.hitch(this,function(){this.saveValues(!1,a)})):this.saveValues(!1,a);return!0})})).show();return this._confirmed=!1},valueChanged:function(a){var c=[];b.forEach(this.dependencies["*"],b.hitch(this,function(e){c.push(e)}));a?b.hitch(this,function(e){-1==b.indexOf(c,e)&&(c.push(e),b.forEach(this.dependencies[e],b.hitch(this,arguments.callee)),b.forEach(this.pane.dependencies[e],b.hitch(this,arguments.callee)))})(a):this.table||
b.forEach(this._staticValues,b.hitch(this,function(e){b.hitch(this,function(f){-1==b.indexOf(c,f)&&(c.push(f),b.forEach(this.dependencies[f],b.hitch(this,arguments.callee)),b.forEach(this.pane.dependencies[f],b.hitch(this,arguments.callee)))})(e.id)}));c=this.formulas.tossDependencies(this.dependencies,c);b.forEach(c,b.hitch(this,function(e){var f=this.formulas[e];f?this.pane.setCellText(this.getCell(e),null,b.hitch(this.formulas,f)()):(f=this.pane.formulas[e])&&this.pane.setCellText(this.pane.getCell(e),
null,b.hitch(this.pane.formulas,f)());(f=this.formatConditions[e]||this.pane.formatConditions[e])?b.hitch(this.formulas,f)():(f=this.pane.formatConditions[e])&&b.hitch(this.pane.formulas,f)();this._tables&&(f=this._tables.byKey[e])&&!f.cells.byID[a]&&(b.forEach(f.clones,function(g){g.calcAll()}),b.forEach(f.totals,function(g){b.forEach(g.clones,function(h){h.calcAll()})}))}));this.table&&this.pane.valueChanged(a)},cellCoords:function(a,c,e,f){for(var g={l:0,t:0,w:0,h:0},h=0;h<a-1;h++)g.l+=this.widths[h];
for(h=0;h<c-1;h++)g.t+=this.heights[h];for(h=a;h<=e;h++)g.w+=this.widths[h-1];for(h=c;h<=f;h++)g.h+=this.heights[h-1];return g},shiftParts:function(a,c,e){if(e)if("0"==this.direction){this.__setDefferedAttr(a.node,"dh",c);for(a=a.index+1;a<this._parts.length;a++)this.__setDefferedAttr(this._parts[a].node,"dy",c);this.__setDefferedAttr(this.templateNode,"dh",c);this.gutterNode&&this.__setDefferedAttr(this.gutterNode,"dh",c)}else{this.__setDefferedAttr(a.node,"dw",c);for(a=a.index+1;a<this._parts.length;a++)this.__setDefferedAttr(this._parts[a].node,
"dx",c);this.__setDefferedAttr(this.templateNode,"dw",c);this.gutterNode&&this.__setDefferedAttr(this.gutterNode,"dw",c)}else if("0"==this.direction){b.style(a.node,{height:parus.parus8.styleSize(a.node.style.height)+c+"px"});a.table&&a.table.gutterTreeNode&&(a.table.gutterTreeNode.height+=c,a.table.gutterTreeNode._resize());for(a=a.index+1;a<this._parts.length;a++)b.style(this._parts[a].node,{top:parus.parus8.styleSize(this._parts[a].node.style.top)+c+"px"}),this._parts[a].table&&(b.forEach(this._parts[a].table.totals,
function(f){b.forEach(f.clones,function(g){g.gutterTreeNode&&(g.gutterTreeNode.top+=c,g.gutterTreeNode._resize())})}),this._parts[a].table.gutterTreeNode&&(this._parts[a].table.gutterTreeNode.top+=c,this._parts[a].table.gutterTreeNode._resize()));b.style(this.templateNode,{height:parus.parus8.styleSize(this.templateNode.style.height)+c+"px"});this.gutterNode&&b.style(this.gutterNode,{height:parus.parus8.styleSize(this.gutterNode.style.height)+c+"px"})}else{b.style(a.node,{width:parus.parus8.styleSize(a.node.style.width)+
c+"px"});for(a=a.index+1;a<this._parts.length;a++)b.style(this._parts[a].node,{left:parus.parus8.styleSize(this._parts[a].node.style.left)+c+"px"});b.style(this.templateNode,{width:parus.parus8.styleSize(this.templateNode.style.width)+c+"px"});this.gutterNode&&b.style(this.gutterNode,{width:parus.parus8.styleSize(this.gutterNode.style.width)+c+"px"})}},__clone:function(a,c,e){var f,g=!1;a||(g=!0,a=1,b.forEach(this.clones,function(z){z&&z.rn>=a&&(a=z.rn+1)}),b.forEach(this.totals,function(z){z&&b.forEach(z.clones,
function(G){G&&G.rn>=a&&(a=G.rn+1)})}));this.table.commonCounter++;var h={rn:a,freeClone:g,table:this.table,owner:this,cells:[],_staticValues:[],size:this.table.size,cellsize:this.table.cellsize,pane:this.pane,part:this.table.part,commonIndex:this.table.commonCounter,formulas:b.clone(this.table.formulas),formatConditions:b.clone(this.table.formatConditions),dependencies:b.clone(this.table.dependencies),getValueNode:b.hitch(this.pane,this.pane.getValueNode),node:document.createElement("div"),uninitialized:c};
b.mixin(h,new parus.templateGridPaneCloneMixin);b.mixin(h.formulas,new parus.templateGridPaneFormulasMixin);b.mixin(h.cells,{byKey:{},byId:{}});b.mixin(h._staticValues,{byKey:{}});b.mixin(h.formulas,{pane:this.pane,getValueNode:b.hitch(this.pane,this.pane.getValueNode),getCell:b.hitch(h,h.getCell),getCellValue:b.hitch(h,h.getCellValue),getCellNode:b.hitch(h,h.getCellNode),resolveCellIdent:b.hitch(h,h.resolveCellIdent)});var l="";h.node.setAttribute("uid",this.pane._cellnums++);b.forEach(this.table.cells,
b.hitch(this,function(z){var G=z.left,E=z.top;l=l+"\x3cdiv tid\x3d'"+z.tid+"' trow\x3d'"+z.trow+"' tcol\x3d'"+z.tcol+"' clid\x3d'"+h.rn+"' ttid\x3d'"+this.rn+"' uid\x3d'"+this.pane._cellnums++ +"' style\x3d'left:"+G+"px;top:"+E+"px;"+(z.fixed?"z-index:10":"")+"'"+z.HTML}));h.node.innerHTML=l;var m=h.node.childNodes;var p=this.table.pane;for(f=0;f<m.length;f++){var r=m[f];b.connect(r,"onclick",function(z){z=z||event;parus.parus8.registerAction();p.selectCell(this,!!z.shiftKey||!!z.altKey||!!z.ctrlKey);
z.shiftKey||z.altKey||z.ctrlKey||p.focusTemplate()},r);h.cells.push(r);h.cells.byKey["R"+r.getAttribute("trow")+"C"+r.getAttribute("tcol")]=r;h.cells.byId[r.getAttribute("cid")]=r}if(this.totalkey)if("0"==this.table.pane.direction)for(var w=this.table.col-1;w<this.table.col+this.table.width-1;w++){var x=null;b.forEach(this.cells,function(z){z.tcol.toString()==w.toString()&&(x=z)});for(f=0;f<m.length;f++)if(m[f].getAttribute("tcol").toString()==w.toString())if(x){var A=parseInt(m[f].getAttribute("trow"))||
0,B=parseInt(m[f].getAttribute("rcnt"))||1;r=m[f].getAttribute("cid");delete h.formulas[r];var D=this.table.formulas[x.cid];D&&(h.formulas[r]=this.pane.__makeFormula(D,this.pane.__parseCellId(r).row-this.pane.__parseCellId(x.cid).row,0));var I=0;for(k=0;k<=B-1;k++)I+=this.pane.heights[this.table.row+A-1+k];m[f].style.height=I+"px";x.className&&(m[f].className=x.className);x.readOnly?m[f].setAttribute("ro","1"):m[f].removeAttribute("ro");x.wordWrap?m[f].setAttribute("wt","1"):m[f].removeAttribute("wt");
m[f].innerHTML=x.innerHTML;b.query("canvas[height]",m[f]).forEach(function(z){z.height=I-4;z.parentNode.style.height=I-4+"px"})}else m[f].style.display="none"}else for(w=this.table.row-1;w<this.table.row+this.table.height-1;w++)for(x=null,b.forEach(this.cells,function(z){z.trow.toString()==w.toString()&&(x=z)}),f=0;f<m.length;f++)if(m[f].getAttribute("trow").toString()==w.toString())if(x){A=parseInt(m[f].getAttribute("tcol"))||0;B=parseInt(m[f].getAttribute("ccnt"))||1;r=m[f].getAttribute("cid");
delete h.formulas[r];(D=this.table.formulas[x.cid])&&(h.formulas[r]=this.pane.__makeFormula(D,0,this.pane.__parseCellId(r).col-this.pane.__parseCellId(x.cid).col));for(k=I=0;k<=B-1;k++)I+=this.pane.widths[this.table.col+A-1+k];m[f].style.width=I+"px";x.className&&(m[f].className=x.className);x.readOnly?m[f].setAttribute("ro","1"):m[f].removeAttribute("ro");x.wordWrap?m[f].setAttribute("wt","1"):m[f].removeAttribute("wt");m[f].innerHTML=x.innerHTML;b.query("canvas[width]",m[f]).forEach(function(z){z.width=
I-4;z.parentNode.style.width=I-4+"px"})}else m[f].style.display="none";if("0"==this.table.pane.direction){var u=this.table.offsetSize;m=h.size;var y=0;f=this.pane.templateWidth;e&&b.forEach(this.table.totals,function(z){0==z.level&&0==z.location&&1==z.clones.length&&(u-=z.size,z.clones[0].node.style.top=parseInt(z.clones[0].node.style.top)+h.size+"px")})}else u=0,m=this.pane.templateHeight,y=this.table.offsetSize,f=h.size,e&&b.forEach(this.table.totals,function(z){0==z.level&&0==z.location&&1==z.clones.length&&
(y-=z.size,z.clones[0].node.style.left=parseInt(z.clones[0].node.style.left)+h.size+"px")});b.style(h.node,{width:f+"px",height:m+"px",left:y+"px",top:u+"px",margin:0,padding:0,position:"absolute",overflow:"hidden"});this.table.offsetSize+=h.size;this.table.part.node.appendChild(h.node);c||b.forEach(this.table.indexes,b.hitch(this,function(z){var G=h.cells.byKey["R"+z.row+"C"+z.col];if(G){var E=new parus.templateGridPaneInplaceEditor({id:G.getAttribute("cid"),pane:this.pane,value:z.value||"",minVal:z.minVal,
maxVal:z.maxVal,trim:z.trim,dataType:z.dataType,strLen:z.strLen,intPart:z.intPart,fracPart:z.fracPart,regExp:z.regExp,nullable:z.nullable,dictCheck:z.dictCheck,col:this.col+z.col+1,row:this.row+z.row+1,dictionary:z.dictionary,dicts:b.clone(z.dicts),dictNote:z.dictNote,balanceIndex:z.rn,valueChanged:b.hitch(h,this.table.pane.valueChanged)});this.pane.__staticValuesIndex[G.getAttribute("uid")]=E;var J=!this.pane.readonly&&!G.getAttribute("ro")&&!this.pane.formulas[E.id];J&&(G.style.cursor=b.isIE?"hand":
"pointer");b.mixin(E,{node:G,canEdit:J,valueNode:this.pane.getValueNode(G),connection:J?b.connect(G,"onclick",b.hitch(E,E.clickHandler)):null});G.setAttribute("iid",z.rn);g&&z.value&&this.pane.setCellText(G,E.valueNode,z.value);h._staticValues.push(E);h._staticValues.byKey[E.balanceIndex]=E}}));this.clones.push(h);this.clones.byKey[h.rn]=h;g&&(h.calcAll(),this.pane.shiftParts(this.table.part,h.size,!1));c?b.query("[class]",h.node).forEach(function(z){if(z.getAttribute("tid")){var G=(parseInt(z.getAttribute("tcol"))||
0)+1,E=(parseInt(z.getAttribute("trow"))||0)+1;"0"==h.table.pane.direction?h.table.col<=G&&h.table.col+h.table.width-1>=G&&b.addClass(z,"uninitializedTable"):h.table.row<=E&&h.table.row+h.table.height-1>=E&&b.addClass(z,"uninitializedTable")}}):b.forEach(this.clones,b.hitch(this,function(z){z&&z.uninitialized&&(z.node.parentNode.removeChild(z.node),z.size&&(this.pane.shiftClones(z.table,z.commonIndex,-z.size),this.pane.shiftParts(z.table.part,-z.size)),z.table.offsetSize-=z.size,z.owner.clones.splice(b.indexOf(z.owner.clones,
z),1),delete z.owner.clones.byKey[z.rn])}));return h},__createTemplate:function(a,c){var e=this.pane.cellCoords(this.table.col,this.table.row,this.table.col+this.table.width-1,this.table.row+this.table.height-1),f=this.pane.cellCoords(this.col,this.row,this.col+this.width-1,this.row+this.height-1);e="0"==this.pane.direction?{col:1,row:this.row,width:this.pane.cols,height:this.height,dx:0,dy:f.t-e.t+a,coloffset:0,rowoffset:c}:{col:this.col,row:1,width:this.width,height:this.pane.rows,dx:f.l-e.l+a,
dy:0,coloffset:c,rowoffset:0};f=b.clone(this.pane.dependencies);for(var g=e.col;g<e.col+e.width;g++)for(var h=e.row;h<e.row+e.height;h++){var l="R"+h+"C"+g,m=this.pane._cells[l];if(m){var p=h-e.row+e.rowoffset,r=g-e.col+e.coloffset;b.forEach(this.indexes,function(D){r==D.col&&p==D.row&&(D.intPart&&m.setAttribute("intpart",D.intPart),D.fracPart&&m.setAttribute("fracpart",D.fracPart))});delete this.pane._cells[l];var w=document.createElement("div");w.appendChild(m);var x=parus.parus8.styleSize(m.style.top)-
e.dy,A=parus.parus8.styleSize(m.style.left)-e.dx;m.removeAttribute("style");m.removeAttribute("uid");w={top:x,left:A,trow:h-e.row+e.rowoffset,tcol:g-e.col+e.coloffset,tid:this.table.rn,cid:m.getAttribute("cid"),fixed:null!=m.getAttribute("fo"),HTML:w.innerHTML.slice(4),ccnt:m.getAttribute("ccnt"),rcnt:m.getAttribute("rcnt"),innerHTML:m.innerHTML,className:m.getAttribute("class"),readOnly:!!m.getAttribute("ro"),wordWrap:!!m.getAttribute("wt")};this.cells.byID[m.getAttribute("cid")]=w;this.cells.push(w)}(w=
this.pane.formulas[l])&&(this.table.formulas[l]=w);(w=f[l])&&(this.table.dependencies[l]=w);(w=this.pane.formatConditions[l])&&(this.table.formatConditions[l]=w);for(var B in this.pane.dependencies)b.forEach(this.pane.dependencies[B],b.hitch(this,function(D,I){l==D&&(this.pane.dependencies[B][I]=this.table.rn)}))}},loadTables:function(a,c){a.ROWSET&&b.forEach(a.ROWSET[0].ROW,b.hitch(this,function(r){for(var w={rn:r.RN[0]["#text"],info:r,pane:this,size:0,cellsize:0,commonCounter:0,offsetSize:0,col:b.number.parse(r.COL[0]["#text"]),
row:b.number.parse(r.ROWN[0]["#text"]),width:b.number.parse(r.COL_CNT[0]["#text"]),height:b.number.parse(r.ROWN_CNT[0]["#text"]),readOnly:!0,formulas:{},formatConditions:{},dependencies:{"*":b.clone(this.dependencies["*"])},cells:[],indexes:[],clones:[],totals:[]},x=0;x<w.width;x++)for(var A=0;A<w.height;A++)b.query("[cid\x3dR"+(w.row+A)+"C"+(w.col+x)+"]",this.templateNode).forEach(function(B){B.getAttribute("ro")||(w.readOnly=!1)});b.mixin(w.totals,{byKey:{},byTotalKey:{}});b.mixin(w.clones,{byKey:{}});
b.mixin(w.indexes,{byKey:{}});b.mixin(w.cells,{byID:{}});w.info.XMLINDEXES[0].ROWSET&&b.forEach(r.XMLINDEXES[0].ROWSET[0].ROW,b.hitch(this,function(B){var D=B.XMLDICTS||null;D&&(D=b.map(D[0].ROWSET[0].ROW,function(u){return u.DICT[0]["#text"]}));D={rn:B.RN[0]["#text"],col:b.number.parse(B.COL[0]["#text"])-("0"==this.direction?1:w.col),row:b.number.parse(B.ROWN[0]["#text"])-("0"==this.direction?w.row:1),dataType:b.number.parse(B.BITYPE[0]["#text"]),strLen:null,intPart:null,fracPart:null,dictionary:null,
minVal:null,maxVal:null,trim:null,value:null,dicts:b.clone(D)};B.STRLEN&&(D.strLen=b.number.parse(B.STRLEN[0]["#text"]));B.INTPART&&(D.intPart=b.number.parse(B.INTPART[0]["#text"]));B.FRACPART&&(D.fracPart=b.number.parse(B.FRACPART[0]["#text"]));B.DICTIONARY&&(D.dictionary=B.DICTIONARY[0]["#text"],D.dictionary&&parus.parus8.extraDictionaries._canCacheExtraDictionaries&&parus.parus8.extraDictionaries.getStore(D.dictionary,this.agent,this.section));B.NULLABLE&&(D.nullable="1"==B.NULLABLE[0]["#text"]);
B.DICT_CHECK&&(D.dictCheck="1"==B.DICT_CHECK[0]["#text"]);B.DICT_VAL_NOTE&&(D.dictNote="1"==B.DICT_VAL_NOTE[0]["#text"]);B.PATTERN&&(D.regExp=B.PATTERN[0]["#text"]);if(B.VALUE&&(D.value=B.VALUE[0]["#text"],"1"==D.dataType&&D.value)){var I=D.value;I=I.split(".").join(",");D.value=b.number.parse(I)}B.MINVAL&&(D.minVal=B.MINVAL[0]["#text"]);B.MAXVAL&&(D.maxVal=B.MAXVAL[0]["#text"]);B.TRIMSTRVAL&&(D.trim=b.number.parse(B.TRIMSTRVAL[0]["#text"]));w.indexes.push(D);w.indexes.byKey[D.rn]=D}));b.mixin(w,
{table:w,placeClone:b.hitch(w,this.__clone)});r=this.cellCoords(w.col,w.row,w.col+w.width-1,w.row+w.height-1);w.size="0"==this.direction?r.h:r.w;w.cellsize="0"==this.direction?w.height:w.width;this._tables.push(w);this._tables.byKey[w.rn]=w}));var e=1;if("0"==this.direction){if(this.fixedRows&&(e=this.fixedRows+1,this.splitPart(1,1,this.cols,this.fixedRows),this._parts[0].node.style.zIndex="20"),b.forEach(this._tables,b.hitch(this,function(r){r.row>e&&this.splitPart(1,e,this.cols,r.row-e);b.mixin(r,
{part:this.splitPart(1,r.row,this.cols,r.height)});r.part.table=r;e=r.row+r.height})),this.splitPart(1,e,this.cols,this.rows-e+1),this.fixedCols)for(var f=1;f<=this.rows;f++)for(var g=1;g<=this.fixedCols;g++){var h=this._cells["R"+f+"C"+g];h&&(h.setAttribute("fo",parus.parus8.styleSize(h.style.left)),h.style.zIndex="10")}}else if(this.fixedCols&&(e=this.fixedCols+1,this.splitPart(1,1,this.fixedCols,this.rows),this._parts[0].node.style.zIndex="20"),b.forEach(this._tables,b.hitch(this,function(r){r.col>
e&&this.splitPart(e,1,r.col-e,this.rows);b.mixin(r,{part:this.splitPart(r.col,1,r.width,this.rows)});r.part.table=r;e=r.col+r.width})),this.splitPart(e,1,this.cols-e+1,this.rows),this.fixedRows)for(f=1;f<=this.fixedRows;f++)for(g=1;g<=this.cols;g++)if(h=this._cells["R"+f+"C"+g])h.setAttribute("fo",parus.parus8.styleSize(h.style.top)),h.style.zIndex="10";b.forEach(this._tables,b.hitch(this,function(r){var w=[];if("0"==this.direction)for(var x=0;x<r.height;x++)w.push(0);else for(x=0;x<r.width;x++)w.push(0);
r.info.XMLTOTALS[0].ROWSET&&b.forEach(r.info.XMLTOTALS[0].ROWSET[0].ROW,b.hitch(this,function(I){var u=b.number.parse(I.COL[0]["#text"]),y=b.number.parse(I.ROWN[0]["#text"]),z=b.number.parse(I.COL_CNT[0]["#text"]),G=b.number.parse(I.ROWN_CNT[0]["#text"]);if("0"==this.direction)for(var E=y-r.row;E<y-r.row+G;E++)w[E]=I.RN[0]["#text"];else for(E=u-r.col;E<u-r.col+z;E++)w[E]=I.RN[0]["#text"]}));var A=0;for(x=0;x<w.length;x++)if(!w[x]){A=x;break}r.info.XMLTOTALS[0].ROWSET&&b.forEach(r.info.XMLTOTALS[0].ROWSET[0].ROW,
b.hitch(this,function(I){I={rn:I.RN[0]["#text"],totalkey:I.TOTALKEY[0]["#text"],pane:this,table:r,size:0,cellsize:0,location:I.LOCATION[0]["#text"],level:parseInt(I.LVL[0]["#text"]),col:b.number.parse(I.COL[0]["#text"]),row:b.number.parse(I.ROWN[0]["#text"]),width:b.number.parse(I.COL_CNT[0]["#text"]),height:b.number.parse(I.ROWN_CNT[0]["#text"]),cells:[],clones:[],indexes:r.indexes};b.mixin(I.clones,{byKey:{}});b.mixin(I.cells,{byID:{}});b.mixin(I,{placeClone:b.hitch(I,this.__clone)});var u=this.cellCoords(I.col,
I.row,I.col+I.width-1,I.row+I.height-1);I.size="0"==this.direction?u.h:u.w;I.cellsize="0"==this.direction?I.height:I.width;r.size-=I.size;r.cellsize-=I.cellsize;b.hitch(I,this.__createTemplate)(0,A);r.totals.push(I);r.totals.byKey[I.rn]=I;r.totals.byTotalKey[I.totalkey]=I;null==this._maxTotalLevel&&(this._maxTotalLevel=I.level);null==this._minTotalLevel&&(this._minTotalLevel=I.level);this._maxTotalLevel<I.level&&(this._maxTotalLevel=I.level);this._minTotalLevel>I.level&&(this._minTotalLevel=I.level)}));
var B=0;for(x=0;x<w.length;x++)if(w[x])r.totals.byKey[w[x]].row-r.row==x&&(B+=r.totals.byKey[w[x]].size);else break;b.hitch(r,this.__createTemplate)(B,0);B="0"==this.direction?parus.parus8.styleSize(r.part.node.style.height):0;var D="0"==this.direction?0:parus.parus8.styleSize(r.part.node.style.width);for(x=r.part.index+1;x<this._parts.length;x++)b.style(this._parts[x].node,{top:parus.parus8.styleSize(this._parts[x].node.style.top)-B+"px",left:parus.parus8.styleSize(this._parts[x].node.style.left)-
D+"px"});b.style(r.part.node,{width:("0"==this.direction?parus.parus8.styleSize(r.part.node.style.width):0)+"px",height:("0"==this.direction?0:parus.parus8.styleSize(r.part.node.style.height))+"px"});b.style(this.templateNode,{height:parus.parus8.styleSize(this.templateNode.style.height)-B+"px",width:parus.parus8.styleSize(this.templateNode.style.width)-D+"px"});this.gutterNode&&b.style(this.gutterNode,{height:parus.parus8.styleSize(this.gutterNode.style.height)-B+"px",width:parus.parus8.styleSize(this.gutterNode.style.width)-
D+"px"})}));b.forEach(this._parts,b.hitch(this,function(r){r.table&&(r.node.parentNode.removeChild(r.node),"0"==this.direction?r.node.style.height="0px":r.node.style.width="0px")}));parus.balance.showTemplateGutter&&(this._maxTotalLevel||this._minTotalLevel)&&(this.gutterSize=20*((this._maxTotalLevel||0)+1));var l="",m,p=[];b.forEach(c,b.hitch(this,function(r){var w=r.RN,x=b.number.parse(r.NUMB),A=r.TOTAL,B=r.INDEXRN,D=this._tables.byKey[w];D&&(A=A?D.totals.byKey[A]:D)&&(m&&w+"."+x!=l&&this.checkCloneHeight(m),
l=w+"."+x,m=A.clones.byKey[x],m||(m=A.placeClone(x,!1,!1),p.push(m)),x=D.indexes.byKey[B])&&(w=m.cells.byKey["R"+x.row+"C"+x.col])&&(r=parus.parus8.externalStringToValue(r.VALUE,x.dataType),""!==r&null!==r&&this.setCellText(w,null,r))}));m&&this.checkCloneHeight(m);b.forEach(p,function(r,w){var x=[],A=r.owner.level,B=r.table.rn;if(A)if("1"==r.owner.location)for(var D=w+1;D<p.length&&p[D].table.rn==B;D++)if((p[D].owner.level||1E3)>A)p[D].treeParents||(p[D].treeParents=[]),p[D].treeParents.push(r),
x.push(p[D]);else break;else for(D=w-1;0<=D&&p[D].table.rn==B;D--)if((p[D].owner.level||1E3)>A)p[D].treeParents||(p[D].treeParents=[]),p[D].treeParents.push(r),x.push(p[D]);else break;b.mixin(r,{treeChildren:x})});b.forEach(p,function(r){r.treeParents&&r.treeParents.sort(function(w,x){return(x.owner.level||1E3)-(w.owner.level||1E3)});r.treeChildren&&r.treeChildren.sort(function(w,x){return(w.owner.level||1E3)-(x.owner.level||1E3)})});b.forEach(this._parts,b.hitch(this,function(r){this.templateNode.appendChild(r.node);
r.table&&this.shiftParts(r,r.table.offsetSize,!0)}));b.forEach(this._tables,function(r){0==r.clones.length&&r.placeClone(null,!0,!1)});b.forEach(this._tables,function(r){b.forEach(r.clones,function(w){w.calcAll()});b.forEach(r.totals,function(w){b.forEach(w.clones,function(x){x.calcAll()})})})},checkCloneHeight:function(a){b.forEach(a.cells,b.hitch(this,function(c){this.checkCellHeight(c,null,!0,a,!1)}));this.drawAllCanvas()},loadNewData:function(a,c){this._allValuesLoaded=!1;var e=[],f=[];b.forEach(a,
function(l){"INDEXES"==l.nodeName?e=l:"TABLES"==l.nodeName&&(f=l)});if(e){this.progressIndicate("\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439....");var g=parus.parus8.rowNodes(e);b.forEach(g,b.hitch(this,function(l){var m=l.getAttribute("ID");l=l.getAttribute("VALUE");(m=this._staticValues.byKey[m])&&this.setCellText(m.node,m.valueNode,
parus.parus8.externalStringToValue(l,m.dataType))}))}this._remarksStore=new parus.gridData({persistent:!0,_data:[]});if(f){this.progressIndicate("\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439....");b.forEach(this._parts,b.hitch(this,function(l){this.templateNode.appendChild(l.node);l.table&&this.shiftParts(l,-l.table.offsetSize,!0)}));g=parus.parus8.rowNodes(f);
var h=[];b.forEach(g,b.hitch(this,function(l,m){this.progressIndicate("\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u043e\u043c\u0435\u0440 "+(m+1)+" \u0438\u0437 "+g.length+"....");var p=l.getAttribute("ID"),r=this._tables.byKey[p];r&&(b.forEach(r.clones,b.hitch(this,function(w){w.gutterTreeNode&&w.gutterTreeNode.destroyRecursive();w.node.parentNode.removeChild(w.node)})),
b.forEach(r.totals,b.hitch(this,function(w){b.forEach(w.clones,b.hitch(this,function(x){x.gutterTreeNode&&x.gutterTreeNode.destroyRecursive();x.node.parentNode.removeChild(x.node)}));w.clones=[];b.mixin(w.clones,{byKey:{}})})),b.mixin(r,{clones:[],commonCounter:0,offsetSize:0}),b.mixin(r.clones,{byKey:{}}),p=parus.parus8.rowNodes(l),b.forEach(p,b.hitch(this,function(w){var x=w.getAttribute("NUMB")||1;if(1!=x){var A=w.getAttribute("TOTAL")||"";if(A){A=r.totals.byTotalKey[A];if(!A)return;var B=A.placeClone(x,
!1,!1)}else B=r.placeClone(x,!1,!1);h.push(B);w=parus.parus8.rowNodes(w);b.forEach(w,b.hitch(this,function(D){if("INDEX"==D.nodeName){var I=D.getAttribute("ID"),u=r.indexes.byKey[I];if(u){var y=B.cells.byKey["R"+u.row+"C"+u.col];y&&(I=B._staticValues.byKey[I])&&(D=parus.parus8.externalStringToValue(D.getAttribute("VALUE"),u.dataType),""!==D&null!==D&&this.setCellText(y,I.valueNode,D))}}}));this.checkCloneHeight(B)}})))}));b.forEach(h,function(l,m){var p=[],r=l.owner.level,w=l.table.rn;if(r)if("1"==
l.owner.location)for(var x=m+1;x<h.length&&h[x].table.rn==w;x++)if((h[x].owner.level||1E3)>r)h[x].treeParents||(h[x].treeParents=[]),h[x].treeParents.push(l),p.push(h[x]);else break;else for(x=m-1;0<=x&&h[x].table.rn==w;x--)if((h[x].owner.level||1E3)>r)h[x].treeParents||(h[x].treeParents=[]),h[x].treeParents.push(l),p.push(h[x]);else break;b.mixin(l,{treeChildren:p})});b.forEach(h,function(l){l.treeParents&&l.treeParents.sort(function(m,p){return(p.owner.level||1E3)-(m.owner.level||1E3)});l.treeChildren&&
l.treeChildren.sort(function(m,p){return(m.owner.level||1E3)-(p.owner.level||1E3)})});this.gutterNode&&setTimeout(b.hitch(this,this.buildGutterTree),100);this.progressIndicate();this._allValuesLoaded=!0}b.forEach(c,b.hitch(this,function(l){var m=parus.parus8.nodeField(l,"INDEXRN"),p=parus.parus8.nodeField(l,"CLONERN"),r=parus.parus8.nodeField(l,"TABLERN"),w=parus.parus8.nodeField(l,"NUMB"),x=!1;b.forEach(this._remarksStore._data,function(B){B.INDEXRN==m&&B.CLONERN==p&&B.TABLERN==r&&B.NUMB==w&&(x=
!0,b.mixin(B,{CHANGE_DATE:parus.parus8.nodeField(l,"CHANGE_DATE"),CODE:parus.parus8.nodeField(l,"CODE"),NAME:parus.parus8.nodeField(l,"NAME"),NOTE:parus.parus8.nodeField(l,"NOTE"),_NEW:!0}))});if(!x){var A={COLOR:parus.parus8.nodeField(l,"COLOR"),INDEXRN:m,CLONERN:p,TABLERN:r,CHANGE_DATE:parus.parus8.nodeField(l,"CHANGE_DATE"),CODE:parus.parus8.nodeField(l,"CODE"),NAME:parus.parus8.nodeField(l,"NAME"),NOTE:parus.parus8.nodeField(l,"NOTE"),NUMB:w,_NEW:!0};this._remarksStore.add(A);this.applyRemarkColor(A)}}));
b.forEach(this._parts,b.hitch(this,function(l){this.templateNode.appendChild(l.node);l.table&&this.shiftParts(l,l.table.offsetSize,!0)}));b.forEach(this._tables,function(l){0==l.clones.length&&l.placeClone(null,!0,!1)});this.__fireDefferedAttrs()},_setTitleAttr:function(a){this.inherited(arguments);this.autonomousMode&&(document.title=a);b.place("\x3cspan\x3e"+a+"\x3cspan\x3e",this.headingContentPane.containerNode.firstChild,"only");this.title=a;this.onTitleChanged()},__makeFormula:function(a,c,e){return function(){return a.call(this,
c,e)}},__parseCellId:function(a){a=/^R(\d+)C(\d+)$/g.exec(a);return{row:Number(a[1]),col:Number(a[2])}}});b.mixin(parus.templateGridPane,{remarkToTop:function(a){b.query("[rid\x3d'h']",a.parentNode).style({zIndex:50});b.style(a,{zIndex:55})},followLogMessage:function(a,c,e,f,g){if(a=t.byId(a))if(e){if(c=a._tables.byKey[e]){c.gutterTreeNode&&c.gutterTreeNode.attr("expanded",!0);var h=c.clones.byKey[f];h||b.forEach(c.totals,function(l){h||(h=l.clones.byKey[f])});h?(h.treeParents&&b.forEach(h.treeParents,
function(l){l.gutterTreeNode&&l.gutterTreeNode.attr("expanded",!0)}),(g=h._staticValues.byKey[g])?g.node?a.followCell(g.node):(a.followCell(h.cells[0]),a.selectCell(h.cells[h.cells.length-1],!0)):(a.followCell(h.cells[0]),a.selectCell(h.cells[h.cells.length-1],!0))):(a.followCell(c.clones[0].cells[0]),a.selectCell(c.clones[c.clones.length-1].cells[c.clones[c.clones.length-1].cells.length-1],!0))}}else(g=a._staticValues.byKey[c])&&g.node&&a.followCell(g.node)},formatLogMessage:function(a,c,e){return"\x3ca href\x3d\"javascript:parus.templateGridPane.followLogMessage('"+
e.grid.templatePane.id+"','"+(e.grid.store.getValue(e.grid.getItem(c),"BALANCEINDEX")||"")+"','"+(e.grid.store.getValue(e.grid.getItem(c),"TABLE_RN")||"")+"','"+(e.grid.store.getValue(e.grid.getItem(c),"ROW_NUMB")||"")+"','"+(e.grid.store.getValue(e.grid.getItem(c),"BLTABLESIND")||"")+"')\"\x3e"+a+"\x3c/a\x3e"}});b.mixin(parus.parus8,{_internalClipboard:null});parus||(parus={});parus.report||b.mixin(parus,{report:{}});b.mixin(parus.report,{startup:function(){parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),
function(e){return parus.parus8.nodeField(e,"UNITCODE")});if(-1==b.indexOf(parus.balance.availableUnits,"BalanceReports"))parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435/\u0441\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 - \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 Online". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.',
parus.parus8.logout);else{var a=null;b.xhrGet({url:"../.system/session.xml",handleAs:"xml",sync:!0,preventCache:!0,load:function(e){b.isIE||e.normalize();for(var f=e.documentElement.getElementsByTagName("*"),g=0;g!=f.length;g++)"params"==f[g].nodeName&&(a=f[g].childNodes.item(0).nodeValue);return e}});a=parus.parus8.hexDecodeParams(a);var c=function(e){parus.parus8.extraDictionaries._canCacheExtraDictionaries="0"!=parus.parus8.optionValue("BalanceOnlineCacheContractorDictValues");parus.parus8.extraDictionaries._autoCompleteLimit=
parus.parus8.optionValue("BalanceOnlineAutoCompleteDictSize");parus.dictionaries._autoCompleteLimit=parus.parus8.optionValue("BalanceOnlineAutoCompleteUnitSize");var f=parus.userdata.get("parus.balance.primaryMasterGrid");f&&f.additions&&(parus.balance.showTemplateGutter=f.additions.showGutter);e=parus.balance.showReportValues(a[0],a[1],null,null,null,null,e,null,null,null,function(){b.fadeIn({node:g.domNode,duration:300}).play()});loadingDiv.style.display="none";var g=new t.layout.BorderContainer({design:"headline",
gutters:!1,"class":"balanceTemplateContentPane",style:"height:100%;width:100%;padding:0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.body(),"last"));var h=e.getChildren()[0].getChildren()[1];b.mixin(h,{autonomousMode:!0,onModified:function(){var l=b.query("*",h.headingContentPane.containerNode);l.removeClass("balanceReadOnlyHeader");l.removeClass("balanceModifiedHeader");h.readonly?l.addClass("balanceReadOnlyHeader"):h.modified&&l.addClass("balanceModifiedHeader");
parus.parus8._embeddedMode&&parus.embeddedMode.changeTabState(h.modified)}});parus.parus8._embeddedMode&&(parus.embeddedMode.registerOnCloseCallback(b.hitch(h,function(l){this.onClose()})),parus.embeddedMode.registerOnShowCallback(function(){g.resize()}));g.addChild(e);g.startup()};parus.database.query("BalanceReportTemplates",{REPORT:a[0]},b.hitch(this,function(e){e=parus.parus8.rowNodes(e);if(0==e.length)parus.parus8.errorMessage("\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.");
else{if(1==e.length){var f=parus.parus8.nodeField(e[0],"RN");parus.parus8.nodeField(e[0],"DIRECT_TABLE")}else b.forEach(e,function(h){if(parus.parus8.nodeField(h,"RN")==a[2]||!f&&"1"==parus.parus8.nodeField(h,"EDIT_DEFAULT"))f=parus.parus8.nodeField(h,"RN"),parus.parus8.nodeField(h,"DIRECT_TABLE")});if(f)c(f);else{var g=new parus.balanceTemplatesDialog({templates:e,onShow:function(){g.CancelButton.domNode.style.display="none";g.dialog.closeButtonNode.style.display="none"},onApply:b.hitch(this,function(){b.forEach(g.templatesGrid.selection.getSelected(),
function(h){f=g.templatesGrid.store.getValue(h,"RN","");g.templatesGrid.store.getValue(h,"DIRECT_TABLE","")});if(!f)return!1;c(f);return!0})});g.show()}}}))}}});b.mixin(parus.parus8,{consComparationData:null,showIndexConsComparationItems:function(a){(new parus.balanceIndexConsComparationItems(a||{})).show()},performIndexConsComparation:function(a){(new parus.balanceIndexConsComparation(a||{})).show()},addIndexConsComparationTemplate:function(a){parus.parus8.consComparationData=parus.parus8.consComparationData||
{dataType:a.dataType,intPart:a.intPart,fracPart:a.fracPart,result:a.result,items:[]};parus.parus8.consComparationData.intPart=Math.max(parus.parus8.consComparationData.intPart||0,a.intPart||0);parus.parus8.consComparationData.fracPart=Math.max(parus.parus8.consComparationData.fracPart||0,a.fracPart||0);var c={},e;b.forEach(a.items,function(g){g.DATA&&(g.dataInfo=parus.parus8.rowNodes(parus.database.execute("IndexConsDataID",{DATA:g.DATA}))[0]);var h=g.IDENTIFIER;if(parus.parus8.consComparationData.items.length&&
h){var l=-1;if(g.dataInfo){var m=parus.parus8.nodeField(g.dataInfo,"INDEX")+"-"+(parus.parus8.nodeField(g.dataInfo,"REPORT")||"")+"-"+(parus.parus8.nodeField(g.dataInfo,"SUBREPORT")||"")+"-"+(parus.parus8.nodeField(g.dataInfo,"INDEX")||"")+"-"+(parus.parus8.nodeField(g.dataInfo,"TABLE")||"")+"-"+(parus.parus8.nodeField(g.dataInfo,"ROWID")||"");b.forEach(parus.parus8.consComparationData.items,function(r,w){r.ID==m&&(l=w)})}if(-1!=l)h=parus.parus8.consComparationData.items[l].IDENTIFIER;else{e||(e=
parus.balanceIndexConsComparation.templateApplyIndex());var p=h.match(/^\u0428\u0430\u0431\u043b\u043e\u043d(\d+)_.*$/);h=p?h.split(p[1]).join(e):"\u0428\u0430\u0431\u043b\u043e\u043d"+e+"_"+h}}c[g.IDENTIFIER]=h});var f=(new Date).valueOf();b.forEach(a.items,function(g,h){if(g.DATA){var l=g.dataInfo;if(l){var m=parus.parus8.rowNodes(parus.database.execute("IndexConsInfo",{REPORT:parus.parus8.nodeField(l,"REPORT"),SUBREPORT:parus.parus8.nodeField(l,"SUBREPORT"),INDEX:parus.parus8.nodeField(l,"INDEX"),
TABLE:parus.parus8.nodeField(l,"TABLE"),ROWID:parus.parus8.nodeField(l,"ROWID")}))[0];m&&(parus.parus8.consComparationData.intPart=Math.max(parus.parus8.consComparationData.intPart||0,parus.parus8.nodeField(m,"INTPART")||0),parus.parus8.consComparationData.fracPart=Math.max(parus.parus8.consComparationData.fracPart||0,parus.parus8.nodeField(m,"FRACPART")||0),parus.parus8.consComparationData.dataType!=parus.parus8.nodeField(m,"DATATYPE")?parus.parus8.errorMessage("\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043a \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c."):
parus.parus8.consComparationData.result!=parus.parus8.nodeField(m,"RESULT")?parus.parus8.errorMessage("\u0422\u0438\u043f \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u043a \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c."):
parus.parus8.addIndexConsComparationItem({REPORT:parus.parus8.nodeField(l,"REPORT"),SUBREPORT:parus.parus8.nodeField(l,"SUBREPORT"),INDEX:parus.parus8.nodeField(l,"INDEX"),TABLE:parus.parus8.nodeField(l,"TABLE"),ROWID:parus.parus8.nodeField(l,"ROWID"),TITLE:parus.parus8.nodeField(m,"TITLE"),INCLUDEDIFF:g.INCLUDEDIFF,IDENTIFIER:c[g.IDENTIFIER]}))}}else{expression=g.EXPRESSION;for(l in c)expression=expression.split(l).join(c[l]);parus.parus8.addIndexConsComparationItem({ID:f-h,TITLE:g.TITLE,EXPRESSION:expression,
INCLUDEDIFF:g.INCLUDEDIFF})}})},addIndexConsComparationItem:function(a){if(a){var c=a.ID||a.INDEX+"-"+(a.REPORT||"")+"-"+(a.SUBREPORT||"")+"-"+(a.INDEX||"")+"-"+(a.TABLE||"")+"-"+(a.ROWID||"");if(!b.filter(parus.parus8.consComparationData.items,function(f){return f.ID==c}).length){if(!a.IDENTIFIER&&!a.EXPRESSION){for(var e=1;b.filter(parus.parus8.consComparationData.items,function(f){return f.IDENTIFIER==parus.parus8.toLetters(e)}).length;)e++;b.mixin(a,{IDENTIFIER:parus.parus8.toLetters(e),INCLUDEDIFF:!0})}b.mixin(a,
{ID:c});parus.parus8.consComparationData.items.push(a);parus.parus8.consComparationDataModified()}}},consComparationDataModified:function(){parus.parus8._embeddedMode&&(parus.embeddedMode.globalChanged("parus.parus8.consComparationData",parus.parus8.consComparationData||{}),parus.embeddedMode.globalChanged("parus.balanceIndexConsComparation._templates",{}))}});b.declare("parus.templateGridPane.verticalGutterTreeNode",[t._Widget,t._Templated,t._CssStateMixin],{templateString:b.cache("parus","verticalGutterTreeNode.html",
'\x3cdiv\x3e\x3cdiv class\x3d"dijitInline dijitTreeExpando dijitTreeExpandoOpened" dojoAttachEvent\x3d"onclick:_onTreeNodeClick" dojoAttachPoint\x3d"treeNode" style\x3d"position:absolute; width:18px; height:18px; left:0px; top:0px"\x3e\x3c/div\x3e\x3cdiv class\x3d"dijitInline dijitTreeNode" dojoAttachPoint\x3d"fillerNode" style\x3d"position:absolute; width:18px; left:0px; bottom:9px; top:14px"\x3e\x3c/div\x3e\x3cdiv class\x3d"dijitInline dijitTreeExpando dijitTreeExpandoLeaf" dojoAttachPoint\x3d"cornerNode" style\x3d"position:absolute; width:18px; height:18px; left:0px; bottom:0px"\x3e\x3c/div\x3e\x3c/div\x3e'),
expanded:!0,height:0,top:0,left:0,pane:null,table:null,clone:null,attributeMap:b.delegate(t._WidgetBase,{expanded:""}),_setExpandedAttr:function(a){this.expanded!=a&&(this.expanded=a,this._perform())},postCreate:function(){this.inherited(arguments);this._resize()},_resize:function(){b.style(this.domNode,{position:"absolute",width:"20px",height:this.height+"px",top:this.top+"px",left:this.left+"px"});this.treeNode.style.zIndex=100},_perform:function(){if(this.expanded)if(b.removeClass(this.treeNode,
"dijitTreeExpandoClosed"),b.addClass(this.treeNode,"dijitTreeExpandoOpened"),this.fillerNode.style.display="",this.cornerNode.style.display="",this.treeNode.style.zIndex=100,this.clone){var a=0,c=0,e=this.clone.owner.location;b.forEach(this.clone.treeChildren,b.hitch(this,function(f){a+=f.size;"0"==e&&(c-=f.size);this.pane.shiftClones(f.table,f.commonIndex,f.size);f.table.offsetSize+=f.size;f.node.style.height=f.size+"px";if(f.gutterTreeNode){var g=!0;b.forEach(f.treeParents,function(h){h.gutterTreeNode&&
(h.gutterTreeNode.expanded||(g=!1))});f.gutterTreeNode.domNode.style.display=g?"":"none"}}));this.pane.shiftParts(this.clone.part,a);this.height=a+this.clone.size;this.top=c+parus.parus8.styleSize(this.clone.node.style.top)+parus.parus8.styleSize(this.clone.part.node.style.top)}else b.forEach(this.table.totals,function(f){b.forEach(f.clones,function(g){if(g.gutterTreeNode){var h=!0;b.forEach(g.treeParents,function(l){l.gutterTreeNode&&(l.gutterTreeNode.expanded||(h=!1))});g.gutterTreeNode.domNode.style.display=
h?"":"none"}})}),this.pane.shiftParts(this.table.part,this.table.offsetSize),this.height=this.table.offsetSize;else b.removeClass(this.treeNode,"dijitTreeExpandoOpened"),b.addClass(this.treeNode,"dijitTreeExpandoClosed"),this.fillerNode.style.display="none",this.cornerNode.style.display="none",this.treeNode.style.zIndex=500,this.clone?(a=0,b.forEach(this.clone.treeChildren,b.hitch(this,function(f){a+=f.size;this.pane.shiftClones(f.table,f.commonIndex,-f.size);f.table.offsetSize-=f.size;f.node.style.height=
"0px";f.gutterTreeNode&&(f.gutterTreeNode.attr("expanded",!0),f.gutterTreeNode.domNode.style.display="none")})),this.pane.shiftParts(this.clone.part,-a),this.height=this.clone.size,this.top=parus.parus8.styleSize(this.clone.node.style.top)+parus.parus8.styleSize(this.clone.part.node.style.top)):(b.forEach(this.table.totals,function(f){b.forEach(f.clones,function(g){g.gutterTreeNode&&(g.gutterTreeNode.domNode.style.display="none")})}),this.pane.shiftParts(this.table.part,-this.table.offsetSize),this.height=
18);this._resize()},_onTreeNodeClick:function(){parus.parus8.registerAction();this.expanded=!this.expanded;this._perform()}});b.declare("parus.templateGridPane.gutterTreeLevel",[t._Widget,t._Templated,t._CssStateMixin],{templateString:'\x3cdiv class\x3d"gutterLevelIndex" dojoAttachEvent\x3d"onclick:_onLevelClick" \x3e\x3cspan dojoAttachPoint\x3d"content"\x3e\x3c/span\x3e\x3c/div\x3e',level:0,pane:null,postCreate:function(){this.inherited(arguments);this._render()},_render:function(){b.style(this.domNode,
{left:20*this.level-3+"px"});this.content.innerHTML=this.level+1},_collapse:function(){0==this.level?b.forEach(this.pane._tables,function(a){a.gutterTreeNode&&a.gutterTreeNode.attr("expanded",!1)}):b.forEach(this.pane._tables,b.hitch(this,function(a){b.forEach(a.totals,b.hitch(this,function(c){c.level==this.level&&b.forEach(c.clones,b.hitch(this,function(e){e.gutterTreeNode&&e.gutterTreeNode.attr("expanded",!1)}))}))}))},_expand:function(){0==this.level?b.forEach(this.pane._tables,function(a){a.gutterTreeNode&&
a.gutterTreeNode.attr("expanded",!0)}):b.forEach(this.pane._tables,b.hitch(this,function(a){b.forEach(a.totals,b.hitch(this,function(c){c.level==this.level&&b.forEach(c.clones,b.hitch(this,function(e){e.gutterTreeNode&&e.gutterTreeNode.attr("expanded",!0)}))}))}))},_onLevelClick:function(){parus.parus8.registerAction();var a=b.coords(this.pane.templateNode),c=document.elementFromPoint(this.pane.templateNode.parentNode.scrollLeft+a.x+2,this.pane.templateNode.parentNode.scrollTop+a.y+2);a=!0;if(0==
this.level)for(var e=0;e<this.pane._tables.length&&(!this.pane._tables[e].gutterTreeNode||(a=this.pane._tables[e].gutterTreeNode.attr("expanded"),a));e++);else{var f=!1;for(e=0;e<this.pane._tables.length;e++){if(this.pane._tables[e].gutterTreeNode&&(a=this.pane._tables[e].gutterTreeNode.attr("expanded"),!a)){f=!0;break}for(var g=0;g<this.pane._tables[e].totals.length;g++){if(this.pane._tables[e].totals[g].level<=this.level)for(var h=0;h<this.pane._tables[e].totals[g].clones.length;h++)if(this.pane._tables[e].totals[g].clones[h].gutterTreeNode&&
(a=this.pane._tables[e].totals[g].clones[h].gutterTreeNode.attr("expanded"),!a)){f=!0;break}if(f)break}if(f)break}}if(a)this._collapse();else for(a=0;a<=this.level;a++)this.pane._gutterLevels[a]._expand();c&&setTimeout(function(){b.window.scrollIntoView(c)},20)}})})},"parus/balanceIndexConsComparationTemplatesDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsComparationTemplatesDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");
b.require("parus.dialog");b.require("parus.balanceIndexConsComparation");b.declare("parus.balanceIndexConsComparationTemplatesDialog",[parus.Dialog],{postCreate:function(){this.inherited(arguments);if(-1==b.indexOf(parus.balance.availableUnits,"Users")){this.clearAllTemplatesMenuItem.destroyRecursive();var a=b.clone(this.templatesGrid.structure);a[0].cells[0]=b.filter(a[0].cells[0],function(c){return"user"!=c.field});this.templatesGrid.attr("structure",a)}this.templatesGrid.attr("store",this._getStore());
this.templatesGrid.setQuery({});this.templatesGrid.selection.select(0);this.templatesGridPopupMenu.bindDomNode(this.templatesGrid.viewsNode);parus.balance._createActionsButton(this.templatesGridPopupMenu,this.headerPane);if(a=parus.userdata.get(this.declaredClass))parus.gridSettingsDialog.mergeMenuSettings(this.templatesGridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.templatesGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.templatesGrid,
a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.templatesGrid,a.showFilterBar,a.filterValues,a.sortInfo);setTimeout(b.hitch(this,function(){this._selected()}),100)},_getStore:function(){return new parus.gridData({persistent:!0,_data:parus.balanceIndexConsComparation.getTemplates(parus.parus8.consComparationData?parus.parus8.consComparationData.dataType:null,parus.parus8.consComparationData?parus.parus8.consComparationData.result:null)})},_selected:function(){var a=this.templatesGrid.getItem(this.templatesGrid.selection.getSelectedIndex());
b.forEach(this.templatesGridPopupMenu.getChildren(),b.hitch(this,function(c){var e=a?!1:!0;c.itemAction||(e=!1);c==this.deleteTemplateMenuItem&&(e=e||!!this.templatesGrid.store.getValue(a,"user"));"dijit.MenuSeparator"!=c.declaredClass&&c.attr("disabled",e)}));parus.parus8.checkMenuSeparators(this.templatesGridPopupMenu)},deleteTemplate:function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){for(var a=this.templatesGrid.store,c=this.templatesGrid.selection.getFirstSelected(),e=0;e<this.templatesGrid.selection.getSelectedCount();e++)parus.balanceIndexConsComparation.deleteTemplate(a.getValue(c,"name")),c=this.templatesGrid.selection.getNextSelected(c);parus.parus8.consComparationDataModified();this.templatesGrid.attr("store",this._getStore());this.templatesGrid.setQuery({});this.templatesGrid.selection.select(0);return!0})})).show()},clearTemplates:function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b?",
onApply:b.hitch(this,function(){parus.balanceIndexConsComparation.clearTemplates(!1);parus.parus8.consComparationDataModified();this.templatesGrid.attr("store",this._getStore());this.templatesGrid.setQuery({});this.templatesGrid.selection.select(0);return!0})})).show()},clearAllTemplates:function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439?",
onApply:b.hitch(this,function(){parus.balanceIndexConsComparation.clearTemplates(!0);parus.parus8.consComparationDataModified();this.templatesGrid.attr("store",this._getStore());this.templatesGrid.setQuery({});this.templatesGrid.selection.select(0);return!0})})).show()},settings:function(){parus.balance.executeSettings(this.templatesGrid,this.templatesGridPopupMenu,this.declaredClass)},destroy:function(){this.store=null;this.inherited(arguments)},gridFilterChanged:function(a,c){parus.balance.gridFilterChanged(this.declaredClass,
a,c)}})})},"parus/balanceReportConsolidateDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportConsolidateDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.CheckBox");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.balancePreparedConsolidationDialog");b.declare("parus.balanceReportConsolidateDialog",[parus.Dialog],{rn:null,_conditionFolderRN:null,
_lastValues:null,postCreate:function(){this.inherited(arguments);1<this.rn.length&&(this.mainBorderContainer.domNode.style.height="480px",this.warning.domNode.appendChild(document.createTextNode("\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0432\u043e\u0434\u043e\u0432: "+this.rn.length)),this.warning.domNode.style.display="");this.conditionFolder.attr("required",
"1"==parus.parus8.optionValue("Balance_FillSelectionFolderOnConsolidate"));this.conditionFolder.textbox.readOnly=!0;var a=this;b.mixin(this.conditionFolder,{_onKey:function(c){var e=b.keys,f=c.charOrCode||c.keyCode;if(f==e.DELETE||f==e.BACKSPACE)return this.attr("value",""),a._conditionFolderRN=null,c.preventDefault&&c.preventDefault(),c.stopPropagation&&c.stopPropagation(),c.cancelBubble=!0,c.keyCode=0,!1},onDictButtonClick:function(){if(!this.showingDictionary){if(this.dictionary){var c=parus.dictionaries[this.dictionary];
b.mixin(c,{code:this.dictionary,multiselect:this.multiselect,label:this.value,dictionary:c,unitCode:this.unitCode||c.unitCode,gridConditions:this.onGetGridConditions(),onApply:b.hitch(this,function(e){a._conditionFolderRN=e.getValue();this.setValue(e.getLabel());return!0}),onClose:b.hitch(this,function(e){this.showingDictionary=!1})});this.showingDictionary=!0;(new parus.dictionaryDialog(c)).show()}return!0}}})},onShow:function(){(parus.parus8.rowNodes(parus.database.query("ConsolidationProposal",
{REPORT:this.rn.join(";")}))||[]).length&&(this.conditionFolder.attr("disabled",!0),this.reportType.attr("disabled",!0));this.restoreFormLastValues()},onApply:function(){var a=new consolidationAction;b.mixin(a,{rn:this.rn,rn0:this.rn[0],showReportBefore:this.beforeConsolidation.checked,showReportAfter:this.afterConsolidation.checked,conditionFolder:this._conditionFolderRN||"",reportType:this.reportType.value,recalculationType:this.recalculationType.value,unCheckedReport:this.unCheckedReport.checked?
"1":"0",allowRecalculation:this.allowRecalculation.checked?"1":"0",calculateValues:this.calculateValues.checked?"1":"0",stringFormulaType:this.stringFormulaType.checked?"1":"0",numberFormulaType:this.numberFormulaType.checked?"1":"0",dateFormulaType:this.dateFormulaType.checked?"1":"0",formIntermediateResults:this.formIntermediateResults.checked?"1":"0",multiLevel:this.multiLevel.checked?"1":"0",skipNonExisting:this.skipNonExisting.checked?"1":"0",onDone:function(){parus.balance.refreshGrid(parus.balance.consolidatedMasterGrid,
"RN",this.rn0);var c=parus.balance.consolidatedDetailGrid,e=c.store;c.selection.getFirstSelected();parus.balance.refreshGrid(c,"RN",e.getValue(c.selection.getFirstSelected(),"RN"))}});a.execute();this.saveFormLastValues();return!0},saveFormLastValues:function(){this.conditionFolder.attr("disabled")||(this._lastValues.conditionFolderRN=this._conditionFolderRN,this._lastValues.conditionFolder=this.conditionFolder.attr("value"));this.reportType.attr("disabled")||(this._lastValues.reportType=this.reportType.attr("value"));
this._lastValues.recalculationType=this.recalculationType.attr("value");this._lastValues.unCheckedReport=this.unCheckedReport.attr("checked");this._lastValues.multiLevel=this.multiLevel.attr("checked");this._lastValues.skipNonExisting=this.skipNonExisting.attr("checked");this._lastValues.disallowRecalculation=this.disallowRecalculation.attr("checked");this._lastValues.calculateValues=this.calculateValues.attr("checked");this._lastValues.stringFormulaType=this.stringFormulaType.attr("checked");this._lastValues.numberFormulaType=
this.numberFormulaType.attr("checked");this._lastValues.dateFormulaType=this.dateFormulaType.attr("checked");this._lastValues.formIntermediateResults=this.formIntermediateResults.attr("checked");this._lastValues.beforeConsolidation=this.beforeConsolidation.attr("checked");this._lastValues.afterConsolidation=this.afterConsolidation.attr("checked");this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||
{};this.conditionFolder.attr("disabled")||(this._conditionFolderRN=this._lastValues.conditionFolderRN,this.conditionFolder.attr("value",this._lastValues.conditionFolder));this.reportType.attr("disabled")||this.reportType.attr("value",this._lastValues.reportType);this.recalculationType.attr("value",this._lastValues.recalculationType);this.unCheckedReport.attr("checked",this._lastValues.unCheckedReport);this.multiLevel.attr("checked",this._lastValues.multiLevel);this.skipNonExisting.attr("checked",
this._lastValues.skipNonExisting);this.allowRecalculation.attr("checked",!this._lastValues.disallowRecalculation);this.disallowRecalculation.attr("checked",this._lastValues.disallowRecalculation);this.calculateValues.attr("checked",this._lastValues.calculateValues);this.recalculationChanged();this.formIntermediateResults.attr("checked",this._lastValues.formIntermediateResults);this.stringFormulaType.attr("checked",this._lastValues.stringFormulaType);this.numberFormulaType.attr("checked",this._lastValues.numberFormulaType);
this.dateFormulaType.attr("checked",this._lastValues.dateFormulaType);this.beforeConsolidation.attr("checked",this._lastValues.beforeConsolidation);this.afterConsolidation.attr("checked",this._lastValues.afterConsolidation);this.userSize=this._lastValues.userSize||null},setCheckBoxEnabled:function(a,c,e,f){void 0!=f&&a.attr("checked",f);a.attr("disabled",!e);c.style.color=e?"":"#808080"},calculateValuesChanged:function(){var a=this.allowRecalculation.checked&&this.calculateValues.checked;this.setCheckBoxEnabled(this.stringFormulaType,
this.stringFormulaTypeText,a,this.calculateValues.checked);this.setCheckBoxEnabled(this.numberFormulaType,this.numberFormulaTypeText,a,this.calculateValues.checked);this.setCheckBoxEnabled(this.dateFormulaType,this.dateFormulaTypeText,a,this.calculateValues.checked)},recalculationChanged:function(){this.setCheckBoxEnabled(this.calculateValues,this.calculateValuesText,this.allowRecalculation.checked,!0);this.setCheckBoxEnabled(this.formIntermediateResults,this.formIntermediateResultsText,!this.allowRecalculation.checked,
!1);this.calculateValuesChanged()}});b.declare("consolidationAction",null,{_checks:null,_ident:null,rn:null,showReportBefore:!1,showReportAfter:!1,conditionFolder:null,reportType:null,recalculationType:null,unCheckedReport:null,allowRecalculation:null,calculateValues:null,stringFormulaType:null,numberFormulaType:null,dateFormulaType:null,formIntermediateResults:null,multiLevel:null,skipNonExisting:null,onDone:function(){},showTempReports:function(){var a=parus.database.execute("prepareTempConsolidationReports",
{CHECKS:this.rn.join(";"),KIND:this.reportType,CONDFOLDER:this.conditionFolder,UNCHECKED:this.unCheckedReport,BEFOREHAND:this.allowRecalculation,MULTI_SIGN:this.multiLevel,SKIP_NONEXISTS:this.skipNonExisting});a=parus.parus8.rowNodes(a.documentElement.childNodes[0].childNodes[0].childNodes[0]);var c=new parus.balancePreparedConsolidationDialog({data:a,onApply:b.hitch(this,function(){var e=[];b.forEach(c.grid.selection.getSelected(),function(f){e.push(c.grid.store.getValue(f,"RN",""))});this.consolidate(e.join(";"));
return!0})});c.show()},consolidate:function(a){parus.progressDialog.iterateOverArray("\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u0430...",this.rn,b.hitch(this,function(c){parus.database.execute("consolidateReport",{RN:c,CHECKS:a,RESULT:this.formIntermediateResults,CALCTYPE:this.recalculationType,UNCHECKED:this.unCheckedReport,KIND:this.reportType,CONDFOLDER:this.conditionFolder,BEFOREHAND:this.allowRecalculation,CALCVALUES:this.calculateValues,
CONS_SHOW_BEFORE:this.showReportBefore?"1":"0",CALC_STR:this.stringFormulaType,CALC_NUM:this.numberFormulaType,CALC_DATE:this.dateFormulaType,MULTI_SIGN:this.multiLevel,SKIP_NONEXISTS:this.skipNonExisting})}),b.hitch(this,function(){this.showReportAfter&&parus.balance.balanceShowReportContents(parus.balance.consolidatedMasterGrid,!0);this.onDone()}))},execute:function(){this.showReportBefore?this.showTempReports():this.consolidate(null);return!0}})})},"parus/statusModelCoWorkingDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.statusModelCoWorkingDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.declare("parus.statusModelCoWorkingDialog",[parus.Dialog],{documentRN:null,event:null,coWorkingDate:null,readOnly:!1,_refreshDetailGridTimeoutID:null,postCreate:function(){this.inherited(arguments);this.readOnly&&
b.forEach(this.popupMasterMenu.getChildren(),function(c){c.itemAction&&c.destroyRecursive()});this.masterGrid.attr("store",this.masterGridStore());this.detailGrid.attr("store",this.detailGridStore());parus.balance._createActionsButton(this.popupMasterMenu,this.headerPane);this.popupMasterMenu.bindDomNode(this.masterGrid.viewsNode);this.popupDetailMenu.bindDomNode(this.detailGrid.viewsNode);var a=parus.userdata.get(this.declaredClass+"-masterGrid");a&&(parus.gridSettingsDialog.mergeGridSettings(this.masterGrid,
a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.masterGrid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.masterGrid,a.showFilterBar,a.filterValues,a.sortInfo),this.userSize=a.userSize);if(a=parus.userdata.get(this.declaredClass+"-detailGrid"))parus.gridSettingsDialog.mergeGridSettings(this.detailGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.detailGrid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.detailGrid,a.showFilterBar,
a.filterValues,a.sortInfo);this.masterGrid.setQuery(this.masterGrid.query)},masterGridStore:function(){return parus.gridData({queryid:"BalanceStatusModelCoWorkingStatus",onGetConditions:b.hitch(this,function(a){return{EVENT:this.event.event,EVENT_STAT:this.event.eventStatus,COWORKING_DATE:this.coWorkingDate}}),onComplete:b.hitch(this,function(a,c,e){a=this.masterGrid;if(0<c.length&&!a.selection.getSelectedCount()&&!e.start)a.selection.select(0),a.updateRow(0),a.autoSelected=!0;else a.onSelected();
this.checkMasterGridMenu()})})},detailGridStore:function(){return parus.gridData({queryid:"BalanceStatusModelCoWorkingStatusHistory",onGetConditions:b.hitch(this,function(a){var c=this.masterGrid.store,e=this.masterGrid.selection.getSelectedIndex();e=0<=e?this.masterGrid.getItem(e):null;a.parentRN=c.getValue(e,"RN");return{EVENT:a.parentRN||parus.parus8.CLASS_EmptyData,COWORKING_DATE:this.coWorkingDate}}),onComplete:b.hitch(this,function(a,c,e){a=this.detailGrid;if(0<c.length&&!a.selection.getSelectedCount()&&
!e.start)a.selection.select(0),a.updateRow(0),a.autoSelected=!0;else a.onSelected()})})},checkMasterGridMenu:function(){if(!this.readOnly){var a=0==this.masterGrid.selection.getSelectedCount(),c=this.masterGrid.store,e=this.masterGrid.selection.getSelectedIndex(),f=0<=e?this.masterGrid.getItem(e):null;e="1"==c.getValue(f,"PERF_MARK_SIGN");c=null!=c.getValue(f,"PERF_MARK");this.setMarkMenuItem.attr("disabled",a||!e||c);this.removeMarkMenuItem.attr("disabled",a||!e||!c)}},masterGridChange:function(){this._refreshDetailGridTimeoutID&&
clearTimeout(this._refreshDetailGridTimeoutID);this._refreshDetailGridTimeoutID=setTimeout(b.hitch(this,function(){this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID);this._refreshDetailGridTimeoutID=null;parus.balance.refreshGrid(this.detailGrid);this.checkMasterGridMenu()}),300)},setMark:function(){parus.balance.statusModelSetMark(this.documentRN,this.event,b.hitch(this,function(){parus.balance.refreshGrid(this.masterGrid)}))},removeMark:function(){parus.balance.statusModelRemoveMark(this.documentRN,
this.event,!0,b.hitch(this,function(){parus.balance.refreshGrid(this.masterGrid)}))}})})},"parus/errorMessageDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.errorMessageDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.errorMessageDialog",[parus.messageDialog],{})})},"parus/statusModelNoteDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.statusModelNoteDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.FilteringSelect");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.declare("parus.statusModelNoteDialog",[parus.Dialog],{RN:null,event:null,eventTypeRN:null,noteHeader:null,note:null,postCreate:function(){this.inherited(arguments);this.loadNoteHeaderStore(this.eventTypeRN);this.RN&&this.noteHeaderEdit.attr("disabled",!0);this.note&&this.noteEdit.attr("value",
this.note)},loadNoteHeaderStore:function(a){this.noteHeaderEdit.attr("store",new parus.gridData({asJson:!0,persistent:!0,identityFieldName:"CODE",_data:parus.database.queryObject("BalanceStatusModelTypeNotes",{EVENT:a}),onComplete:b.hitch(this,function(c,e,f){f.query&&f.query.justLoaded&&0<e.length&&this.noteHeaderEdit.attr("value",null!=this.noteHeader?this.noteHeader:c.getValue(e[0],"CODE"))})}));this.noteHeaderEdit.store.query({justLoaded:!0})},noteEditChange:function(){this.noteEdit.attr("value")?
(b.removeClass(this.noteEdit.domNode,"dijitError"),t.hideTooltip(this.noteEdit.domNode)):(t.showTooltip("\u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",this.noteEdit.domNode),b.addClass(this.noteEdit.domNode,"dijitError"))},validate:function(){var a=this.dialog.validate();this.noteEdit.attr("value")?b.removeClass(this.noteEdit.domNode,"dijitError"):b.addClass(this.noteEdit.domNode,"dijitError");if(a&&!this.noteEdit.attr("value"))return t.showTooltip("\u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",
this.noteEdit.domNode),!1;t.hideTooltip(this.noteEdit.domNode);return a},close:function(){t.hideTooltip(this.noteHeaderEdit.domNode);t.hideTooltip(this.noteEdit.domNode);return this.inherited(arguments)},_onShow:function(){this.validate();this.inherited(arguments)},insertNote:function(){var a=parus.database.execute("insertStatusModelNote",{EVENT:this.event,NOTE_HEADER:this.noteHeaderEdit.attr("value"),NOTE:this.noteEdit.attr("value")});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],
"NRN")},updateNote:function(){return!!parus.database.execute("updateStatusModelNote",{RN:this.RN,NOTE:this.noteEdit.attr("value")})}})})},"parus/balanceReportsExchangeJournalDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportsExchangeJournalDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceReportsExchangeJournalDialog",[parus.Dialog],{kind:null,catalog_name:null,
postCreate:function(){this.inherited(arguments);this.grid.attr("store",new parus.gridData({queryid:"BalanceReportExchangeJournal",identityFieldName:"RN",onComplete:b.hitch(this,function(c,e,f){this.grid.selection.selectRange(0,e.length-1)}),onGetConditions:b.hitch(this,function(c){return{KIND:this.kind,CATALOG_NAME:this.catalog_name}})}));this.grid.setQuery({});this.popupMenu.bindDomNode(this.grid.viewsNode);parus.balance._createActionsButton(this.popupMenu,this.headerPane);var a=parus.userdata.get(this.declaredClass);
a&&(parus.gridSettingsDialog.mergeGridSettings(this.grid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.grid,a.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.popupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeFilterBar(this.grid,a.showFilterBar,a.filterValues,a.sortInfo))}})})},"parus/designerTableModelIndexDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTableModelIndexDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerIndexDialog");b.require("parus.designerIndexFormulaDialog");b.declare("parus.designerTableModelIndexDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,
c,e){this.inherited(arguments);!this.prn&&this.parentDialog&&this.parentDialog.dictionary&&"DesignerBalanceTablesNotIncludedIndexes"==this.parentDialog.dictionary.code&&(this.prn=this.getParentDialogCondition("MODEL_PRN"));if(a&&c&&(this.indexEdit.attr("value",a.getValue(c,"BALANCEINDEX")),this.priorityEdit.attr("value",a.getValue(c,"PRIORITY")),this.agrFuncSelect.attr("value",a.getValue(c,"AGR_FUNC")),this.editMode)){var f="1"==a.getValue(c,"BITYPE");parus.controlActions.setDisabled(this.agrFuncSelect,
!f)}this.indexEdit.onApplyDictionary=b.hitch(this,this.indexChanged)},indexChanged:function(a){a?(a="1"==a.getFieldValue("BITYPE"),parus.controlActions.setDisabled(this.agrFuncSelect,!a)):this.indexEdit.showingDictionary||this.indexEdit.attr("value")||parus.controlActions.setDisabled(this.agrFuncSelect,!0)},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceTableModels.Indexes.Insert",{PRN:this.prn,BALANCEINDEX:this.indexEdit.attr("value"),PRIORITY:this.priorityEdit.attr("value"),
AGR_FUNC:this.agrFuncSelect.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTableModels.Indexes.Update",{RN:this.rn,BALANCEINDEX:this.indexEdit.attr("value"),PRIORITY:this.priorityEdit.attr("value"),AGR_FUNC:this.agrFuncSelect.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceTableModels.Indexes.Delete",{RN:a.getValue(c,"RN")})},executeInsertList:function(a,
c){return parus.database.execute("designer.BalanceTableModels.Indexes.InsertList",{PRN:a,RN:c})},executeInsertGroup:function(a,c){return parus.database.execute("designer.BalanceTableModels.Indexes.InsertGroup",{PRN:a,GROUP:c})},executeChangePriority:function(a,c){return!!parus.database.execute("designer.BalanceTableModels.Indexes.ChangePriority",{PRN:a,PRIORITY:c})}})})},"parus/balanceAdvReportPane":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceAdvReportPane");
b.require("dojo.date.locale");b.require("dijit.dijit");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.TabContainer");b.require("dijit.layout.ContentPane");b.require("dijit.Menu");b.require("dijit.Tree");b.require("dijit.tree._dndSelector");b.require("dojox.grid.DataGrid");b.require("dojox.grid.EnhancedGrid");b.require("dojox.grid.enhanced._PluginManager");b.require("dojox.grid.enhanced.plugins.IndirectSelection");b.require("parus.catalogTreeModel");b.require("parus.gridData");b.require("parus.catalogActions");
b.require("parus.userdata");b.require("parus.confirmationDialog");b.require("parus.treeDialog");b.require("parus.gridSettingsDialog");b.require("parus.gridStatus");b.require("parus.gridColumnsFilter");b.require("parus.userReportPane");b.require("parus.balanceUserProcsDialog");b.require("parus.balanceUserProcParamsDialog");b.require("parus.balanceUserReportParamsDialog");b.require("parus.balanceAdvReportCompareDialog");b.require("parus.balanceAdvReportSelectDialog");parus||(parus={});parus.balance||
b.mixin(parus,{balance:{}});b.mixin(parus.balance,{advCheckGridStore:function(a,c){return parus.gridData({queryid:"advCheckGridData",onGetConditions:b.hitch(this,function(e){var f=parus.parus8.denote(c);if(!a.selectedItem&&a.rootNode){var g=[],h=parus.userdata.get(c+"selectedCatalog");h.selectedCatalog&&(g=h.selectedCatalog.split(";"));if(0==g.length||""==g[0]){var l=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceCompareReports"});l&&(g=parus.parus8.nodeField(parus.parus8.rowNodes(l)[0],
"PATH").split(";"))}if(0==g.length||""==g[0])g=[a.rootNode.item];a.attr("path",g);h.checks&&a.setCheckedPaths(b.map(h.checks.split(";"),function(r){return r.split("/")}))}var m=[];b.forEach(a.paths,function(r){a.model.isValid(r[r.length-1])&&m.push(a.model.getIdentity(r[r.length-1]))});g={CRN:a.listMode?null:m.join(";")||parus.parus8.CLASS_EmptyData};e.catalogRN=a.listMode?null:m[0];var p=a.selectedItem;b.forEach(f.headerMenu.getChildren(),function(r){r.actionCode&&"dijit.MenuSeparator"!=r.declaredClass&&
r.attr("disabled",!a.model.hasAction(p,r.actionCode))});return g}),onComplete:b.hitch(this,function(e,f,g){var h=a.selectedItem,l=parus.parus8.denote(c),m=function(p){b.forEach(p.getChildren(),function(r){if("dijit.MenuSeparator"!=r.declaredClass){r.userObjectsGrid=l;var w=a.listMode?!1:!a.model.hasAction(h,r.actionCode);a.model.checkAccess()&&(r.domNode.style.display=w?"none":"");!w&&0==f.length&&r.itemAction&&(w=!0);"dijit.MenuSeparator"!=r.declaredClass&&r.attr("disabled",w);r.popup&&(r.popup.from_item=
r,m(r.popup))}})};m(l.headerMenu);parus.parus8.checkMenuSeparators(l.headerMenu);if(0<f.length&&!l.selection.getSelectedCount()&&!g.start)l.selection.select(0),l.updateRow(0),l.autoSelected=!0;else l.onSelected()})})},advCheckSettingsAdditions:function(){return[{widget:parus.balance.advCheckDetailGridPane,title:"\u0421\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438",id:"advCheckDetailGridPaneHiddenMode"}]},advCheckMove:function(a){var c=a.store,e=a.selection.getFirstSelected();
(new parus.treeDialog({model:new (b.getObject(parus.balance.advCheckCatalogTree.model.declaredClass,!1))({queryid:parus.balance.advCheckCatalogTree.model.queryid,onGetConditions:parus.balance.advCheckCatalogTree.model.onGetConditions}),key:"BalanceCompareReports",onDefaultNeeded:function(){var f=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceCompareReports"});return f?parus.parus8.nodeField(parus.parus8.rowNodes(f)[0],"PATH"):null},onPerform:function(f){for(var g=0;g<a.selection.getSelectedCount();g++)parus.database.execute("moveAdvCheck",
{RN:c.getValue(e,"RN"),CRN:f}),e=a.selection.getNextSelected(e);parus.balance.refreshGrid(a);return!0}})).show()},advCheckDelete:function(a){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var c=a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("deleteAdvCheck",{RN:c.getValue(e,"RN")}),e=a.selection.getNextSelected(e);
this.refreshGrid(a);return!0})})).show()},advCheckCompareReports:function(a,c){var e=new parus.balanceAdvReportCompareDialog({_lastValues:{params:null},onApply:b.hitch(this,function(){e.saveFormLastValues();(new parus.treeDialog({model:new (b.getObject(parus.balance.advCheckCatalogTree.model.declaredClass,!1))({queryid:parus.balance.advCheckCatalogTree.model.queryid,onGetConditions:parus.balance.advCheckCatalogTree.model.onGetConditions}),key:"BalanceCompareReports",onDefaultNeeded:function(){var f=
parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceCompareReports"});return f?parus.parus8.nodeField(parus.parus8.rowNodes(f)[0],"PATH"):null},onSingle:function(){if(a.hiddenMode)return parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("singleCatalog",{UNITCODE:"BalanceCompareReports",ACTION_CODE:"BLCOMPREP_COMPARE"}))[0],"CATALOG");var f=a.path;return a.model.getIdentity(f[f.length-1])},onPerform:function(f){(response=parus.database.execute("BalanceCompareReportCompare",
{RN:null,CRN:f,RULE_CODE:e.ruleEdit.value,KIND:e.reportType.value,DATE_FROM:parus.parus8.valueToExternalString(e.fromDateEdit.attr("value")),DATE_TO:parus.parus8.valueToExternalString(e.toDateEdit.attr("value")),AGENTS:e.agentCodeEdit.value,CONDFOLDER:e._conditionFolderRN||null,PARAMS:e.buildParams(),SAVE_EQUALS:0,SAVE_EXCLUDES:0}))&&parus.balance.refreshGrid(c,"RN",parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"NRN"));e.applied=!!response;e.applied&&e.close();return!0}})).show();return!1})});
e.show()},advCheckReCompareReports:function(a){var c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e),g=[];e=document.createElement("div");e.innerHTML=c.getValue(f,"PARAMS");(e=b.query("criteria",e)[0])&&b.forEach(parus.parus8.getTextContent(e).split("\x3c\u0421riterion\x3e"),function(l){l&&g.push({Criterion:l})});g={Conditions:{Criteria:g}};var h=new parus.balanceAdvReportCompareDialog({rn:c.getValue(f,"RN"),_lastValues:{conditionFolderRN:c.getValue(f,"CONDFOLDER"),conditionFolder:c.getValue(f,
"FOLDER_NAME"),reportType:c.getValue(f,"KIND"),fromDate:c.getValue(f,"DATE_FROM"),toDate:c.getValue(f,"DATE_TO"),agentCode:c.getValue(f,"AGENTS"),rule:c.getValue(f,"RULE_CODE"),groups:c.getValue(f,"SECTION_GROUPS"),params:g},onApply:b.hitch(this,function(){h.saveFormLastValues();(response=parus.database.execute("BalanceCompareReportCompare",{RN:c.getValue(f,"RN"),CRN:c.getValue(f,"CRN"),RULE_CODE:h.ruleEdit.value,KIND:h.reportType.value,DATE_FROM:parus.parus8.valueToExternalString(h.fromDateEdit.attr("value")),
DATE_TO:parus.parus8.valueToExternalString(h.toDateEdit.attr("value")),AGENTS:h.agentCodeEdit.value,CONDFOLDER:h._conditionFolderRN||null,PARAMS:h.buildParams(),SAVE_EQUALS:h.saveEqualsCheckBox.checked?1:0,SAVE_EXCLUDES:h.saveExcludesCheckBox.checked?1:0}))&&parus.balance.refreshGrid(a,"RN",c.getValue(f,"RN"));return!!response})});h.show()},advCheckEqualSettingsAdditions:function(){return[{widget:parus.balance.advCheckEqualSubDetailPane,title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438",
id:"advCheckEqualPaneHiddenMode"}]},advCheckUnEqualSettingsAdditions:function(){return[{widget:parus.balance.advCheckUnEqualSubDetailPane,title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438",id:"advCheckUnEqualPaneHiddenMode"}]},_advGridStructureSortClause:function(a,c){var e="from BLTBLVALUES V inner join  BLTABLESIND TI on TI.RN \x3d   V.BLTABLESIND inner join BLCOMPREPRULATR A on  TI.BALANCEINDEXES \x3d  A.BALANCEINDEX inner join BALANCEINDEXES I on I.RN \x3d A.BALANCEINDEX where V.PRN \x3d  TR.RN and A.PRN \x3d  RL.RN ";
return"(select "+(2==a?"V.DATEVAL "+e:1==a?"V.NUMVAL "+e:"V.STRVAL "+e)+" and I.RN \x3d "+c+")"},advGridBuildStructure:function(a,c){var e=parus.balance.advCheckMasterGrid.selection.getSelectedIndex();e=0<=e?parus.balance.advCheckMasterGrid.getItem(e):null;if(!e)return null;var f=[];b.forEach(parus.parus8.nodeField(e,"XMLATTRS"),function(h){f.push({colSpan:1,propRN:parus.parus8.nodeField(h,"RN"),dataType:parus.parus8.nodeField(h,"DATATYPE"),dataSubType:parus.parus8.nodeField(h,"SUBTYPE"),field:"prop"+
parus.parus8.nodeField(h,"RN"),name:parus.parus8.nodeField(h,"CODE"),formatter:parus.balance.formatDocPropValue,width:"121px",styles:"text-align:"+(0==parus.parus8.nodeField(h,"DATATYPE")?"left":"right")+";",sortField:parus.balance._advGridStructureSortClause(parus.parus8.nodeField(h,"DATATYPE"),parus.parus8.nodeField(h,"RN"))})});if(f.length){e=b.clone(a.structure);e[0].cells[0]=b.filter(e[0].cells[0],function(h){return!h.propRN});e[0].cells[0]=e[0].cells[0].concat(f);var g=parus.userdata.get(c);
g&&(e=parus.gridSettingsDialog._mergeStructures(e,g.gridSettings));a.setStructure(e)}},advSubDetailGridStore:function(a,c,e,f){return new parus.gridData({queryid:"advCheckGridSubDetailData",parentUnitCode:"BalanceCompareReportSpecs",onGetConditions:b.hitch(this,function(g){parus.balance.advGridBuildStructure(c,e);var h={PRN:a};g.parentRN=a;return h}),onComplete:b.hitch(this,function(g,h,l){var m=parus.balance.advCheckCatalogTree.selectedItem,p=parus.balance.advCheckCatalogTree,r=function(w){b.forEach(w.getChildren(),
function(x){if("dijit.MenuSeparator"!=x.declaredClass){x.userObjectsGrid=c;var A=p.listMode?!1:!p.model.hasAction(m,x.actionCode);p.model.checkAccess()&&(x.domNode.style.display=A?"none":"");!A&&0==h.length&&x.itemAction&&(A=!0);"dijit.MenuSeparator"!=x.declaredClass&&x.attr("disabled",A);x.popup&&(x.popup.from_item=x,r(x.popup))}})};r(c.headerMenu);parus.parus8.checkMenuSeparators(c.headerMenu);0<h.length&&!c.selection.getSelectedCount()&&!l.start&&(c.selection.select(0),c.updateRow(0),c.autoSelected=
!0);setTimeout(function(){b.marginBox(f.domNode).w&&f.focus.focusGrid()},0)})})},advDetailGridStore:function(a,c,e,f){return new parus.gridData({queryid:"advCheckGridDetailData",parentUnitCode:"BalanceCompareReports",onGetConditions:b.hitch(this,function(g){parus.balance.advGridBuildStructure(e,f);g=parus.balance.advCheckMasterGrid.store;var h=parus.balance.advCheckMasterGrid.selection.getSelectedIndex();h=0<=h?parus.balance.advCheckMasterGrid.getItem(h):null;var l={PRN:g.getValue(h,"RN")||parus.parus8.CLASS_EmptyData,
EXCLUDE_SIGN:a,EQUAL_SIGN:c};g.parentRN=g.getValue(h,"RN");return l}),onComplete:b.hitch(this,function(g,h,l){var m=parus.balance.advCheckCatalogTree.selectedItem,p=parus.balance.advCheckCatalogTree,r=function(w){b.forEach(w.getChildren(),function(x){x.userObjectsGrid=e;var A=p.listMode?!1:!p.model.hasAction(m,x.actionCode);!A&&0==h.length&&x.itemAction&&(A=!0);parus.balance.advCheckMasterGrid.store.getValue(parus.balance.advCheckMasterGrid.getItem(parus.balance.advCheckMasterGrid.selection.getSelectedIndex()),
"RN")||(A=!0);"dijit.MenuSeparator"!=x.declaredClass&&x.attr("disabled",A);x.popup&&r(x.popup)})};r(e.headerMenu);parus.parus8.checkMenuSeparators(e.headerMenu);if(0<h.length&&!e.selection.getSelectedCount()&&!l.start)e.selection.select(0),e.updateRow(0),e.autoSelected=!0;else e.onSelected();setTimeout(function(){b.marginBox(parus.balance.advCheckMasterGrid.domNode).w&&parus.balance.advCheckMasterGrid.focus.focusGrid()},1E3)})})},advCheckGridChange:function(){parus.balance._refreshDetailGridTimeoutID&&
clearTimeout(parus.balance._refreshDetailGridTimeoutID);parus.balance._refreshDetailGridTimeoutID=setTimeout(b.hitch(parus.balance,function(){this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID);this._refreshDetailGridTimeoutID=null;var a=parus.balance.advCheckMasterGrid,c=a.store,e=a.selection.getSelectedIndex();e=0<=e?a.getItem(e):null;c=c.getValue(e,"RN")||parus.parus8.CLASS_EmptyData;this._catalogChangeBuffer[a.id]!=c&&(this._catalogChangeBuffer[a.id]=c,0==parus.balance.advCheckActiveDetailGridIndex()?
parus.balance.advCheckEqualDetailGrid.setStore(parus.balance.advDetailGridStore(0,1,parus.balance.advCheckEqualDetailGrid,"parus.balance.advCheckEqualDetailGrid")):1==parus.balance.advCheckActiveDetailGridIndex()?parus.balance.advCheckUnEqualDetailGrid.setStore(parus.balance.advDetailGridStore(0,0,parus.balance.advCheckUnEqualDetailGrid,"parus.balance.advCheckUnEqualDetailGrid")):2==parus.balance.advCheckActiveDetailGridIndex()&&parus.balance.advCheckExcludedDetailGrid.setStore(parus.balance.advDetailGridStore(1,
0,parus.balance.advCheckExcludedDetailGrid,"parus.balance.advCheckExcludedDetailGrid")))}),300)},advCheckActiveDetailGridIndex:function(){if(parus.balance.advCheckDetailPages.selectedChildWidget.id==parus.balance.advCheckEqualDetailPage.id)return 0;if(parus.balance.advCheckDetailPages.selectedChildWidget.id==parus.balance.advCheckUnEqualDetailPage.id)return 1;if(parus.balance.advCheckDetailPages.selectedChildWidget.id==parus.balance.advCheckExcludedDetailPage.id)return 2},advCheckDetailGridChange:function(a,
c,e){parus.balance._refreshDetailGridTimeoutID&&clearTimeout(parus.balance._refreshDetailGridTimeoutID);parus.balance._refreshDetailGridTimeoutID=setTimeout(b.hitch(parus.balance,function(){this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID);this._refreshDetailGridTimeoutID=null;var f=a.store,g=a.selection.getSelectedIndex();g=0<=g?a.getItem(g):null;var h=f.getValue(g,"RN")||parus.parus8.CLASS_EmptyData;this._catalogChangeBuffer[a.id]!=h&&(this._catalogChangeBuffer[a.id]=
h,c.setStore(parus.balance.advSubDetailGridStore(g?f.getValue(g,"RN"):parus.parus8.CLASS_EmptyData,c,e,a)))}),300)},advCheckDetailShowPage:function(a){parus.balance.advCheckGridChange()},advCheckDetailExecuteEdit:function(a,c){var e=a.store,f=a.selection.getSelectedIndex();if(f=0<=f?a.getItem(f):null){var g=parus.parus8.rowNodes(parus.database.execute("GetEditInfoByAdvCheckRow",{RN:e.getValue(f,c)}))[0];parus.balance.executeEditValues(parus.parus8.nodeField(g,"REPORT"),parus.parus8.nodeField(g,"SUBREPORT"),
parus.parus8.nodeField(g,"BDATE"),parus.parus8.nodeField(g,"FORM_CODE"),parus.parus8.nodeField(g,"AGENT_CODE"),parus.parus8.nodeField(g,"SECTION_CODE"),parus.parus8.nodeField(g,"KIND"),parus.parus8.nodeField(g,"AGENT"),function(h){var l=parus.parus8.nodeField(g,"NUMB");b.forEach(h._tables,function(m){var p=m.clones.byKey[l];p&&h.followCell(p.cells[0]);b.forEach(m.totals,function(r){(r=r.clones.byKey[l])&&h.followCell(r.cells[0])})})})}},advCheckDetailFollowReport:function(a,c){if(!parus.parus8._embeddedMode){var e=
a.store,f=a.selection.getSelectedIndex();if(f=0<=f?a.getItem(f):null){var g=parus.parus8.rowNodes(parus.database.execute("GetEditInfoByAdvCheckRow",{RN:e.getValue(f,c)}))[0];"0"==parus.parus8.nodeField(g,"KIND")?(parus.balance.TabContainer.selectChild(parus.balance.primaryPage),parus.balance.primaryCatalogTree.attr("path",parus.parus8.nodeField(g,"PATH").split(";")).then(function(){parus.balance.refreshGrid(parus.balance.primaryMasterGrid,"RN",parus.parus8.nodeField(g,"REPORT"))})):(parus.balance.TabContainer.selectChild(parus.balance.consolidatedPage),
parus.balance.consolidatedCatalogTree.attr("path",parus.parus8.nodeField(g,"PATH").split(";")).then(function(){parus.balance.refreshGrid(parus.balance.consolidatedMasterGrid,"RN",parus.parus8.nodeField(g,"REPORT"))}))}}},advCheckDetailExclude:function(a){for(var c=a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("advCheckGridDetailExclude",{RN:c.getValue(e,"RN")}),e=a.selection.getNextSelected(e);parus.balance.refreshGrid(a)},advCheckDetailUndoExclude:function(a){for(var c=
a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("advCheckGridDetailUndoExclude",{RN:c.getValue(e,"RN")}),e=a.selection.getNextSelected(e);parus.balance.refreshGrid(a)},advCheckDetailSelect:function(a){for(var c=[],e=a.store,f=a.selection.getFirstSelected(),g=0;g<a.selection.getSelectedCount();g++)c.push(e.getValue(f,"RN")),f=a.selection.getNextSelected(f);if(c.length){e=parus.balance.advCheckMasterGrid.store;g=parus.balance.advCheckMasterGrid.selection.getSelectedIndex();
f=parus.balance.advCheckMasterGrid.getItem(g);var h=[];g=document.createElement("div");g.innerHTML=e.getValue(f,"PARAMS");(g=b.query("criteria",g)[0])&&b.forEach(parus.parus8.getTextContent(g).split("\x3c\u0421riterion\x3e"),function(m){m&&h.push({Criterion:m})});h={Conditions:{Criteria:h}};var l=new parus.balanceAdvReportSelectDialog({protocol:e.getValue(f,"RN"),_lastValues:{rule:e.getValue(f,"RULE_CODE"),groups:e.getValue(f,"SECTION_GROUPS"),params:h},onApply:b.hitch(this,function(){l.saveFormLastValues();
(response=parus.database.execute("advCheckGridDetailSelect",{RN:c.join(";"),PRN:e.getValue(f,"RN"),PARAMS:l.buildParams()}))&&1==c.length&&parus.parus8.notificationMessage("\u041f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043e \u0441\u0442\u0440\u043e\u043a: "+parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"RESULT")+".");parus.balance.refreshGrid(a,"RN",c.length?c[0]:null);return!!response})});l.show()}},advCheckSubDetailDelete:function(a){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){for(var c=a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("advCheckGridSubDetailDelete",{RN:c.getValue(e,"RN")}),e=a.selection.getNextSelected(e);this.refreshGrid(a);return!0})})).show()},advCheckSubDetailSetEqual:function(a){var c=a.store,e=a.selection.getFirstSelected();parus.database.execute("advCheckGridSubDetailSetEqual",{RN:c.getValue(e,"RN")});a=parus.balance.advCheckUnEqualDetailGrid;c=a.store;e=a.selection.getFirstSelected();
parus.balance.refreshGrid(a,"RN",c.getValue(e,"RN"))}})})},"parus/designerReportTableTotalDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportTableTotalDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");
b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelTotalDialog");b.require("parus.designerReportTableIndexDialog");b.require("parus.designerReportTableIndexesDictionaryDialog");b.declare("parus.designerReportTableTotalDialog",[parus.designerTableModelTotalDialog],{postMixInProperties:function(){this.templateString=b.cache(b.moduleUrl("parus","designerTableModelTotalDialog.html"));this.inherited(arguments)},postCreate:function(){this.inherited(arguments);b.mixin(this.indexEdit,
{dictionary:"DesignerBalanceTableIndexesWithUnits",dialogClass:parus.designerReportTableIndexesDictionaryDialog,editDialogClass:parus.designerReportTableIndexDialog})},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceTables.Totals.Insert",b.mixin(this.getExecParams(),{PRN:this.prn})))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTables.Totals.Update",b.mixin(this.getExecParams(),{RN:this.rn}))},
executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceTables.Totals.Delete",{RN:a.getValue(c,"RN")})},executeChangePriority:function(a,c,e){return!!parus.database.execute("designer.BalanceTables.Totals.ChangePriority",{RN:a.getValue(c,"RN"),DIRECT:e?"-1":"1"})},executeGetNextPriority:function(){var a=parus.database.execute("designer.BalanceTables.Totals.GetNextPriority",{PRN:this.prn});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"PRIORITY")}})})},"parus/designerRecalculateTypeDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.designerRecalculateTypeDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.editDictionaryDialog");b.declare("parus.designerRecalculateTypeDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",
a.getValue(c,"CODE")),this.nameEdit.attr("value",a.getValue(c,"NAME")))},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceCalcType.Insert",{CRN:this.crn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceCalcType.Update",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")})},executeDelete:function(a,
c){return!!parus.database.execute("designer.BalanceCalcType.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/balance":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balance");b.require("dojo.date.locale");b.require("dijit.dijit");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.TabContainer");b.require("dijit.layout.ContentPane");b.require("dijit.Menu");b.require("dijit.Tree");b.require("dijit.tree._dndSelector");b.require("dijit.form.Textarea");b.require("dijit.Toolbar");
b.require("dijit.ToolbarSeparator");b.require("dojox.grid.DataGrid");b.require("dojox.grid.EnhancedGrid");b.require("dojox.grid.enhanced._PluginManager");b.require("dojox.grid.enhanced.plugins.IndirectSelection");b.require("dojox.grid.enhanced.plugins.Selector");b.require("parus.cache");b.require("parus.catalogTreeModel");b.require("parus.gridData");b.require("parus.catalogActions");b.require("parus.userdata");b.require("parus.confirmationDialog");b.require("parus.treeDialog");b.require("parus.gridSettingsDialog");
b.require("parus.gridStatus");b.require("parus.gridColumnsFilter");b.require("parus.userReportPane");b.require("parus.balanceUserProcsDialog");b.require("parus.balanceUserProcParamsDialog");b.require("parus.balanceUserReportParamsDialog");b.require("parus.templateGridPane");b.require("parus.balanceReportsConditionsDialog");b.require("parus.balanceReportDialog");b.require("parus.balanceSubReportDialog");b.require("parus.balanceCheckReportDialog");b.require("parus.balanceReportCheckProtocolTabPage");
b.require("parus.balanceTemplatesDialog");b.require("parus.balanceLoadReportsDialog");b.require("parus.balanceCustomLoadReportsDialog");b.require("parus.balanceCustomDownloadReportsDialog");b.require("parus.balanceConsolidatedReportDialog");b.require("parus.balanceReportsFileExportDialog");b.require("parus.balanceReportsFileImportDialog");b.require("parus.balanceSpecialActions");b.require("parus.balanceStatusModel");b.require("parus.balanceAdvReportPane");b.require("parus.balanceUserCalcsDialog");
b.require("parus.signDialog");b.require("parus.customIconsPalette");b.require("parus.excelFileFormatDialog");b.require("parus.excelColorModeDialog");b.require("parus.exportGridDialog");parus||(parus={});parus.balance||b.mixin(parus,{balance:{}});b.mixin(parus.balance,{_primaryConditions:null,_consolidatedConditions:null,_refreshGridTimeoutID:null,_refreshDetailGridTimeoutID:null,_catalogChangeBuffer:{},_shownPages:{},primaryIgnoreMaxGridRecords:!1,consolidatedIgnoreMaxGridRecords:!1,showTemplateGutter:!1,
applicationCode:null,_createActionsButton:function(a,c,e){if(c){var f=c.getChildren();if(!(3>f.length)){var g=f[1];f=f[2];c.actionsButton||(g.domNode.style.overflow="hidden",g.domNode.style.zIndex="100",g=new t.form.ComboButton({label:'\x3cspan labelContent\x3d"1"\x3e\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f\x3c/span\x3e',dropDown:a,style:"font-weight:bold;font-size:90%;margin:1px"},b.place("\x3cdiv/\x3e",g.domNode,"only")),b.mixin(g,{onClick:b.hitch(g,g.toggleDropDown)}),b.mixin(c,{actionsButton:g}),
b.mixin(a,{actionsButtonPane:c}));var h=[],l=!1,m=function(r,w){return w?function(){w();r.onClick()}:b.hitch(r,r.onClick)},p=function(r,w){l=!0;b.forEach(r.getChildren(),function(x){"dijit.MenuSeparator"==x.declaredClass&&(l=!0);var A=e?x.customIcon:x.defaultIcon;x.customIcon=A;"dijit.MenuSeparator"!=x.declaredClass&&x.attr("iconClass",A);A?(l&&(h.length&&h.push(new t.ToolbarSeparator({"class":"balanceToolBarSeparator"})),l=!1),x.toolBarButton=new t.form.Button({label:x.label,showLabel:!1,"class":"balanceToolBarButton",
iconClass:A+"Big",onClick:m(x,w)}),h.push(x.toolBarButton)):x.toolBarButton=null;x.popup&&p(x.popup,w)})};p(a,a.preAction);h.length?(c.toolbar||(g=new t.Toolbar({"class":"balanceToolBar"},b.place("\x3cdiv\x3e",f.domNode,"only")),b.mixin(c,{toolbar:g})),b.forEach(c.toolbar.getChildren(),function(r){c.toolbar.removeChild(r)}),b.forEach(h,function(r){c.toolbar.addChild(r)}),c.domNode.style.height="33px",b.query("[labelContent]",c.actionsButton.domNode).style({height:"21px",paddingTop:"5px",display:"block"})):
(c.toolbar&&(c.toolbar.destroyRecursive(),c.toolbar=null),c.domNode.style.height="25px",b.query("[labelContent]",c.actionsButton.domNode).style({height:"auto",paddingTop:"0",display:""}));parus.parus8.checkMenuSeparators(a);t.byNode(c.domNode.parentNode).layout();c.layout()}}},_docprops:null,_detailDocprops:null,_masterAttrDescriptors:null,_masterUserCalcs:null,_detailUserCalcs:null,_detailAttrDescriptors:null,_masterHasStatusModel:!1,formatPageTitle:function(a){if(parus.parus8._embeddedMode)return a=
a.split("\n").join(" "),"\x3cdiv align\x3d'center'\x3e"+a+"\x3c/div\x3e";a=a.split("\n").join("\x3cbr/\x3e");return b.isIE?"\x3cspan style\x3d'height:30px'\x3e"+a+"\x3c/span\x3e":"\x3cdiv align\x3d'center' style\x3d'height:30px'\x3e"+a+"\x3c/div\x3e"},availableUnits:null,_processMenu:function(a,c){b.forEach(a.getChildren(),function(e){e.popup&&parus.balance._processMenu(e.popup,c);c(e)})},_createPrimaryReportsPane:function(a){parus.balance.primaryPage=new t.layout.ContentPane({style:"height:100%;width:100%;padding:0",
title:parus.balance.formatPageTitle("\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435\x3cbr/\x3e\u043e\u0442\u0447\u0435\u0442\u044b"),href:b.moduleUrl("parus","balancePrimaryReportPane.html").toString(),selected:!0,region:"center",onShow:function(){8>=b.isIE?(parus.balance._shownPages[page.id]?setTimeout(function(){parus.catalogActions.refreshCatalogTree(parus.balance.primaryCatalogTree)},1E3):parus.balance.refreshGrid(parus.balance.primaryMasterGrid),parus.balance._shownPages[page.id]=!0):
parus.balance.refreshGrid(parus.balance.primaryMasterGrid)},onLoad:function(){parus.balance.applicationCode&&(parus.balance._processMenu(parus.balance.primaryMasterGridPopupMenu,function(f){f.removeForApplications&&0<=b.indexOf(f.removeForApplications.split(";"),parus.balance.applicationCode)&&f.destroyRecursive()}),parus.balance._processMenu(parus.balance.primaryDetailGridPopupMenu,function(f){f.removeForApplications&&0<=b.indexOf(f.removeForApplications.split(";"),parus.balance.applicationCode)&&
f.destroyRecursive()}));parus.balance._masterHasStatusModel||parus.balance._processMenu(parus.balance.primaryMasterGridPopupMenu,function(f){f.features&&0<=b.indexOf(f.features.split(";"),"StatusModel")&&f.destroyRecursive()});var c=[];parus.balance._masterHasStatusModel&&(c=c.concat(parus.balance.statusModelColumns()));b.forEach(parus.balance._docprops,function(f){"1"==parus.parus8.nodeField(f,"SHOW_IN_GRID")&&c.push({colSpan:1,propRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,
"DATATYPE"),dataSubType:parus.parus8.nodeField(f,"SUBTYPE"),field:"prop"+parus.parus8.nodeField(f,"RN"),name:parus.parus8.nodeField(f,"CODE"),formatter:parus.balance.formatDocPropValue,width:"121px",styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":"right")+";",sortField:2==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_DATE_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceReports', T.RN)":1==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_NUM_VALUE("+parus.parus8.nodeField(f,
"RN")+",'BalanceReports', T.RN)":"F_DOCS_PROPS_GET_STR_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceReports', T.RN)"})});b.forEach(parus.balance._masterAttrDescriptors,function(f){c.push({colSpan:1,attrRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(f,"RN"),name:parus.parus8.nodeField(f,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(f,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(f,
"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(f,"PARAMCOUNT")?parus.parus8.nodeField(f,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(f,"STOREDPROC")+"(T.RN)"})});if(c.length){var e=b.clone(parus.balance.primaryMasterGrid.structure);e[0].cells[0]=e[0].cells[0].concat(c);parus.balance.primaryMasterGrid.setStructure(e)}c=[];b.forEach(parus.balance._detailDocprops,function(f){"1"==parus.parus8.nodeField(f,"SHOW_IN_GRID")&&
c.push({colSpan:1,propRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,"DATATYPE"),dataSubType:parus.parus8.nodeField(f,"SUBTYPE"),field:"prop"+parus.parus8.nodeField(f,"RN"),name:parus.parus8.nodeField(f,"CODE"),formatter:parus.balance.formatDocPropValue,width:"121px",styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":"right")+";",sortField:2==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_DATE_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceSubReports', T.RN)":
1==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_NUM_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceSubReports', T.RN)":"F_DOCS_PROPS_GET_STR_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceSubReports', T.RN)"})});b.forEach(parus.balance._detailAttrDescriptors,function(f){c.push({colSpan:1,attrRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(f,"RN"),name:parus.parus8.nodeField(f,"NAME"),formatter:parus.balance.formatAttrValue,
width:"1"==parus.parus8.nodeField(f,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(f,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(f,"PARAMCOUNT")?parus.parus8.nodeField(f,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(f,"STOREDPROC")+"(T.RN)"})});c.length&&(e=b.clone(parus.balance.primaryDetailGrid.structure),e[0].cells[0]=e[0].cells[0].concat(c),parus.balance.primaryDetailGrid.setStructure(e));
parus.balance._createActionsButton(parus.balance.primaryCatalogTreePopupMenu,parus.balance.primaryCatalogTreeHeaderPane);parus.balance._createActionsButton(parus.balance.primaryMasterGridPopupMenu,parus.balance.primaryMasterGridHeaderPane);parus.balance._createActionsButton(parus.balance.primaryDetailGridPopupMenu,parus.balance.primaryDetailGridHeaderPane);parus.balance._createActionsButton(parus.balance.primaryFoldersTreePopupMenu,parus.balance.primaryFoldersTreeHeaderPane);parus.balance._primaryConditions=
parus.userdata.get("primaryConditions")||{};parus.balance.primaryCatalogTreePopupMenu.bindDomNode(parus.balance.primaryCatalogTree.domNode);parus.balance.primaryMasterGridPopupMenu.bindDomNode(parus.balance.primaryMasterGrid.viewsNode);parus.balance.primaryDetailGridPopupMenu&&parus.balance.primaryDetailGridPopupMenu.bindDomNode(parus.balance.primaryDetailGrid.viewsNode);parus.balance.primaryFoldersTreePopupMenu.bindDomNode(parus.balance.primaryFolderTree.domNode);(e=parus.userdata.get("parus.balance.primaryCatalogTree"))&&
parus.gridSettingsDialog.mergeMenuSettings(parus.balance.primaryCatalogTreePopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions);(e=parus.userdata.get("parus.balance.primaryFolderTree"))&&parus.gridSettingsDialog.mergeMenuSettings(parus.balance.primaryFoldersTreePopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions);if(e=parus.userdata.get("parus.balance.primaryMasterGrid"))parus.gridSettingsDialog.setCatalogTreeVisible(parus.balance.primaryCatalogTree,
!e.hideCatalogTree),parus.gridSettingsDialog.mergeAdditions(parus.balance.primarySettingsAdditions(),e.additions),parus.gridSettingsDialog.mergeMenuSettings(parus.balance.primaryMasterGridPopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.primaryMasterGrid,e.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.primaryMasterGrid,e.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.primaryMasterGrid,
e.showFilterBar,e.filterValues,e.sortInfo),parus.balance.primaryMasterGrid.abonentFields=(e.abonentFields||parus.balance.primaryMasterGrid.abonentFields.split(";")).join(";");if(e=parus.userdata.get("parus.balance.primaryDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.primaryDetailGridPopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.primaryDetailGrid,e.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.primaryDetailGrid,
e.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.primaryDetailGrid,e.showFilterBar,e.filterValues,e.sortInfo),parus.balance.primaryDetailGrid.abonentFields=(e.abonentFields||parus.balance.primaryDetailGrid.abonentFields.split(";")).join(";");parus.balance.primaryCatalogTree.model=parus.balance.catalogTreeStoreModel(parus.balance.primaryCatalogTree);parus.catalogActions.refreshCatalogTree(parus.balance.primaryCatalogTree);parus.balance.primaryFolderTree.model=parus.balance.foldersTreeStoreModel(parus.balance.primaryFolderTree);
parus.catalogActions.refreshCatalogTree(parus.balance.primaryFolderTree);parus.balance.primaryFoldersPane._splitterWidget.domNode.style.display=parus.balance.primaryFoldersPane.domNode.style.display;parus.balance._catalogChangeBuffer={};parus.balance._translateConditionsToFilters(parus.balance._primaryConditions,parus.balance.primaryMasterGrid.columnsFilterObject.values);parus.parus8.showApplication(function(){setTimeout(function(){parus.balance.primaryMasterGrid.focus.focusGrid()},300)})}},a)},_createConsolidatedReportsPane:function(a){parus.balance.consolidatedPage=
new t.layout.ContentPane({style:"height:100%;width:100%;padding:0",title:parus.balance.formatPageTitle("\u0421\u0432\u043e\u0434\u043d\u044b\u0435\x3cbr/\x3e\u043e\u0442\u0447\u0435\u0442\u044b"),href:b.moduleUrl("parus","balanceConsolidatedReportPane.html").toString(),region:"center",onShow:function(){parus.balance.consolidatedMasterGrid&&(8>=b.isIE?setTimeout(function(){parus.catalogActions.refreshCatalogTree(parus.balance.consolidatedCatalogTree)},1E3):parus.balance.refreshGrid(parus.balance.consolidatedMasterGrid))},
onLoad:function(){parus.balance.applicationCode&&(parus.balance._processMenu(parus.balance.consolidatedMasterGridPopupMenu,function(g){g.removeForApplications&&0<=b.indexOf(g.removeForApplications.split(";"),parus.balance.applicationCode)&&g.destroyRecursive()}),parus.balance._processMenu(parus.balance.consolidatedDetailGridPopupMenu,function(g){g.removeForApplications&&0<=b.indexOf(g.removeForApplications.split(";"),parus.balance.applicationCode)&&g.destroyRecursive()}));parus.balance._masterHasStatusModel||
parus.balance._processMenu(parus.balance.consolidatedMasterGridPopupMenu,function(g){g.features&&0<=b.indexOf(g.features.split(";"),"StatusModel")&&g.destroyRecursive()});var c=[];parus.balance._masterHasStatusModel&&(c=c.concat(parus.balance.statusModelColumns()));b.forEach(parus.balance._docprops,function(g){"1"==parus.parus8.nodeField(g,"SHOW_IN_GRID")&&c.push({colSpan:1,propRN:parus.parus8.nodeField(g,"RN"),dataType:parus.parus8.nodeField(g,"DATATYPE"),dataSubType:parus.parus8.nodeField(g,"SUBTYPE"),
field:"prop"+parus.parus8.nodeField(g,"RN"),name:parus.parus8.nodeField(g,"CODE"),formatter:parus.balance.formatDocPropValue,width:"121px",styles:"text-align:"+(0==parus.parus8.nodeField(g,"DATATYPE")?"left":"right")+";",sortField:2==parus.parus8.nodeField(g,"DATATYPE")?"F_DOCS_PROPS_GET_DATE_VALUE("+parus.parus8.nodeField(g,"RN")+",'BalanceReports', T.RN)":1==parus.parus8.nodeField(g,"DATATYPE")?"F_DOCS_PROPS_GET_NUM_VALUE("+parus.parus8.nodeField(g,"RN")+",'BalanceReports', T.RN)":"F_DOCS_PROPS_GET_STR_VALUE("+
parus.parus8.nodeField(g,"RN")+",'BalanceReports', T.RN)"})});b.forEach(parus.balance._masterAttrDescriptors,function(g){c.push({colSpan:1,attrRN:parus.parus8.nodeField(g,"RN"),dataType:parus.parus8.nodeField(g,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(g,"RN"),name:parus.parus8.nodeField(g,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(g,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(g,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(g,
"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(g,"PARAMCOUNT")?parus.parus8.nodeField(g,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(g,"STOREDPROC")+"(T.RN)"})});if(c.length){var e=b.clone(parus.balance.consolidatedMasterGrid.structure);e[0].cells[0]=e[0].cells[0].concat(c);parus.balance.consolidatedMasterGrid.setStructure(e)}c=[];b.forEach(parus.balance._detailDocprops,function(g){"1"==parus.parus8.nodeField(g,"SHOW_IN_GRID")&&c.push({colSpan:1,propRN:parus.parus8.nodeField(g,
"RN"),dataType:parus.parus8.nodeField(g,"DATATYPE"),dataSubType:parus.parus8.nodeField(g,"SUBTYPE"),field:"prop"+parus.parus8.nodeField(g,"RN"),name:parus.parus8.nodeField(g,"CODE"),formatter:parus.balance.formatDocPropValue,width:"121px",styles:"text-align:"+(0==parus.parus8.nodeField(g,"DATATYPE")?"left":"right")+";",sortField:2==parus.parus8.nodeField(g,"DATATYPE")?"F_DOCS_PROPS_GET_DATE_VALUE("+parus.parus8.nodeField(g,"RN")+",'BalanceSubReports', T.RN)":1==parus.parus8.nodeField(g,"DATATYPE")?
"F_DOCS_PROPS_GET_NUM_VALUE("+parus.parus8.nodeField(g,"RN")+",'BalanceSubReports', T.RN)":"F_DOCS_PROPS_GET_STR_VALUE("+parus.parus8.nodeField(g,"RN")+",'BalanceSubReports', T.RN)"})});b.forEach(parus.balance._detailAttrDescriptors,function(g){c.push({colSpan:1,attrRN:parus.parus8.nodeField(g,"RN"),dataType:parus.parus8.nodeField(g,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(g,"RN"),name:parus.parus8.nodeField(g,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(g,
"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(g,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(g,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(g,"PARAMCOUNT")?parus.parus8.nodeField(g,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(g,"STOREDPROC")+"(T.RN)"})});c.length&&(e=b.clone(parus.balance.consolidatedDetailGrid.structure),e[0].cells[0]=e[0].cells[0].concat(c),parus.balance.consolidatedDetailGrid.setStructure(e));parus.balance._createActionsButton(parus.balance.consolidatedCatalogTreePopupMenu,
parus.balance.consolidatedCatalogTreeHeaderPane);parus.balance._createActionsButton(parus.balance.consolidatedMasterGridPopupMenu,parus.balance.consolidatedMasterGridHeaderPane);parus.balance._createActionsButton(parus.balance.consolidatedDetailGridPopupMenu,parus.balance.consolidatedDetailGridHeaderPane);parus.balance._createActionsButton(parus.balance.consolidatedFoldersTreePopupMenu,parus.balance.consolidatedFoldersTreeHeaderPane);parus.balance._consolidatedConditions=parus.userdata.get("consolidatedConditions")||
{};parus.balance.consolidatedCatalogTreePopupMenu.bindDomNode(parus.balance.consolidatedCatalogTree.domNode);parus.balance.consolidatedMasterGridPopupMenu.bindDomNode(parus.balance.consolidatedMasterGrid.viewsNode);parus.balance.consolidatedDetailGridPopupMenu.bindDomNode(parus.balance.consolidatedDetailGrid.viewsNode);parus.balance.consolidatedFoldersTreePopupMenu.bindDomNode(parus.balance.consolidatedFolderTree.domNode);(e=parus.userdata.get("parus.balance.consolidatedCatalogTree"))&&parus.gridSettingsDialog.mergeMenuSettings(parus.balance.consolidatedCatalogTreePopupMenu,
e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions);(e=parus.userdata.get("parus.balance.consolidatedFolderTree"))&&parus.gridSettingsDialog.mergeMenuSettings(parus.balance.consolidatedFoldersTreePopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions);if(e=parus.userdata.get("parus.balance.consolidatedMasterGrid")){parus.gridSettingsDialog.setCatalogTreeVisible(parus.balance.consolidatedCatalogTree,!e.hideCatalogTree);parus.gridSettingsDialog.mergeMenuSettings(parus.balance.consolidatedMasterGridPopupMenu,
e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions);parus.gridSettingsDialog.mergeAdditions(parus.balance.consolidatedSettingsAdditions(),e.additions);var f=parus.balance.consolidatedMasterGrid.store;parus.balance.consolidatedMasterGrid.setStore(new parus.emptyGridData);parus.gridSettingsDialog.mergeGridSettings(parus.balance.consolidatedMasterGrid,e.gridSettings);parus.gridSettingsDialog.mergeColorConditions(parus.balance.consolidatedMasterGrid,e.colorConditions);parus.gridSettingsDialog.mergeFilterBar(parus.balance.consolidatedMasterGrid,
e.showFilterBar,e.filterValues,e.sortInfo);parus.balance.consolidatedMasterGrid.setStore(f)}if(e=parus.userdata.get("parus.balance.consolidatedDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.consolidatedDetailGridPopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.consolidatedDetailGrid,e.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.consolidatedDetailGrid,e.colorConditions),
parus.gridSettingsDialog.mergeFilterBar(parus.balance.consolidatedDetailGrid,e.showFilterBar,e.filterValues,e.sortInfo);f=parus.balance.consolidatedCatalogTree;f.model=parus.balance.catalogTreeStoreModel(f);f.dndController&&!b.isString(f.dndController)&&(e=f.dndController.declaredClass,f.dndController.destroy(),f.dndController=e);f.postMixInProperties();f.postCreate();f=parus.balance.consolidatedFolderTree;f.model=parus.balance.foldersTreeStoreModel(f);f.dndController&&!b.isString(f.dndController)&&
(e=f.dndController.declaredClass,f.dndController.destroy(),f.dndController=e);f.postMixInProperties();f.postCreate();parus.balance.consolidatedFoldersPane._splitterWidget.domNode.style.display=parus.balance.consolidatedFoldersPane.domNode.style.display;parus.balance._translateConditionsToFilters(parus.balance._consolidatedConditions,parus.balance.consolidatedMasterGrid.columnsFilterObject.values)}},a)},_createCompareReportsPane:function(a){parus.balance.advContentPage=new t.layout.ContentPane({style:"height:100%;width:100%;padding:0",
title:parus.balance.formatPageTitle("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b\x3cbr/\x3e\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432"),href:b.moduleUrl("parus","balanceAdvReportPane.html").toString(),region:"center",onShow:function(){parus.balance.advCheckMasterGrid&&(8>=b.isIE?setTimeout(function(){parus.catalogActions.refreshCatalogTree(parus.balance.advCheckCatalogTree)},1E3):parus.balance.refreshGrid(parus.balance.advCheckMasterGrid))},
onLoad:function(){parus.balance.applicationCode&&parus.balance._processMenu(parus.balance.advCheckMasterGridPopupMenu,function(f){f.removeForApplications&&0<=b.indexOf(f.removeForApplications.split(";"),parus.balance.applicationCode)&&f.destroyRecursive()});parus.balance._createActionsButton(parus.balance.advCheckCatalogTreePopupMenu,parus.balance.advCheckCatalogTreeHeaderPane);parus.balance._createActionsButton(parus.balance.advCheckMasterGridPopupMenu,parus.balance.advCheckMasterGridHeaderPane);
parus.balance._createActionsButton(parus.balance.advCheckEqualDetailGridPopupMenu,parus.balance.advCheckEqualDetailGridHeaderPane);parus.balance._createActionsButton(parus.balance.advCheckEqualSubDetailGridPopupMenu,parus.balance.advCheckEqualSubDetailGridHeaderPane);parus.balance._createActionsButton(parus.balance.advCheckUnEqualDetailGridPopupMenu,parus.balance.advCheckUnEqualDetailGridHeaderPane);parus.balance._createActionsButton(parus.balance.advCheckUnEqualSubDetailGridPopupMenu,parus.balance.advCheckUnEqualSubDetailGridHeaderPane);
parus.balance._createActionsButton(parus.balance.advCheckExcludedDetailGridPopupMenu,parus.balance.advCheckExcludedDetailGridHeaderPane);parus.balance.advCheckCatalogTreePopupMenu.bindDomNode(parus.balance.advCheckCatalogTree.domNode);parus.balance.advCheckMasterGridPopupMenu.bindDomNode(parus.balance.advCheckMasterGrid.viewsNode);parus.balance.advCheckEqualDetailGridPopupMenu.bindDomNode(parus.balance.advCheckEqualDetailGrid.viewsNode);parus.balance.advCheckEqualSubDetailGridPopupMenu.bindDomNode(parus.balance.advCheckEqualSubDetailGrid.viewsNode);
parus.balance.advCheckUnEqualDetailGridPopupMenu.bindDomNode(parus.balance.advCheckUnEqualDetailGrid.viewsNode);parus.balance.advCheckUnEqualSubDetailGridPopupMenu.bindDomNode(parus.balance.advCheckUnEqualSubDetailGrid.viewsNode);parus.balance.advCheckExcludedDetailGridPopupMenu.bindDomNode(parus.balance.advCheckExcludedDetailGrid.viewsNode);var c=parus.userdata.get("parus.balance.advCheckMasterGrid");if(c){parus.gridSettingsDialog.setCatalogTreeVisible(parus.balance.advCheckCatalogTree,!c.hideCatalogTree);
parus.gridSettingsDialog.mergeMenuSettings(parus.balance.advCheckMasterGridPopupMenu,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions);parus.gridSettingsDialog.mergeAdditions(parus.balance.advCheckSettingsAdditions(),c.additions);var e=parus.balance.advCheckMasterGrid.store;parus.balance.advCheckMasterGrid.setStore(new parus.emptyGridData);parus.gridSettingsDialog.mergeGridSettings(parus.balance.advCheckMasterGrid,c.gridSettings);parus.gridSettingsDialog.mergeColorConditions(parus.balance.advCheckMasterGrid,
c.colorConditions);parus.gridSettingsDialog.mergeFilterBar(parus.balance.advCheckMasterGrid,c.showFilterBar,c.filterValues,c.sortInfo);parus.balance.advCheckMasterGrid.setStore(e)}if(c=parus.userdata.get("parus.balance.advCheckEqualDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.advCheckEqualDetailGridPopupMenu,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.advCheckEqualDetailGrid,c.gridSettings),
parus.gridSettingsDialog.mergeColorConditions(parus.balance.advCheckEqualDetailGrid,c.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.advCheckEqualDetailGrid,c.showFilterBar,c.filterValues,c.sortInfo),parus.gridSettingsDialog.mergeAdditions(parus.balance.advCheckEqualSettingsAdditions(),c.additions);if(c=parus.userdata.get("parus.balance.advCheckEqualSubDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.advCheckEqualSubDetailGridPopupMenu,c.actionSettings,
c.userProcsActions,c.userReportsActions,c.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.advCheckEqualSubDetailGrid,c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.advCheckEqualSubDetailGrid,c.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.advCheckEqualSubDetailGrid,c.showFilterBar,c.filterValues,c.sortInfo);if(c=parus.userdata.get("parus.balance.advCheckUnEqualDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.advCheckUnEqualDetailGridPopupMenu,
c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.advCheckUnEqualDetailGrid,c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.advCheckUnEqualDetailGrid,c.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.advCheckUnEqualDetailGrid,c.showFilterBar,c.filterValues,c.sortInfo),parus.gridSettingsDialog.mergeAdditions(parus.balance.advCheckUnEqualSettingsAdditions(),c.additions);
if(c=parus.userdata.get("parus.balance.advCheckUnEqualSubDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.advCheckUnEqualSubDetailGridPopupMenu,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.advCheckUnEqualSubDetailGrid,c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.advCheckUnEqualSubDetailGrid,c.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.advCheckUnEqualSubDetailGrid,
c.showFilterBar,c.filterValues,c.sortInfo);if(c=parus.userdata.get("parus.balance.advCheckExcludedDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.advCheckExcludedDetailGridPopupMenu,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.advCheckExcludedDetailGrid,c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.advCheckExcludedDetailGrid,c.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.advCheckExcludedDetailGrid,
c.showFilterBar,c.filterValues,c.sortInfo);(c=parus.userdata.get("parus.balance.advCheckCatalogTree"))&&parus.gridSettingsDialog.mergeMenuSettings(parus.balance.advCheckCatalogTreePopupMenu,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions);parus.balance.advCheckCatalogTree.model=new parus.catalogTreeModel({queryid:"catalogsQuery",onGetConditions:function(f,g){return{UNITCODE:"BalanceCompareReports",CRN:g?f.getIdentity(g):"!*"}}});parus.balance.advCheckCatalogTree.hiddenMode||
parus.catalogActions.refreshCatalogTree(parus.balance.advCheckCatalogTree)}},a)},_loadUserObjects:function(){parus.balance._docprops=parus.parus8.rowNodes(parus.database.query("docProperties",{UNITCODE:"BalanceReports"}))||[];parus.balance._detailDocprops=parus.parus8.rowNodes(parus.database.query("docProperties",{UNITCODE:"BalanceSubReports"}))||[];parus.balance._masterAttrDescriptors=parus.parus8._attrDescriptors?parus.parus8.rowNodes(parus.database.execute("attrDescriptors",{UNITCODE:"BalanceReports"}).documentElement.childNodes[0].childNodes[0].childNodes[0])||
[]:[];parus.balance._masterUserCalcs=parus.parus8.rowNodes(parus.database.query("UserCalcs",{UNITCODE:"BalanceReports"}))||[];parus.balance._detailAttrDescriptors=parus.parus8._attrDescriptors?parus.parus8.rowNodes(parus.database.execute("attrDescriptors",{UNITCODE:"BalanceSubReports"}).documentElement.childNodes[0].childNodes[0].childNodes[0])||[]:[];parus.balance._detailUserCalcs=parus.parus8.rowNodes(parus.database.query("UserCalcs",{UNITCODE:"BalanceSubReports"}))||[]},_startupBalanceApplication:function(){-1!=
b.indexOf(parus.balance.availableUnits,"BalanceNotifications")&&parus.parus8.checkNotifications();(new t.layout.ContentPane({href:b.moduleUrl("parus","balance.html").toString(),preload:!0,"class":parus.parus8.zoomContainerClass(),onLoad:function(){parus.parus8.interfaceSchemaLoaded("balance");parus.balance._loadUserObjects();parus.balance._createPrimaryReportsPane();parus.balance.TabContainer.addChild(parus.balance.primaryPage);-1!=b.indexOf(parus.balance.availableUnits,"BalanceConsolidatedReports")&&
(parus.balance._createConsolidatedReportsPane(),parus.balance.TabContainer.addChild(parus.balance.consolidatedPage));parus.database.attributes.advcheck&&-1!=b.indexOf(parus.balance.availableUnits,"BalanceCompareReports")&&(parus.balance._createCompareReportsPane(),parus.balance.TabContainer.addChild(parus.balance.advContentPage))}},parus.parus8.applicationNode())).startup()},startup:function(a){parus.balance.applicationCode=parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("getAppCode"))[0],
"APPLICATION");parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),function(c){return parus.parus8.nodeField(c,"UNITCODE")});-1==b.indexOf(parus.balance.availableUnits,"BalanceReports")?parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435/\u0441\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.',
parus.parus8.logout):(parus.parus8._attrDescriptors=-1!=b.indexOf(parus.balance.availableUnits,"AttributesDescriptors"),parus.parus8.extraDictionaries._canCacheExtraDictionaries="0"!=parus.parus8.optionValue("BalanceOnlineCacheContractorDictValues"),parus.parus8.extraDictionaries._autoCompleteLimit=parus.parus8.optionValue("BalanceOnlineAutoCompleteDictSize"),parus.parus8.maxGridRecords=parus.parus8.optionValue("BalanceOnlineMaxGridRecords"),parus.dictionaries._autoCompleteLimit=parus.parus8.optionValue("BalanceOnlineAutoCompleteUnitSize"),
-1!=b.indexOf(parus.balance.availableUnits,"UnitsStatusModels")&&(parus.balance._masterHasStatusModel="0"!=parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("hasStatusModel",{UNITCODE:"BalanceReports"}))[0],"VALUE")),parus.parus8._embeddedMode?"BalanceReports"==a.unitCode?(parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),function(c){return parus.parus8.nodeField(c,"UNITCODE")}),-1==b.indexOf(parus.balance.availableUnits,"BalanceReports")?
parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435/\u0441\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.',
parus.parus8.logout):(parus.balance._loadUserObjects(),parus.balance._createPrimaryReportsPane(parus.parus8.applicationNode()),parus.WindowContainer.addChild(parus.balance.primaryPage),-1!=b.indexOf(parus.balance.availableUnits,"BalanceNotifications")&&parus.parus8.checkNotifications())):"BalanceConsolidatedReports"==a.unitCode?(parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),function(c){return parus.parus8.nodeField(c,"UNITCODE")}),-1==b.indexOf(parus.balance.availableUnits,
"BalanceConsolidatedReports")?parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.',
parus.parus8.logout):(parus.balance._loadUserObjects(),parus.balance._createConsolidatedReportsPane(parus.parus8.applicationNode()),parus.WindowContainer.addChild(parus.balance.consolidatedPage),-1!=b.indexOf(parus.balance.availableUnits,"BalanceNotifications")&&parus.parus8.checkNotifications(),parus.parus8.showApplication(function(){setTimeout(function(){parus.balance.consolidatedMasterGrid.focus.focusGrid()},300)}))):"BalanceCompareReports"==a.unitCode?(parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),
function(c){return parus.parus8.nodeField(c,"UNITCODE")}),-1==b.indexOf(parus.balance.availableUnits,"BalanceCompareReports")?parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.',
parus.parus8.logout):(parus.balance._loadUserObjects(),parus.balance._createCompareReportsPane(parus.parus8.applicationNode()),parus.WindowContainer.addChild(parus.balance.advContentPage),-1!=b.indexOf(parus.balance.availableUnits,"BalanceNotifications")&&parus.parus8.checkNotifications(),parus.parus8.showApplication(function(){setTimeout(function(){parus.balance.advCheckMasterGrid.focus.focusGrid()},300)}))):parus.parus8.errorMessage("\u0420\u0430\u0437\u0434\u0435\u043b \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f.",
parus.parus8.logout):parus.balance._startupBalanceApplication())},primarySettingsAdditions:function(){var a=[{widget:parus.balance.primaryDetailGridPane,title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b",id:"detailGridPaneHiddenMode"}];-1!=b.indexOf(parus.balance.availableUnits,"ConditionFolders")&&a.push({widget:parus.balance.primaryFoldersPane,title:"\u0421\u043a\u0440\u044b\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u043e \u043f\u0430\u043f\u043e\u043a",
id:"primaryFoldersHiddenMode"});a.push({title:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u0438\u0442\u043e\u0433\u043e\u0432 \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u0430",id:"showGutter",get:b.hitch(this,function(){return this.showTemplateGutter}),set:b.hitch(this,function(c){this.showTemplateGutter=c})});return a},consolidatedSettingsAdditions:function(){var a=[{widget:parus.balance.consolidatedDetailGridPane,
title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b",id:"detailGridPaneHiddenMode"}];-1!=b.indexOf(parus.balance.availableUnits,"ConditionFolders")&&a.push({widget:parus.balance.consolidatedFoldersPane,title:"\u0421\u043a\u0440\u044b\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u043e \u043f\u0430\u043f\u043e\u043a",id:"consolidatedFoldersHiddenMode"});a.push({title:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u0438\u0442\u043e\u0433\u043e\u0432 \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u0430",
id:"showGutter",get:b.hitch(this,function(){return this.showTemplateGutter}),set:b.hitch(this,function(c){this.showTemplateGutter=c;c=parus.userdata.get("parus.balance.primaryMasterGrid");c.additions.showGutter=this.showTemplateGutter;parus.userdata.set("parus.balance.primaryMasterGrid",c)})});return a},catalogTreeStoreModel:function(a){return new parus.catalogTreeModel({queryid:"catalogsQuery",onGetConditions:function(c,e){return a&&a.hiddenMode?{CRN:parus.parus8.CLASS_EmptyData}:{UNITCODE:"BalanceReports",
CRN:e?c.getIdentity(e):"!*"}}})},foldersTreeStoreModel:function(a){return new parus.catalogTreeModel({queryid:"foldersQuery",onGetConditions:function(c,e){return a&&a.hiddenMode?{CRN:parus.parus8.CLASS_EmptyData}:{UNITCODE:"BalanceReports",CRN:e?c.getIdentity(e):"!*"}}})},refreshGrid:function(a,c,e){if(a){var f=a.query||{},g=[];delete parus.balance._catalogChangeBuffer[a.gridid];var h=a.selection.getFirstSelected();if(h)for(var l=0;l<a.selection.getSelectedCount();l++)g.push(a.getItemIndex(h)),h=
a.selection.getNextSelected(h);(g.length||c&&e)&&b.mixin(f,{onComplete:function(){if(c&&e){var m=a.store.findIndex(c,e);0<=m&&1>=a.selection.getSelectedCount()&&(a.scrollToRow(m),a.selection.select(m),a.updateRow(m),a.autoSelected=!0)}else a.selection.deselectAll(),a.store.forEach(function(p,r,w){0<=b.indexOf(g,w)&&(a.scrollToRow(w),a.selection.addToSelection(w),a.updateRow(w))});delete f.onComplete}});a.store&&a.store.close();a.setQuery(f)}},catalogTreeChange:function(a,c,e,f,g,h){parus.balance._refreshGridTimeoutID&&
clearTimeout(parus.balance._refreshGridTimeoutID);parus.balance._refreshGridTimeoutID=setTimeout(b.hitch(parus.balance,function(){this._refreshGridTimeoutID&&clearTimeout(this._refreshGridTimeoutID);this._refreshGridTimeoutID=null;var l=!1;if(f){var m=parus.userdata.get(f+"selectedCatalog"),p=[],r=[];1<a.checked.length&&b.forEach(a.checked,function(A){r.push(b.map(A.getTreePath(A),function(B){return a.model.getIdentity(B)}).join("/"))});b.forEach(a.path,function(A){p.push(a.model.getIdentity(A))});
p.length&&b.mixin(m,{selectedCatalog:p.join(";"),checks:r.join(";")});if(c){var w=[];c.hiddenMode||b.forEach(c.path,function(A){w.push(c.model.getIdentity(A))});w.length&&b.mixin(m,{selectedFolder:w.join(";")});var x=w.join(";");this._catalogChangeBuffer[c.id]!=x&&(l=!0,this._catalogChangeBuffer[c.id]=x)}parus.userdata.set(f+"selectedCatalog",m,!0);this._catalogChangeBuffer[a.id]!=(a.listMode?"0":b.toJson(m))&&(l=!0,this._catalogChangeBuffer[a.id]=a.listMode?"0":b.toJson(m))}p=a.path;b.forEach(g.getChildren(),
function(A){var B=!a.model.hasAction(p[p.length-1],A.actionCode);a.model.checkAccess()&&!A.hiddenBySettings&&(A.domNode.style.display=B?"none":"");"dijit.MenuSeparator"!=A.declaredClass&&A.attr("disabled",B)});parus.parus8.checkMenuSeparators(g);c&&(p=c.path,b.forEach(h.getChildren(),function(A){var B=!c.model.hasAction(p[p.length-1],A.actionCode);c.model.checkAccess()&&!A.hiddenBySettings&&(A.domNode.style.display=B?"none":"");"dijit.MenuSeparator"!=A.declaredClass&&A.attr("disabled",B)}),parus.parus8.checkMenuSeparators(h));
l&&e.setQuery(e.query)}),300)},detailGridStore:function(a,c,e){return new parus.gridData({queryid:"detailGridData",parentUnitCode:"BalanceReports",onGetConditions:b.hitch(this,function(f){var g=c.store,h=c.selection.getSelectedIndex();h=0<=h?c.getItem(h):null;var l={PRN:g.getValue(h,"RN")||parus.parus8.CLASS_EmptyData};f.parentRN=g.getValue(h,"RN");return l}),onComplete:b.hitch(this,function(f,g,h){var l=a.selectedItem,m=parus.parus8.denote(e),p=function(r){b.forEach(r.getChildren(),function(w){if("dijit.MenuSeparator"!=
w.declaredClass){w.userObjectsGrid=m;var x=a.listMode?!1:!a.model.hasAction(l,w.actionCode);a.model.checkAccess()&&!w.hiddenBySettings&&(w.domNode.style.display=x?"none":"");!x&&0==g.length&&w.itemAction&&(x=!0);"dijit.MenuSeparator"!=w.declaredClass&&w.attr("disabled",x);w.popup&&(w.popup.from_item=w,p(w.popup))}})};p(m.headerMenu);parus.parus8.checkMenuSeparators(m.headerMenu);0<g.length&&!h.start&&(m.selection.select(0),m.updateRow(0),m.autoSelected=!0);setTimeout(function(){t.popup.getTopPopup()||
b.marginBox(c.domNode).w&&c.focus.focusGrid()},0)})})},masterGridStore:function(a,c,e,f){return parus.gridData({queryid:"masterGridData",onGetConditions:b.hitch(this,function(g){var h=parus.parus8.denote(c);if(!a.selectedItem&&a.rootNode){var l=[],m=parus.userdata.get(c+"selectedCatalog");m.selectedCatalog&&(l=m.selectedCatalog.split(";"));if(0==l.length||""==l[0]){var p=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});p&&(l=parus.parus8.nodeField(parus.parus8.rowNodes(p)[0],
"PATH").split(";"))}if(0==l.length||""==l[0])l=[a.rootNode.item];(p=a.attr("path",l))&&p.addCallback&&p.addCallback(function(){delete parus.balance._catalogChangeBuffer[a.id];a.onClick()});m.checks&&a.setCheckedPaths(b.map(m.checks.split(";"),function(x){return x.split("/")}))}if(f&&!f.selectedItem&&f.rootNode&&!f.hiddenMode){l=[];m=parus.userdata.get(c+"selectedCatalog");m.selectedFolder&&(l=m.selectedFolder.split(";"));if(0==l.length||""==l[0])l=[f.rootNode.item],f.model.getChildren(f.rootNode.item,
function(x){x.length&&(l.push(x[0]),f.attr("path",l))});f.attr("path",l)}var r=[];a.checked.length?b.forEach(a.checked,function(x){r.push(a.model.getIdentity(x.item))}):b.forEach(a.paths,function(x){a.model.isValid(x[x.length-1])&&r.push(a.model.getIdentity(x[x.length-1]))});g.catalogRN=a.listMode?null:r[0];g={KIND:e,CRN:a.listMode?null:r.join(";")||parus.parus8.CLASS_EmptyData};if(f&&!f.hiddenMode){m=(f.selectedItem?f.model.getIdentity(f.selectedItem):0)||0;if("-1"==m||"0"==m)m=parus.parus8.CLASS_EmptyData;
b.mixin(g,{CONDFOLDER:m})}0==e?(document.getElementById("parus.balance.primaryMasterGridFilterIndicator").style.display=this.hasConditions(this._primaryConditions)?"":"none",parus.balance.primaryMasterGridHeaderPane.layout(),b.mixin(g,this._primaryConditions)):(document.getElementById("parus.balance.consolidatedMasterGridFilterIndicator").style.display=this.hasConditions(this._consolidatedConditions)?"":"none",parus.balance.consolidatedMasterGridHeaderPane.layout(),b.mixin(g,this._consolidatedConditions));
var w=a.selectedItem;b.forEach(h.headerMenu.getChildren(),function(x){x.actionCode&&"dijit.MenuSeparator"!=x.declaredClass&&x.attr("disabled",!a.model.hasAction(w,x.actionCode))});0==e?parus.balance.primaryIgnoreMaxGridRecords&&(b.mixin(g,{IGNORE_MAX_RECORDS:1}),h.onClose=parus.balance.masterGridOnCloseHandler(e)):parus.balance.consolidatedIgnoreMaxGridRecords&&(b.mixin(g,{IGNORE_MAX_RECORDS:1}),h.onClose=parus.balance.masterGridOnCloseHandler(e));return g}),onComplete:b.hitch(this,function(g,h,l){var m=
a.selectedItem,p=parus.parus8.denote(c),r=function(w){b.forEach(w.getChildren(),function(x){if("dijit.MenuSeparator"!=x.declaredClass){x.userObjectsGrid=p;var A=a.listMode?!1:!a.model.hasAction(m,x.actionCode);a.model.checkAccess()&&!x.hiddenBySettings&&(x.domNode.style.display=A?"none":"");!A&&0==h.length&&x.itemAction&&(A=!0);"dijit.MenuSeparator"!=x.declaredClass&&x.attr("disabled",A);x.popup&&(x.popup.from_item=x,r(x.popup))}})};r(p.headerMenu);parus.parus8.checkMenuSeparators(p.headerMenu);null!=
parus.parus8.maxGridRecords&&(0==e?(document.getElementById("parus.balance.primaryMasterGridMaxGridRecordsIndicator").style.display=h.length==parus.parus8.maxGridRecords?"":"none",parus.balance.primaryMasterGridHeaderPane.layout()):(document.getElementById("parus.balance.consolidatedMasterGridMaxGridRecordsIndicator").style.display=h.length==parus.parus8.maxGridRecords?"":"none",parus.balance.consolidatedMasterGridHeaderPane.layout()));0<h.length&&!p.selection.getSelectedCount()&&!l.start&&(p.selection.select(0),
p.updateRow(0),p.autoSelected=!0);p.onSelected()}),onClose:parus.balance.masterGridOnCloseHandler(e)})},masterGridOnCloseHandler:function(a){return function(){0==a?parus.balance.primaryIgnoreMaxGridRecords=!1:parus.balance.consolidatedIgnoreMaxGridRecords=!1}},primaryMasterGridMaxGridRecordsIndicatorClick:function(){(new parus.confirmationDialog({message:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f?\x3cbr/\x3e\u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.",
onApply:function(){var a=parus.balance.primaryMasterGrid;a.store&&a.store.close();parus.balance.primaryIgnoreMaxGridRecords=!0;parus.balance.refreshGrid(a);return!0}})).show()},consolidatedMasterGridMaxGridRecordsIndicatorClick:function(){(new parus.confirmationDialog({message:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f?\x3cbr/\x3e\u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.",
onApply:function(){var a=parus.balance.consolidatedMasterGrid;a.store&&a.store.close();parus.balance.consolidatedIgnoreMaxGridRecords=!0;parus.balance.refreshGrid(a);return!0}})).show()},hasConditions:function(a){var c=!1,e;for(e in a)if("DOCPROPS"==e)for(var f in a[e])c=c||a[e][f].value||a[e][f].from||a[e][f].to;else c=c||a[e];return c},_validateMenuByGrid:function(a,c){for(var e=a.store,f=a.selection.getFirstSelected(),g=null,h=0;h<a.selection.getSelectedCount();h++){if(!g)g=e.getValue(f,"CRN");
else if(g!=e.getValue(f,"CRN"))return;f=a.selection.getNextSelected(f)}if(g&&(!(1>=c.checked.length)||c.listMode||c.hiddenMode)){var l=c.model.getItem(g);if(l){var m=function(p){b.forEach(p.getChildren(),function(r){if("dijit.MenuSeparator"!=r.declaredClass){var w=!c.model.hasAction(l,r.actionCode);c.model.checkAccess()&&!r.hiddenBySettings&&(r.domNode.style.display=w?"none":"");"dijit.MenuSeparator"!=r.declaredClass&&r.attr("disabled",w);r.popup&&(r.popup.from_item=r,m(r.popup))}})};e=a.headerMenu;
m(e);parus.parus8.checkMenuSeparators(e)}}},masterGridChange:function(a,c,e){parus.balance._refreshDetailGridTimeoutID&&clearTimeout(parus.balance._refreshDetailGridTimeoutID);parus.balance._refreshDetailGridTimeoutID=setTimeout(b.hitch(parus.balance,function(){this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID);this._refreshDetailGridTimeoutID=null;parus.balance._validateMenuByGrid(parus.parus8.denote(c),parus.parus8.denote(e));var f=parus.parus8.denote(c),g=f.store,
h=f.selection.getSelectedIndex();f=0<=h?f.getItem(h):null;g=g.getValue(f,"RN")||parus.parus8.CLASS_EmptyData;this._catalogChangeBuffer[c]!=g&&(this._catalogChangeBuffer[c]=g,(f=parus.parus8.denote(a))&&parus.balance.refreshGrid(f))}),300)},primaryBalanceReportsConditions:function(){var a=new parus.balanceReportsConditionsDialog({title:"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b: \u041e\u0442\u0431\u043e\u0440",onShow:b.hitch(this,function(){a.loadConditions(this._primaryConditions)}),
onApply:b.hitch(this,function(){this._primaryConditions=a.saveConditions();parus.balance._translateConditionsToFilters(this._primaryConditions,parus.balance.primaryMasterGrid.columnsFilterObject.values)&&parus.balance.primaryMasterGrid.columnsFilterObject.valuesChanged();parus.userdata.set("primaryConditions",this._primaryConditions);parus.balance.primaryMasterGrid.setQuery(parus.balance.primaryMasterGrid.query);return!0})});a.show()},formatReportKind:function(a,c,e){return["\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439",
"\u0421\u0432\u043e\u0434\u043d\u044b\u0439","\u0412\u0441\u0435"][a]},formatReportStatus:function(a,c,e){return"\u041d\u043e\u0432\u044b\u0439;\u0418\u0437\u043c\u0435\u043d\u0435\u043d;\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d;\u0412 \u0441\u0432\u043e\u0434\u0435;\u0421\u0432\u0435\u0434\u0435\u043d \u0431\u0435\u0437 \u0438\u0442\u043e\u0433\u043e\u0432;\u0421\u0432\u0435\u0434\u0435\u043d \u0441 \u0438\u0442\u043e\u0433\u0430\u043c\u0438;\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d;\u0421\u0432\u0435\u0434\u0435\u043d \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e".split(";")[a]},
formatReportHistory:function(a,c,e){return["\u041d\u0435\u0442","\u0414\u0430","\u041f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443"][a]},formatReportAccepted:function(a,c,e){return["\u041d\u0435\u0442","\u0414\u0430","\u041e\u0442\u043a\u043b\u043e\u043d\u0435\u043d"][a]},formatProtocolCheckType:function(a,c,e){return["\u041e\u0448\u0438\u0431\u043a\u0438","\u041e\u0448\u0438\u0431\u043a\u0438 \u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f","\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f",
"\u041d\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439","\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0430\u0441\u044c"][a]},formatProtocolCheckResult:function(a,c,e){return["OK","\u041e\u0448\u0438\u0431\u043a\u0430","\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435"][a]},formatAttachedContentFileType:function(a,
c,e){return["\u0414\u0432\u043e\u0438\u0447\u043d\u044b\u0439","\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439"][a]},formatUserProcedureType:function(a,c,e){return["\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430","\u041d\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0431\u043b\u043e\u043a"][a]},formatUserProcedureAuto:function(a,c,e){return["\u0420\u0443\u0447\u043d\u043e\u0439","\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439"][a]},
formatMessageRectype:function(a,c,e){return["\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435","\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435","\u041e\u0448\u0438\u0431\u043a\u0430"][a]},formatCharset:function(a,c,e){return["Windows-1251 (WIN)","IBM CP866 (OEM)"][a]},formatReportStatusSetMode:function(a,c,e){return["\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430","\u0420\u0443\u0447\u043d\u043e\u0439",
"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439"][a]},balanceReportsCreateReport:function(a,c,e){if(a.hiddenMode)var f=null;else f=a.path,f=a.model.getIdentity(f[f.length-1]);var g=new parus.balanceReportDialog({title:(0==e?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435",_userCalcParams:{NCRN:f,NKIND:e},onShow:b.hitch(this,
function(){b.forEach(parus.balance._docprops,function(h){var l=parus.parus8.nodeField(h,"RN");parus._docPropsValueValueForWidget(g._docprops[l],parus.parus8.nodeField(h,"VALUE"),"3"==parus.parus8.nodeField(h,"DATATYPE")?"4":parus.parus8.nodeField(h,"DATATYPE"),parus.parus8.nodeField(h,"SUBTYPE"))});g.historySelect.attr("value",parus.parus8.optionValue("BalanceUseHistory"));g.historyLastCheckBox.attr("checked","1"==parus.parus8.optionValue("BalanceOnlyLastHistory"));setTimeout(function(){parus.balance.executeUserCalcs(parus.balance._masterUserCalcs,
!0,!1,b.hitch(g,g.paramsForUserCalc),b.hitch(g,g.paramsFromUserCalc))},100)}),onApply:b.hitch(this,function(){(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),key:"BalanceReports",onDefaultNeeded:function(){var h=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return h?parus.parus8.nodeField(parus.parus8.rowNodes(h)[0],"PATH"):null},onSingle:function(){if(a.hiddenMode)return parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("singleCatalog",
{UNITCODE:"BalanceReports",ACTION_CODE:"BLREPORTS_INSERT"}))[0],"CATALOG");var h=a.path;return a.model.getIdentity(h[h.length-1])},onPerform:function(h){(response=parus.database.execute("insertReport",{CRN:h,AGENT_CODE:g.agentCodeEdit.value,AGENT_NAME:g.agentNameEdit.value,BDATE:g.reportDateEdit.value,NOTE:g.noteEdit.value,KIND:e,FORM_CODE:g.formCodeEdit.value,USE_HISTORY:g.historySelect.value,ONLY_LAST_HISTORY:g.historyLastCheckBox.checked?1:0,DOCPROPS:g.propValues()}))&&parus.balance.refreshGrid(c,
"RN",parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"NRN"));g.applied=!!response;g.applied&&g.close();return!0}})).show();return!1})});g.show()},balanceReportsDuplicateReport:function(a,c,e){var f=c.store;a=c.selection.getSelectedIndex();var g=c.getItem(a),h=new parus.balanceReportDialog({title:(0==e?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435",
_agentCodeLoaded:!0,_agentNameLoaded:!0,_userCalcParams:{NCRN:f.getValue(g,"CRN"),NKIND:e,NRN:f.getValue(g,"RN")},onShow:b.hitch(this,function(){h.formCodeEdit.attr("value",f.getValue(g,"FORM_CODE"));h.agentCodeEdit.attr("value",f.getValue(g,"AGNABBR"));h.agentNameEdit.attr("disabled",!1);h.agentNameEdit.attr("value",f.getValue(g,"AGNNAME"));h.agentHeadEdit.attr("value",f.getValue(g,"HEAD_ORG_NAME"));h.reportDateEdit.attr("value",f.getValue(g,"BDATE"));h._dateIsSet=!0;h.noteEdit.attr("value",f.getValue(g,
"NOTE",""));h.historySelect.attr("value",f.getValue(g,"USE_HISTORY"));h.historyLastCheckBox.attr("checked","1"==f.getValue(g,"ONLY_LAST_HISTORY"));b.forEach(parus.balance._docprops,function(l){var m=parus.parus8.nodeField(l,"RN");parus._docPropsValueValueForWidget(h._docprops[m],"1"==parus.parus8.nodeField(l,"DUPLICATE_VALUE")?parus.parus8.docPropValue(g,m)||parus.parus8.nodeField(l,"VALUE"):parus.parus8.nodeField(l,"VALUE"),"3"==parus.parus8.nodeField(l,"DATATYPE")?"4":parus.parus8.nodeField(l,"DATATYPE"),
parus.parus8.nodeField(l,"SUBTYPE"))});setTimeout(function(){parus.balance.executeUserCalcs(parus.balance._masterUserCalcs,!0,!1,b.hitch(h,h.paramsForUserCalc),b.hitch(h,h.paramsFromUserCalc))},100)}),onApply:b.hitch(this,function(){response=parus.database.execute("duplicateReport",{RN:f.getValue(g,"RN"),CRN:f.getValue(g,"CRN"),AGENT_CODE:h.agentCodeEdit.value,AGENT_NAME:h.agentNameEdit.value,BDATE:h.reportDateEdit.value,NOTE:h.noteEdit.value,KIND:e,FORM_CODE:h.formCodeEdit.value,USE_HISTORY:h.historySelect.value,
ONLY_LAST_HISTORY:h.historyLastCheckBox.checked?1:0,DOCPROPS:h.propValues()});if(!response)return!1;this.refreshGrid(c,"RN",parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"NRN"));return!0})});h.show()},balanceReportsEditReport:function(a,c){var e=a.store,f=a.selection.getSelectedIndex(),g=a.getItem(f),h=new parus.balanceReportDialog({title:(0==c?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",
_agentCodeLoaded:!0,_agentNameLoaded:!0,_userCalcParams:{NCRN:e.getValue(g,"CRN"),NKIND:c,NRN:e.getValue(g,"RN")},onShow:b.hitch(this,function(){h.formCodeEdit.attr("value",e.getValue(g,"FORM_CODE"));h.agentCodeEdit.attr("value",e.getValue(g,"AGNABBR"));h.agentNameEdit.attr("disabled",!1);h.agentNameEdit.attr("value",e.getValue(g,"AGNNAME"));h.agentHeadEdit.attr("value",e.getValue(g,"HEAD_ORG_NAME"));h.reportDateEdit.attr("value",e.getValue(g,"BDATE"));h._dateIsSet=!0;h.noteEdit.attr("value",e.getValue(g,
"NOTE",""));h.historySelect.attr("value",e.getValue(g,"USE_HISTORY"));h.historyLastCheckBox.attr("checked","1"==e.getValue(g,"ONLY_LAST_HISTORY"));b.forEach(parus.balance._docprops,function(l){var m=parus.parus8.nodeField(l,"RN");parus._docPropsValueValueForWidget(h._docprops[m],parus.parus8.docPropValue(g,m),"3"==parus.parus8.nodeField(l,"DATATYPE")?"4":parus.parus8.nodeField(l,"DATATYPE"),parus.parus8.nodeField(l,"SUBTYPE"))});setTimeout(function(){parus.balance.executeUserCalcs(parus.balance._masterUserCalcs,
!1,!0,b.hitch(h,h.paramsForUserCalc),b.hitch(h,h.paramsFromUserCalc))},100)}),onApply:b.hitch(this,function(){response=parus.database.execute("editReport",{RN:e.getValue(g,"RN"),AGENT_CODE:h.agentCodeEdit.value,AGENT_NAME:h.agentNameEdit.value,BDATE:h.reportDateEdit.value,NOTE:h.noteEdit.value,KIND:c,FORM_CODE:h.formCodeEdit.value,USE_HISTORY:h.historySelect.value,ONLY_LAST_HISTORY:h.historyLastCheckBox.checked?1:0,DOCPROPS:h.propValues()});if(!response)return!1;this.refreshGrid(a,"RN",e.getValue(g,
"RN"));return!0})});h.show()},balanceReportsMoveReport:function(a){var c=a.store,e=a.selection.getFirstSelected();(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),key:"BalanceReports",onDefaultNeeded:function(){var f=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return f?parus.parus8.nodeField(parus.parus8.rowNodes(f)[0],"PATH"):null},onPerform:function(f){for(var g=0;g<a.selection.getSelectedCount();g++)parus.database.execute("moveReport",{RN:c.getValue(e,
"RN"),CRN:f}),e=a.selection.getNextSelected(e);parus.balance.refreshGrid(a);return!0}})).show()},balanceReportsDeleteReport:function(a){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var c=a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("deleteReport",{RN:c.getValue(e,"RN")}),e=a.selection.getNextSelected(e);
a.selection.deselectAll();this.refreshGrid(a);return!0})})).show()},balanceReportsRefresh:function(a){var c=a.selection.getSelectedIndex();c=a.getItem(c);this.refreshGrid(a,"RN",a.store.getValue(c,"RN"))},primaryBalanceReportsCreateSubReport:function(){var a=parus.balance.primaryDetailGrid,c=a.selection.getSelectedIndex();a.getItem(c);var e=parus.balance.primaryMasterGrid.store.getValue(parus.balance.primaryMasterGrid.getItem(parus.balance.primaryMasterGrid.selection.getSelectedIndex()),"RN"),f=new parus.balanceSubReportDialog({title:"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442: \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435",
formCode:parus.balance.primaryMasterGrid.store.getValue(parus.balance.primaryMasterGrid.getItem(parus.balance.primaryMasterGrid.selection.getSelectedIndex()),"FORM_CODE"),edition:parus.balance.primaryMasterGrid.store.getValue(parus.balance.primaryMasterGrid.getItem(parus.balance.primaryMasterGrid.selection.getSelectedIndex()),"BLREPFORMED"),onApply:b.hitch(this,function(){response=parus.database.execute("insertSubReport",{PRN:e,CODE:f.sectionCodeEdit.value,NOTE:f.noteEdit.value,DOCPROPS:f.propValues()});
if(!response)return!1;this.refreshGrid(a,"RN",parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"NRN"));return!0}),onShow:b.hitch(this,function(){b.forEach(parus.balance._detailDocprops,function(g){var h=parus.parus8.nodeField(g,"RN");parus._docPropsValueValueForWidget(f._docprops[h],parus.parus8.nodeField(g,"VALUE"),"3"==parus.parus8.nodeField(g,"DATATYPE")?"4":parus.parus8.nodeField(g,"DATATYPE"),parus.parus8.nodeField(g,"SUBTYPE"))})})});f.show()},primaryBalanceReportsDuplicateSubReport:function(){var a=
parus.balance.primaryDetailGrid,c=a.store,e=a.selection.getSelectedIndex(),f=a.getItem(e),g=parus.balance.primaryMasterGrid.store.getValue(parus.balance.primaryMasterGrid.getItem(parus.balance.primaryMasterGrid.selection.getSelectedIndex()),"RN"),h=new parus.balanceSubReportDialog({title:"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b: \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435",formCode:parus.balance.primaryMasterGrid.store.getValue(parus.balance.primaryMasterGrid.getItem(parus.balance.primaryMasterGrid.selection.getSelectedIndex()),
"FORM_CODE"),edition:parus.balance.primaryMasterGrid.store.getValue(parus.balance.primaryMasterGrid.getItem(parus.balance.primaryMasterGrid.selection.getSelectedIndex()),"BLREPFORMED"),onShow:b.hitch(this,function(){h.sectionCodeEdit.attr("value",c.getValue(f,"CODE"));h.noteEdit.attr("value",c.getValue(f,"NOTE"));b.forEach(parus.balance._detailDocprops,function(l){var m=parus.parus8.nodeField(l,"RN");parus._docPropsValueValueForWidget(h._docprops[m],"1"==parus.parus8.nodeField(l,"DUPLICATE_VALUE")?
parus.parus8.docPropValue(f,m)||parus.parus8.nodeField(l,"VALUE"):parus.parus8.nodeField(l,"VALUE"),"3"==parus.parus8.nodeField(l,"DATATYPE")?"4":parus.parus8.nodeField(l,"DATATYPE"),parus.parus8.nodeField(l,"SUBTYPE"))})}),onApply:b.hitch(this,function(){response=parus.database.execute("duplicateSubReport",{RN:c.getValue(f,"RN"),PRN:g,CODE:h.sectionCodeEdit.value,NOTE:h.noteEdit.value,DOCPROPS:h.propValues()});if(!response)return!1;this.refreshGrid(a,"RN",parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],
"NRN"));return!0})});h.show()},balanceReportsEditSubReport:function(a,c){var e=a.store,f=a.selection.getSelectedIndex(),g=a.getItem(f),h=e.getValue(g,"RN"),l=new parus.balanceSubReportDialog({title:"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b: \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",formCode:c.store.getValue(c.getItem(c.selection.getSelectedIndex()),"FORM_CODE"),edition:c.store.getValue(c.getItem(c.selection.getSelectedIndex()),"BLREPFORMED"),onShow:b.hitch(this,
function(){l.sectionCodeEdit.attr("value",e.getValue(g,"CODE"));l.noteEdit.attr("value",e.getValue(g,"NOTE"));b.forEach(parus.balance._detailDocprops,function(m){var p=parus.parus8.nodeField(m,"RN");parus._docPropsValueValueForWidget(l._docprops[p],parus.parus8.docPropValue(g,p),"3"==parus.parus8.nodeField(m,"DATATYPE")?"4":parus.parus8.nodeField(m,"DATATYPE"),parus.parus8.nodeField(m,"SUBTYPE"))})}),onApply:b.hitch(this,function(){response=parus.database.execute("updateSubReport",{RN:h,CODE:l.sectionCodeEdit.value,
NOTE:l.noteEdit.value,DOCPROPS:l.propValues()});if(!response)return!1;this.refreshGrid(a,"RN",h);return!0})});l.show()},balanceReportsDeleteSubReport:function(a){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var c=a.store,e=a.selection.getFirstSelected(),f=0;f<a.selection.getSelectedCount();f++)parus.database.execute("deleteSubReport",{RN:c.getValue(e,
"RN")}),e=a.selection.getNextSelected(e);a.selection.deselectAll();this.refreshGrid(a);return!0})})).show()},showPrimaryPage:function(a){8>=b.isIE?(parus.balance._shownPages[a.id]?setTimeout(function(){parus.catalogActions.refreshCatalogTree(parus.balance.primaryCatalogTree)},1E3):parus.balance.refreshGrid(parus.balance.primaryMasterGrid),parus.balance._shownPages[a.id]=!0):parus.balance.refreshGrid(parus.balance.primaryMasterGrid)},consolidatedBalanceReportsConditions:function(){var a=new parus.balanceReportsConditionsDialog({title:"\u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b: \u041e\u0442\u0431\u043e\u0440",
consolidated:!0,onShow:b.hitch(this,function(){a.loadConditions(this._consolidatedConditions)}),onApply:b.hitch(this,function(){this._consolidatedConditions=a.saveConditions();parus.balance._translateConditionsToFilters(this._consolidatedConditions,parus.balance.consolidatedMasterGrid.columnsFilterObject.values)&&parus.balance.consolidatedMasterGrid.columnsFilterObject.valuesChanged();parus.userdata.set("consolidatedConditions",this._consolidatedConditions,!0);parus.balance.consolidatedMasterGrid.setQuery(parus.balance.consolidatedMasterGrid.query);
return!0})});a.show()},balanceReportsCheckValues:function(a,c,e){var f=[],g=[],h=[],l=a.store,m=a.selection.getSelectedIndex();m=a.getItem(m);for(var p=0;p<a.selection.getSelectedCount();p++)f.push(l.getValue(m,"RN")),g.push(l.getValue(m,"BLREPFORMED")),e?h.push(l.getValue(m,"PRN")):h.push(l.getValue(m,"RN")),m=a.selection.getNextSelected(m);0!=f.length&&(new parus.balanceCheckReportDialog({grid:a,kind:c,isSubReport:e,rn:f,formedRn:g,reportRn:h,title:(0==c?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":
"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"})).show()},_createHeadingPane:function(a){var c=t.layout.BorderContainer({design:"sidebar",gutters:!1,region:"top","class":"balanceHeadingPane"});c.addChild(t.layout.ContentPane({region:"left","class":"balanceHeadingPaneTitle",style:"margin:5px;",content:a}));a=t.layout.ContentPane({region:"center",style:"margin:1px;overflow:hidden"});
a.domNode.align="right";c.addChild(t.layout.ContentPane({region:"right"}));c.addChild(a);return c},showReportValues:function(a,c,e,f,g,h,l,m,p,r,w){if(l){g=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",region:"center",style:"height:100%;width:100%;padding:0"});h=parus.balance.describeReport(a,c,l,null,null,null,null,0);var x=parus.balance._createHeadingPane(h);g.addChild(x);var A=new parus.templateGridPane({region:"center",report:a,subreport:c,template:l,
direction:m,kind:p,reportDate:e,formCode:f,agent:r,headingContentPane:x,onDone:w,onModified:function(){if(B.controlButton){var D=b.query("*",B.controlButton.containerNode);D.removeClass("balanceReadOnlyHeader");D.removeClass("balanceModifiedHeader");A.readonly?D.addClass("balanceReadOnlyHeader"):A.modified&&D.addClass("balanceModifiedHeader")}parus.parus8._embeddedMode&&parus.embeddedMode.changeTabState(A.modified)},onTitleChanged:function(){if(A.title){var D=parus.balance.formatPageTitle(A.title);
B.attr("title",D);parus.parus8._embeddedMode&&parus.embeddedMode.changeTabTitle(D)}}});g.addChild(A);var B=new t.layout.ContentPane({title:parus.balance.formatPageTitle(h),closable:!0,region:"center","class":"balanceTemplateContentPane",onClose:b.hitch(A,A.onClose)});A.parentPane=B;B.setContent(g);parus.balance.TabContainer&&(parus.balance.TabContainer.addChild(B),parus.balance.TabContainer.selectChild(B));return B}},executeEditValues:function(a,c,e,f,g,h,l,m,p){if(!parus.balance.TabContainer||parus.parus8._embeddedMode)if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var r=b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([a,c]);if(parus.parus8._embeddedMode){var w=[a,c,+new Date].join("_");parus.embeddedMode.openTab(w,"\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442\u0447\u0435\u0442\u0430",r)}else window.open(r,"_blank");parus.parus8.registerAction()}else parus.database.query("BalanceReportTemplates",
{REPORT:a},b.hitch(this,function(x){x=parus.parus8.rowNodes(x);if(0==x.length)parus.parus8.errorMessage("\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.");else{if(1==x.length){var A=parus.parus8.nodeField(x[0],
"RN");var B=parus.parus8.nodeField(x[0],"DIRECT_TABLE")}else b.forEach(x,function(I){"1"==parus.parus8.nodeField(I,"EDIT_DEFAULT")&&(A=parus.parus8.nodeField(I,"RN"),B=parus.parus8.nodeField(I,"DIRECT_TABLE"))});if(A)parus.balance.showReportValues(a,c,e,f,g,h,A,B,l,m,p);else{var D=new parus.balanceTemplatesDialog({templates:x,onApply:b.hitch(this,function(){b.forEach(D.templatesGrid.selection.getSelected(),function(I){A=D.templatesGrid.store.getValue(I,"RN","");B=D.templatesGrid.store.getValue(I,
"DIRECT_TABLE","")});if(!A)return!1;this.showReportValues(a,c,e,f,g,h,A,B,l,m,p);return!0})});D.show()}}}))},editReportValues:function(a,c){var e=a.store,f=a.selection.getSelectedIndex();f=a.getItem(f);this.executeEditValues(e.getValue(f,"RN"),null,e.getValue(f,"BDATE"),e.getValue(f,"FORM_CODE"),e.getValue(f,"AGNABBR"),null,c,e.getValue(f,"AGENT"))},editSubReportValues:function(a,c,e){var f=a.store,g=a.selection.getSelectedIndex();a=a.getItem(g);g=c.store;var h=c.selection.getSelectedIndex();c=c.getItem(h);
this.executeEditValues(f.getValue(a,"PRN"),f.getValue(a,"RN"),g.getValue(c,"BDATE"),g.getValue(c,"FORM_CODE"),g.getValue(c,"AGNABBR"),f.getValue(a,"CODE"),e,g.getValue(c,"AGENT"))},downloadExcelWorkBook:function(a,c,e,f,g,h){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var l=function(m,p,r,w,x){if(r){var A=new parus.progressDialog({message:"\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043e\u0432"});A.show();parus.database._xhr("savereport.xml",null,{unitcode:a,report:c?b.isArray(c)?c.join(";"):c:"",subreport:e?b.isArray(e)?e.join(";"):e:"",template:x?x:"",extension:m,colormode:p,othersheets:w?"1":"0"},function(B){A.close();A.destroyRecursive();
"error"!=B.documentElement.nodeName&&parus.parus8.notificationMessage("\u041e\u0442\u0447\u0435\u0442\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b.")})}else r=document.createElement("form"),r.method="POST",r.action=parus.database.getReportExcelUrl(m),parus.parus8._embeddedMode||(r.target="_blank"),m=document.createElement("input"),m.type="hidden",m.name="report",m.value=c?b.isArray(c)?c.join(";"):c:"",r.appendChild(m),m=document.createElement("input"),
m.type="hidden",m.name="subreport",m.value=e?b.isArray(e)?e.join(";"):e:"",r.appendChild(m),m=document.createElement("input"),m.type="hidden",m.name="template",m.value=x?x:"",r.appendChild(m),m=document.createElement("input"),m.type="hidden",m.name="colormode",m.value=p,r.appendChild(m),m=document.createElement("input"),m.type="hidden",m.name="othersheets",m.value=w?"1":"0",r.appendChild(m),document.body.appendChild(r),r.submit(),document.body.removeChild(r)};"xls"==g?(new parus.excelFileFormatDialog({allowSave:!0,
allowTypeSelect:!f||"*"==f,onApply:function(){l(this.formatEdit.value,h,this.saveCheckBox.checked,this.otherSheetsCheckBox.checked,this.allowTypeSelect?this.typeEdit.attr("value"):f);return!0}})).show():"pdf"==g||"html"==g?(new parus.excelColorModeDialog({allowSave:!0,allowTypeSelect:!f||"*"==f,onApply:function(){l(g,this.colorModeEdit.value,this.saveCheckBox.checked,this.otherSheetsCheckBox.checked,this.allowTypeSelect?this.typeEdit.attr("value"):f);return!0}})).show():l(g,h,!1,!1,f)}},downloadExcelReport:function(a,
c,e){var f=a.store;if(1==a.selection.getSelectedCount()){var g=a.selection.getSelectedIndex();g=a.getItem(g);this.downloadExcelWorkBook("BalanceReports",f.getValue(g,"RN"),"*",null,c,e)}else if(1<a.selection.getSelectedCount()){var h=[],l="";g=a.selection.getFirstSelected();for(var m=null,p=0;p<a.selection.getSelectedCount();p++)l?l!=f.getValue(g,"BLREPFORMED")&&(m="*"):l=f.getValue(g,"BLREPFORMED"),h.push(f.getValue(g,"RN")),g=a.selection.getNextSelected(g);this.downloadExcelWorkBook("BalanceReports",
h,"*",m,c,e)}},downloadExcelSubReport:function(a,c,e,f){c=a.store;if(1==a.selection.getSelectedCount()){var g=a.selection.getSelectedIndex();g=a.getItem(g);this.downloadExcelWorkBook("BalanceSubReports",c.getValue(g,"PRN"),c.getValue(g,"RN"),null,e,f)}else if(1<a.selection.getSelectedCount()){var h=[],l="";g=a.selection.getFirstSelected();for(var m=0;m<a.selection.getSelectedCount();m++)l||(l=c.getValue(g,"PRN")),h.push(c.getValue(g,"RN")),g=a.selection.getNextSelected(g);this.downloadExcelWorkBook("BalanceSubReports",
l,h,null,e,f)}},downloadReport:function(a){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");else{var c=a.store,e=a.selection.getFirstSelected(),f=[],g=-1;b.forEach(a.views.views[0].structure.cells[0],b.hitch(this,function(l,
m){"SENT"==l.field&&(g=m)}));for(var h=0;h<a.selection.getSelectedCount();h++)f.push(c.getValue(e,"RN")),e=a.selection.getNextSelected(e);if(f.length&&parus.database._xhr("report.xml",null,{REPORTS:f.join(";")})){e=a.selection.getFirstSelected();for(h=0;h<a.selection.getSelectedCount();h++){if(c=a.views.views[0].getCellNode(a.getItemIndex(e),g))c.innerHTML=parus.parus8.formatBoolean(1);b.isIE||(e._fieldsMap.SENT=1);e=a.selection.getNextSelected(e)}a=document.createElement("form");a.method="GET";a.action=
parus.database.getReportXmlDataUrl();parus.parus8._embeddedMode||(a.target="_blank");document.body.appendChild(a);a.submit();document.body.removeChild(a)}}},balanceReportsLoadReports:function(a,c,e){(new parus.balanceLoadReportsDialog({kind:e,catalogTree:c,onApply:b.hitch(this,function(){this.refreshGrid(a,"RN",a.store.getValue(a.selection.getFirstSelected(),"RN"));return!0})})).show()},balanceReportsCustomFormatLoadReports:function(a,c,e){var f=new parus.balanceCustomLoadReportsDialog({kind:e,catalogTree:c,
onApply:b.hitch(this,function(){"0"==f.showReport.attr("value")&&this.refreshGrid(a,"RN",a.store.getValue(a.selection.getFirstSelected(),"RN"));return!0})});f.show()},showHelp:function(a){window.open(parus.database.getHelpUrl()+"balance/m_po_1077.htm","parus8balancehelp").document.title=document.title+" (\u0421\u043f\u0440\u0430\u0432\u043a\u0430)";parus.parus8.registerAction()},formatAttrValue:function(a,c,e){a=e.grid.getItem(c);return parus._docPropsValueForGrid(parus.parus8.docAttrValue(a,e.attrRN),
e.dataType,e.dataSubType)},formatDocPropValue:function(a,c,e){a=e.grid.getItem(c);return parus._docPropsValueForGrid(parus.parus8.docPropValue(a,e.propRN),e.dataType,e.dataSubType)},executeUserProc:function(a,c,e,f){var g=function(){parus.database.execute("executeUserProcedure",{RN:c,USERPROC:a,UNITCODE:e,PARAMS:{PARAMS:f}},function(r){var w="";r.documentElement.childNodes[0].childNodes[0].childNodes.length&&b.forEach(parus.parus8.rowNodes(r.documentElement.childNodes[0].childNodes[0].childNodes[0]),
function(x){"1"==parus.parus8.nodeField(x,"VISUALIZE")&&(w=w+"\x3cdiv\x3e\x3cb\x3e"+parus.parus8.nodeField(x,"NAME")+":\x3c/b\x3e"+String.fromCharCode(160)+"\x3cb style\x3d'color:black'\x3e"+parus.parus8.nodeField(x,"VALUE")+"\x3c/b\x3e\x3c/div\x3e")});w&&parus.parus8.notificationMessage("\x3cdiv\x3e\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430.\x3c/div\x3e"+
w)})},h=[],l;for(l in f){var m=f[l];b.isObject(m)&&(h.push({input:m.domNode,key:l,type:m.type}),delete f[l])}if(h.length){var p=h.length-1;parus.database.toBuffer(h[p].input,h[p].type,null,function(r){f[h[p].key]=r;p--;0<=p?parus.database.toBuffer(h[p].input,h[p].type,null,arguments.callee):g()})}else g()},userProcedure:function(a,c,e,f,g,h){var l=b.hitch(this,function(){var m=new parus.balanceUserProcParamsDialog({useSavedValues:"0"!=parus.parus8.optionValue("StoreUserProcsParams"),userproc:e,onApply:b.hitch(this,
function(){if(h){for(var p=a.store,r=a.selection.getFirstSelected(),w=[],x=0;x<a.selection.getSelectedCount();x++)w.push(p.getValue(r,"RN")),r=a.selection.getNextSelected(r);this.executeUserProc(e,w.join(";"),c,m.paramValues())}else if(g){p=a.store;r=a.selection.getFirstSelected();if(!r)return parus.parus8.errorMessage("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d."),
!0;for(x=0;x<a.selection.getSelectedCount();x++)this.executeUserProc(e,p.getValue(r,"RN"),c,m.paramValues()),r=a.selection.getNextSelected(r)}else this.executeUserProc(e,null,c,m.paramValues());this.refreshGrid(a);return!0})});m.show()});f?(new parus.confirmationDialog({message:f,onApply:function(){l();return!0}})).show():l()},parseUserApplicationResponse:function(a){var c="error"==a.documentElement.nodeName?[]:b.map(b.filter(parus.parus8.rowNodes(a),function(e){return"message"==e.nodeName}),function(e){return e.firstChild?
e.firstChild.nodeValue:"\x3cbr/\x3e"});"error"!=a.documentElement.nodeName&&b.forEach(parus.parus8.rowNodes(a),function(e){"response"==e.nodeName&&"json"==parus.parus8.nodeField(e,"handleAs")&&(e=b.fromJson(parus.parus8.nodeField(e,"data"))||{},e.startup&&e.startup())});c.length&&parus.parus8.notificationMessage(c.join("\x3cbr/\x3e"))},executeUserApplication:function(a,c,e,f,g,h,l,m){var p=function(){var B=new parus.progressDialog({message:"\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435"});
B.show();parus.database._xhr("userApplication.xml",null,{RN:c,USERAPP:a,UNITCODE:e,PARAMS:{PARAMS:f},PARENTUNITCODE:g,PARENTRN:h,CATALOGRN:l},function(D){B.close();B.destroyRecursive();parus.balance.parseUserApplicationResponse(D);m&&m()})},r=[],w;for(w in f){var x=f[w];b.isObject(x)&&(r.push({input:x.domNode,key:w,type:x.type}),delete f[w])}if(r.length){var A=r.length-1;parus.database.toBuffer(r[A].input,r[A].type,null,function(B){f[r[A].key]=B;A--;0<=A?parus.database.toBuffer(r[A].input,r[A].type,
null,arguments.callee):p()})}else p()},userApplication:function(a,c,e,f){var g=new parus.balanceUserProcParamsDialog({userproc:e,queryid:"userAppParams",title:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",onApply:b.hitch(this,function(){if(f){for(var h=a.store,l=a.selection.getFirstSelected(),m=[],p=0;p<a.selection.getSelectedCount();p++)m.push(h.getValue(l,
"RN")),l=a.selection.getNextSelected(l);this.executeUserApplication(e,m.join(";"),c,g.paramValues(),a.store.parentUnitCode,a.store.parentRN,a.store.catalogRN,function(){parus.balance.refreshGrid(a)})}else if(h=a.store,l=a.selection.getFirstSelected()){m=[];for(p=0;p<a.selection.getSelectedCount();p++)m.push(h.getValue(l,"RN")),l=a.selection.getNextSelected(l);b.forEach(m,b.hitch(this,function(r,w){this.executeUserApplication(e,r,c,g.paramValues(),a.store.parentUnitCode,a.store.parentRN,a.store.catalogRN,
w==m.length-1?function(){parus.balance.refreshGrid(a)}:null)}))}else this.executeUserApplication(e,null,c,g.paramValues(),a.store.parentUnitCode,a.store.parentRN,a.store.catalogRN,function(){parus.balance.refreshGrid(a)});return!0})});g.show()},userApplications:function(a,c){var e=new parus.balanceUserProcsDialog({unitcode:c,queryid:"userApps",title:"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",
onApply:b.hitch(this,function(){var f,g=!1;b.forEach(e.userProcsGrid.selection.getSelected(),function(h){f=e.userProcsGrid.store.getValue(h,"RN","");g="0"!=e.userProcsGrid.store.getValue(h,"GROUP_RECORDS","")});if(!f)return!1;this.userApplication(a,c,f,g);return!0})});e.show()},userProcedures:function(a,c){var e=new parus.balanceUserProcsDialog({unitcode:c,onApply:b.hitch(this,function(){var f,g="",h=!1,l=!1;b.forEach(e.userProcsGrid.selection.getSelected(),function(m){f=e.userProcsGrid.store.getValue(m,
"RN","");g=e.userProcsGrid.store.getValue(m,"CONFIRM_TEXT","");h="0"!=e.userProcsGrid.store.getValue(m,"PERRECORD","");l="0"!=e.userProcsGrid.store.getValue(m,"PERSELECTION","")});if(!f)return!1;this.userProcedure(a,c,f,g,h,l);return!0})});e.show()},downloadUserReport:function(a,c,e,f,g){parus.parus8._themeEditorMode?alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e."):
parus.database._xhr("userreport.xml",null,{rn:c,unitcode:e,userreport:a,params:parus.xml.toXml({PARAMS:f})},function(h){"error"!=h.documentElement.nodeName&&(h=document.createElement("form"),h.method="POST",h.action=parus.database.getUserReportDataUrl(),h.target="_blank",document.body.appendChild(h),h.submit(),document.body.removeChild(h))})},executeUserReport:function(a,c,e,f,g){if(parus.parus8._embeddedMode||!parus.balance.TabContainer){var h=[a,c,e,g];for(l in f)h.push(l),h.push(b.isArray(f[l])?
f[l].join(";"):f[l]);f=b.moduleUrl("parus","userReport.html").toString()+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams(h);parus.parus8._embeddedMode?(a=["userreport",a,c,e].join("_"),parus.embeddedMode.openTab(a,'\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442 "'+g+'"',f)):window.open(f,"_blank");parus.parus8.registerAction()}else{h=new t.layout.BorderContainer({design:"headline",
"class":"balanceTemplateContentPane",gutters:!1,style:"height:100%;width:100%;padding:0"});var l=parus.balance._createHeadingPane('\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442 "'+g+'"');h.addChild(l);a=new parus.userReportPane({region:"center",userreport:a,rn:c,unitcode:e,paramValues:f,returnToPane:parus.balance.TabContainer.selectedChildWidget,headingContentPane:l});h.addChild(a);g=new t.layout.ContentPane({title:parus.balance.formatPageTitle('\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442\x3cbr/\x3e"'+
g+'"'),closable:!0,"class":"balanceTemplateContentPane",onClose:b.hitch(a,a.onClose)});a.parentPane=g;g.setContent(h);parus.balance.TabContainer.addChild(g);parus.balance.TabContainer.selectChild(g)}},userReport:function(a,c,e,f,g){for(var h=a.store,l=a.selection.getFirstSelected(),m=[],p=0;p<a.selection.getSelectedCount();p++)m.push(h.getValue(l,"RN")),l=a.selection.getNextSelected(l);var r=new parus.balanceUserReportParamsDialog({userproc:e,unitcode:c,rns:m.join(";"),userreporttype:g,onApply:b.hitch(this,
function(){"4"==g?this.downloadUserReport(e,m.join(";"),c,b.clone(r.paramValues()),f):this.executeUserReport(e,m.join(";"),c,b.clone(r.paramValues()),f);return!0})});r.show()},userReports:function(a,c){var e=new parus.balanceUserProcsDialog({unitcode:c,queryid:"userReports",title:"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430",onApply:b.hitch(this,function(){var f,g="",h="1";
b.forEach(e.userProcsGrid.selection.getSelected(),function(l){f=e.userProcsGrid.store.getValue(l,"RN","");g=e.userProcsGrid.store.getValue(l,"NAME","");h=e.userProcsGrid.store.getValue(l,"REPORT_TYPE","1")});if(!f)return!1;this.userReport(a,c,f,g,h);return!0})});e.show()},downloadAttachedFile:function(a){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var c=document.createElement("form");c.method="GET";c.action=parus.database.getDownloadAttachedDocumentUrl();c.target="_blank";var e=document.createElement("input");e.type="hidden";e.name="rn";e.value=a;c.appendChild(e);document.body.appendChild(c);try{c.submit()}finally{document.body.removeChild(c)}}},formatAttachedFileName:function(a,c,e){return"\x3ca href\x3d'javascript:parus.balance.downloadAttachedFile("+e.grid.store.getValue(e.grid.getItem(c),"RN")+")'\x3e"+a+"\x3c/a\x3e"},balanceReportsCustomFormatDownloadReports:function(a){(new parus.balanceCustomDownloadReportsDialog({kind:a})).show()},
showConsolidationProposal:function(){var a=parus.balance.consolidatedMasterGrid.store,c=parus.balance.consolidatedMasterGrid.selection.getSelectedIndex(),e=parus.balance.consolidatedMasterGrid.getItem(c);c=b.clone(parus.dictionaries.ConsolidationProposal);var f=new t.Menu({"class":"balanceMenu"});f.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",defaultIcon:"PCHardwareadaltCustomIcon",onClick:b.hitch(this,function(){var h=new parus.balanceConsolidatedReportDialog({onShow:function(){h.formCodeEdit.attr("value",
a.getValue(e,"FORM_CODE"));h.reportDateEdit.attr("value",b.date.locale.parse(a.getValue(e,"BDATE"),{datePattern:"dd.MM.yyyy",selector:"date"}))},onApply:b.hitch(this,function(){response=parus.database.execute("insertConsolidationProposal",{PRN:a.getValue(e,"RN"),AGENT_CODE:h.agentCodeEdit.value,AGENT_NAME:h.agentNameEdit.value,KIND:h.kindSelect.value});if(!response)return!1;this.refreshGrid(g.grid,"RN",parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"NRN"));return!0})});h.show()})}));f.addChild(new t.MenuItem({label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",
defaultIcon:"PCdocumentCustomIcon",itemAction:!0,onClick:b.hitch(this,function(){var h=g.grid.store,l=g.grid.selection.getSelectedIndex(),m=g.grid.getItem(l),p=new parus.balanceConsolidatedReportDialog({_agentCodeLoaded:!0,_agentNameLoaded:!0,onShow:function(){p.formCodeEdit.attr("value",a.getValue(e,"FORM_CODE"));p.reportDateEdit.attr("value",b.date.locale.parse(a.getValue(e,"BDATE"),{datePattern:"dd.MM.yyyy",selector:"date"}));p.agentCodeEdit.attr("value",h.getValue(m,"AGNABBR"));p.agentNameEdit.attr("disabled",
!1);p.agentNameEdit.attr("value",h.getValue(m,"AGNNAME"));p.agentHeadEdit.attr("value",h.getValue(m,"HEAD_ORG_NAME"));p.kindSelect.attr("value",h.getValue(m,"KIND"))},onApply:b.hitch(this,function(){response=parus.database.execute("updateConsolidationProposal",{RN:h.getValue(m,"RN"),AGENT_CODE:p.agentCodeEdit.value,AGENT_NAME:p.agentNameEdit.value,KIND:p.kindSelect.value});if(!response)return!1;this.refreshGrid(g.grid,"RN",h.getValue(m,"RN"));return!0})});p.show()})}));f.addChild(new t.MenuItem({label:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c...",
defaultIcon:"PCcopyCustomIcon",itemAction:!0,onClick:b.hitch(this,function(){var h=g.grid.store,l=g.grid.selection.getSelectedIndex(),m=g.grid.getItem(l),p=new parus.balanceConsolidatedReportDialog({_agentCodeLoaded:!0,_agentNameLoaded:!0,onShow:function(){p.formCodeEdit.attr("value",a.getValue(e,"FORM_CODE"));p.reportDateEdit.attr("value",b.date.locale.parse(a.getValue(e,"BDATE"),{datePattern:"dd.MM.yyyy",selector:"date"}));p.agentCodeEdit.attr("value",h.getValue(m,"AGNABBR"));p.agentNameEdit.attr("disabled",
!1);p.agentNameEdit.attr("value",h.getValue(m,"AGNNAME"));p.agentHeadEdit.attr("value",h.getValue(m,"HEAD_ORG_NAME"));p.kindSelect.attr("value",h.getValue(m,"KIND"))},onApply:b.hitch(this,function(){response=parus.database.execute("insertConsolidationProposal",{PRN:a.getValue(e,"RN"),AGENT_CODE:p.agentCodeEdit.value,AGENT_NAME:p.agentNameEdit.value,KIND:p.kindSelect.value});if(!response)return!1;this.refreshGrid(g.grid,"RN",parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"NRN"));return!0})});
p.show()})}));f.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c...",defaultIcon:"PCreduceCustomIcon",itemAction:!0,onClick:b.hitch(this,function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var h=g.grid.store,l=g.grid.selection.getFirstSelected(),m=0;m<g.grid.selection.getSelectedCount();m++)parus.database.execute("deleteConsolidationProposal",
{RN:h.getValue(l,"RN")}),l=g.grid.selection.getNextSelected(l);this.refreshGrid(g.grid);return!0})})).show()})}));f.startup();b.mixin(c,{menu:f,dictionary:c,multiselect:!0,gridConditions:{REPORT:a.getValue(e,"RN")},hideCancel:!0});var g=new parus.dictionaryDialog(c);g.show()},exportToFile:function(a){for(var c=a.store,e=a.selection.getFirstSelected(),f=[],g=0;g<a.selection.getSelectedCount();g++)f.push(c.getValue(e,"RN")),e=a.selection.getNextSelected(e);if(f.length){var h=new parus.balanceReportsFileExportDialog({onApply:function(){if(parus.parus8._themeEditorMode)return alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e."),
!0;var l=parus.database.execute("FindUserProcedure",{CODE:h.userProcEdit.value});if(!l)return!1;var m=new parus.balanceUserProcParamsDialog({useSavedValues:"0"!=parus.parus8.optionValue("StoreUserProcsParams"),userproc:parus.parus8.nodeField(parus.parus8.rowNodes(l)[0],"NRN"),onApply:b.hitch(this,function(){parus.database._xhr("fileexport.xml",null,{RN:f.join(";"),USERPROC:m.userproc,UNITCODE:"BalanceReports",PARAMS:parus.xml.toXml({PARAMS:{PARAMS:m.paramValues()}})},function(p){"error"!=p.documentElement.nodeName&&
setTimeout(function(){var r=document.createElement("form");r.method="GET";r.action=parus.database.getCustomDownloadDataUrl();r.target="_blank";document.body.appendChild(r);r.submit();document.body.removeChild(r)},1E3)});return!0})});m.show();return!0}});h.show()}},exportToSignedFile:function(a,c){for(var e=a.store,f=a.selection.getFirstSelected(),g=[],h=0;h<a.selection.getSelectedCount();h++)g.push(e.getValue(f,"RN")),f=a.selection.getNextSelected(f);if(g.length){var l=new parus.balanceReportsFileExportDialog({onApply:function(){var m=
parus.database.execute("FindUserProcedure",{CODE:l.userProcEdit.value});if(!m)return!1;var p=new parus.balanceUserProcParamsDialog({useSavedValues:"0"!=parus.parus8.optionValue("StoreUserProcsParams"),userproc:parus.parus8.nodeField(parus.parus8.rowNodes(m)[0],"NRN"),onApply:b.hitch(this,function(){var r=parus.xml.toXml({PARAMS:{PARAMS:p.paramValues()}}),w=new parus.signDialog({showNote:!1,allowSimpleSign:!1,checkPluginVersion:!0,requiredVersion:{major:1,minor:5,build:1500},rn:g,unitCode:c,onApply:b.hitch(this,
function(){var x=[],A,B=parus.parus8.getXMLReportSignTemplateName(w.getGOSTVersion(),w.getGOSTKeySize());if(0==B.length)return parus.parus8.errorMessage("\u041d\u0435\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0413\u041e\u0421\u0422 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0435: "+w.getGOSTVersion()+
" ("+w.getGOSTKeySize()+")"),!0;b.xhrGet({sync:!0,handleAs:"xml",url:"../parusjs/"+B,load:b.hitch(this,function(I){return A=I})});var D;b.forEach(g,function(I){"error"!=parus.database._xhr("fileexport.xml",null,{RN:I,USERPROC:p.userproc,UNITCODE:"BalanceReports",PARAMS:r}).documentElement.nodeName&&b.xhrGet({sync:!0,handleAs:"xml",url:parus.database.getCustomDownloadDataUrl(),load:b.hitch(this,function(u,y){var z="";b.forEach(y.xhr.getResponseHeader("Content-Disposition").split(";"),function(E){0<=
E.indexOf("filename\x3d")&&(z=b.string.trim(E.split("\x3d")[1]),z=z.substr(1,z.length-2))});u.documentElement.appendChild(A.documentElement);var G=9>=b.isIE?u.xml:(new XMLSerializer).serializeToString(u);G=b.trim(G.replace(/>\s+</g,function(E){return E.replace(/\s+/g,"")}));x.push({rn:I,fileName:z,data:G});return u}),error:function(u){D||(D="\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \x3cbr/\x3e\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u043b \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0431\u043e\u0439, \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0442\u0430\u043b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \x3cbr/\x3e\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0439\u0442\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.");
return u}})});if(D)return parus.parus8.errorMessage(D),!0;parus.digitalSignature.signXMLData(x,w.getThumbprint(),!0).then(b.hitch(this,function(){b.forEach(x,function(I){if(I.signedData)if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var u=document.createElement("form");u.method="POST";u.action=parus.database.getDownloadSignedReportPackageUrl();u.target="_blank";var y=function(z,G){var E=document.createElement("input");E.type="hidden";E.name=z;E.value=G;u.appendChild(E)};y("unitcode","BalanceReports");y("reports",I.rn);y("fileName",I.fileName);y("fileData",I.signedData);y("params",r);document.body.appendChild(u);u.submit();document.body.removeChild(u)}})}),function(I){parus.parus8.errorMessage(I)});return!0})});w.show();
return!0})});p.show();return!0}});l.show()}},importFromFile:function(a){(new parus.balanceReportsFileImportDialog({onApply:b.hitch(this,function(){this.refreshGrid(a);return!0})})).show()},executeSettings:function(a,c,e,f,g,h,l,m){var p=new parus.gridSettingsDialog({sourceGrid:a,sourceMenu:c,sourceCatalogTree:f,additions:g,userProcsUnitCode:h,userReportsUnitCode:l,userAppsUnitCode:m,onApply:function(){var r=p.madeSettings();parus.userdata.set(e,r,!0);parus.gridSettingsDialog.setCatalogTreeVisible(f,
!r.hideCatalogTree);parus.gridSettingsDialog.mergeMenuSettings(c,r.actionSettings,r.userProcsActions,r.userReportsActions,r.userAppsActions,r.userAppsActions);parus.gridSettingsDialog.mergeAdditions(g,r.additions);if(a){var w=a.store;a.setStore(new parus.emptyGridData);parus.gridSettingsDialog.mergeGridSettings(a,r.gridSettings);parus.gridSettingsDialog.mergeColorConditions(a,r.colorConditions);parus.gridSettingsDialog.mergeFilterBar(a,r.showFilterBar,r.filterValues,r.sortInfo);setTimeout(function(){a.setStore(w)},
500);a.abonentFields=(r.abonentFields||[]).join(";")}return!0}});p.show()},_translateConditionsToFilters:function(a,c){var e=!1;a.AGNABBR!=c.AGNABBR&&(c.AGNABBR=a.AGNABBR,e=!0);a.AGNNAME!=c.AGNNAME&&(c.AGNNAME=a.AGNNAME,e=!0);a.FORM_CODE!=c.FORM_CODE&&(c.FORM_CODE=a.FORM_CODE,e=!0);a.DATE_FROM&&a.DATE_TO&&a.DATE_FROM.substring(2,1E3)==a.DATE_TO.substring(2,1E3)?c.BDATE!=a.DATE_FROM.substring(2,1E3)&&(c.BDATE=a.DATE_FROM.substring(2,1E3),e=!0):(a.DATE_FROM!=c.DATE_FROM&&(c.DATE_FROM=a.DATE_FROM,e=
!0),a.DATE_TO!=c.DATE_TO&&(c.DATE_TO=a.DATE_TO,e=!0),c.BDATE&&(c.BDATE="",e=!0));if(a.CHECKED){var f=b.map(a.CHECKED.split(";"),function(g){return parus.parus8.formatBoolean(g)}).join(";");f!=c.CHECKED&&(c.CHECKED=f,e=!0)}a.SENT&&(f=b.map(a.SENT.split(";"),function(g){return parus.parus8.formatBoolean(g)}).join(";"),f!=c.SENT&&(c.SENT=f,e=!0));a.ONLY_LAST_HISTORY&&(f=b.map(a.ONLY_LAST_HISTORY.split(";"),function(g){return parus.parus8.formatBoolean(g)}).join(";"),f!=c.ONLY_LAST_HISTORY&&(c.ONLY_LAST_HISTORY=
f,e=!0));a.USE_HISTORY&&(f=b.map(a.USE_HISTORY.split(";"),function(g){return parus.balance.formatReportHistory(g)}).join(";"),f!=c.USE_HISTORY&&(c.USE_HISTORY=f,e=!0));a.STATE&&(f=b.map(a.STATE.split(";"),function(g){return parus.balance.formatReportStatus(g)}).join(";"),f!=c.STATE&&(c.STATE=f,e=!0));a.DOCPROPS&&b.forEach(parus.balance._docprops,function(g){var h=parus.parus8.nodeField(g,"RN");a.DOCPROPS["P"+h]&&(parus.parus8.nodeField(g,"DICTIONARY")||"0"==parus.parus8.nodeField(g,"DATATYPE")?a.DOCPROPS["P"+
h].value!=c["prop"+h]&&(c["prop"+h]=a.DOCPROPS["P"+h].value||"",e=!0):a.DOCPROPS["P"+h].from&&a.DOCPROPS["P"+h].to&&a.DOCPROPS["P"+h].from==a.DOCPROPS["P"+h].to?c.BDATE!=a.DOCPROPS["P"+h].from&&(c["prop"+h]=a.DOCPROPS["P"+h].from||"",e=!0):c["prop"+h]&&(c["prop"+h]="",e=!0))});return e},_translateFiltersToConditions:function(a,c){var e=!1;a.AGNABBR&&c.AGNABBR!=a.AGNABBR?(c.AGNABBR=a.AGNABBR,e=!0):!a.AGNABBR&&c.AGNABBR&&(c.AGNABBR="",e=!0);a.AGNNAME&&c.AGNNAME!=a.AGNNAME?(c.AGNNAME=a.AGNNAME,e=!0):
!a.AGNNAME&&c.AGNNAME&&(c.AGNNAME="",e=!0);a.FORM_CODE&&c.FORM_CODE!=a.FORM_CODE?(c.FORM_CODE=a.FORM_CODE,e=!0):!a.FORM_CODE&&c.FORM_CODE&&(c.FORM_CODE="",e=!0);a.BDATE&&1==a.BDATE.split(";").length&&0>a.BDATE.indexOf("*")?(c.DATE_FROM!="\x3e\x3d"+a.BDATE&&(c.DATE_FROM="\x3e\x3d"+a.BDATE,e=!0),c.DATE_TO!="\x3c\x3d"+a.BDATE&&(c.DATE_TO="\x3c\x3d"+a.BDATE,e=!0)):(a.DATE_FROM&&c.DATE_FROM!=a.DATE_FROM?(c.DATE_FROM=a.DATE_FROM,e=!0):!a.DATE_FROM&&c.DATE_FROM&&(c.DATE_FROM="",e=!0),a.DATE_TO&&c.DATE_TO!=
a.DATE_TO?(c.DATE_TO=a.DATE_TO,e=!0):!a.DATE_TO&&c.DATE_TO&&(c.DATE_TO="",e=!0));if(a.CHECKED){var f=[];b.forEach(a.CHECKED.split(";"),function(g){g=b.indexOf(["\u041d\u0435\u0442","\u0414\u0430"],g);0<=g&&f.push(g)});f.join(";")!=c.CHECKED&&(c.CHECKED=f.join(";"),e=!0)}else c.CHECKED&&(c.CHECKED="",e=!0);a.SENT?(f=[],b.forEach(a.SENT.split(";"),function(g){g=b.indexOf(["\u041d\u0435\u0442","\u0414\u0430"],g);0<=g&&f.push(g)}),f.join(";")!=c.SENT&&(c.SENT=f.join(";"),e=!0)):c.SENT&&(c.SENT="",e=!0);
a.ONLY_LAST_HISTORY?(f=[],b.forEach(a.ONLY_LAST_HISTORY.split(";"),function(g){g=b.indexOf(["\u041d\u0435\u0442","\u0414\u0430"],g);0<=g&&f.push(g)}),f.join(";")!=c.ONLY_LAST_HISTORY&&(c.ONLY_LAST_HISTORY=f.join(";"),e=!0)):c.ONLY_LAST_HISTORY&&(c.ONLY_LAST_HISTORY="",e=!0);a.USE_HISTORY?(f=[],b.forEach(a.USE_HISTORY.split(";"),function(g){g=b.indexOf(["\u041d\u0435\u0442","\u0414\u0430","\u041f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443"],g);0<=g&&f.push(g)}),f.join(";")!=c.USE_HISTORY&&(c.USE_HISTORY=
f.join(";"),e=!0)):c.USE_HISTORY&&(c.USE_HISTORY="",e=!0);a.STATE?(f=[],b.forEach(a.STATE.split(";"),function(g){g=b.indexOf("\u041d\u043e\u0432\u044b\u0439;\u0418\u0437\u043c\u0435\u043d\u0435\u043d;\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d;\u0412 \u0441\u0432\u043e\u0434\u0435;\u0421\u0432\u0435\u0434\u0435\u043d \u0431\u0435\u0437 \u0438\u0442\u043e\u0433\u043e\u0432;\u0421\u0432\u0435\u0434\u0435\u043d \u0441 \u0438\u0442\u043e\u0433\u0430\u043c\u0438;\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d;\u0421\u0432\u0435\u0434\u0435\u043d \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e".split(";"),
g);0<=g&&f.push(g)}),f.join(";")!=c.STATE&&(c.STATE=f.join(";"),e=!0)):c.STATE&&(c.STATE="",e=!0);c.DOCPROPS&&b.forEach(parus.balance._docprops,function(g){var h=parus.parus8.nodeField(g,"RN");c.DOCPROPS["P"+h]&&(parus.parus8.nodeField(g,"DICTIONARY")||"0"==parus.parus8.nodeField(g,"DATATYPE")?a["prop"+h]&&c.DOCPROPS["P"+h].value!=a["prop"+h]&&(c.DOCPROPS["P"+h].value=a["prop"+h],e=!0):a["prop"+h]&&1==a["prop"+h].split(";").length&&0>a["prop"+h].indexOf("*")?(c.DOCPROPS["P"+h].from!=a["prop"+h]&&
(c.DOCPROPS["P"+h].from=a["prop"+h],e=!0),c.DOCPROPS["P"+h].to!=a["prop"+h]&&(c.DOCPROPS["P"+h].to=a["prop"+h],e=!0)):(c.DOCPROPS["P"+h].from&&(c.DOCPROPS["P"+h].from="",e=!0),c.DOCPROPS["P"+h].to&&(c.DOCPROPS["P"+h].to="",e=!0)))});return e},gridFilterChanged:function(a,c,e){"parus.balance.primaryMasterGrid"==a?parus.balance._translateFiltersToConditions(c,parus.balance._primaryConditions)&&(parus.userdata.set("primaryConditions",parus.balance._primaryConditions),parus.balance.primaryMasterGrid.setQuery(parus.balance.primaryMasterGrid.query)):
"parus.balance.consolidatedMasterGrid"==a&&parus.balance._translateFiltersToConditions(c,parus.balance._consolidatedConditions)&&(parus.userdata.set("consolidatedConditions",parus.balance._consolidatedConditions),parus.balance.consolidatedMasterGrid.setQuery(parus.balance.consolidatedMasterGrid.query));var f=parus.userdata.get(a);f.filterValues=c;f.sortInfo=e||null;parus.userdata.set(a,f,!0)},executeUserCalc:function(a,c,e){parus.database.execute("ExecuteUserCalc",{USERCALC:a,PARAMS:{PARAMS:c()}},
function(f){var g={};b.forEach(f.documentElement.childNodes[0].childNodes[0].childNodes[0].childNodes,function(h){g[h.nodeName]=parus.parus8.nodeField(h.parentNode,h.nodeName)});e(g)})},executeUserCalcs:function(a,c,e,f,g){var h=[];b.forEach(a,function(m){(c&&e||"1"==parus.parus8.nodeField(m,"EXECINSERT")&&c||"1"==parus.parus8.nodeField(m,"EXECUPDATE")&&e)&&h.push(m)});if(h.length)if(1==h.length)parus.balance.executeUserCalc(parus.parus8.nodeField(h[0],"RN"),f,g);else{var l=new parus.balanceUserCalcsDialog({calcs:h,
onApply:b.hitch(this,function(){b.forEach(l.calcsGrid.selection.getSelected(),function(m){parus.balance.executeUserCalc(l.calcsGrid.store.getValue(m,"RN"),f,g)});return!0})});l.show()}},exportGrid:function(a,c,e){(new parus.exportGridDialog({grid:a})).show()},describeReport:function(a,c,e,f,g,h,l,m){return parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("describeAll",{REPORT:a||"",SUBREPORT:c||"",TEMPLATE:e||"",INDEX:f||"",VALUE:g||"",DATE:h||"",AUTHID:l||"",PURPOSE:m}))[0],"TEXT")},
formatTextAsFloat:function(a,c,e){return a&&(c=b.number.parse(a.toString().split(".").join(",")),!isNaN(c)&&"0"!=a.charAt(0)&&-1==c.toString().indexOf("e"))?b.number.format(c):a},logout:function(){parus.balance&&parus.balance.TabContainer&&parus.balance.TabContainer.selectedChildWidget&&parus.balance.TabContainer.selectedChildWidget.closable?parus.balance.TabContainer.closeChild(parus.balance.TabContainer.selectedChildWidget):parus.parus8.logout()}});b.mixin(parus.database,{getTemplateUrl:function(a){return this._buildUrl("/template.html?template\x3d"+
a)},getDesignTemplateUrl:function(a){return this._buildUrl("/designertemplate.js?template\x3d"+a)},getDesignTemplateWorkBookUrl:function(){return this._buildUrl("/designertemplateworkbook.xlsm")},getDesignTemplateUploadUrl:function(){return this._buildUrl("/designertemplateupload.xml")},getDesignTemplateSaveUrl:function(){return this._buildUrl("/designertemplatesave.xml")},getReportExcelUrl:function(a){return this._buildUrl("/report."+a)},getReportXmlUrl:function(){return this._buildUrl("/report.xml")},
getReportXmlDataUrl:function(){return this._buildUrl("/reportdata.xml")},getLoadReportsUrl:function(){return this._buildUrl("/loadreports.html")},getHelpUrl:function(){var a=this.connected.split(";");a=1<a.length?a[0]:this.connected;return"../"+a+"/help/"},getLoadAttachedDocumentUrl:function(){return this._buildUrl("/loadattach.xml")},getLoadAttachedDocumentsUrl:function(){return this._buildUrl("/loadattachs.xml")},getDownloadAttachedDocumentUrl:function(){return this._buildUrl("/downloadattach.xml")},
getCustomDownloadDataUrl:function(){return this._buildUrl("/customdownloaddata")},getFileExportUrl:function(){return this._buildUrl("/fileexport")},getFileImportUrl:function(){return this._buildUrl("/fileimport.xml")},getDownloadSignedReportPackageUrl:function(){return this._buildUrl("/signedreportpackage.zip")},getHistoryUrl:function(a,c){var e="/valueshistory."+a;c&&(e=e+"?rn\x3d"+c);return this._buildUrl(e)},getExportDataUrl:function(a){return this._buildUrl("/exportdata."+a)},getDiagramUrl:function(a,
c,e,f){return this._buildUrl("/diagram.png?parus.preventCache\x3d"+(new Date).valueOf()+"\x26template\x3d"+a+"\x26report\x3d"+c+"\x26subreport\x3d"+(e?e:"")+"\x26index\x3d"+f)},getUserReportUrl:function(a,c){return this._buildUrl("/userReport."+c+"?userreport\x3d"+a+"\x26parus.preventCache\x3d"+(new Date).valueOf())},getUserReportDataUrl:function(){return this._buildUrl("/userreportdata")},getLogoutUrl:function(){return this.connected?this._buildUrl("/logout.xml"):"../.system/logout.xml"},getBufferUrl:function(a){return this._buildUrl("/frombuffer?rn\x3d"+
a)},getExchangeImportUrl:function(){return this._buildUrl("/exchangeimport.xml")},getExchangeImportLogUrl:function(){return this._buildUrl("/exchangeimportlog")},getEnqueuedReportUrl:function(a){var c="/userreportqueue";a&&(c=c+"?queue\x3d"+a);return this._buildUrl(c)}});b.mixin(parus.parus8,{_attrDescriptors:!1})})},"parus/gridData":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.gridData");b.require("dojo.data.util.filter");b.require("parus.parus8");b.require("parus.database");
b.declare("parus.gridData",null,{parentUnitCode:null,parentRN:null,catalogRN:null,identityFieldName:"ID",asJson:!1,_found:null,_closed:!1,onGetConditions:function(a){},onComplete:function(a,c,e){},onClose:function(){},getConditions:function(){return this.onGetConditions(this)},_data:null,_queryMade:null,persistent:null,sync:!1,constructor:function(a){a&&b.mixin(this,a)},destroy:function(){this.close();this._found=this._data=null},getValue:function(a,c,e){return parus.parus8.nodeField(a,c)||e||null},
orderByClause:function(a){var c=[];a&&b.forEach(a,function(e){e.attribute&&b.forEach(e.attribute.split(","),function(f){c.push(e.descending?f+" desc":f)})});return c.join(",")},__lastConditions:null,__lastSort:null,__lastConditionsData:null,query:function(a,c){return this.fetch(b.mixin(c,{query:a}))},fetch:function(a){this._closed=!1;a.query&&a.query[""]&&delete a.query[""];!a.sort&&this.__lastConditions&&this.__lastConditions.__sort&&(a.sort=a.sort||this.__lastConditions.__sort);var c=this.getConditions()||
{},e=b.toJson({query:a.query||{},queryOptions:a.queryOptions||{},sort:a.sort,conditions:c});this.persistent||e==this._queryMade||(this._data=null,this._queryMade=e);var f=null;e=b.clone(c);b.mixin(e,a.query);var g=b.clone(e);a.sort&&b.mixin(g,{__sort:a.sort});if(this.__lastConditions&&this.__lastConditionsData&&parus.parus8.compareObjects(this.__lastConditions||{},g))f=b.clone(this.__lastConditionsData);else if(this.__lastConditions={},this._found=null,this._data&&this.persistent){a.sort&&!parus.parus8.compareObjects(this.__lastSort||
{},a.sort)&&(this.__lastSort=a.sort,this._data.sort(b.hitch(this,function(r,w){var x=0,A=a.sort;b.isArray(A)||(A=[A]);for(var B=0;B<A.length;B++){var D=this.getValue(r,A[B].field||A[B].attribute)||null,I=this.getValue(w,A[B].field||A[B].attribute)||null,u=D?b.number.parse(D.toString().split(".").join(",")):Number.NaN,y=I?b.number.parse(I.toString().split(".").join(",")):Number.NaN;isNaN(u)||isNaN(y)||(D=u,I=y);D>I?x=1:D<I&&(x=-1);A[B].descending&&(x=-x);if(x)break}return x})));f=b.clone(this._data);
for(var h in e)if(h){var l=e[h];if(l){var m=null;b.isObject(l)&&b.isRegExp(l)?m=l:b.isString(l)&&(m=b.data.util.filter.patternToRegExp(l,!1));m&&(f=b.filter(f,b.hitch(this,function(r){return(this.getValue(r,h)||"").match(m)})))}}this.__lastConditions=g;this.__lastConditionsData=f}e={};(g=this.orderByClause(a.sort))&&b.mixin(e,{order:g});b.mixin(e,c);b.mixin(e,a.query);var p=b.hitch(this,function(r){r=this.fetchFilter(r);var w=a.start||0,x=a.count&&Infinity!==a.count?w+a.count:r.length;0>w&&(x+=w,
w=0);if(a.onBegin)a.onBegin(r.length,a);if(a.onItem)for(var A=w;A<r.length&&A<x;A++)a.onItem(r[A],a);this.onComplete(this,r,a);a.onComplete&&(A=null,a.onItem||(A=r.slice(w,x)),a.onComplete(A,a));if(a.query&&a.query.onComplete)a.query.onComplete(this,r,a)});f=f||this._data;f||(this._data=f=this.asJson?parus.database.queryObject(this.queryid,e):parus.parus8.rowNodes(parus.database.query(this.queryid,e)),this._found=null);this.sync?p(f):setTimeout(function(){p(f)},0);return a},close:function(a){if(!this._closed){if(this.onClose)this.onClose();
this.__lastConditionsData=this.__lastSort=this.__lastConditions=this._queryMade=this._found=this._data=null;this._closed=!0}},getIdentity:function(a){return parus.parus8.nodeField(a,this.identityFieldName)},getIdentityAttributes:function(a){return[this.identityFieldName]},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},isItem:function(a){return!0},fetchItemByIdentity:function(a){try{this.fetch(a);var c=this.findIndex(this.identityFieldName,a.identity),e=0<=c?this._data[c]:
null;if(a.onItem){var f=a.scope?a.scope:b.global;a.onItem.call(f,e)}}catch(g){a.onError&&(f=a.scope?a.scope:b.global,a.onError.call(f,g))}},getValues:function(a,c){parus.parus8.unimplemented(this,"getValues",arguments)},hasAttribute:function(a,c){parus.parus8.unimplemented(this,"hasAttribute",arguments)},containsValue:function(a,c,e){parus.parus8.unimplemented(this,"containsValue",arguments)},isItemLoaded:function(a){parus.parus8.unimplemented(this,"isItemLoaded",arguments)},loadItem:function(a){parus.parus8.unimplemented(this,
"loadItem",arguments)},getLabel:function(a){parus.parus8.unimplemented(this,"getLabel",arguments)},getLabelAttributes:function(a){parus.parus8.unimplemented(this,"getLabelAttributes",arguments)},find:function(a,c){if(!c)return null;var e=null;if(this._found){var f=this._found[a];if(f&&f.hasOwnProperty(c)&&(e=f[c]||e))return e}f=b.clone(this._data);var g=b.clone(this.__lastConditions||{}),h;for(h in g)if(h){var l=g[h];if(l&&b.isString(l)){var m=b.data.util.filter.patternToRegExp(l,!1);f=b.filter(f,
b.hitch(this,function(p){return(this.getValue(p,h)||"").match(m)}))}}b.every(f,b.hitch(this,function(p){p&&this.getValue(p,a)==c&&(e=p);return!e}));this._found=this._found||{};this._found[a]=this._found[a]||{};return this._found[a][c]=e},findIndex:function(a,c){if(!c)return-1;var e=0,f=b.clone(this._data);f=this.fetchFilter(f);var g=b.clone(this.__lastConditions||{}),h;for(h in g){var l=g[h];if(l&&b.isString(l)){var m=b.data.util.filter.patternToRegExp(l,!1);f=b.filter(f,b.hitch(this,function(p){return(this.getValue(p,
h)||"").match(m)}))}}b.every(f,b.hitch(this,function(p,r){this.getValue(p,a)==c&&(e=r+1);return!e}));return e-1},add:function(a){this._data.push(b.clone(a));this.__lastConditionsData=this.__lastConditions=null},remove:function(a){this._data=b.filter(this._data,function(c){return!a(c)});this.__lastConditionsData=this.__lastConditions=null},forEach:function(a,c){var e=b.clone(this._data);if(!c){e=this.fetchFilter(e);var f=b.clone(this.__lastConditions||{}),g;for(g in f){var h=f[g];if(h&&b.isString(h)){var l=
b.data.util.filter.patternToRegExp(h,!1);e=b.filter(e,b.hitch(this,function(m){return(this.getValue(m,g)||"").match(l)}))}}}b.forEach(e,b.hitch(this,function(m,p){a(this,m,p)}))},fetchFilter:function(a){return a}});b.declare("parus.emptyGridData",null,{parentUnitCode:null,parentRN:null,catalogRN:null,identityFieldName:null,onGetConditions:function(a){},onComplete:function(a,c,e){},getConditions:function(){},persistent:null,constructor:function(a){a&&b.mixin(this,a)},destroy:function(){},getValue:function(a,
c,e){},orderByClause:function(a){return""},fetch:function(a){if(a.onBegin)a.onBegin(0,a);if(a.onComplete)a.onComplete([],a);return a},close:function(a){},getIdentity:function(a){},getIdentityAttributes:function(a){},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},isItem:function(a){},fetchItemByIdentity:function(a){parus.parus8.unimplemented(this,"fetchItemByIdentity",arguments)},getValues:function(a,c){parus.parus8.unimplemented(this,"getValues",arguments)},hasAttribute:function(a,
c){parus.parus8.unimplemented(this,"hasAttribute",arguments)},containsValue:function(a,c,e){parus.parus8.unimplemented(this,"containsValue",arguments)},isItemLoaded:function(a){parus.parus8.unimplemented(this,"isItemLoaded",arguments)},loadItem:function(a){parus.parus8.unimplemented(this,"loadItem",arguments)},getLabel:function(a){parus.parus8.unimplemented(this,"getLabel",arguments)},getLabelAttributes:function(a){parus.parus8.unimplemented(this,"getLabelAttributes",arguments)},find:function(a,c){},
findIndex:function(a,c){},add:function(a){},forEach:function(a){},fetchFilter:function(a){return a}})})},"parus/designerIndexFormulaDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerIndexFormulaDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editableDictionaryDialog");
b.require("parus.editDictionaryDialog");b.require("parus.designerRecalculateTypeDialog");b.declare("parus.designerIndexFormulaDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.recalculateTypeEdit.attr("value",a.getValue(c,"RECALCTYPE")),this.userProcEdit.attr("value",a.getValue(c,"USERPROC")),this.dateFromEdit.attr("value",parus.formats.stringToDate(a.getValue(c,"BEGINDATE"))),this.dateToEdit.attr("value",parus.formats.stringToDate(a.getValue(c,
"ENDDATE"))))},executeInsert:function(){var a=parus.database.execute("designer.BalanceIndexes.Formulas.Insert",{PRN:this.prn,RECALCTYPE:this.recalculateTypeEdit.attr("value"),USERPROC:this.userProcEdit.attr("value"),BEGINDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value"))});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceIndexes.Formulas.Update",
{RN:this.rn,RECALCTYPE:this.recalculateTypeEdit.attr("value"),USERPROC:this.userProcEdit.attr("value"),BEGINDATE:parus.formats.dateToString(this.dateFromEdit.attr("value")),ENDDATE:parus.formats.dateToString(this.dateToEdit.attr("value"))})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceIndexes.Formulas.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/tabPage":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.tabPage");b.require("dijit._Widget");
b.require("dijit._Templated");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.ContentPane");b.require("dijit.layout.TabContainer");b.require("dijit.form.Button");b.declare("parus.tabPage",[t._Widget,t._TemplatedMixin],{widgetsInTemplate:!1,destroyOnClose:!0,contentPane:null,ownerTabContainer:null,title:null,kind:null,previouslySelected:null,postMixInProperties:function(){this.inherited(arguments);var a=this.declaredClass.split(".");this.templateString=b.cache(b.moduleUrl(a[0],a[1]+
".html"))},postCreate:function(){this.inherited(arguments);var a=b.parser.parse({rootNode:this.domNode,template:!0});b.mixin(this,{contentPane:a[0]});if(!this.contentPane)throw Error("ContentPane element is not defined for class "+this.declaredClass+".");this.title&&(this.contentPane.title=this.title);b.forEach(a,b.hitch(this,function(c){b.mixin(c,{tabPageObject:this,contentPane:this.contentPane});var e=c.dojoAttachPoint;e&&-1!=b.indexOf(this._attachPoints,e)&&(this[e]=c)}));this.onLoad()},_removeChildConnect:null,
show:function(){this.onShow();this.ownerTabContainer?(this.contentPane.attr("closable",!0),this.previouslySelected=this.ownerTabContainer.selectedChildWidget,this._removeChildConnect=b.connect(this.ownerTabContainer,"removeChild",b.hitch(this,function(a){a==this.previouslySelected&&(this.previouslySelected=null)})),this.ownerTabContainer.addChild(this.contentPane),this.ownerTabContainer.selectChild(this.contentPane),this.contentPane.onClose=b.hitch(this,this.close)):this.contentPane.resize()},close:function(){this.onClose()&&
this.ownerTabContainer&&(parus.balance.TabContainer.selectChild(this.previouslySelected||("1"==this.kind?parus.balance.consolidatedPage:parus.balance.primaryPage)),"1"==this.kind?parus.balance.consolidatedMasterGrid.views.views[0].doscroll():parus.balance.primaryMasterGrid.views.views[0].doscroll(),b.disconnect(this._removeChildConnect),this.ownerTabContainer.removeChild(this.contentPane),this.destroyOnClose&&setTimeout(b.hitch(this,function(){this.contentPane.destroyRecursive();this.contentPane=
null;this.destroyRecursive()}),100))},onLoad:function(){},onShow:function(){},onClose:function(){return!0}})})},"parus/balanceIndexConsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceIndexConsDialog",[parus.Dialog],{intPart:null,fracPart:null,consItems:null,queryConditions:null,description:null,skipUnsignificantZeroes:!1,
autoSize:!0,postCreate:function(){this.inherited(arguments);this.description&&(this.headerPaneText.containerNode.innerHTML=this.description);var a=parus.userdata.get(this.declaredClass);a&&a.additions&&(this.skipUnsignificantZeroes=a.additions.skipUnsignificantZeroes);var c={intPart:this.intPart,fracPart:this.skipUnsignificantZeroes?null:this.fracPart};b.mixin(this.consItemsGrid.views.views[0].structure.cells[0][1],c);b.mixin(this.consItemsGrid.views.views[0].structure.cells[0][1]._props,c);b.mixin(this.consItemsGrid.views.views[0].structure.cells[0][14],
c);b.mixin(this.consItemsGrid.views.views[0].structure.cells[0][14]._props,c);b.mixin(this.consItemsGrid.structure[0].cells[0][0],c);b.mixin(this.consItemsGrid.structure[0].cells[0][0]._props,c);b.mixin(this.consItemsGrid.structure[0].cells[0][13],c);b.mixin(this.consItemsGrid.structure[0].cells[0][13]._props,c);this.consItemsGridPopupMenu.bindDomNode(this.consItemsGrid.viewsNode);parus.balance._createActionsButton(this.consItemsGridPopupMenu,this.headerPane);a&&(parus.gridSettingsDialog.mergeGridSettings(this.consItemsGrid,
a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.consItemsGrid,a.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.consItemsGridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeFilterBar(this.consItemsGrid,a.showFilterBar,a.filterValues,a.sortInfo));this.consItemsGrid.attr("store",new parus.gridData({persistent:!0,_data:this.consItems}));this.consItemsGrid.setQuery({})},print:function(){orders=[];hiddenCols=
[];b.forEach(this.consItemsGrid.getSortProps()||[],function(c){var e=b.indexOf("VALUE KIND AGNABBR AGNNAME STATE CHECKED ACCEPTED SENT RESULT CODE SRSTATE SRCHECKED STRVAL NUMVAL DATEVAL".split(" "),c.field);if(e=0<=e?["20,21,22",3,5,6,7,8,9,10,11,12,13,14,16,17,18][e]:null)c.descending&&(e=b.map(e.split(","),function(f){return f+" desc"}).join(",")),orders.push(e.toString())});b.forEach(this.consItemsGrid.views.views[0].structure.cells[0],b.hitch(this,function(c){c.field&&c.hidden&&hiddenCols.push(c.field)}));
var a=this.queryConditions;a.order=orders.length?orders.join(","):"1,2,3,4,5,6,7";parus.parus8._embeddedMode?this.printForm.htmldata.value=parus.balanceIndexConsDialog.printRender(a,this.skipUnsignificantZeroes,hiddenCols.join(",")):(this.printForm.querydata.value=b.toJson(a),this.printForm.handler.value=parus.database.connected,this.printForm.skipzero.value=this.skipUnsignificantZeroes?1:0,this.printForm.hiddencols.value=hiddenCols.join(","));document.body.appendChild(this.printForm);this.printForm.submit();
document.body.removeChild(this.printForm)},settingsAdditions:function(){return[{title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043d\u0435\u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0435 \u043d\u0443\u043b\u0438 \u0432 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0447\u0438\u0441\u043b\u0430",id:"skipUnsignificantZeroes",get:b.hitch(this,function(){return this.skipUnsignificantZeroes}),set:b.hitch(this,function(a){this.skipUnsignificantZeroes=!!a;a={intPart:this.intPart,
fracPart:this.skipUnsignificantZeroes?null:this.fracPart};for(var c=b.clone(this.consItemsGrid.structure),e=[],f=c[0].cells?c[0].cells[0]:c,g=0;g<f.length;g++)b.mixin(f[g],a),e.push(b.clone(f[g]));c[0]&&c[0].cells?c[0].cells[0]=e:c=e;this.consItemsGrid.setStructure(c)})}]}});b.mixin(parus.balanceIndexConsDialog,{printRender:function(a,c,e){var f=document.createElement("body");f.style.width="260mm";f.insertAdjacentHTML("afterBegin","\x3cdiv\x3e\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\x3c/div\x3e");
var g=f.firstChild;g.style.height="auto";g.style.fontWeight="bold";g.style.fontFamily="Tahoma, Verdana, sans-serif";g.style.margin="10px";var h=f.appendChild(document.createElement("table"));h.width="100%";h.border="1";h.cellSpacing="0";var l=h.insertRow(-1);l.style.fontWeight="bold";l.insertCell(-1).appendChild(document.createTextNode("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435"));l.insertCell(-1).appendChild(document.createTextNode("\u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430"));
l.insertCell(-1).appendChild(document.createTextNode("\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 (\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)"));l.insertCell(-1).appendChild(document.createTextNode("\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 (\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)"));l.insertCell(-1).appendChild(document.createTextNode("\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430"));
l.insertCell(-1).appendChild(document.createTextNode("\u041e\u0442\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d"));l.insertCell(-1).appendChild(document.createTextNode("\u041e\u0442\u0447\u0435\u0442 \u043f\u0440\u0438\u043d\u044f\u0442"));l.insertCell(-1).appendChild(document.createTextNode("\u041e\u0442\u0447\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430"));l.insertCell(-1).appendChild(document.createTextNode("\u0418\u0442\u043e\u0433"));
l.insertCell(-1).appendChild(document.createTextNode("\u0420\u0430\u0437\u0440\u0435\u0437"));l.insertCell(-1).appendChild(document.createTextNode("\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430"));l.insertCell(-1).appendChild(document.createTextNode("\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d"));l.insertCell(-1).appendChild(document.createTextNode("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0441\u0442\u0440\u043e\u043a\u0430)"));
l.insertCell(-1).appendChild(document.createTextNode("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0447\u0438\u0441\u043b\u043e)"));l.insertCell(-1).appendChild(document.createTextNode("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0434\u0430\u0442\u0430)"));a=parus.database.execute("IndexCons",a);g.innerHTML=a.documentElement.childNodes[0].childNodes[1].firstChild.nodeValue;g=a.documentElement.childNodes[0].childNodes[0].childNodes.length?parus.parus8.rowNodes(a.documentElement.childNodes[0].childNodes[0].childNodes[0]):
[];if(0==g.length)parus.parus8.errorMessage("\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u0430.");else{var m={intPart:a.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[0].firstChild?a.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[0].firstChild.nodeValue:null,fracPart:c?null:a.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[1].firstChild?a.documentElement.childNodes[0].childNodes[2].firstChild.childNodes[1].firstChild.nodeValue:
null};b.forEach(g,function(r){var w=h.insertRow(-1);w.style.fontSize="smaller";var x=w.insertCell(-1);x.align="right";x.appendChild(document.createTextNode(b.hitch(m,parus.parus8.formatFloatIntFrac)(parus.parus8.nodeField(r,"VALUE"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.balance.formatReportKind(parus.parus8.nodeField(r,"KIND"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(r,"AGNABBR")||String.fromCharCode(160)));
w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(r,"AGNNAME")||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.balance.formatReportStatus(parus.parus8.nodeField(r,"STATE"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.formatBoolean(parus.parus8.nodeField(r,"CHECKED"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.balance.formatReportAccepted(parus.parus8.nodeField(r,
"ACCEPTED"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.formatBoolean(parus.parus8.nodeField(r,"SENT"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.formatBoolean(parus.parus8.nodeField(r,"RESULT"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(r,"CODE")||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.balance.formatReportStatus(parus.parus8.nodeField(r,
"SRSTATE"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.formatBoolean(parus.parus8.nodeField(r,"SRCHECKED"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(r,"STRVAL")||String.fromCharCode(160)));x=w.insertCell(-1);x.align="right";x.appendChild(document.createTextNode(b.hitch(m,parus.parus8.formatFloatIntFrac)(parus.parus8.nodeField(r,"NUMVAL"))||String.fromCharCode(160)));w.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(r,
"DATEVAL")||String.fromCharCode(160)))});if(e){var p="VALUE KIND AGNABBR AGNNAME STATE CHECKED ACCEPTED SENT RESULT CODE SRSTATE SRCHECKED STRVAL NUMVAL DATEVAL".split(" ");b.forEach(e.split(","),function(r){n=b.indexOf(p,r);if(0<=n)for(r=0;r<h.rows.length;r++)h.rows[r].cells[n].style.display="none"})}return f.innerHTML}}})})},"parus/designerTemplateRoleAndUserAssignDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTemplateRoleAndUserAssignDialog");b.require("dijit.Dialog");
b.require("dijit.form.Button");b.require("dijit.form.DateTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.formats");b.require("parus.editDictionaryDialog");b.declare("parus.designerTemplateRoleAndUserAssignDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.userEdit.attr("value",a.getValue(c,"NAME")),this.roleEdit.attr("value",a.getValue(c,"ROLENAME")))},roleChanged:function(){this.roleEdit.attr("value")&&this.userEdit.attr("value",
"")},userChanged:function(){this.userEdit.attr("value")&&this.roleEdit.attr("value","")},executeInsert:function(a){if(a=parus.database.execute("designer.Template.RoleAndUserAssignment.Insert",{PRN:this.prn,USER_NAME:this.userEdit.attr("value"),ROLE_NAME:this.roleEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.Template.RoleAndUserAssignment.Update",{RN:this.rn,USER_NAME:this.userEdit.attr("value"),
ROLE_NAME:this.roleEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.Template.RoleAndUserAssignment.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/balanceRemarkDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceRemarkDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.NumberTextBox");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceRemarkDialog",[parus.Dialog],
{validate:function(){var a=this.dialog.validate();this.noteEdit.attr("value")?b.removeClass(this.noteEdit.domNode,"dijitError"):b.addClass(this.noteEdit.domNode,"dijitError");if(a&&!this.noteEdit.attr("value"))return t.showTooltip("\u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",this.noteEdit.domNode),!1;t.hideTooltip(this.noteEdit.domNode);return a},close:function(){t.hideTooltip(this.noteEdit.domNode);
return this.inherited(arguments)},onShow:function(){this.validate();return this.inherited(arguments)},noteEditChange:function(){this.noteEdit.attr("value")?(b.removeClass(this.noteEdit.domNode,"dijitError"),t.hideTooltip(this.noteEdit.domNode)):(t.showTooltip("\u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",this.noteEdit.domNode),b.addClass(this.noteEdit.domNode,"dijitError"))}})})},"parus/abonentReportDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.abonentReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.customEdit");b.declare("parus.abonentReportDialog",[parus.Dialog],{_docprops:null,postCreate:function(){this.inherited(arguments);this.noteEdit.attr("value",null);this._docprops={};if(parus.balance._docprops.length){this.requsitesPane.domNode.style.margin="0";var a=new t.layout.TabContainer({region:"center",
"class":"balanceInternalPages"});a.addChild(this.requsitesPane);var c=new t.layout.ContentPane({title:"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430","class":"dialogContentPane",style:"overflow-y:scroll"}),e=document.createElement("table");e.cellSpacing="5";e.width="100%";b.forEach(parus.balance._docprops,b.hitch(this,function(f){var g=e.insertRow(-1);g.insertCell(-1).appendChild(document.createElement("b")).appendChild(document.createTextNode(parus.parus8.nodeField(f,"PROMPT")+":"));g=g.insertCell(-1);
g.align="right";var h=parus.customEditProperties(parus.parus8.nodeField(f,"DICTIONARY"),"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE"),"1"==parus.parus8.nodeField(f,"REQUIRE"),parus.parus8.nodeField(f,"STRLEN"),parus.parus8.nodeField(f,"INTPART"),parus.parus8.nodeField(f,"FRACPART"));b.mixin(h.params,{disabled:"1"==parus.parus8.nodeField(f,"READONLY")});g=new (h.constructor())(h.params,g.appendChild(document.createElement("div")));
this._docprops[parus.parus8.nodeField(f,"RN")]=g}));c.containerNode.appendChild(e);a.addChild(c);this.mainContainer.addChild(a);b.style(this.mainContainer.domNode,{height:parus.parus8.styleSize(this.mainContainer.domNode.style.height)+30+"px"})}},propValues:function(){var a={},c;for(c in this._docprops)a["P"+c]=parus._docPropsValueValueFromWidget(this._docprops[c]);return{DOCPROPS:a}}})})},"parus/balanceReportAttachedDocumentActionDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportAttachedDocumentActionDialog");
b.require("dojo.io.iframe");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.progressDialog");b.declare("parus.balanceReportAttachedDocumentActionDialog",[parus.Dialog],{grid:null,prn:null,rn:null,docCode:null,docType:null,catalog:null,note:null,unitcode:"BalanceReports",maxSize:null,_canChangeCatalog:!1,_lastValues:null,postCreate:function(){this.inherited(arguments);this.noteInput.attr("value",
null);b.mixin(this.docCodeInput,{dictButtonClick:function(){parus.database.execute("GetAttachedDocumentNextNumb",{PREFIX:this.textbox.value},b.hitch(this,function(a){this.setValue(parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"RESULT"))}));return!0}})},getFileSize:function(){return this.fileDataInput.files?this.fileDataInput.files[0].size:0},performLoad:function(){if(this.validate()&&(this.rn||this.fileDataInput.value))if(this.maxSize&&this.getFileSize()/1024>this.maxSize)parus.parus8.errorMessage("\u0420\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 ("+
this.maxSize+" \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442).");else{var a=new parus.progressDialog({message:"\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b..."});a.show();this.prnInput.value=this.prn;this.rn&&(this.rnInput.value=this.rn);this.unitcodeInput.value=this.unitcode;this.postForm.action=parus.database.getLoadAttachedDocumentUrl();this.postForm.method="POST";this.postForm.encoding="multipart/form-data";b.io.iframe.send({method:"POST",form:this.postForm,
handleAs:10<=b.isIE?"html":"xml",handle:b.hitch(this,function(c,e){b.isIE||c.normalize();"error"==c.documentElement.nodeName&&(parus.parus8.errorMessage(parus.parus8.nodeField(c.documentElement,"message")),c=null);a.close();a.destroyRecursive();c&&(this.grid&&(this.rn?parus.balance.refreshGrid(this.grid,"RN",this.rn):parus.balance.refreshGrid(this.grid,"RN",parus.parus8.nodeField(parus.parus8.rowNodes(c)[0],"RN"))),this.apply())})})}},onShow:function(){this.rn?(this.docCodeInput.attr("value",this.docCode),
this.docTypeInput.attr("value",this.docType),this.catalogInput.attr("value",this.catalog),this.noteInput.attr("value",this.note),this.docTypeInput.attr("readOnly",!0),this.docCodeInput.attr("readOnly",!0),this.catalogInput.attr("readOnly",!0),this.fileDataInput.disabled=!0):(this.restoreFormLastValues(),this.docCodeInput.dictButtonClick());setTimeout(b.hitch(this,function(){this._canChangeCatalog=!0}),300)},onClose:function(){this.rn||this.saveFormLastValues()},saveFormLastValues:function(){this._lastValues.userSize=
this.userSize;this._lastValues.docTypeInput=this.docTypeInput.attr("value");this._lastValues.catalogInput=this.catalogInput.attr("value");parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.userSize=this._lastValues.userSize||null;this.docTypeInput.attr("value",this._lastValues.docTypeInput);this.catalogInput.attr("value",this._lastValues.catalogInput)},docTypeChanged:function(){if(this._canChangeCatalog){var a=
parus.parus8.rowNodes(parus.database.query("AttachedDocumentTypesCatalog",{CODE:this.docTypeInput.value}))[0];a?(this.catalogInput.attr("value",parus.parus8.nodeField(a,"CRNFLNKS_NAME")),this.maxSize=parus.parus8.nodeField(a,"MAX_SIZE")):this.catalogInput.attr("value",null)}}})})},"parus/balanceUserProcParamsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceUserProcParamsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");
b.require("parus.dialog");b.require("parus.customEdit");b.declare("parus.balanceUserProcParamsDialog",[parus.Dialog],{useSavedValues:!0,userproc:null,queryid:"userProcParams",_widgets:null,_blobsForValidation:null,_storeKey:null,onClose:function(){this.saveFormLastValues()},saveFormLastValues:function(){var a=this.paramValues()||{},c;for(c in a)b.isObject(a[c])&&delete a[c];b.mixin(a,{userSize:this.userSize});parus.userdata.set(this._storeKey+"-"+this.queryid+"-"+this.userproc,a,!0)},restoreFormLastValues:function(){var a=
parus.userdata.get(this._storeKey+"-"+this.queryid+"-"+this.userproc)||{};this.userSize=a.userSize||null;if(this.useSavedValues)for(var c in a){var e=this._widgets[c];e&&("dijit.form.CheckBox"==e.declaredClass?e.attr("checked","1"==a[c]):"dijit.form.DateTextBox"==e.declaredClass?e.attr("value",b.date.locale.parse(a[c],{selector:"date",datePattern:"dd.MM.yyyy"})):e.attr("value",a[c]))}},show:function(){this._widgets.length?(this.restoreFormLastValues(),this.inherited(arguments)):this._noParameters()},
_noParameters:function(){this.onApply(this)},paramValues:function(){var a={},c;for(c in this._widgets)"length"!=c&&(a[c]="dijit.form.CheckBox"==this._widgets[c].declaredClass?this._widgets[c].checked?"1":"0":"parus.parus8.blobEditor"==this._widgets[c].declaredClass?this._widgets[c]:"parus.parus8.clobEditor"==this._widgets[c].declaredClass?this._widgets[c]:parus.parus8.valueToExternalString(parus._docPropsValueValueFromWidget(this._widgets[c])));return a},postCreate:function(){this.inherited(arguments);
this._storeKey=this.declaredClass;var a=parus.parus8.rowNodes(parus.database.query(this.queryid,{RN:this.userproc}));this._widgets={length:0};this._blobsForValidation=[];b.forEach(a,b.hitch(this,function(c){var e=this.paramsTable.insertRow(-1),f=e.insertCell(-1);f.appendChild(document.createElement("b")).appendChild(document.createTextNode(parus.parus8.nodeField(c,"NAME")+":"));f.width="50%";e=e.insertCell(-1);"3"!=parus.parus8.nodeField(c,"DATATYPE")&&(e.align="right");f=parus.customEditProperties(parus.parus8.nodeField(c,
"DICTIONARY"),parus.parus8.nodeField(c,"DATATYPE"),parus.parus8.nodeField(c,"SUBTYPE")||"0","1"==parus.parus8.nodeField(c,"REQUIRE"),null,null,null);"3"==parus.parus8.nodeField(c,"DATATYPE")?b.mixin(f.params,{checked:"1"==parus.parus8.nodeField(c,"VALUE")}):b.mixin(f.params,{value:parus.parus8.externalStringToValue(parus.parus8.nodeField(c,"VALUE"),parus.parus8.nodeField(c,"DATATYPE"))});b.mixin(f.params,{multiselect:"0"==parus.parus8.nodeField(c,"DATATYPE"),arbitrary:!0});var g=new (f.constructor())(f.params,
e.appendChild(document.createElement("div")));!f.params.required||"5"!=parus.parus8.nodeField(c,"DATATYPE")&&"6"!=parus.parus8.nodeField(c,"DATATYPE")||(this._blobsForValidation.push(g),b.mixin(g,{onChange:b.hitch(this,function(){this.blobEditChange(g)})}));parus._docPropsValueValueForWidget(g,null,parus.parus8.nodeField(c,"DATATYPE"),parus.parus8.nodeField(c,"SUBTYPE")||"0");this._widgets["P"+parus.parus8.nodeField(c,"RN")]=g;this._widgets.length++}))},validate:function(){var a=this.inherited(arguments);
b.forEach(this._blobsForValidation,b.hitch(this,function(c){a&&(a=this.blobValidate(c))}));return a},close:function(){b.forEach(this._blobsForValidation,function(a){t.hideTooltip(a.domNode)});return this.inherited(arguments)},blobValidate:function(a){if(a.domNode.value)return b.removeClass(a.domNode,"dijitError"),t.hideTooltip(a.domNode),!0;t.showTooltip("\u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",a.domNode);
b.addClass(a.domNode,"dijitError");return!1},blobEditChange:function(a){this.blobValidate(a)}})})},"parus/designerIndexGroupPartDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerIndexGroupPartDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editDictionaryDialog");
b.require("parus.designerIndexInputPatternDialog");b.declare("parus.designerIndexGroupPartDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&this.indexEdit.attr("value",a.getValue(c,"BALANCEINDEX"))},executeInsert:function(){var a=parus.database.execute("designer.BalanceIndexes.GroupsParts.Insert",{PRN:this.prn,BALANCEINDEX:this.indexEdit.attr("value")});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceIndexes.GroupsParts.Update",
{RN:this.rn,BALANCEINDEX:this.indexEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceIndexes.GroupsParts.Delete",{RN:a.getValue(c,"RN")})},executeInsertList:function(a,c){return parus.database.execute("designer.BalanceIndexes.GroupsParts.InsertList",{PRN:a,RN:c})}})})},"parus/excelColorModeDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.excelColorModeDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");
b.require("dijit.form.Select");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.excelColorModeDialog",[parus.Dialog],{_lastValues:null,allowSave:!1,allowTypeSelect:!1,onShow:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.userSize=this._lastValues.userSize||null;this.colorModeEdit.attr("value",this._lastValues.colorModeEdit);this.saveCheckBox.attr("checked",this._lastValues.saveCheckBox);this.otherSheetsCheckBox.attr("checked",
this._lastValues.otherSheetsCheckBox);this.allowSave&&null===parus.parus8.optionValue("BalanceOnlineSaveReportUserProcedure")&&(this.allowSave=!1);this.allowSave&&(this.showSaveCheckBoxRow.style.display="");this.allowTypeSelect&&(this.typeEditRow.style.display="",this.typeEdit.attr("value",this._lastValues.typeEdit))},onClose:function(){this._lastValues.colorModeEdit=this.colorModeEdit.attr("value");this._lastValues.saveCheckBox=this.saveCheckBox.attr("checked");this._lastValues.otherSheetsCheckBox=
this.otherSheetsCheckBox.attr("checked");this._lastValues.typeEdit=this.typeEdit.attr("value");this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)}})})},"parus/balanceIndexConsComparation":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsComparation");b.require("dojo.data.ItemFileReadStore");b.require("dojo.data.ItemFileWriteStore");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.cells.dijit");
b.require("dojox.grid.enhanced._Plugin");b.require("dojox.grid.EnhancedGrid");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridExtraRow");b.declare("parus.balanceIndexConsComparation",[parus.Dialog],{onShow:function(){var a="1"==parus.parus8.consComparationData.dataType?function(e,f,g){return e?parus.parus8.formatIndexConsValue(e.toString().split(".").join(","),parus.parus8.consComparationData.intPart,parus.parus8.consComparationData.skipUnsignificantZeroes?null:parus.parus8.consComparationData.fracPart):
e}:parus.parus8.formatFloat;this.consItemsGridPopupMenu.bindDomNode(this.consItemsGrid.viewsNode);parus.balance._createActionsButton(this.consItemsGridPopupMenu,this.headerPane);var c=parus.userdata.get(this.declaredClass);c&&(c.additions&&(parus.parus8.consComparationData.skipUnsignificantZeroes=c.additions.skipUnsignificantZeroes),parus.gridSettingsDialog.mergeMenuSettings(this.consItemsGridPopupMenu,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions));this.consItemsGrid.onExtraRowValue=
function(e,f){var g="",h=e.field;"CODE"==h?g=0==f?"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f":"\u0418\u0442\u043e\u0433 \u043f\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u0443":"NAME"==h?g="":b.forEach(parus.parus8.consComparationData.items,function(l){l.ID==h&&(g=0==f?a(l.VALUE):a(l.SUMMVALUE))});return'\x3cb style\x3d"font-size:120%"\x3e'+(null==g?"":g)+"\x3c/b\x3e"};this.consItemsGrid.extraRowObject.rowCount="1"==parus.parus8.consComparationData.dataType?
2:1;this.consItemsGrid.showExtraRowBar();this.consItemsGrid.attr("structure",this.gridStructure());c=parus.balanceIndexConsComparation.gridStore(parus.parus8.consComparationData);b.mixin(c,{onGetConditions:b.hitch(this,function(e){return{DIV:this.withDivergenceCheckBox.attr("checked")?"1":"*"}})});this.consItemsGrid.attr("store",c);this.consItemsGrid.setQuery({})},gridStructure:function(){var a=[{cells:[{colSpan:1,field:"CODE",name:("1"==parus.parus8.consComparationData.result?"\u0420\u0430\u0437\u0440\u0435\u0437":
"\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442")+"\x3cbr/\x3e\x3cspan style\x3d'font-size:80%;'\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e",dataType:"0",width:"121px"},{colSpan:1,field:"NAME",name:("1"==parus.parus8.consComparationData.result?"\u0420\u0430\u0437\u0440\u0435\u0437":"\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442")+"\x3cbr/\x3e\x3cspan style\x3d'font-size:80%;'\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e",
dataType:"0",width:"161px"}]}];b.forEach(parus.parus8.consComparationData.items,function(c){a[0].cells.push({colSpan:1,field:parus.parus8.nodeField(c,"ID"),name:parus.parus8.nodeField(c,"TITLE"),width:c.INDEX?"240px":"121px",dataType:parus.parus8.consComparationData.dataType,intPart:parus.parus8.consComparationData.intPart,fracPart:parus.parus8.consComparationData.skipUnsignificantZeroes?null:parus.parus8.consComparationData.fracPart,formatter:parus.parus8.consComparationData.fracPart?function(e,
f,g){return e?parus.parus8.formatIndexConsValue(e.toString().split(".").join(","),parus.parus8.consComparationData.intPart,parus.parus8.consComparationData.skipUnsignificantZeroes?null:parus.parus8.consComparationData.fracPart):e}:parus.parus8.formatFloat,styles:"text-align:"+("0"==parus.parus8.consComparationData.dataType?"left":"right")+";"})});return a},withDivergenceCheckBoxChanged:function(){this.consItemsGrid.setQuery({})},print:function(){order=[];b.forEach(this.consItemsGrid.getSortProps()||
[],function(a){order.push({field:a.field,descending:a.descending})});parus.parus8._embeddedMode?this.printForm.htmldata.value=parus.balanceIndexConsComparation.printRender({comparationData:parus.parus8.consComparationData,order:order,conditions:this.consItemsGrid.store.getConditions()||{}},!0):(this.printForm.querydata.value=b.toJson({comparationData:parus.parus8.consComparationData,order:order,conditions:this.consItemsGrid.store.getConditions()||{}}),this.printForm.handler.value=parus.database.connected);
document.body.appendChild(this.printForm);this.printForm.submit();document.body.removeChild(this.printForm)},showItems:function(){parus.parus8.showIndexConsComparationItems({onClose:b.hitch(this,function(a){this.close();a.applied||parus.parus8.performIndexConsComparation()})})},settingsAdditions:function(){return[{title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043d\u0435\u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0435 \u043d\u0443\u043b\u0438 \u0432 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0447\u0438\u0441\u043b\u0430",
id:"skipUnsignificantZeroes",get:b.hitch(this,function(){return parus.parus8.consComparationData.skipUnsignificantZeroes}),set:b.hitch(this,function(a){parus.parus8.consComparationData.skipUnsignificantZeroes=!!a;setTimeout(b.hitch(this,function(){this.close();parus.parus8.performIndexConsComparation()}),600)})}]}});b.mixin(parus.balanceIndexConsComparation,{printRender:function(a,c){var e=document.createElement("body");e.style.width="260mm";e.insertAdjacentHTML("afterBegin","\x3cdiv\x3e\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439\x3c/div\x3e");
var f=e.firstChild;f.style.height="auto";f.style.fontWeight="bold";f.style.fontFamily="Tahoma, Verdana, sans-serif";f.style.margin="10px";var g=e.appendChild(document.createElement("table"));g.width="100%";g.border="1";g.cellSpacing="0";var h=g.insertRow(-1);h.style.fontWeight="bold";f=parus.balanceIndexConsComparation.gridStore(a.comparationData);"1"==a.comparationData.result?(h.insertCell(-1).appendChild(document.createTextNode("\u0420\u0430\u0437\u0440\u0435\u0437"+String.fromCharCode(160)+"(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)")),
h.insertCell(-1).appendChild(document.createTextNode("\u0420\u0430\u0437\u0440\u0435\u0437"+String.fromCharCode(160)+"(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)"))):(h.insertCell(-1).appendChild(document.createTextNode("\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442"+String.fromCharCode(160)+"(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)")),h.insertCell(-1).appendChild(document.createTextNode("\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442"+
String.fromCharCode(160)+"(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)")));var l="1"==a.comparationData.dataType?a.comparationData.fracPart?function(p,r,w){return p?parus.parus8.formatIndexConsValue(p.toString().split(".").join(","),a.comparationData.intPart,a.comparationData.skipUnsignificantZeroes?null:a.comparationData.fracPart):p}:parus.parus8.formatFloat:function(p){return p};b.forEach(a.comparationData.items,function(p){h.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(p,
"TITLE")))});h=g.insertRow(-1);h.style.fontWeight="bold";var m=h.insertCell(-1);m.appendChild(document.createTextNode("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435"+String.fromCharCode(160)+"\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f"));m.colSpan=2;b.forEach(a.comparationData.items,function(p){var r=h.insertCell(-1);"1"==a.comparationData.dataType&&(r.align="right");r.appendChild(document.createTextNode(null==parus.parus8.nodeField(p,"VALUE")?"":l(parus.parus8.nodeField(p,"VALUE"))))});
"1"==a.comparationData.dataType&&(h=g.insertRow(-1),h.style.fontWeight="bold",m=h.insertCell(-1),m.appendChild(document.createTextNode("\u0418\u0442\u043e\u0433"+String.fromCharCode(160)+"\u043f\u043e"+String.fromCharCode(160)+"\u0441\u043e\u0441\u0442\u0430\u0432\u0443")),m.colSpan=2,b.forEach(a.comparationData.items,function(p){var r=h.insertCell(-1);"1"==a.comparationData.dataType&&(r.align="right");r.appendChild(document.createTextNode(null==parus.parus8.nodeField(p,"SUMMVALUE")?"":l(parus.parus8.nodeField(p,
"SUMMVALUE"))))}));f.sync=c;f.fetch({sort:a.order,query:a.conditions,onItem:function(p){var r=g.insertRow(-1);r.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(p,"CODE")||String.fromCharCode(160)));r.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(p,"NAME")||String.fromCharCode(160)));b.forEach(a.comparationData.items,function(w){var x=r.insertCell(-1);"1"==a.comparationData.dataType&&(x.align="right");v=parus.parus8.nodeField(p,w.ID);x.appendChild(document.createTextNode(null==
v?"":l(v)))})}});return e.innerHTML},gridStore:function(a){var c=[];c._byKey={};var e=[],f=[],g=[],h=[],l=[];b.forEach(a.items,function(m){if(m.INDEX){var p=0,r=!1,w=null,x={REPORT:m.REPORT,SUBREPORT:m.SUBREPORT,INDEX:m.INDEX,TABLE:m.TABLE,ROWID:m.ROWID};m.VALUE=parus.parus8.externalStringToValue(parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("IndexConsValue",x))[0],"VALUE"),a.dataType);"1"==a.dataType&&(m.VALUE=parus.parus8.formatIndexConsValue(m.VALUE||0,a.intPart,a.skipUnsignificantZeroes?
null:a.fracPart));if(x=parus.database.execute("IndexCons",x)){x=x.documentElement.childNodes[0].childNodes[0].childNodes.length?parus.parus8.rowNodes(x.documentElement.childNodes[0].childNodes[0].childNodes[0]):[];b.forEach(x,function(B){if("1"==a.result){var D=parus.parus8.nodeField(B,"BALSECTION");var I=parus.parus8.nodeField(B,"CODE");var u=parus.parus8.nodeField(B,"NAME")}else D=parus.parus8.nodeField(B,"AGENT"),I=parus.parus8.nodeField(B,"AGNABBR"),u=parus.parus8.nodeField(B,"AGNNAME");var y=
c._byKey[D];y||(y={ID:D,CODE:I,NAME:u},c._byKey[D]=y,c.push(y));B=parus.parus8.externalStringToValue(parus.parus8.nodeField(B,"VALUE"),a.dataType);"1"==a.dataType&&(B=parus.parus8.formatIndexConsValue(B||0,a.intPart,a.skipUnsignificantZeroes?null:a.fracPart));y[parus.parus8.nodeField(m,"ID")]=B;"1"==a.dataType&&(y=parus.parus8.externalStringToValue(B,a.dataType)||0,B=y.toString(),D=B.indexOf("."),B=0>D?0:B.length-D-1,(w||B)<=B&&(w=B),p+=y,r=!0)});x=["1"];for(var A=0;A<w;A++)x.push("0");p=Math.round(p*
parseInt(x.join("")))/parseInt(x.join(""));m.SUMMVALUE=r?p:null;"1"==a.dataType&&(m.SUMMVALUE=parus.parus8.formatIndexConsValue(m.SUMMVALUE||0,a.intPart,a.skipUnsignificantZeroes?null:a.fracPart))}e.push(m.IDENTIFIER);f.push(m.ID);g.push(parus.parus8.externalStringToValue(m.VALUE,a.dataType));h.push(parus.parus8.externalStringToValue(m.SUMMVALUE,a.dataType))}});b.forEach(a.items,function(m){if(!m.INDEX){try{m._func=Function.apply(this,e.concat("return ("+m.EXPRESSION+")"))}catch(p){m._func=function(){return p.toString()}}try{m.VALUE=
m._func.apply(this,g),"1"==a.dataType&&(m.VALUE=parus.parus8.formatIndexConsValue(m.VALUE||0,a.intPart,a.skipUnsignificantZeroes?null:a.fracPart))}catch(p){l.push(p.toString()),m.VALUE=null}try{m.SUMMVALUE=m._func.apply(this,h),"1"==a.dataType&&(m.SUMMVALUE=parus.parus8.formatIndexConsValue(m.SUMMVALUE||0,a.intPart,a.skipUnsignificantZeroes?null:a.fracPart))}catch(p){l.push(p.toString()),m.SUMMVALUE=null}}});b.forEach(c,function(m){var p=b.map(f,function(A){return parus.parus8.externalStringToValue(m[A]||
0,a.dataType)}),r=!1,w=!1,x=null;b.forEach(a.items,function(A){var B=parus.parus8.nodeField(A,"ID");if(!A.INDEX)try{m[B]=A._func.apply(this,p),"1"==a.dataType&&(m[B]=parus.parus8.formatIndexConsValue(m[B]||0,a.intPart,a.skipUnsignificantZeroes?null:a.fracPart))}catch(D){l.push(D.toString()),m[B]=null}w?parus.parus8.nodeField(A,"INCLUDEDIFF")&&(r||((x||null)!=(m[B]||null)?r=!0:x=m[B]||null)):(w=!0,x=m[B]||null)});m.DIV=r?"1":"0"});b.forEach(a.items,function(m){m.INDEX||delete m._func});l.length&&(l.unshift("\u041e\u0448\u0438\u0431\u043a\u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u043e\u0432:"),
setTimeout(function(){parus.parus8.errorMessage(l.join("\n"))},1E3));return new parus.gridData({persistent:!0,_data:c})},_templates:null,_templatesTimeoutID:null,_loadTemplates:function(){this._templates=[];var a;if((nodes=parus.parus8.rowNodes(parus.database.execute("loadIndexConsTemplates",{}))[0])&&(nodes=nodes.firstChild)&&(nodes=parus.parus8.getTextContent(nodes))&&(a=b.fromJson(nodes))&&a.length&&null===a[0].user){var c=[];b.forEach(a,function(e){var f=e.user;b.forEach(e.data,function(g){g.user=
f;c.push(g)})});a=c}a&&a.length&&(this._templates=a)},getTemplates:function(a,c){this._templates||this._loadTemplates();return b.filter(this._templates,function(e){return(null==a||e.dataType==a)&&(null==c||e.result==c)})},clearTemplates:function(a){this._templates=a?[]:b.filter(this._templates,function(c){return!!c.user});parus.database.execute("clearIndexConsTemplates",{ALL:a?1:0},function(){})},deleteTemplate:function(a){this._templates||this._loadTemplates();this._templates=b.filter(this._templates,
function(c){return!!c.user||c.name!=a});this._saveTemplates()},saveTemplate:function(a){this._templates||this._loadTemplates();this._templates=b.filter(this._templates,function(c){return!!c.user||c.name!=a.name});this._templates.push(a);this._templates.sort(function(c,e){return(c.user||"")>(e.user||"")?1:(c.user||"")<(e.user||"")?-1:c.name>e.name?1:c.name<e.name?-1:0});this._saveTemplates()},_templateApplyIndex:0,templateApplyIndex:function(){return this._templateApplyIndex++},_saveTemplates:function(){this._templatesTimeoutID&&
clearTimeout(this._templatesTimeoutID);this._templatesTimeoutID=setTimeout(b.hitch(this,function(){this._templatesTimeoutID=null;var a=b.map(b.filter(this._templates,function(c){return!c.user}),function(c){return{name:c.name,result:c.result,dataType:c.dataType,intPart:c.intPart,fracPart:c.fracPart,items:c.items}});parus.database.execute("saveIndexConsTemplates",{clobDATA:{data:b.toJson(a)}},function(){})}),1E3)}})})},"parus/designerReportTableIndexesDictionaryDialog":function(){define(["dijit","dojo",
"dojox"],function(t,b,H){b.provide("parus.designerReportTableIndexesDictionaryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.require("parus.gridActions");b.require("parus.catalogActions");b.require("parus.dictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerReportTablesDictionaryDialog");b.declare("parus.designerReportTableIndexesDictionaryDialog",
[parus.editableDictionaryDialog],{createMenu:function(){this.menu=parus.designerReportTablesDictionaryDialog.prototype.createIndexPopupMenu(this,this.grid,!1,this.getTableRN);this.inherited(arguments);return this.menu},getTableRN:function(){return this.getGridCondition("PRN")}})})},"parus/balanceAdvReportCompareDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceAdvReportCompareDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.TitlePane");
b.require("dijit.form.DateTextBox");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.groupBox");b.require("parus.dictEdit");b.declare("parus.balanceAdvReportCompareDialog",[parus.Dialog],{rn:null,_lastValues:null,_conditionFolderRN:null,_canCheckCriteria:!0,applyProgressLabel:"\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f...",
postCreate:function(){this.inherited(arguments);this.rn&&(this.flagsGroupBox.domNode.style.display="");this.conditionFolder.textbox.readOnly=!0;var a=this;b.mixin(this.conditionFolder,{_onKey:function(c){var e=b.keys,f=c.charOrCode||c.keyCode;if(f==e.DELETE||f==e.BACKSPACE)return this.attr("value",""),a._conditionFolderRN=null,c.preventDefault&&c.preventDefault(),c.stopPropagation&&c.stopPropagation(),c.cancelBubble=!0,c.keyCode=0,!1},onDictButtonClick:function(){if(!this.showingDictionary){if(this.dictionary){var c=
parus.dictionaries[this.dictionary];b.mixin(c,{code:this.dictionary,multiselect:this.multiselect,label:this.value,dictionary:c,unitCode:this.unitCode||c.unitCode,gridConditions:this.onGetGridConditions(),onApply:b.hitch(this,function(e){a._conditionFolderRN=e.getValue();this.setValue(e.getLabel());return!0}),onClose:b.hitch(this,function(e){this.showingDictionary=!1})});this.showingDictionary=!0;(new parus.dictionaryDialog(c)).show()}return!0}}});this.criteriaTreeView._createTreeNode=function(c){return new parus.balanceAdvReportCompareCriteriaTreeNode(c)};
this.criteriaTreeView.model=new parus.catalogTreeModel({queryid:"BalanceCompareReportRuleCriteriaHier",onGetConditions:b.hitch(this,function(c,e){return{RULE_CODE:this.ruleEdit.value||parus.parus8.CLASS_EmptyData,CRN:e?c.getIdentity(e)||"-1":"!*"}})})},ruleEditChanged:function(){this.formEdit.attr("value",null);if(this.ruleEdit.value){var a=parus.database.execute("FindBalanceCompareReportRule",{RULE_CODE:this.ruleEdit.value});this.formEdit.attr("value",parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],
"FORM_CODE"));this._canCheckCriteria="1"==parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"CRITERIA_SIGN")}parus.catalogActions.refreshCatalogTree(this.criteriaTreeView);this.groupsEdit.attr("value",null)},onShow:function(){this.restoreFormLastValues()},saveFormLastValues:function(){this._lastValues={};this._lastValues.conditionFolderRN=this._conditionFolderRN;this._lastValues.conditionFolder=this.conditionFolder.attr("value");this._lastValues.reportType=this.reportType.attr("value");this._lastValues.fromDate=
parus.parus8.valueToExternalString(this.fromDateEdit.attr("value"));this._lastValues.toDate=parus.parus8.valueToExternalString(this.toDateEdit.attr("value"));this._lastValues.agentCode=this.agentCodeEdit.attr("value");this._lastValues.rule=this.ruleEdit.attr("value");this._lastValues.groups=this.groupsEdit.attr("value");this._lastValues.params=this.buildParams();this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){var a=
parus.userdata.get(this.declaredClass)||{};b.mixin(a,this._lastValues||{});this._lastValues=a;this._conditionFolderRN=this._lastValues.conditionFolderRN||null;this.conditionFolder.attr("value",this._lastValues.conditionFolder||null);this.reportType.attr("value",this._lastValues.conditionFolder||0);this.userSize=this._lastValues.userSize||null;this.fromDateEdit.attr("value",b.date.locale.parse(this._lastValues.fromDate||"",{selector:"date",datePattern:"dd.MM.yyyy"}));this.toDateEdit.attr("value",b.date.locale.parse(this._lastValues.toDate||
"",{selector:"date",datePattern:"dd.MM.yyyy"}));this.agentCodeEdit.attr("value",this._lastValues.agentCode||null);this.ruleEdit.attr("value",this._lastValues.rule||null);setTimeout(b.hitch(this,function(){this.groupsEdit.attr("value",this._lastValues.groups||null)}),300);this.criteriaTreeView.model.fetchAll(b.hitch(this,function(){var c=this._lastValues.params;c&&(c=c.Conditions);c&&(c=c.Criteria);if(c&&c.length){var e=[];b.forEach(c,function(f){for(key in f)e.push(f[key])});setTimeout(b.hitch(this,
function(){(function(f){f&&(f._checkBox.attr("checked",-1!=b.indexOf(e,parus.parus8.nodeField(f.item,"ID"))),b.forEach(f.getChildren()||[],arguments.callee))})(this.criteriaTreeView.rootNode)}),300)}}))},onApply:function(){this.saveFormLastValues();return!0},getSectionGroupsCondition:function(){return{RULE_CODE:this.ruleEdit.value||parus.parus8.CLASS_EmptyData}},buildParams:function(){var a=[];this.criteriaTreeView.model.fetchAll();(function(c){c&&(c._checkBox.checked&&a.push({"\u0421riterion":parus.parus8.nodeField(c.item,
"ID")}),b.forEach(c.getChildren()||[],arguments.callee))})(this.criteriaTreeView.rootNode);if(!a.length)throw parus.parus8.errorMessage("\u041d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f."),Error("Business error at "+this.declaredClass+".");return{Conditions:{SectionGroups:this.groupsEdit.value||"",Criteria:a}}}});b.declare("parus.balanceAdvReportCompareCriteriaTreeNode",t._TreeNode,{_checkBox:null,
buildRendering:function(){this.inherited(arguments);this._checkBox=new t.form.CheckBox({checked:"1"==parus.parus8.nodeField(this.item,"ISVALID"),disabled:!this.tree.dialogObject._canCheckCriteria,onClick:b.hitch(this,function(){var a=this._checkBox.checked,c=[this];if(a)for(var e=this;e;){var f=e.getParent();f&&c.push(e);e=f}var g=function(h){h&&(h._checkBox.attr("checked",a),b.forEach(h.getChildren(),g))};b.forEach(c,g)})},this.iconNode)},destroy:function(){this._checkBox&&this._checkBox.destroyRecursive;
this.inherited(arguments)},setSelected:function(a){t.setWaiState(this.labelNode,"selected",a)}})})},"parus/balanceCheckReportCheckDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceCheckReportCheckDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.balanceCheckReportCheckDialog",[parus.Dialog],{grid:null,kind:null,
isSubReport:null,rn:null,formedRn:null,reportRn:null,checks:null,_lastValues:null,onShow:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.checkResults.attr("checked",this._lastValues.checkResults);this.useAgnCheckLists.attr("checked",this._lastValues.useAgnCheckLists);this.userSize=this._lastValues.userSize||null},onApply:function(){var a="checkReport";this.isSubReport&&(a="checkSubReport");for(var c=!0,e=0;e<this.rn.length;e++)c&&(parus.database.execute(a,{RN:this.rn[e],
RESULT:this.checkResults.checked?"1":"0",USE_AGNCHKLST:this.useAgnCheckLists.checked?"1":"0",CHECKS:this.checks})||(c=!1));this._lastValues.checkResults=this.checkResults.attr("checked");this._lastValues.useAgnCheckLists=this.useAgnCheckLists.attr("checked");this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues);c&&parus.parus8.notificationMessage("\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430.");this.grid&&
parus.balance.refreshGrid(this.grid,"RN",this.rn[0]);return!0},selectCheckList:function(){var a=parus.dictionaries.BalanceReportsChecks;b.mixin(a,{multiselect:!0,dictionary:a,gridConditions:{REPORTS:this.reportRn.join(";"),BLREPFORMED:this.formedRn.join(";"),USE_AGNCHKLST:this.useAgnCheckLists.checked?"1":"0",onComplete:b.hitch(this,function(){setTimeout(function(){c.grid.selection.selectRange(0,c.grid.rowCount-1)},1)})},onApply:b.hitch(this,function(e){this.checks=e.getValue();return!0})});var c=
new parus.dictionaryDialog(a);c.show()}})})},"parus/templateGridPaneSaveLogConfirmation":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.templateGridPaneSaveLogConfirmation");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.templateGridPaneSaveLogConfirmation",[parus.messageDialog],{canIgnoreWarnings:!0,_additionalHeight:38,postCreate:function(){this.inherited(arguments);this.canIgnoreWarnings||
this.ignoreWarningsButton.attr("disabled",!0)},ignoreWarnings:function(){},continueEditing:function(){},doIgnoreWarnings:function(){this.ignoreWarnings();this.close()},doContinueEditing:function(){this.continueEditing();this.close()}})})},"parus/UpDown":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.UpDown");b.require("dijit.form._FormWidget");b.declare("parus.UpDown",[t._Widget,t._Templated,t._CssStateMixin],{templateString:'\x3cdiv class\x3d"dijitUpDown" id\x3d"widget_${id}" role\x3d"presentation"\x3e\x3cdiv class\x3d"dijit dijitReset dijitInlineTable dijitLeft dijitSpinner dijitUpDownContainer"\x3e\x3cdiv class\x3d"dijitReset dijitButtonNode dijitSpinnerButtonContainer"\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton dijitUpDownButton" dojoAttachPoint\x3d"upArrowNode"\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9650;" type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation" ${_buttonInputDisabled}/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton dijitUpDownButton" dojoAttachPoint\x3d"downArrowNode"\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9660;" type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation" ${_buttonInputDisabled}/\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
_buttonInputDisabled:b.isIE?"disabled":"",defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:.9,value:null,attributeMap:b.delegate(t._WidgetBase,{value:""}),_setValueAttr:function(a){this.value=a},cssStateNodes:{upArrowNode:"dijitUpArrowButton",downArrowNode:"dijitDownArrowButton"},_clickCallBack:function(a,c){0<=c&&(this.value+=a,setTimeout(b.hitch(this,function(){this.onChange(a)}),0))},onChange:function(a){},postCreate:function(){this.inherited(arguments);this._connects.push(t.typematic.addMouseListener(this.upArrowNode,
this,b.hitch(this,this._clickCallBack,1),this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(t.typematic.addMouseListener(this.downArrowNode,this,b.hitch(this,this._clickCallBack,-1),this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this.focusNode=this.domNode;t.focus(this.domNode)}})})},"parus/abonent":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.abonent");b.require("dojo.date.locale");b.require("dojo.io.iframe");b.require("dojox.layout.ScrollPane");
b.require("parus.confirmationDialog");b.require("parus.treeDialog");b.require("parus.balanceCheckReportDialog");b.require("parus.balanceReportCheckProtocolTabPage");b.require("parus.abonentSpecialActions");b.require("parus.abonentReportDialog");b.require("parus.abonentSelectFormDialog");b.require("parus.abonentCustomLoadReportsDialog");b.require("parus.abonentMoveReportDialog");b.require("parus.abonentCopyReportDialog");b.require("parus.abonentReportRecalculateValuesDialog");parus||(parus={});parus.abonent||
b.mixin(parus,{abonent:{}});b.mixin(parus.abonent,{currentAgent:function(){return parus.abonent.agentLine.selectedChildWidget.rn},currentAgentCode:function(){return parus.abonent.agentLine.selectedChildWidget.code},currentYear:function(){return parus.abonent.timeLine.selectedChildWidget.rn},currentMonth:function(){return parus.abonent._lastIndex==parus.abonent.timeLine.selectedChildWidget.index?parus.abonent.timelinePane.getChildren()[0].selectedChildWidget.rn:null},currentDay:function(){if(!this.currentMonth())return null;
var a=parus.abonent.timelinePane.getChildren()[0].selectedChildWidget.getChildren();return a.length?a[0].selectedChildWidget.rn:parus.abonent.timelinePane.getChildren()[0].selectedChildWidget.day||"*"},curentDate:function(a){for(var c=parus.abonent.currentYear(),e=parus.abonent.currentMonth(),f=parus.abonent.currentDay()||"1";4>c.toString().length;)c="0"+c;for(;2>e.toString().length;)e="0"+e;if("*"!=f)for(;2>f.toString().length;)f="0"+f;return a?c+"-"+e+"-"+f:f+"."+e+"."+c},_loaded:!1,_conditionsChangedID:null,
_conditionsChanged:function(){parus.abonent._conditionsChangedID&&clearTimeout(parus.abonent._conditionsChangedID);parus.abonent._conditionsChangedID=setTimeout(b.hitch(parus.abonent,parus.abonent.loadContent),300)},_lastIndex:null,loadContent:function(){if(parus.abonent._lastIndex!=parus.abonent.timeLine.selectedChildWidget.index){parus.abonent._lastIndex=parus.abonent.timeLine.selectedChildWidget.index;var a=parus.abonent._monthNodes[parus.abonent.timeLine.selectedChildWidget.index];b.forEach(parus.abonent.timelinePane.getChildren(),
function(h){h.destroyRecursive()});var c=parus.userdata.get("parus.abonent.selectedTimeLine")||{},e='\x3cdiv style\x3d"width:100%;height:100%" region\x3d"center" nested\x3d"true" controllerWidget\x3d"parus.abonent.SmallScrollingTabController" dojoType\x3d"dijit.layout.TabContainer"\x3e';b.forEach(a,function(h,l){var m=parus.parus8.monthNames()[parus.parus8.nodeField(h,"MONTH")-1],p=parus.parus8.rowNodes(parus.parus8.nodeField(h,"XMLDAYS")),r="false";c.month?c.month==parus.parus8.nodeField(h,"MONTH")&&
(r="true"):l==a.length-1&&(r="true");var w=1<p.length?"":"day\x3d"+parus.parus8.nodeField(p[0],"DAY").toString();e=e+"\x3cdiv "+w+' selected\x3d"'+r+'" rn\x3d"'+parus.parus8.nodeField(h,"MONTH")+'" onShow\x3d"parus.abonent._conditionsChanged" dojoType\x3d"parus.abonentSelectContentPane" title\x3d"'+m+'"\x3e';1<p.length&&(e+='\x3cdiv nested\x3d"true" controllerWidget\x3d"parus.abonent.SmallScrollingTabController" dojoType\x3d"dijit.layout.TabContainer"\x3e',b.forEach(p,function(x,A){for(var B=parus.parus8.nodeField(x,
"DAY").toString();2>B.length;)B="0"+B;for(var D=parus.parus8.nodeField(h,"MONTH");2>D.length;)D="0"+D;var I="false";c.day?c.day==parus.parus8.nodeField(x,"DAY").toString()&&(I="true"):A==p.length-1&&(I="true");e=e+'\x3cdiv  selected\x3d"'+I+'" rn\x3d"'+parus.parus8.nodeField(x,"DAY")+'" onShow\x3d"parus.abonent._conditionsChanged" dojoType\x3d"parus.abonentSelectContentPane" title\x3d"'+B+"."+D+"."+parus.abonent.timeLine.selectedChildWidget.rn+'"\x3e\x3c/div\x3e'}),e+="\x3c/div\x3e");e+="\x3c/div\x3e"});
e+="\x3c/div\x3e";parus.abonent.timelinePane.setContent(e);parus.abonent.applicationWindow.layout()}else{var f=parus.abonent.timelinePane.getChildren();f.length&&f[0].selectedChildWidget&&f[0].selectedChildWidget.getChildren().length?"55px"!=parus.abonent.timelinePane.domNode.style.height&&(parus.abonent.timelinePane.domNode.style.height="55px",parus.abonent.applicationWindow.layout()):null!=parus.abonent._lastIndex&&"25px"!=parus.abonent.timelinePane.domNode.style.height&&(parus.abonent.timelinePane.domNode.style.height=
"25px",parus.abonent.applicationWindow.layout());var g=[];parus.abonent._loaded&&parus.abonent.currentAgent()&&parus.abonent.currentYear()&&parus.abonent.currentMonth()?b.fadeOut({node:parus.abonent.listView.domNode,duration:100,onEnd:function(){b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(h){if(h=t.byNode(h))h.reportRN&&h.checked&&g.push(h.reportRN),h.destroyRecursive()});b.place("\x3cdiv\x3e\x3c/div\x3e",parus.abonent.statusBar.containerNode,"only");parus.userdata.set("parus.abonent.selectedTimeLine",
{year:parus.abonent.currentYear(),month:parus.abonent.currentMonth(),day:parus.abonent.currentDay()},!0);b.forEach(parus.parus8.rowNodes(parus.database.query("abonentReports",{AGENT:parus.abonent.currentAgent(),YEAR:parus.abonent.currentYear(),MONTH:parus.abonent.currentMonth(),DAY:parus.abonent.currentDay()}))||[],function(h){(new parus.abonentTile({reportRN:parus.parus8.nodeField(h,"RN"),templateRN:parus.parus8.nodeField(h,"TEMPLATE"),editionRN:parus.parus8.nodeField(h,"BLREPFORMED"),catalogRN:parus.parus8.nodeField(h,
"CRN"),formCode:parus.parus8.nodeField(h,"FORM_CODE"),attachments:parus.parus8.nodeField(h,"ATTACHMENTS"),subreports:parus.parus8.nodeField(h,"SUBREPORTS"),reportState:parus.parus8.nodeField(h,"STATE"),reportChecked:parus.parus8.nodeField(h,"CHECKED"),reportSent:parus.parus8.nodeField(h,"SENT"),reportStatus:parus.parus8.nodeField(h,"STATUS_NAME"),reportAccepted:parus.parus8.nodeField(h,"ACCEPTED"),dataRow:h,checked:-1!=b.indexOf(g,parus.parus8.nodeField(h,"RN")),onCheck:b.hitch(parus.abonent,parus.abonent.checkActions)},
b.place("\x3cdiv\x3e\x3c/div\x3e",parus.abonent.listView.containerNode,"last"))).startup()});parus.abonent.checkActions();parus.abonent.loadStatus();b.fadeIn({node:parus.abonent.listView.domNode,duration:300}).play()}}).play():(b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(h){if(h=t.byNode(h))h.reportRN&&h.checked&&g.push(h.reportRN),h.destroyRecursive()}),parus.abonent.checkActions())}},checkActions:function(){var a=0;b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(c){(c=
t.byNode(c))&&c.checked&&a++});b.query("*[widgetId]",parus.abonent.actionsPane.domNode).forEach(function(c){(c=t.byNode(c))&&"dijit.form.Button"==c.declaredClass&&c.attr("disabled",!(0==c.itemsPerAction||1==c.itemsPerAction&&1==a||2==c.itemsPerAction&&1<=a))})},_agentChangedID:null,_agentChanged:function(){parus.abonent._agentChangedID&&clearTimeout(parus.abonent._agentChangedID);parus.abonent._agentChangedID=setTimeout(b.hitch(parus.abonent,function(){var a=parus.userdata.get("parus.abonent.selectedTimeLine")||
{};parus.userdata.set("parus.abonent.selectedAgent",{agent:parus.abonent.currentAgent()});parus.abonent.loadTimeline(a.year,a.month,a.day)}),300)},_monthNodes:null,loadTimeline:function(a,c,e){parus.abonent._loaded=!1;b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(h){(h=t.byNode(h))&&h.destroyRecursive()});b.forEach(parus.abonent.timeLine.getChildren(),function(h){parus.abonent.timeLine.removeChild(h);h.destroyRecursive()});b.forEach(parus.abonent.timelinePane.getChildren(),
function(h){h.destroyRecursive()});parus.abonent._monthNodes=[];parus.abonent._lastIndex=null;b.place("\x3cdiv\x3e\x3c/div\x3e",parus.abonent.statusBar.containerNode,"only");var f=null,g=[];b.forEach(parus.parus8.rowNodes(parus.database.query("abonentYears",{AGENT:parus.abonent.currentAgent()}))||[],function(h){var l=parus.parus8.nodeField(h,"Y"),m=parus.parus8.nodeField(h,"M");h=parus.parus8.nodeField(h,"D");var p=null;b.forEach(g,function(w){w.YEAR==l&&(p=w)});if(p){var r=null;b.forEach(p.XMLMONTHS,
function(w){w.MONTH==m&&(r=w)});r?r.XMLDAYS.push({DAY:h}):p.XMLMONTHS.push({MONTH:m,XMLDAYS:[{DAY:h}]})}else g.push({YEAR:l,XMLMONTHS:[{MONTH:m,XMLDAYS:[{DAY:h}]}]})});b.forEach(parus.parus8.rowNodes(g)||[],function(h,l){parus.abonent._monthNodes[l]=parus.parus8.rowNodes(parus.parus8.nodeField(h,"XMLMONTHS"));var m=new parus.abonentSelectContentPane({title:parus.parus8.nodeField(h,"YEAR"),rn:parus.parus8.nodeField(h,"YEAR"),selected:!1,index:l,onShow:parus.abonent._conditionsChanged});a||(f=m);a==
parus.parus8.nodeField(h,"YEAR")&&(f=m);parus.abonent.timeLine.addChild(m)});parus.abonent.timeLine.addChild(new parus.abonentSelectContentPane({title:b.isIE?'\x3cspan onclick\x3d"parus.abonent.newDate()" style\x3d"height:15px;font-weight:bold;font-size:120%;margin-top:-3px;cursor:pointer"\x3e+\x3c/span\x3e':'\x3cdiv onclick\x3d"parus.abonent.newDate()" style\x3d"height:15px;font-weight:bold;font-size:120%;margin-top:-3px;cursor:pointer"\x3e+\x3c/div\x3e'}));f&&parus.abonent.timeLine.selectChild(f);
parus.abonent._monthNodes.length||("1px"!=parus.abonent.timelinePane.domNode.style.height&&(parus.abonent.timelinePane.domNode.style.height="1px",parus.abonent.applicationWindow.layout()),b.fadeOut({node:parus.abonent.listView.domNode,duration:100,onEnd:function(){b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(h){(h=t.byNode(h))&&h.destroyRecursive()});b.place("\x3cdiv\x3e\x3c/div\x3e",parus.abonent.statusBar.containerNode,"only");(new parus.abonentTile({addReport:!0},b.place("\x3cdiv\x3e\x3c/div\x3e",
parus.abonent.listView.containerNode,"last"))).startup();(new parus.abonentTile({loadReport:!0},b.place("\x3cdiv\x3e\x3c/div\x3e",parus.abonent.listView.containerNode,"last"))).startup();b.fadeIn({node:parus.abonent.listView.domNode,duration:300}).play()}}).play());parus.abonent.checkActions();parus.abonent._loaded=!0},newDate:function(){b.forEach(parus.abonent.timelinePane.getChildren(),function(c){c.destroyRecursive()});var a=new parus.abonentCopyReportDialog({title:"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435",
onShow:function(){a.formCode="*";a.reportDateEdit.attr("value",parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("abonentDefaultDate",{}))[0],"VALUE"))},onApply:function(){if(!a.validate())return!1;b.date.locale.parse(a.reportDateEdit.value,{datePattern:"dd.MM.yyyy",selector:"date"});parus.abonent.addReport(a.reportDateEdit.value);return!0},onClose:function(){if(!a.applied){var c=parus.userdata.get("parus.abonent.selectedTimeLine")||{};parus.abonent.loadTimeline(c.year,c.month,c.day)}}});
a.show()},loadStatus:function(){b.forEach(parus.parus8.rowNodes(parus.database.execute("abonentStatus",{AGENT:parus.abonent.currentAgent(),YEAR:parus.abonent.currentYear(),MONTH:parus.abonent.currentMonth(),DAY:parus.abonent.currentDay()}))||[],function(a){b.place('\x3cdiv class\x3d"abonentStatusBar"\x3e \u041e\u0442\u0447\u0435\u0442\u043e\u0432: \x3cspan class\x3d"abonentStatusBarInfoItem"\x3e'+parus.parus8.nodeField(a,"REPORTS")+'\x3c/span\x3e \u041f\u0440\u0438\u043d\u044f\u0442\u043e: \x3cspan class\x3d"abonentStatusBarInfoItem abonentStatusBarInfoItemAccepted"\x3e'+
parus.parus8.nodeField(a,"ACCEPTED")+'\x3c/span\x3e \u041e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e: \x3cspan class\x3d"abonentStatusBarInfoItem abonentStatusBarInfoItemRejected"\x3e'+parus.parus8.nodeField(a,"NOTACCEPTED")+"\x3c/span\x3e\x3c/div\x3e",parus.abonent.statusBar.containerNode,"only");"0"!=parus.parus8.nodeField(a,"CANCREATE")&&(new parus.abonentTile({addReport:!0},b.place("\x3cdiv\x3e\x3c/div\x3e",parus.abonent.listView.containerNode,"last"))).startup()});(new parus.abonentTile({loadReport:!0},
b.place("\x3cdiv\x3e\x3c/div\x3e",parus.abonent.listView.containerNode,"last"))).startup()},_reportRowStatus:function(a){return""},_subReportRowStatus:function(a){return""},showTooltip:function(a){t.showTooltip('\x3cspan class\x3d"abonentTileStatusToolTip"\x3e'+a.innerHTML+"\x3c/span\x3e",a);setTimeout(function(){t.hideTooltip(a)},5E3);return!1},excludedButtons:[],includedButtons:[],userAppButtons:[],userProcButtons:[],userReportButtons:[],excludedSubreportButtons:[],includedSubreportButtons:[],subreportUserAppButtons:[],
subreportUserProcButtons:[],subreportUserReportButtons:[],startup:function(){parus.abonent._lastIndex=null;parus.abonent._monthNodes=null;parus.abonent.excludedButtons=[];parus.abonent.includedButtons=[];parus.abonent.userAppButtons=[];parus.abonent.userProcButtons=[];parus.abonent.userReportButtons=[];parus.abonent.excludedSubreportButtons=[];parus.abonent.includedSubreportButtons=[];parus.abonent.subreportUserAppButtons=[];parus.abonent.subreportUserProcButtons=[];parus.abonent.subreportUserReportButtons=
[];parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),function(r){return parus.parus8.nodeField(r,"UNITCODE")});-1!=b.indexOf(parus.balance.availableUnits,"BalanceNotifications")&&parus.parus8.checkNotifications();if(-1==b.indexOf(parus.balance.availableUnits,"BalanceReports"))parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435/\u0441\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.',
parus.parus8.logout);else{parus.parus8._attrDescriptors=-1!=b.indexOf(parus.balance.availableUnits,"AttributesDescriptors");parus.parus8.extraDictionaries._canCacheExtraDictionaries="0"!=parus.parus8.optionValue("BalanceOnlineCacheContractorDictValues");parus.parus8.extraDictionaries._autoCompleteLimit=parus.parus8.optionValue("BalanceOnlineAutoCompleteDictSize");parus.dictionaries._autoCompleteLimit=parus.parus8.optionValue("BalanceOnlineAutoCompleteUnitSize");parus.balance._docprops=parus.parus8.rowNodes(parus.database.query("docProperties",
{UNITCODE:"BalanceReports"}))||[];parus.balance._detailDocprops=parus.parus8.rowNodes(parus.database.query("docProperties",{UNITCODE:"BalanceSubReports"}))||[];parus.balance._masterAttrDescriptors=parus.parus8._attrDescriptors?parus.parus8.rowNodes(parus.database.execute("attrDescriptors",{UNITCODE:"BalanceReports"}).documentElement.childNodes[0].childNodes[0].childNodes[0])||[]:[];parus.balance._detailAttrDescriptors=parus.parus8._attrDescriptors?parus.parus8.rowNodes(parus.database.execute("attrDescriptors",
{UNITCODE:"BalanceSubReports"}).documentElement.childNodes[0].childNodes[0].childNodes[0])||[]:[];var a=parus.userdata.get("parus.balance.primaryMasterGrid").abonentFields||["STATUS_NAME"],c=parus.userdata.get("parus.balance.primaryDetailGrid").abonentFields||["STATUS_NAME"],e=[{balance:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",abonent:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"},{balance:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c...",abonent:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c"},
{balance:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",abonent:"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430"},{balance:"\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c...",abonent:"\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c"},{balance:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c...",abonent:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c"},{balance:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c...",abonent:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c"},
{balance:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",abonent:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},{balance:"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",abonent:"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c"},{balance:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",abonent:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c"},
{balance:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435...",abonent:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c"},{balance:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430...",abonent:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c"},
{balance:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel",abonent:"Excel"},{balance:"\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b",abonent:"\u0412\u043b\u043e\u0436\u0435\u043d\u0438\u044f"}],f=[{label:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f",itemsPerAction:2,event:parus.abonent.balanceReportsClearValues},
{label:"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439...",itemsPerAction:2,event:parus.abonent.balanceCheckReportProtocol},{label:"\u041f\u0440\u0438\u043d\u044f\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b...",itemsPerAction:2,event:parus.abonent.balanceReportSetReportAccepted},{label:"\u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b...",itemsPerAction:2,
event:parus.abonent.balanceReportSetReportUnaccepted},{label:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441...",itemsPerAction:2,event:parus.abonent.balanceReportChangeStatus},{label:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439...",itemsPerAction:1,event:parus.abonent.balanceStatesHistory},{label:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432...",itemsPerAction:1,
event:parus.abonent.balanceStatusesHistory},{label:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439...",itemsPerAction:1,event:parus.abonent.balanceValuesHistory},{label:"\u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b...",itemsPerAction:1,event:parus.abonent.balanceShowReportContents},{label:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043e\u0432...",
itemsPerAction:0,event:parus.abonent.balanceCheckAbsentReports},{label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430...",itemsPerAction:0,event:parus.abonent.balanceReportsLoadReports},{label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430 \u0443\u0447\u0435\u0442\u0430...",itemsPerAction:2,event:parus.abonent.downloadReport},
{label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435...",itemsPerAction:2,event:parus.abonent.balanceReportsCustomFormatDownloadReports},{label:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443",itemsPerAction:2,event:parus.abonent.balanceReportsUndoExport},
{label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF",itemsPerAction:2,event:parus.abonent.downloadExcelReportPDF},{label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML",itemsPerAction:2,event:parus.abonent.downloadExcelReportHTML},{label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c...",
itemsPerAction:2,event:parus.abonent.balanceReportsExchangeExport},{label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c...",itemsPerAction:0,event:parus.abonent.balanceReportsExchangeImport},{label:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f...",itemsPerAction:0,event:parus.abonent.userApplications},{label:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b...",
itemsPerAction:0,event:parus.abonent.userProcedures},{label:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b...",itemsPerAction:0,event:parus.abonent.userReports},{label:"\u041b\u043e\u0433\u0438\u043d\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432...",itemsPerAction:0,event:parus.abonent.userExternalAccounts},{label:"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438...",
itemsPerAction:1,event:parus.abonent.balanceReportsDigitalSignatures},{label:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c...",itemsPerAction:2,event:parus.abonent.balanceReportsSign},{label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c",itemsPerAction:2,event:parus.abonent.balanceReportsRemoveSign},{label:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b...",itemsPerAction:2,event:parus.abonent.exportToFile},{label:"\u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430...",
itemsPerAction:0,event:parus.abonent.importFromFile},{label:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e...",itemsPerAction:2,event:parus.abonent.exportToSignedFile}],g=[{balance:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",abonent:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"},{balance:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c...",
abonent:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c"},{balance:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",abonent:"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430"},{balance:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c...",abonent:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c"},{balance:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c...",abonent:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c"},{balance:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",
abonent:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},{balance:"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",abonent:"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c"},{balance:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f...",abonent:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c"},{balance:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel",
abonent:"Excel"},{balance:"\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b",abonent:"\u0412\u043b\u043e\u0436\u0435\u043d\u0438\u044f"}],h=[{label:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f",itemsPerAction:2,event:parus.abonent.balanceSubReportsClearValues},{label:"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439...",
itemsPerAction:2,event:parus.abonent.balanceCheckSubReportProtocol},{label:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441...",itemsPerAction:2,event:parus.abonent.balanceSubReportChangeStatus},{label:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439...",itemsPerAction:1,event:parus.abonent.balanceSubReportValuesHistory},{label:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432...",
itemsPerAction:1,event:parus.abonent.balanceSubReportStatusesHistory},{label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF",itemsPerAction:2,event:parus.abonent.downloadExcelSubReportPDF},{label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML",itemsPerAction:2,event:parus.abonent.downloadExcelSubReportHTML},
{label:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f...",itemsPerAction:0,event:parus.abonent.userApplicationsSubReport},{label:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b...",itemsPerAction:0,event:parus.abonent.userProceduresSubReport},{label:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b...",
itemsPerAction:0,event:parus.abonent.userReportsSubReport},{label:"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438...",itemsPerAction:1,event:parus.abonent.balanceSubReportsDigitalSignatures},{label:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c...",itemsPerAction:2,event:parus.abonent.balanceSubReportsSign},{label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c",itemsPerAction:2,event:parus.abonent.balanceSubReportsRemoveSign}],
l=parus.userdata.get("parus.balance.primaryMasterGrid")||{};l.additions&&(parus.balance.showTemplateGutter=l.additions.showGutter);b.forEach(l.actionSettings||[],function(r){b.forEach(e,function(w){r.hash!=parus.parus8.hash(w.balance)||r.inabonent||parus.abonent.excludedButtons.push(w.abonent)});b.forEach(f,function(w){r.hash==parus.parus8.hash(w.label)&&r.inabonent&&(b.mixin(w,{customIcon:r.customIcon}),parus.abonent.includedButtons.push(w))})});l.userAppsActions&&b.forEach(parus.parus8.rowNodes(parus.database.query("userApps",
{UNITCODE:"BalanceReports"})),function(r){var w=parus.parus8.nodeField(r,"RN");-1!=b.indexOf(l.userAppsActions.inabonent,w)&&parus.abonent.userAppButtons.push({label:parus.parus8.nodeField(r,"NAME"),event:function(){parus.abonent._userApplication(parus.abonent._selectedReports(),"BalanceReports",w,"0"!=parus.parus8.nodeField(r,"GROUP_RECORDS"))}})});l.userProcsActions&&b.forEach(parus.parus8.rowNodes(parus.database.query("userProcs",{UNITCODE:"BalanceReports"})),function(r){var w=parus.parus8.nodeField(r,
"RN");-1!=b.indexOf(l.userProcsActions.inabonent,w)&&parus.abonent.userProcButtons.push({label:parus.parus8.nodeField(r,"NAME"),event:function(){parus.abonent._userProcedure(parus.abonent._selectedReports(),"BalanceReports",w,parus.parus8.nodeField(r,"CONFIRM_TEXT"),"0"!=parus.parus8.nodeField(r,"PERRECORD"),"0"!=parus.parus8.nodeField(r,"PERSELECTION"))}})});l.userReportsActions&&b.forEach(parus.parus8.rowNodes(parus.database.query("userReports",{UNITCODE:"BalanceReports"})),function(r){var w=parus.parus8.nodeField(r,
"RN");-1!=b.indexOf(l.userReportsActions.inabonent,w)&&parus.abonent.userReportButtons.push({label:parus.parus8.nodeField(r,"NAME"),event:function(){parus.abonent._userReport(parus.abonent._selectedReports(),"BalanceReports",w,parus.parus8.nodeField(r,"NAME"),parus.parus8.nodeField(r,"REPORT_TYPE"))}})});l=parus.userdata.get("parus.balance.primaryDetailGrid");b.forEach(l.actionSettings||[],function(r){b.forEach(g,function(w){r.hash!=parus.parus8.hash(w.balance)||r.inabonent||parus.abonent.excludedSubreportButtons.push(w.abonent)});
b.forEach(h,function(w){r.hash==parus.parus8.hash(w.label)&&r.inabonent&&(b.mixin(w,{customIcon:r.customIcon}),parus.abonent.includedSubreportButtons.push(w))})});l.userAppsActions&&b.forEach(parus.parus8.rowNodes(parus.database.query("userApps",{UNITCODE:"BalanceSubReports"})),function(r){var w=parus.parus8.nodeField(r,"RN");-1!=b.indexOf(l.userAppsActions.inabonent,w)&&parus.abonent.subreportUserAppButtons.push({label:parus.parus8.nodeField(r,"NAME"),event:function(){parus.abonent._userApplication(parus.abonent._selectedSubReports(),
"BalanceSubReports",w,"0"!=parus.parus8.nodeField(r,"GROUP_RECORDS"))}})});l.userProcsActions&&b.forEach(parus.parus8.rowNodes(parus.database.query("userProcs",{UNITCODE:"BalanceSubReports"})),function(r){var w=parus.parus8.nodeField(r,"RN");-1!=b.indexOf(l.userProcsActions.inabonent,w)&&parus.abonent.subreportUserProcButtons.push({label:parus.parus8.nodeField(r,"NAME"),event:function(){parus.abonent._userProcedure(parus.abonent._selectedSubReports(),"BalanceSubReports",w,parus.parus8.nodeField(r,
"CONFIRM_TEXT"),"0"!=parus.parus8.nodeField(r,"PERRECORD"),"0"!=parus.parus8.nodeField(r,"PERSELECTION"))}})});l.userReportsActions&&b.forEach(parus.parus8.rowNodes(parus.database.query("userReports",{UNITCODE:"BalanceSubReports"})),function(r){var w=parus.parus8.nodeField(r,"RN");-1!=b.indexOf(l.userReportsActions.inabonent,w)&&parus.abonent.subreportUserReportButtons.push({label:parus.parus8.nodeField(r,"NAME"),event:function(){parus.abonent._userReport(parus.abonent._selectedSubReports(),"BalanceSubReports",
w,parus.parus8.nodeField(r,"NAME"),parus.parus8.nodeField(r,"REPORT_TYPE"))}})});var m=document.createElement("div");b.place(b.cache("parus","balancePrimaryReportPane.html",'\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryCatalogTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryCatalogTreePopupMenu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.CheckedMenuItem" onClick\x3d"parus.catalogActions.listCatalogTree(parus.balance.primaryCatalogTree)"\x3e \u0412\u0441\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.checkChildren(parus.balance.primaryCatalogTree)"\x3e \u0421\u043f\u0438\u0441\u043e\u043a \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.primaryCatalogTree.uncheckAll()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.expandCatalogTree(parus.balance.primaryCatalogTree)"\x3e \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"CATALOG_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertCatalog(parus.balance.primaryCatalogTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateCatalog(parus.balance.primaryCatalogTree)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveCatalog(parus.balance.primaryCatalogTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteCatalog(parus.balance.primaryCatalogTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.primaryCatalogTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.primaryCatalogTreePopupMenu, \'parus.balance.primaryCatalogTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"true" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" jsid\x3d"parus.balance.primaryCatalogTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onOpen\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" persist\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.primaryFoldersPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%; display:none"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryFoldersTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0430\u043f\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryFoldersTreePopupMenu" style\x3d"display:none"\x3e\x3cli actionCode\x3d"CONDFOLDERS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertFolder(parus.balance.primaryFolderTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateFolder(parus.balance.primaryFolderTree, function(){parus.balance.balanceReportsRefresh(parus.balance.primaryMasterGrid)})"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveFolder(parus.balance.primaryFolderTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteFolder(parus.balance.primaryFolderTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.primaryFolderTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.primaryFoldersTreePopupMenu, \'parus.balance.primaryFolderTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"false" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.folderTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" hiddenMode\x3d"true" jsid\x3d"parus.balance.primaryFolderTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onOpen\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" persist\x3d"false" showRoot\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryMasterGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e\x3cspan class\x3d"filterIndicator" id\x3d"parus.balance.primaryMasterGridFilterIndicator" onclick\x3d"parus.balance.primaryBalanceReportsConditions()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043e\u0442\u0431\u043e\u0440."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e\x3cspan class\x3d"maxGridRecordsIndicator" id\x3d"parus.balance.primaryMasterGridMaxGridRecordsIndicator" onclick\x3d"parus.balance.primaryMasterGridMaxGridRecordsIndicatorClick()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e \u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryMasterGridPopupMenu" style\x3d"display: none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.primaryBalanceReportsConditions()"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsCreateReport(parus.balance.primaryCatalogTree, parus.balance.primaryMasterGrid, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDuplicateReport(parus.balance.primaryCatalogTree, parus.balance.primaryMasterGrid, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsEditReport(parus.balance.primaryMasterGrid, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_MOVE_OUT" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsMoveReport(parus.balance.primaryMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDeleteReport(parus.balance.primaryMasterGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.primaryMasterGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_VALUES_UPDATE" defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.editReportValues(parus.balance.primaryMasterGrid, 0)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CALC" defaultIcon\x3d"PCcalculator2CustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsRecalculateValues(false)"\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CLEAR" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsClearValues(parus.balance.primaryMasterGrid, false)"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CHECK" defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsCheckValues(parus.balance.primaryMasterGrid, 0, false)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowCheckReportProtocol(parus.balance.primaryMasterGrid, 0, false)"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041f\u0440\u0438\u0435\u043c\u043a\u0430\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_ACCEPT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSetReportAccepted(parus.balance.primaryMasterGrid, true)"\x3e \u041f\u0440\u0438\u043d\u044f\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UNDO_ACCEPT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSetReportAccepted(parus.balance.primaryMasterGrid, false)"\x3e \u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_SET_STATUS" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.changeStatus(parus.balance.primaryMasterGrid, 0)"\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceStatesHistory(parus.balance.primaryMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceStatusesHistory(parus.balance.primaryMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceValuesHistory(parus.balance.primaryMasterGrid, false)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f/\u0441\u043e\u0441\u0442\u0430\u0432\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowReportContents(parus.balance.primaryMasterGrid, false)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceCheckAbsentReports(parus.balance.primaryMasterGrid, 0)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043e\u0432... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430/\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_LOAD" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsLoadReports(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CUSTOM_IMPORT" defaultIcon\x3d"PCUpCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsCustomFormatLoadReports(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_TEXT_EXPORT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadReport(parus.balance.primaryMasterGrid)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430 \u0443\u0447\u0435\u0442\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CUSTOM_EXPORT" defaultIcon\x3d"PCDownCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsCustomFormatDownloadReports(0)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_TEXT_EXPORT" defaultIcon\x3d"PCRightCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDoExport(parus.balance.primaryMasterGrid)"\x3e \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UNDO_EXPORT" defaultIcon\x3d"PCLeftCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsUndoExport(parus.balance.primaryMasterGrid)"\x3e \u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCxlsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.primaryMasterGrid, \'xls\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.primaryMasterGrid, \'pdf\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.primaryMasterGrid, \'html\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_EXCHANGE_EXPORT" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsExchangeExport(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_EXCHANGE_IMPORT" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsExchangeImport(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem" features\x3d"StatusModel"\x3e\x3cspan\x3e\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c...\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridPass(parus.balance.primaryMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridSend(parus.balance.primaryMasterGrid)"\x3e \u041d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridAddNote(parus.balance.primaryMasterGrid)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridSetMark(parus.balance.primaryMasterGrid)"\x3e \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridRemoveMark(parus.balance.primaryMasterGrid)"\x3e \u0421\u043d\u044f\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridHistory(parus.balance.primaryMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridNotes(parus.balance.primaryMasterGrid)"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridRoute(parus.balance.primaryMasterGrid)"\x3e \u041c\u0430\u0440\u0448\u0440\u0443\u0442... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridCoWorking(parus.balance.primaryMasterGrid)"\x3e \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userExternalAccounts()"\x3e \u041b\u043e\u0433\u0438\u043d\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDigitalSignatures(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsSign(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsRemoveSign(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0421\u0432\u044f\u0437\u0438\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli defaultIcon\x3d"PCdocumentsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsAttachedDocuments(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.exportToFile(parus.balance.primaryMasterGrid)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"false" onClick\x3d"parus.balance.importFromFile(parus.balance.primaryMasterGrid)"\x3e \u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_EXPORT_SIGNED_XML" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.exportToSignedFile(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.primaryMasterGrid, parus.balance.primaryDetailGrid, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.primaryMasterGrid, parus.balance.primaryMasterGridPopupMenu, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTree, parus.balance.primarySettingsAdditions(), \'BalanceReports\', \'BalanceReports\', \'BalanceReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable abonentFields\x3d"STATUS_NAME" abonentFieldsNeeded\x3d"true" class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.primaryMasterGrid" headerMenu\x3d"parus.balance.primaryMasterGridPopupMenu" jsid\x3d"parus.balance.primaryMasterGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.primaryMasterGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editReportValues(parus.balance.primaryMasterGrid, 0)" onSelected\x3d"parus.balance.masterGridChange(\'parus.balance.primaryDetailGrid\', \'parus.balance.primaryMasterGrid\', \'parus.balance.primaryCatalogTree\')" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.masterGridStore(parus.balance.primaryCatalogTree, \'parus.balance.primaryMasterGrid\', 0, parus.balance.primaryFolderTree)"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"2" field\x3d"BDATE" sortField\x3d"T.BDATE" width\x3d"81px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"FORM_CODE" width\x3d"81px"\x3e \u0424\u043e\u0440\u043c\u0430 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"121px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"AGNNAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"HEAD_ORG_NAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"81px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"ACCEPTED" formatter\x3d"parus.balance.formatReportAccepted" width\x3d"81px"\x3e \u041f\u0440\u0438\u043d\u044f\u0442 \x3c/th\x3e\x3cth field\x3d"SENT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:90%"\x3e\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"USE_HISTORY" formatter\x3d"parus.balance.formatReportHistory" width\x3d"101px"\x3e\x3cspan style\x3d"font-size:85%"\x3e\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"ONLY_LAST_HISTORY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e\x3cspan style\x3d"font-size:80%"\x3e\u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u0438\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATUS_NAME" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"STATUS_MODEL_CODE" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED_ANY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.primaryDetailGridPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryDetailGridPopupMenu" style\x3d"display: none"\x3e\x3cli actionCode\x3d"BLSUBREPORTS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsCreateSubReport()" removeForApplications\x3d"BudgAcntBalance"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsDuplicateSubReport()" removeForApplications\x3d"BudgAcntBalance"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsEditSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDeleteSubReport(parus.balance.primaryDetailGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.primaryDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_VALUES_UPDATE" defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.editSubReportValues(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, 0)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CALC" defaultIcon\x3d"PCcalculator2CustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsRecalculateValues(true)"\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CLEAR" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsClearValues(parus.balance.primaryDetailGrid, true)"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CHECK" defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsCheckValues(parus.balance.primaryDetailGrid, 0, true)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowCheckReportProtocol(parus.balance.primaryDetailGrid, 0, true)"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_SET_STATUS" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.changeSubreportStatus(parus.balance.primaryDetailGrid, 0)"\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceValuesHistory(parus.balance.primaryDetailGrid, true)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSubStatusesHistory(parus.balance.primaryDetailGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCxlsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, \'xls\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, \'pdf\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, \'html\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDigitalSignatures(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsSign(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsRemoveSign(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCdocumentsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsAttachedDocuments(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.primaryDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.primaryDetailGrid, parus.balance.primaryDetailGridPopupMenu, \'parus.balance.primaryDetailGrid\', null, null, \'BalanceSubReports\', \'BalanceSubReports\', \'BalanceSubReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable abonentFieldsNeeded\x3d"true" class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.primaryDetailGrid" headerMenu\x3d"parus.balance.primaryDetailGridPopupMenu" jsid\x3d"parus.balance.primaryDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.primaryDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editSubReportValues(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, 0)" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.detailGridStore(parus.balance.primaryCatalogTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryDetailGrid\')"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"RESULT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u0418\u0442\u043e\u0433 \x3c/th\x3e\x3cth field\x3d"CODE" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"121px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"161px"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"STATUS_NAME" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"IS_SIGNED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED_ANY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
m,"only");parus.abonent._subReportRowStatus=function(r){var w=[];b.forEach(c,function(A){var B=b.query("*[jsid\x3d'parus.balance.primaryDetailGrid'] th[field\x3d'"+A+"']",m);if(B.length){var D=parus.parus8.nodeField(r,A),I=B[0].getAttribute("formatter");I&&(D=eval(I+"("+b._escapeString(D)+")"));D&&w.push({name:parus.parus8.getTextContent(B[0]),value:D})}else b.forEach(parus.balance._detailDocprops,function(u){if("prop"+parus.parus8.nodeField(u,"RN")==A){var y=parus._docPropsValueForGrid(parus.parus8.docPropValue(r,
parus.parus8.nodeField(u,"RN")),parus.parus8.nodeField(u,"DATATYPE"),parus.parus8.nodeField(u,"SUBTYPE"));y&&w.push({name:parus.parus8.nodeField(u,"CODE"),value:y})}}),b.forEach(parus.balance._detailAttrDescriptors,function(u){if("attr"+parus.parus8.nodeField(u,"RN")==A){var y=parus._docPropsValueForGrid(parus.parus8.docPropValue(r,parus.parus8.nodeField(u,"RN")),parus.parus8.nodeField(u,"DATATYPE"),0);y&&w.push({name:parus.parus8.nodeField(u,"NAME"),value:y})}})});var x="";1==w.length?x=w[0].value:
(b.forEach(w,function(A){x&&(x+="\x3cbr/\x3e");x=x+b.trim(A.name)+": "+A.value}),x&&(x='\x3ca onclick\x3d"parus.abonent.showTooltip(this)" href\x3d"javascript:void(0)"\x3e'+x+"\x3c/a\x3e"));return x};parus.abonent._reportRowStatus=function(r){var w=[];b.forEach(a,function(A){var B=b.query("*[jsid\x3d'parus.balance.primaryMasterGrid'] th[field\x3d'"+A+"']",m);if(B.length){var D=parus.parus8.nodeField(r,A),I=B[0].getAttribute("formatter");I&&(D=eval(I+"("+b._escapeString(D)+")"));D&&w.push({name:parus.parus8.getTextContent(B[0]),
value:D})}else b.forEach(parus.balance._docprops,function(u){if("prop"+parus.parus8.nodeField(u,"RN")==A){var y=parus._docPropsValueForGrid(parus.parus8.docPropValue(r,parus.parus8.nodeField(u,"RN")),parus.parus8.nodeField(u,"DATATYPE"),parus.parus8.nodeField(u,"SUBTYPE"));y&&w.push({name:parus.parus8.nodeField(u,"CODE"),value:y})}}),b.forEach(parus.balance._masterAttrDescriptors,function(u){if("attr"+parus.parus8.nodeField(u,"RN")==A){var y=parus._docPropsValueForGrid(parus.parus8.docPropValue(r,
parus.parus8.nodeField(u,"RN")),parus.parus8.nodeField(u,"DATATYPE"),0);y&&w.push({name:parus.parus8.nodeField(u,"NAME"),value:y})}})});var x="";1==w.length?x=w[0].value:(b.forEach(w,function(A){x&&(x+="\x3cbr/\x3e");x=x+b.trim(A.name)+": "+A.value}),x&&(x='\x3ca onclick\x3d"parus.abonent.showTooltip(this)" href\x3d"javascript:void(0)"\x3e'+x+"\x3c/a\x3e"));return x};var p=parus.userdata.get("parus.abonent.selectedAgent")||{};(new t.layout.ContentPane({href:b.moduleUrl("parus","abonent.html"),preload:!0,
"class":parus.parus8.zoomContainerClass(),onLoad:function(){parus.parus8.interfaceSchemaLoaded("abonent");b.query("*[widgetId]",parus.abonent.actionsPane.domNode).forEach(function(D){var I=t.byNode(D);I&&"dijit.form.Button"==I.declaredClass&&0<=b.indexOf(parus.abonent.excludedButtons,I.label)&&(D=D.parentNode,I.destroyRecursive(),D.parentNode.removeChild(D))});if(parus.abonent.includedButtons.length){var r=b.query("*.abonentToolBar",parus.abonent.actionsPane.domNode)[0],w=parus.parus8.styleSize(parus.abonent.actionsPane.domNode.style.width)-
25;b.forEach(parus.abonent.includedButtons,function(D){D=new t.form.Button({itemsPerAction:D.itemsPerAction,label:D.label.replace(/[\.\.\.]/g,""),onClick:D.event,iconClass:D.customIcon+"Big",showLabel:!0,"class":"balanceToolBarButton"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',r,"last"),"last"));D.containerNode.offsetWidth>w&&(w=D.containerNode.offsetWidth)});parus.abonent.actionsPane.domNode.style.width=w+25+"px"}parus.abonent.userAppButtons.length&&
(r=b.query("*.abonentToolBar",parus.abonent.actionsPane.domNode)[0],w=parus.parus8.styleSize(parus.abonent.actionsPane.domNode.style.width)-25,b.place('\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e',r,"last"),b.forEach(parus.abonent.userAppButtons,function(D){D=new t.form.Button({itemsPerAction:0,label:D.label.replace(/[\.\.\.]/g,""),onClick:D.event,showLabel:!0,"class":"balanceToolBarButton"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',
r,"last"),"last"));D.containerNode.offsetWidth>w&&(w=D.containerNode.offsetWidth)}),parus.abonent.actionsPane.domNode.style.width=w+25+"px");parus.abonent.userProcButtons.length&&(r=b.query("*.abonentToolBar",parus.abonent.actionsPane.domNode)[0],w=parus.parus8.styleSize(parus.abonent.actionsPane.domNode.style.width)-25,b.place('\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e',r,"last"),b.forEach(parus.abonent.userProcButtons,function(D){D=new t.form.Button({itemsPerAction:0,label:D.label.replace(/[\.\.\.]/g,
""),onClick:D.event,showLabel:!0,"class":"balanceToolBarButton"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',r,"last"),"last"));D.containerNode.offsetWidth>w&&(w=D.containerNode.offsetWidth)}),parus.abonent.actionsPane.domNode.style.width=w+25+"px");parus.abonent.userReportButtons.length&&(r=b.query("*.abonentToolBar",parus.abonent.actionsPane.domNode)[0],w=parus.parus8.styleSize(parus.abonent.actionsPane.domNode.style.width)-25,b.place('\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e',
r,"last"),b.forEach(parus.abonent.userReportButtons,function(D){D=new t.form.Button({itemsPerAction:0,label:D.label.replace(/[\.\.\.]/g,""),onClick:D.event,showLabel:!0,"class":"balanceToolBarButton"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',r,"last"),"last"));D.containerNode.offsetWidth>w&&(w=D.containerNode.offsetWidth)}),parus.abonent.actionsPane.domNode.style.width=w+25+"px");b.query("*.abonentToolBarSeparator",parus.abonent.actionsPane.domNode).forEach(function(D){D.previousElementSibling&&
D.nextElementSibling&&!b.hasClass(D.nextElementSibling,"abonentToolBarSeparator")||D.parentNode.removeChild(D)});var x=null,A=[];b.forEach(parus.parus8.rowNodes(parus.database.query("AGNLIST",{CRN:"*"}))||[],function(D,I){if(20<=I&&(x||!p.agent))A.push(D);else{var u=new parus.abonentSelectContentPane({title:'\x3cspan style\x3d""\x3e'+parus.parus8.nodeField(D,"AGNABBR")+"\x3c/span\x3e",rn:parus.parus8.nodeField(D,"RN"),code:parus.parus8.nodeField(D,"AGNABBR"),onShow:parus.abonent._agentChanged,selected:!1});
p.agent==parus.parus8.nodeField(D,"RN")&&(x=u);parus.abonent.agentLine.addChild(u)}});if(A.length){var B=new t.layout.ContentPane({title:'\x3cspan style\x3d"cursor:pointer;font-weight:bold"\x3e\x3cspan\x3e\u0415\u0449\u0435 '+A.length+"...\x3c/span\x3e\x3c/span\x3e",onShow:function(){var D=new parus.progressDialog({message:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432..."});D.show();setTimeout(function(){b.forEach(A,function(I){I=
new parus.abonentSelectContentPane({title:'\x3cspan style\x3d""\x3e'+parus.parus8.nodeField(I,"AGNABBR")+"\x3c/span\x3e",rn:parus.parus8.nodeField(I,"RN"),code:parus.parus8.nodeField(I,"AGNABBR"),onShow:parus.abonent._agentChanged,selected:!1});parus.abonent.agentLine.addChild(I)});parus.abonent.agentLine.removeChild(B);parus.abonent.agentLine.layout();D.close();D.destroyRecursive()},1E3)}});parus.abonent.agentLine.addChild(B)}x&&parus.abonent.agentLine.selectChild(x);parus.parus8.showApplication()}},
parus.parus8.applicationNode())).startup()}},addReport:function(a){if(a||parus.abonent.currentYear()){var c=[],e=a||parus.abonent.curentDate(),f=parus.parus8.rowNodes(parus.database.query("abonentForms",{AGENT:parus.abonent.currentAgent(),DATE:e}))||[];if(f.length){var g=new parus.abonentSelectFormDialog({onShow:function(){b.forEach(f,function(h){h=new parus.abonentTile({isForm:!0,templateRN:parus.parus8.nodeField(h,"TEMPLATE"),formCode:parus.parus8.nodeField(h,"FORM_CODE"),reportStatus:parus.parus8.nodeField(h,
"FORM_NAME"),onThumbnailDblClick:function(){g.apply()}},b.place("\x3cdiv\x3e\x3c/div\x3e",g.dataPane.containerNode,"last"));c.push(h);h.startup()})},onApply:function(){var h=[];b.forEach(c,function(r){r.checked&&h.push(r.formCode)});if(!h.length)return parus.parus8.notificationMessage("\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u0443 \u0444\u043e\u0440\u043c\u0443."),!1;var l=parus.abonent.currentAgentCode(),m=parus.parus8.optionValue("BalanceUseHistory"),
p=parus.parus8.optionValue("BalanceOnlyLastHistory");(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),key:"BalanceReports",onDefaultNeeded:function(){var r=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return r?parus.parus8.nodeField(parus.parus8.rowNodes(r)[0],"PATH"):null},onSingle:function(){return parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("singleCatalog",{UNITCODE:"BalanceReports",ACTION_CODE:"BLREPORTS_INSERT"}))[0],"CATALOG")},
onPerform:function(r){b.forEach(h,function(x){response=parus.database.execute("insertReport",{CRN:r,FORM_CODE:x,AGENT_CODE:l,BDATE:e,AGENT_NAME:null,NOTE:null,KIND:0,USE_HISTORY:m,ONLY_LAST_HISTORY:p,DOCPROPS:{DOCPROPS:{}}})});g.applied=!0;if(a){var w=b.date.locale.parse(a,{datePattern:"dd.MM.yyyy",selector:"date"});parus.userdata.set("parus.abonent.selectedTimeLine",{year:w.getFullYear(),month:w.getMonth()+1,day:w.getDate()});parus.abonent._lastIndex=null;parus.abonent.loadTimeline(w.getFullYear(),
w.getMonth()+1,w.getDate())}else g.applied&&parus.abonent.loadContent();g.close();return!0}})).show();return!1}});g.show()}else parus.parus8.notificationMessage("\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0444\u043e\u0440\u043c\u044b \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435.")}else parus.abonent.newDate()},
refresh:function(){if(parus.abonent.currentYear())parus.abonent.loadContent();else{var a=parus.userdata.get("parus.abonent.selectedTimeLine")||{};parus.abonent.loadTimeline(a.year,a.month,a.day)}},editReportValues:function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var a=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(c){(c=t.byNode(c))&&c.checked&&a.push(c)});1<a.length?(new parus.confirmationDialog({message:"\u0412\u044b\u0431\u0440\u0430\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0447\u0435\u0442\u043e\u0432 ("+a.length+"). \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u0445 \u0432\u0441\u0435?",onApply:b.hitch(this,function(){b.forEach(a,function(c){window.open(b.moduleUrl("parus",
"report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([c.reportRN,c.subreportRN]),"_blank")});return!0})})).show():0<a.length&&window.open(b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([a[0].reportRN,a[0].subreportRN]),"_blank");parus.parus8.registerAction()}},loadReports:function(){var a=new parus.abonentCustomLoadReportsDialog({onApply:function(){if(!a.validate()||
!a.fileData.value)return!1;(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),key:"BalanceReports",onDefaultNeeded:function(){var c=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return c?parus.parus8.nodeField(parus.parus8.rowNodes(c)[0],"PATH"):null},onSingle:function(){return parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("singleCatalog",{UNITCODE:"BalanceReports",ACTION_CODE:"BLREPORTS_CUSTOM_IMPORT"}))[0],"CATALOG")},onPerform:function(c){parus.parus8.registerAction();
var e=document.createElement("form");e.method="POST";e.action="../.system/session.xml";e.encoding="multipart/form-data";var f=a.fileData.parentNode;e.appendChild(a.fileData);document.body.appendChild(e);var g=parus.abonent.curentDate(!0),h=parus.abonent.currentAgentCode();b.io.iframe.send({method:"POST",form:e,handleAs:"xml",handle:function(l,m){document.body.removeChild(e);f.appendChild(a.fileData);a.applied=!0;parus.parus8._themeEditorMode||(window.open(b.moduleUrl("parus","loadreport.html")+"?loggedUserHandler\x3d"+
parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([a.formatCode.value,g,h,c]),"_blank").parentParus=parus);a.applied=!0;a.close()}});return!0}})).show();return!1}});a.show()},deleteReports:function(){var a=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(c){(c=t.byNode(c))&&c.checked&&a.push(c.reportRN)});a.length&&(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b?",onApply:b.hitch(this,
function(){b.forEach(a,function(e){parus.database.execute("deleteReport",{RN:e})});var c=parus.userdata.get("parus.abonent.selectedTimeLine")||{};parus.abonent.loadTimeline(c.year,c.month,c.day);return!0})})).show()},moveReports:function(){var a=[],c=[],e;b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(g){(g=t.byNode(g))&&g.checked&&(c.push(g.formCode),a.push(g))});if(a.length){var f=new parus.abonentMoveReportDialog({onShow:function(){f.formCode=c.join(";");b.forEach(parus.parus8.rowNodes(parus.database.query("AGNLIST",
{CRN:"*"}))||[],function(g){f.reportAgent.addOption({value:parus.parus8.nodeField(g,"AGNABBR"),label:parus.parus8.nodeField(g,"AGNABBR")})});f.reportAgent.attr("value",parus.abonent.currentAgentCode());f.reportDateEdit.attr("value",parus.abonent.curentDate())},onApply:function(){if(!f.validate())return!1;var g=b.date.locale.parse(f.reportDateEdit.value,{datePattern:"dd.MM.yyyy",selector:"date"});b.forEach(a,function(l){e=parus.database.execute("abonentMoveReport",{RN:l.reportRN,AGENT_CODE:f.reportAgent.value,
BDATE:f.reportDateEdit.value})});if(!e)return!1;var h=null;b.forEach(parus.abonent.agentLine.getChildren(),function(l){l.code==f.reportAgent.value&&(h=l)});h&&h.code!=parus.abonent.currentAgentCode()&&parus.abonent.agentLine.selectChild(h);parus.abonent.loadTimeline(g.getFullYear(),g.getMonth()+1,g.getDate());return!0}});f.show()}},copyReports:function(){var a=[],c=[],e;b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(g){(g=t.byNode(g))&&g.checked&&(c.push(g.formCode),a.push(g))});
if(a.length){var f=new parus.abonentCopyReportDialog({onShow:function(){f.formCode=c.join(";");f.reportDateEdit.attr("value",parus.abonent.curentDate())},onApply:function(){if(!f.validate())return!1;var g=b.date.locale.parse(f.reportDateEdit.value,{datePattern:"dd.MM.yyyy",selector:"date"});b.forEach(a,function(h){e=parus.database.execute("abonentCopyReport",{RN:h.reportRN,BDATE:f.reportDateEdit.value})});if(!e)return!1;parus.abonent.loadTimeline(g.getFullYear(),g.getMonth()+1,g.getDate());return!0}});
f.show()}},calculateReports:function(){var a=[],c=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(f){(f=t.byNode(f))&&f.checked&&(a.push(f),c.push(f.reportRN))});if(a.length){var e=new parus.abonentReportRecalculateValuesDialog({rns:c,onShow:function(){e.recalculateTypeEdit.attr("value",parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("getReportDefaultsRecalculateType",{RN:c[0]}))[0],"CALCTYPECODE"))},onApply:function(){if(!e.validate())return!1;b.forEach(c,
function(f){parus.database.execute("abonentRecalculateReportValues",{RN:f,CALCTYPE_CODE:e.recalculateTypeEdit.value})});parus.abonent.loadContent();return!0}});e.show()}},checkReports:function(){var a=[],c=[],e=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(g){(g=t.byNode(g))&&g.checked&&(a.push(g),c.push(g.reportRN),e.push(g.editionRN))});if(a.length){var f=new parus.balanceCheckReportDialog({grid:null,kind:0,isSubReport:!1,rn:c,formedRn:e,reportRn:c,showProtocol:function(){if(!parus.parus8._themeEditorMode){parus.parus8.registerAction();
var g=b.moduleUrl("parus","checkreport.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([f.kind,f.isSubReport?1:0,f.showResultReportCheckBox.checked?1:0,c.join(";"),f.checks||""]);window.open(g,"_blank")}},onClose:function(){f.applied&&parus.abonent.loadContent()}});f.show()}},sendReports:function(){var a=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(c){(c=t.byNode(c))&&c.checked&&a.push(c.reportRN)});a.length&&(new parus.confirmationDialog({message:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430?",
onApply:b.hitch(this,function(){b.forEach(a,function(c){parus.database.execute("DoReportExport",{RN:c})});parus.abonent.loadContent();return!0})})).show()},downloadReports:function(){var a=[],c=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(e){(e=t.byNode(e))&&e.checked&&(a.push(e.reportRN),-1==b.indexOf(c,e.editionRN)&&c.push(e.editionRN))});a.length&&(1==a.length?parus.balance.downloadExcelWorkBook("BalanceReports",a[0],null,null,"xls"):parus.balance.downloadExcelWorkBook("BalanceReports",
a,"*",1<c.length?"*":null,"xls"))},attachmentsReports:function(){if(-1==b.indexOf(parus.balance.availableUnits,"FileLinks"))parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.');
else{var a=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(c){(c=t.byNode(c))&&c.checked&&a.push(c.reportRN)});1==a.length&&(new parus.balanceReportAttachedDocumentsDialog({rn:a[0],unitcode:"BalanceReports",onClose:function(){parus.abonent.loadContent()}})).show()}},propertiesReports:function(){var a=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(f){(f=t.byNode(f))&&f.checked&&a.push(f.reportRN)});if(1==a.length){var c=parus.parus8.rowNodes(parus.database.query("abonentReportProperties",
{RN:a[0]}))[0],e=new parus.abonentReportDialog({title:"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430",onShow:function(){e.noteEdit.attr("value",parus.parus8.nodeField(c,"NOTE"));e.historySelect.attr("value",parus.parus8.nodeField(c,"USE_HISTORY"));e.historyLastCheckBox.attr("checked","1"==parus.parus8.nodeField(c,"ONLY_LAST_HISTORY"));b.forEach(parus.balance._docprops,function(f){var g=parus.parus8.nodeField(f,"RN");parus._docPropsValueValueForWidget(e._docprops[g],parus.parus8.docPropValue(c,
g),"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE"))})},onApply:function(){response=parus.database.execute("editReport",{RN:a[0],AGENT_CODE:parus.parus8.nodeField(c,"AGNABBR"),AGENT_NAME:null,BDATE:parus.parus8.nodeField(c,"BDATE"),NOTE:e.noteEdit.value,KIND:parus.parus8.nodeField(c,"KIND"),FORM_CODE:parus.parus8.nodeField(c,"FORM_CODE"),USE_HISTORY:e.historySelect.value,ONLY_LAST_HISTORY:e.historyLastCheckBox.checked?1:0,DOCPROPS:e.propValues()});
if(!response)return!1;parus.abonent.loadContent();return!0}});e.show()}}});parus.checkReport||b.mixin(parus,{checkReport:{}});b.mixin(parus.checkReport,{startup:function(){parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),function(g){return parus.parus8.nodeField(g,"UNITCODE")});var a=null;b.xhrGet({url:"../.system/session.xml",handleAs:"xml",sync:!0,preventCache:!0,load:function(g){b.isIE||g.normalize();for(var h=g.documentElement.getElementsByTagName("*"),
l=0;l!=h.length;l++)"params"==h[l].nodeName&&(a=h[l].childNodes.item(0).nodeValue);return g}});a=parus.parus8.hexDecodeParams(a);var c="\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a",e="1"==a[1],f=a[3].split(";");1==f.length&&(c=parus.balance.checkReportTitle(e?null:f[0],e?f[0]:null),c=parus.parus8.nodeField(c,"CAPTION"));e=parus.balanceReportCheckProtocolTabPage({region:"center",autonomousMode:!0,title:c,kind:a[0],showResultReportOnly:a[2],checklist:a[4],
rn:e?[]:f,subRn:e?f:null,style:"height:100%;width:100%;padding:0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.body(),"last"));e.show();loadingDiv.style.display="none";b.fadeIn({node:e.domNode,duration:300}).play()}});parus.loadLog||b.mixin(parus,{loadLog:{}});b.mixin(parus.loadLog,{startup:function(){var a=null;b.xhrGet({url:"../.system/session.xml",handleAs:"xml",sync:!0,preventCache:!0,load:function(g){b.isIE||g.normalize();for(var h=
g.documentElement.getElementsByTagName("*"),l=0;l!=h.length;l++)"params"==h[l].nodeName&&(a=h[l].childNodes.item(0).nodeValue);return g}});a=parus.parus8.hexDecodeParams(a);var c=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",region:"center",style:"height:100%;width:100%;padding:0"});var e=parus.balance._createHeadingPane("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435");
c.addChild(e);e=new t.layout.ContentPane({region:"center",href:parus.database.getLoadReportsUrl(),ioMethod:b.xhrPost,ioArgs:{content:{custom:"1",kind:"0",logKind:"0",encodingType:"0",canOverWrite:"2",recalcReports:"on",formatCode:a[0],reportDate:a[1],agentCode:a[2],catalog:a[3]}},onLoad:function(){window.parentParus&&window.parentParus.abonent.refresh();b.fadeIn({node:f.domNode,duration:300}).play()}});c.addChild(e);e=new t.layout.ContentPane({title:"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435",
closable:!0,region:"center","class":"balanceTemplateContentPane"});e.setContent(c);loadingDiv.style.display="none";var f=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",style:"height:100%;width:100%;padding:0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.body(),"last"));f.addChild(e);f.startup()}});b.declare("parus.abonent.SmallScrollingTabController",[t.layout.ScrollingTabController],{buildRendering:function(){this.inherited(arguments);
b.addClass(this.domNode,"abonentSmallScrollingTabController")}});b.declare("parus.abonent.ScrollingTabController",[t.layout.ScrollingTabController],{buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"abonentScrollingTabController")}});b.declare("parus.abonent.agentScrollingTabController",[parus.abonent.ScrollingTabController],{resize:function(a){var c=this.inherited(arguments);b.isIE||(this._enableBtn(this._contentBox.w)?this.containerNode.align="":(this.containerNode.align=
"right",this.containerNode.style.width="100%",this.containerNode.style.textAlign="right"));this._selectedTab=null;if(parus.abonent.agentLine.selectedChildWidget)this.onSelectChild(parus.abonent.agentLine.selectedChildWidget);return c}});b.declare("parus.abonentTile",[t._Widget,t._Templated,t._CssStateMixin],{addReport:!1,loadReport:!1,isForm:!1,reportRN:null,subreportRN:null,templateRN:null,editionRN:null,formCode:null,catalogRN:null,attachments:0,subreports:0,reportState:null,reportChecked:null,
reportSent:null,reportStatus:null,reportAccepted:null,note:null,sectionCode:null,dataRow:null,onThumbnailClick:null,onThumbnailDblClick:null,templateString:b.cache("parus","abonentTile.html",'\x3cdiv\x3e\x3cdiv class\x3d"abonentTileContent" dojoAttachPoint\x3d"tileContentNode"\x3e\x3cdiv class\x3d"abonentTileCaption" dojoAttachPoint\x3d"tileCaptionNode"\x3e\x3c/div\x3e\x3ca dojoAttachPoint\x3d"anchorNode"\x3e\x3cdiv class\x3d"abonentTileLoading" dojoAttachPoint\x3d"loadingNode"\x3e\x3cdiv class\x3d"abonentTileThumbnail" dojoAttachPoint\x3d"thumbNode"\x3e\x3cdiv align\x3d"center" class\x3d"abonentTileThumbLabel abonentTileStateAbsent" ondragstart\x3d"return false;" onselectstart\x3d"return false;"\x3e \u041d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d \x3c/div\x3e\x3cdiv align\x3d"center" class\x3d"abonentTileThumbLabel abonentTileStateNew" ondragstart\x3d"return false;" onselectstart\x3d"return false;"\x3e \u041d\u043e\u0432\u044b\u0439 \x3c/div\x3e\x3cdiv align\x3d"center" class\x3d"abonentTileThumbLabel abonentTileStateLoaded" ondragstart\x3d"return false;" onselectstart\x3d"return false;"\x3e \u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/a\x3e\x3cdiv class\x3d"dijitCheckBoxIcon abonentTileCheckBox" dojoAttachEvent\x3d"onclick:_onCheckClick" dojoAttachPoint\x3d"checkboxNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentTileAttachment" dojoAttachPoint\x3d"attachmentsNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f"\x3e\x3c/div\x3e\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" class\x3d"abonentTileInfoTable" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd align\x3d"left" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileCalculated" dojoAttachPoint\x3d"calculatedNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u0440\u0430c\u0441\u0447\u0438\u0442\u0430\u043d"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"left" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileReportChecked" dojoAttachPoint\x3d"checkedNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"left" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileSent" dojoAttachPoint\x3d"sentNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0426\u0435\u043d\u0442\u0440 \u0423\u0447\u0435\u0442\u0430"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cdiv class\x3d"abonentTileStatus" dojoAttachPoint\x3d"tileStatusNode"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"right" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileSubreports" dojoAttachEvent\x3d"onclick:_onSubreportsClick" dojoAttachPoint\x3d"subreportsNode" title\x3d"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b"\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e'),
baseClass:"abonentTile",attributeMap:b.delegate(t._WidgetBase,{checked:!1}),checked:!1,_setCheckedAttr:function(a){(this.checked=a)?(b.addClass(this.checkboxNode,"abonentTileCheckBoxChecked"),b.addClass(this.domNode,"abonentTileChecked")):(b.removeClass(this.checkboxNode,"abonentTileCheckBoxChecked"),b.removeClass(this.domNode,"abonentTileChecked"));this.onCheck()},startup:function(){this.inherited(arguments);if(this.addReport)b.addClass(this.domNode,"abonentTileAbsent"),b.addClass(this.loadingNode,
"abonentTileAddReport"),this.onThumbnailClick?b.connect(this.anchorNode,"onclick",this,this.onThumbnailClick):this.anchorNode.href="javascript:parus.abonent.addReport()",this.onThumbnailDblClick&&b.connect(this.anchorNode,"ondblclick",this,this.onThumbnailDblClick);else if(this.loadReport)b.addClass(this.domNode,"abonentTileAbsent"),b.addClass(this.loadingNode,"abonentTileLoadReport"),this.onThumbnailClick?b.connect(this.anchorNode,"onclick",this,this.onThumbnailClick):this.anchorNode.href="javascript:parus.abonent.loadReports()",
this.onThumbnailDblClick&&b.connect(this.anchorNode,"ondblclick",this,this.onThumbnailDblClick);else{b.place("\x3cspan\x3e"+this.formCode+"\x3c/span\x3e",this.tileCaptionNode,"only");this.sectionCode||this.isForm||!this.reportRN||this.subreportRN||!this.dataRow?this.sectionCode&&this.subreportRN&&this.dataRow?this.tileStatusNode.innerHTML=parus.abonent._subReportRowStatus(this.dataRow):this.reportStatus&&(this.tileStatusNode.innerHTML=this.reportStatus,this.tileStatusNode.style.whiteSpace="normal"):
this.tileStatusNode.innerHTML=parus.abonent._reportRowStatus(this.dataRow);this.templateRN&&(-1==this.reportState?b.addClass(this.domNode,"abonentTileStateAbsent"):0==this.reportState?b.addClass(this.domNode,"abonentTileStateNew"):6==this.reportState?b.addClass(this.domNode,"abonentTileStateLoaded"):this.thumbNode.style.backgroundImage="url("+parus.database.getThumbnailUrl(this.templateRN)+")");if(this.isForm||this.reportRN||this.subreportRN)this.onThumbnailClick?b.connect(this.anchorNode,"onclick",
this,this.onThumbnailClick):b.connect(this.anchorNode,"onclick",this,function(e){e.shiftKey||e.ctrlKey||b.query("*[widgetId]",this.domNode.parentNode).forEach(function(f){(f=t.byNode(f))&&f.checked&&f.attr("checked",!1)});e.shiftKey||e.ctrlKey?this.attr("checked",!this.checked):this.attr("checked",!0);e.shiftKey||e.ctrlKey||"0"!=this.subreports&&setTimeout(b.hitch(this,this._onSubreportsClick),100)}),this.onThumbnailDblClick?b.connect(this.anchorNode,"ondblclick",this,this.onThumbnailDblClick):b.connect(this.anchorNode,
"ondblclick",this,function(){parus.parus8._themeEditorMode?alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e."):(window.open(b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([this.reportRN,
this.subreportRN]),"_blank"),parus.parus8.registerAction())});else if(b.addClass(this.domNode,"abonentTileAbsent"),b.addClass(this.domNode,"abonentTileCanCreate"),this.onThumbnailClick)b.connect(this.anchorNode,"onclick",this,this.onThumbnailClick);else{var a=b.hitch(this,function(){var e=parus.abonent.curentDate(),f=parus.abonent.currentAgentCode(),g=parus.parus8.optionValue("BalanceUseHistory"),h=parus.parus8.optionValue("BalanceOnlyLastHistory"),l=this.formCode,m=this.catalogRN;(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),
key:"BalanceReports",onDefaultNeeded:function(){var p=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return p?parus.parus8.nodeField(parus.parus8.rowNodes(p)[0],"PATH"):null},onSingle:function(){return m?m:parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("singleCatalog",{UNITCODE:"BalanceReports",ACTION_CODE:"BLREPORTS_INSERT"}))[0],"CATALOG")},onPerform:function(p){response=parus.database.execute("insertReport",{CRN:p,FORM_CODE:l,AGENT_CODE:f,BDATE:e,
AGENT_NAME:null,NOTE:null,KIND:0,USE_HISTORY:g,ONLY_LAST_HISTORY:h,DOCPROPS:{DOCPROPS:{}}});parus.abonent.loadContent();if(parus.parus8._themeEditorMode)return!0;window.open(b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([parus.parus8.nodeField(parus.parus8.rowNodes(response)[0],"NRN"),null]),"_blank");parus.parus8.registerAction();return!0}})).show();return!1});b.connect(this.anchorNode,"onclick",this,function(e){});
b.connect(this.anchorNode,"ondblclick",this,function(){a()})}"1"==this.reportAccepted?b.addClass(this.domNode,"abonentTileAccepted"):"2"==this.reportAccepted&&b.addClass(this.domNode,"abonentTileRejected");"0"==this.subreports&&(this.subreportsNode.style.display="none",this.subreportsNode.parentNode.style.display="none");"0"==this.attachments?this.attachmentsNode.style.display="none":b.connect(this.attachmentsNode,"onclick",this,function(){-1==b.indexOf(parus.balance.availableUnits,"FileLinks")?parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.'):
(new parus.balanceReportAttachedDocumentsDialog({rn:this.subreportRN||this.reportRN,unitcode:this.subreportRN?"BalanceSubReports":"BalanceReports"})).show()});"1"!=this.reportChecked&&(this.checkedNode.style.display="none",this.checkedNode.parentNode.style.display="none");"1"!=this.reportSent&&(this.sentNode.style.display="none",this.sentNode.parentNode.style.display="none");"2"!=this.reportState&&(this.calculatedNode.style.display="none",this.calculatedNode.parentNode.style.display="none");var c=
b.hitch(this,function(){b.marginBox(this.tileStatusNode.parentNode).w?this.tileStatusNode.style.maxWidth=b.marginBox(this.tileStatusNode.parentNode).w+"px":setTimeout(c,100)});c()}},onCheck:function(){},_onCheckClick:function(){this.attr("checked",!this.checked)},_onSubreportsClick:function(){var a=new t.TooltipDialog({around:this.subreportsNode,tile:this,inDialog:!1,content:b.cache("parus","abonentSubreports.html",'\x3cdiv style\x3d"width: 710px"\x3e\x3cdiv class\x3d"dijitDialog dijitDialogFixed" style\x3d"padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; position: relative"\x3e\x3cdiv class\x3d"dijitDialogTitleBar" style\x3d"padding-right: 7px; padding-left: 7px; padding-bottom: 2px; padding-top: 2px"\x3e\x3cspan class\x3d"dijitDialogTitle" dojoAttachPoint\x3d"dialogTitle" style\x3d"font-weight: 700; font-size: 80%"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/span\x3e\x3cspan class\x3d"dijitDialogCloseIcon" onClick\x3d"dijit.getEnclosingWidget(this).closeClick()" style\x3d"top:0px"\x3e\x3cspan class\x3d"closeText"\x3ex\x3c/span\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv design\x3d"sidebar" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:390px; background-color:#FFFFFF"\x3e\x3cdiv dojoAttachPoint\x3d"dataContainer" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentActionsBar" dojoAttachPoint\x3d"actionsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"width:190px"\x3e\x3cdiv class\x3d"abonentToolBar" dojoType\x3d"dijit.Toolbar"\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCisyncCustomIconBig" label\x3d"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsRefresh()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCapplicationsCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041e\u0442\u043a\u0440\u044b\u0442\u044c" onClick\x3d"this.dialogObject.subreportsEditValues()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCHardwareadaltCustomIconBig" label\x3d"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsAdd()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCreduceCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u0423\u0434\u0430\u043b\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsDelete()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCcopyCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c" onClick\x3d"this.dialogObject.subreportsCopy()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCcalculator2CustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c" onClick\x3d"this.dialogObject.subreportsCalculate()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCCheckCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsCheck()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCxlsCustomIconBig" itemsPerAction\x3d"2" label\x3d"Excel" onClick\x3d"this.dialogObject.subreportsExcel()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCdocumentsCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0412\u043b\u043e\u0436\u0435\u043d\u0438\u044f" onClick\x3d"this.dialogObject.subreportsAttachments()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCdocumentCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430" onClick\x3d"this.dialogObject.subreportsProperties()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
onBlur:function(){this.inDialog||this.closeClick()},parseOnLoad:!1,closeClick:function(){t.popup.close(this);parus.abonent.subreportsPopup=null;setTimeout(b.hitch(this,this.destroyRecursive),1)},checkActions:function(){var c=0;b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(e){(e=t.byNode(e))&&e.checked&&c++});b.query("*[widgetId]",this.actionsPane.domNode).forEach(function(e){(e=t.byNode(e))&&"dijit.form.Button"==e.declaredClass&&e.attr("disabled",!(0==e.itemsPerAction||1==e.itemsPerAction&&
1==c||2==e.itemsPerAction&&1<=c))})},onOpen:function(){parus.abonent.subreportsPopup=this;var c=t.popup._createWrapper(this);t.placeOnScreenAroundElement(c,this.around,{BR:"TR",BL:"TL",TR:"BR",TL:"BL"},b.hitch(this,"orient"));var e=b.parser.parse({rootNode:this.containerNode,template:!0});b.forEach(e,b.hitch(this,function(h){var l=h.dojoAttachPoint;l&&(this[l]=h);b.mixin(h,{dialogObject:this})}));b.query("*[widgetId]",this.actionsPane.domNode).forEach(function(h){var l=t.byNode(h);l&&"dijit.form.Button"==
l.declaredClass&&0<=b.indexOf(parus.abonent.excludedSubreportButtons,l.label)&&(h=h.parentNode,l.destroyRecursive(),h.parentNode.removeChild(h))});if(parus.abonent.includedSubreportButtons.length){var f=b.query("*.abonentToolBar",this.containerNode)[0],g=parus.parus8.styleSize(this.actionsPane.domNode.style.width)-25;b.forEach(parus.abonent.includedSubreportButtons,function(h){h=new t.form.Button({itemsPerAction:h.itemsPerAction,label:h.label.replace(/[\.\.\.]/g,""),onClick:h.event,iconClass:h.customIcon+
"Big",showLabel:!0,"class":"balanceToolBarButton"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',f,"last"),"last"));h.containerNode.offsetWidth>g&&(g=h.containerNode.offsetWidth)});this.actionsPane.domNode.style.width=g+25+"px"}parus.abonent.subreportUserAppButtons.length&&(f=b.query("*.abonentToolBar",this.containerNode)[0],g=parus.parus8.styleSize(this.actionsPane.domNode.style.width)-25,b.place('\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e',
f,"last"),b.forEach(parus.abonent.subreportUserAppButtons,function(h){h=new t.form.Button({itemsPerAction:0,label:h.label.replace(/[\.\.\.]/g,""),onClick:h.event,showLabel:!0,"class":"balanceToolBarButton"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',f,"last"),"last"));h.containerNode.offsetWidth>g&&(g=h.containerNode.offsetWidth)}),this.actionsPane.domNode.style.width=g+25+"px");parus.abonent.subreportUserProcButtons.length&&(f=b.query("*.abonentToolBar",
this.containerNode)[0],g=parus.parus8.styleSize(this.actionsPane.domNode.style.width)-25,b.place('\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e',f,"last"),b.forEach(parus.abonent.subreportUserProcButtons,function(h){h=new t.form.Button({itemsPerAction:0,label:h.label.replace(/[\.\.\.]/g,""),onClick:h.event,showLabel:!0,"class":"balanceToolBarButton"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',f,"last"),"last"));h.containerNode.offsetWidth>
g&&(g=h.containerNode.offsetWidth)}),this.actionsPane.domNode.style.width=g+25+"px");parus.abonent.subreportUserReportButtons.length&&(f=b.query("*.abonentToolBar",this.containerNode)[0],g=parus.parus8.styleSize(this.actionsPane.domNode.style.width)-25,b.place('\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e',f,"last"),b.forEach(parus.abonent.subreportUserReportButtons,function(h){h=new t.form.Button({itemsPerAction:0,label:h.label.replace(/[\.\.\.]/g,""),onClick:h.event,showLabel:!0,"class":"balanceToolBarButton"},
b.place("\x3cdiv\x3e\x3c/div\x3e",b.place('\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3c/div\x3e',f,"last"),"last"));h.containerNode.offsetWidth>g&&(g=h.containerNode.offsetWidth)}),this.actionsPane.domNode.style.width=g+25+"px");b.query("*.abonentToolBarSeparator",this.actionsPane.domNode).forEach(function(h){h.previousElementSibling&&h.nextElementSibling&&!b.hasClass(h.nextElementSibling,"abonentToolBarSeparator")||h.parentNode.removeChild(h)});this._loadSubreports();this.mainBorderContainer.resize();
t.focus(this.domNode.children[0]);b.style(c,{zIndex:940})},subreportsEditValues:function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");else{var c=[];b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(e){(e=
t.byNode(e))&&e.checked&&c.push(e)});1<c.length?(new parus.confirmationDialog({message:"\u0412\u044b\u0431\u0440\u0430\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u043e\u0432 ("+c.length+"). \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u0445 \u0432\u0441\u0435?",onApply:b.hitch(this,function(){b.forEach(c,function(e){window.open(b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+
parus.parus8.hexEncodeParams([e.reportRN,e.subreportRN]),"_blank")});return!0})})).show():0<c.length&&window.open(b.moduleUrl("parus","report.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([c[0].reportRN,c[0].subreportRN]),"_blank");parus.parus8.registerAction()}},subreportsRefresh:function(){b.fadeOut({node:this.dataContainer.domNode,duration:100,onEnd:b.hitch(this,function(){this._loadSubreports();b.fadeIn({node:this.dataContainer.domNode,
duration:300}).play()})}).play()},subreportsAdd:function(){var c=new parus.balanceSubReportDialog({title:"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442: \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435",formCode:this.tile.formCode,edition:this.tile.editionRN,onApply:b.hitch(this,function(){response=parus.database.execute("insertSubReport",{PRN:this.tile.reportRN,CODE:c.sectionCodeEdit.value,NOTE:c.noteEdit.value,DOCPROPS:c.propValues()});if(!response)return!1;this._loadSubreports();
return!0}),onShow:b.hitch(this,function(){b.forEach(parus.balance._detailDocprops,function(e){var f=parus.parus8.nodeField(e,"RN");parus._docPropsValueValueForWidget(c._docprops[f],parus.parus8.nodeField(e,"VALUE"),"3"==parus.parus8.nodeField(e,"DATATYPE")?"4":parus.parus8.nodeField(e,"DATATYPE"),parus.parus8.nodeField(e,"SUBTYPE"))})}),onClose:b.hitch(this,function(){this.inDialog=!1})});this.inDialog=!0;c.show()},subreportsDelete:function(){var c=[];b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(e){(e=
t.byNode(e))&&e.checked&&c.push(e.subreportRN)});c.length&&(this.inDialog=!0,(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b?",onApply:b.hitch(this,function(){b.forEach(c,function(e){parus.database.execute("deleteSubReport",{RN:e})});this._loadSubreports();return!0}),onClose:b.hitch(this,function(){this.inDialog=!1})})).show())},subreportsCopy:function(){var c=[],e=null,f=null,g=null;b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(l){(l=
t.byNode(l))&&l.checked&&(c.push(l.subreportRN),e=l.note,f=l.sectionCode,g=l.dataRow)});if(1==c.length){var h=new parus.balanceSubReportDialog({title:"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b: \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435",formCode:this.tile.formCode,edition:this.tile.editionRN,onShow:b.hitch(this,function(){h.sectionCodeEdit.attr("value",f);h.noteEdit.attr("value",e);b.forEach(parus.balance._detailDocprops,function(l){var m=parus.parus8.nodeField(l,
"RN");parus._docPropsValueValueForWidget(h._docprops[m],"1"==parus.parus8.nodeField(l,"DUPLICATE_VALUE")?parus.parus8.docPropValue(g,m)||parus.parus8.nodeField(l,"VALUE"):parus.parus8.nodeField(l,"VALUE"),"3"==parus.parus8.nodeField(l,"DATATYPE")?"4":parus.parus8.nodeField(l,"DATATYPE"),parus.parus8.nodeField(l,"SUBTYPE"))})}),onApply:b.hitch(this,function(){response=parus.database.execute("duplicateSubReport",{RN:c[0],PRN:this.tile.reportRN,CODE:h.sectionCodeEdit.value,NOTE:h.noteEdit.value,DOCPROPS:h.propValues()});
if(!response)return!1;this._loadSubreports();return!0}),onClose:b.hitch(this,function(){this.inDialog=!1})});this.inDialog=!0;h.show()}},subreportsCalculate:function(){var c=[];b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(f){(f=t.byNode(f))&&f.checked&&c.push(f.subreportRN)});if(c.length){var e=new parus.abonentReportRecalculateValuesDialog({isSubReport:!0,rns:[this.tile.reportRN],onShow:b.hitch(this,function(){e.recalculateTypeEdit.attr("value",parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("getReportDefaultsRecalculateType",
{RN:this.tile.reportRN}))[0],"CALCTYPECODE"))}),onApply:b.hitch(this,function(){if(!e.validate())return!1;b.forEach(c,b.hitch(this,function(f){parus.database.execute("abonentRecalculateSubReportValues",{RN:f,PRN:this.tile.reportRN,CALCTYPE_CODE:e.recalculateTypeEdit.value})}));this._loadSubreports();return!0}),onClose:b.hitch(this,function(){this.inDialog=!1})});this.inDialog=!0;e.show()}},subreportsCheck:function(){var c=[],e=[];b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(g){(g=
t.byNode(g))&&g.checked&&(c.push(g),e.push(g.subreportRN))});if(c.length){var f=new parus.balanceCheckReportDialog({grid:null,kind:0,isSubReport:!0,rn:e,formedRn:[this.tile.editionRN],reportRn:[this.tile.reportRN],showProtocol:function(){var g=b.moduleUrl("parus","checkreport.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([f.kind,f.isSubReport?1:0,f.showResultReportCheckBox.checked?1:0,e.join(";"),f.checks||""]);parus.parus8._themeEditorMode||
(window.open(g,"_blank"),parus.parus8.registerAction())},onClose:b.hitch(this,function(){f.applied&&this._loadSubreports();this.inDialog=!1})});this.inDialog=!0;f.show()}},subreportsAttachments:function(){if(-1==b.indexOf(parus.balance.availableUnits,"FileLinks"))parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.');
else{var c=[];b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(e){(e=t.byNode(e))&&e.checked&&c.push(e.subreportRN)});1==c.length&&(this.inDialog=!0,(new parus.balanceReportAttachedDocumentsDialog({rn:c[0],unitcode:"BalanceSubReports",onClose:b.hitch(this,function(){this.inDialog=!1})})).show())}},subreportsExcel:function(){var c=[];b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(e){(e=t.byNode(e))&&e.checked&&c.push(e.subreportRN)});c.length&&parus.balance.downloadExcelWorkBook("BalanceSubReports",
this.tile.reportRN,c,null,"xls")},subreportsProperties:function(){var c=[],e=null,f=null,g=null;b.query("*[widgetId]",this.dataContainer.domNode).forEach(function(l){(l=t.byNode(l))&&l.checked&&(c.push(l.subreportRN),e=l.note,f=l.sectionCode,g=l.dataRow)});if(1==c.length){var h=new parus.balanceSubReportDialog({title:"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b: \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",formCode:this.tile.formCode,edition:this.tile.editionRN,onShow:b.hitch(this,
function(){h.sectionCodeEdit.attr("value",f);h.noteEdit.attr("value",e);b.forEach(parus.balance._detailDocprops,function(l){var m=parus.parus8.nodeField(l,"RN");parus._docPropsValueValueForWidget(h._docprops[m],parus.parus8.docPropValue(g,m),"3"==parus.parus8.nodeField(l,"DATATYPE")?"4":parus.parus8.nodeField(l,"DATATYPE"),parus.parus8.nodeField(l,"SUBTYPE"))})}),onApply:b.hitch(this,function(){response=parus.database.execute("updateSubReport",{RN:c[0],CODE:h.sectionCodeEdit.value,NOTE:h.noteEdit.value,
DOCPROPS:h.propValues()});if(!response)return!1;this._loadSubreports();return!0}),onClose:b.hitch(this,function(){this.inDialog=!1})});this.inDialog=!0;h.show()}},_loadSubreports:function(){var c=[];b.query("*[widgetId]",this.dataContainer.containerNode).forEach(function(e){if(e=t.byNode(e))e.subreportRN&&e.checked&&c.push(e.subreportRN),e.destroyRecursive()});b.forEach(parus.parus8.rowNodes(parus.database.query("abonentSubreports",{PRN:this.tile.reportRN,RESULT:"0"}))||[],b.hitch(this,function(e){(new parus.abonentTile({reportRN:this.tile.reportRN,
templateRN:this.tile.templateRN,subreportRN:parus.parus8.nodeField(e,"RN"),formCode:parus.parus8.nodeField(e,"CODE"),attachments:parus.parus8.nodeField(e,"ATTACHMENTS"),subreports:0,reportState:parus.parus8.nodeField(e,"STATE"),reportChecked:parus.parus8.nodeField(e,"CHECKED"),reportSent:this.tile.reportSent,reportStatus:parus.parus8.nodeField(e,"STATUS_NAME"),reportAccepted:this.tile.reportAccepted,note:parus.parus8.nodeField(e,"NOTE"),sectionCode:parus.parus8.nodeField(e,"CODE"),checked:-1!=b.indexOf(c,
parus.parus8.nodeField(e,"RN")),dataRow:e,onCheck:b.hitch(this,this.checkActions)},b.place("\x3cdiv\x3e\x3c/div\x3e",this.dataContainer.containerNode,"last"))).startup()}));(new parus.abonentTile({addReport:!0,onThumbnailClick:b.hitch(this,this.subreportsAdd)},b.place("\x3cdiv\x3e\x3c/div\x3e",this.dataContainer.containerNode,"last"))).startup();this.checkActions()}});t.popup.open({parent:this,popup:a,around:a.around})}});b.declare("parus.abonentSelectContentPane",[t.layout.ContentPane],{rn:null,
day:null,code:null});b.mixin(parus.database,{getThumbnailUrl:function(a){return this._buildUrl("/templatethumb.png?template\x3d"+a)}})})},"parus/balanceIndexConsComparationItems":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsComparationItems");b.require("dojo.data.ItemFileReadStore");b.require("dojo.data.ItemFileWriteStore");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.cells.dijit");b.require("parus.parus8");b.require("parus.dialog");
b.require("parus.balanceIndexConsComparation");b.require("parus.balanceIndexConsComparationItem");b.require("parus.balanceIndexConsComparationTemplate");b.require("parus.balanceIndexConsComparationTemplatesDialog");b.declare("parus.balanceIndexConsComparationItems",[parus.Dialog],{skipUnsignificantZeroes:!1,onShow:function(){var a=parus.userdata.get(this.declaredClass);a&&a.additions&&(this.skipUnsignificantZeroes=a.additions.skipUnsignificantZeroes);var c={intPart:parus.parus8.consComparationData.intPart,
fracPart:this.skipUnsignificantZeroes?null:parus.parus8.consComparationData.fracPart};b.mixin(this.consItemsGrid.views.views[0].structure.cells[0][2],c);b.mixin(this.consItemsGrid.views.views[0].structure.cells[0][2]._props,c);b.mixin(this.consItemsGrid.structure[0].cells[0][1],c);b.mixin(this.consItemsGrid.structure[0].cells[0][1]._props,c);this.consItemsGridPopupMenu.bindDomNode(this.consItemsGrid.viewsNode);parus.balance._createActionsButton(this.consItemsGridPopupMenu,this.headerPane);a&&(parus.gridSettingsDialog.mergeGridSettings(this.consItemsGrid,
a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.consItemsGrid,a.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.consItemsGridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeFilterBar(this.consItemsGrid,a.showFilterBar,a.filterValues,a.sortInfo));this.consItemsGrid.attr("store",this.gridStore());this.consItemsGrid.setQuery({})},gridStore:function(){var a=[],c=[],e=[];b.forEach(parus.parus8.consComparationData.items,
function(f){f.INDEX&&(f.VALUE=parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("IndexConsValue",{REPORT:f.REPORT,SUBREPORT:f.SUBREPORT,INDEX:f.INDEX,TABLE:f.TABLE,ROWID:f.ROWID}))[0],"VALUE"),"1"==parus.parus8.consComparationData.dataType&&(f.VALUE=parus.parus8.formatIndexConsValue(f.VALUE||0,parus.parus8.consComparationData.intPart,parus.parus8.consComparationData.fracPart)),a.push(f.IDENTIFIER),c.push(parus.parus8.externalStringToValue(f.VALUE||0,parus.parus8.consComparationData.dataType)))});
b.forEach(parus.parus8.consComparationData.items,function(f){if(!f.INDEX)try{f.VALUE=Function.apply(this,a.concat("return ("+f.EXPRESSION+")")).apply(this,c),"1"==parus.parus8.consComparationData.dataType&&(f.VALUE=parus.parus8.formatIndexConsValue(f.VALUE||0,parus.parus8.consComparationData.intPart,parus.parus8.consComparationData.fracPart))}catch(g){e.push(g.toString()),f.VALUE=null}});e.length&&(e.unshift("\u041e\u0448\u0438\u0431\u043a\u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u043e\u0432:"),
setTimeout(function(){parus.parus8.errorMessage(e.join("\n"))},1E3));return new parus.gridData({persistent:!0,_data:parus.parus8.consComparationData.items})},clear:function(){(new parus.confirmationDialog({message:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u0430?",onApply:b.hitch(this,
function(){parus.parus8.consComparationData=null;parus.parus8.consComparationDataModified();this.close();return!0})})).show()},performIndexConsComparation:function(){this.applied=!0;this.close();parus.parus8.performIndexConsComparation()},deleteItem:function(){var a=this.consItemsGrid.selection.getSelectedCount();if(parus.parus8.consComparationData.items.length<=a)this.clear();else{var c=this.consItemsGrid.store,e=this.consItemsGrid.selection.getSelectedIndex();(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){for(var f=this.consItemsGrid.selection.getFirstSelected(),g=0;g<a;g++){var h=c.findIndex("ID",c.getValue(f,"ID"));parus.parus8.consComparationData.items.splice(h,1);f=this.consItemsGrid.selection.getNextSelected(f)}parus.parus8.consComparationDataModified();this.consItemsGrid.selection.deselectAll();this.consItemsGrid.attr("store",this.gridStore());this.consItemsGrid.setQuery({});this.consItemsGrid.selection.select(e-1);this.consItemsGrid.updateRow(e-1);this.consItemsGrid.scrollToRow(e-
1);return!0})})).show()}},addItem:function(){var a=new parus.balanceIndexConsComparationItem({onApply:b.hitch(this,function(){parus.parus8.consComparationData.items.push({ID:(new Date).valueOf(),TITLE:a.titleEdit.attr("value"),EXPRESSION:a.expressionEdit.attr("value"),INCLUDEDIFF:!0});parus.parus8.consComparationDataModified();var c=parus.parus8.consComparationData.items.length;this.consItemsGrid.attr("store",this.gridStore());this.consItemsGrid.setQuery({});this.consItemsGrid.selection.select(c-
1);this.consItemsGrid.updateRow(c-1);this.consItemsGrid.scrollToRow(c-1);return!0})});a.show()},editItem:function(){var a=this.consItemsGrid.store,c=this.consItemsGrid.selection.getSelectedIndex(),e=this.consItemsGrid.selection.getFirstSelected();if(e&&a.getValue(e,"EXPRESSION")){var f=new parus.balanceIndexConsComparationItem({onShow:function(){f.titleEdit.attr("value",a.getValue(e,"TITLE"));f.expressionEdit.attr("value",a.getValue(e,"EXPRESSION"))},onApply:b.hitch(this,function(){parus.parus8.consComparationData.items[c].TITLE=
f.titleEdit.attr("value");parus.parus8.consComparationData.items[c].EXPRESSION=f.expressionEdit.attr("value");parus.parus8.consComparationDataModified();this.consItemsGrid.selection.deselectAll();this.consItemsGrid.attr("store",this.gridStore());this.consItemsGrid.setQuery({});this.consItemsGrid.selection.select(c);this.consItemsGrid.updateRow(c);this.consItemsGrid.scrollToRow(c);return!0})});f.show()}},addFromTemplate:function(){var a=new parus.balanceIndexConsComparationTemplatesDialog({onApply:b.hitch(this,
function(){b.forEach(a.templatesGrid.selection.getSelected(),function(c){parus.parus8.addIndexConsComparationTemplate(c)});parus.parus8.consComparationDataModified();this.consItemsGrid.attr("store",this.gridStore());this.consItemsGrid.setQuery({});this.consItemsGrid.selection.select(0);this.consItemsGrid.updateRow(0);this.consItemsGrid.scrollToRow(0);return!0})});a.show()},saveAsTemplate:function(){var a=[];b.forEach(parus.parus8.consComparationData.items,function(e){var f={};f.INCLUDEDIFF=e.INCLUDEDIFF;
e.INDEX?(f.IDENTIFIER=e.IDENTIFIER,f.DATA=parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("IndexConsIDData",{REPORT:e.REPORT,SUBREPORT:e.SUBREPORT,INDEX:e.INDEX,TABLE:e.TABLE,ROWID:e.ROWID}))[0],"clobDATA")):(f.TITLE=e.TITLE,f.EXPRESSION=e.EXPRESSION);a.push(f)});var c=new parus.balanceIndexConsComparationTemplate({onApply:b.hitch(this,function(){parus.balanceIndexConsComparation.saveTemplate({name:c.nameEdit.attr("value"),dataType:parus.parus8.consComparationData.dataType,intPart:parus.parus8.consComparationData.intPart,
fracPart:parus.parus8.consComparationData.fracPart,result:parus.parus8.consComparationData.result,items:a});return!0})});c.show()},settingsAdditions:function(){return[{title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043d\u0435\u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0435 \u043d\u0443\u043b\u0438 \u0432 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0447\u0438\u0441\u043b\u0430",id:"skipUnsignificantZeroes",get:b.hitch(this,function(){return this.skipUnsignificantZeroes}),
set:b.hitch(this,function(a){this.skipUnsignificantZeroes=!!a;a={intPart:parus.parus8.consComparationData.intPart,fracPart:this.skipUnsignificantZeroes?null:parus.parus8.consComparationData.fracPart};for(var c=b.clone(this.consItemsGrid.structure),e=[],f=c[0].cells?c[0].cells[0]:c,g=0;g<f.length;g++)b.mixin(f[g],a),e.push(b.clone(f[g]));c[0]&&c[0].cells?c[0].cells[0]=e:c=e;this.consItemsGrid.setStructure(c)})}]}});b.mixin(parus.balanceIndexConsComparationItems,{formatIncludeCheck:function(a,c,e){return'\x3cdiv onclick\x3d"parus.balanceIndexConsComparationItems.toggleIncludeCheck(dijit.getEnclosingWidget(this).grid,'+
c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},toggleIncludeCheck:function(a,c){parus.parus8.consComparationData.items[c].INCLUDEDIFF=!parus.parus8.consComparationData.items[c].INCLUDEDIFF;a.getItem(c).INCLUDEDIFF=parus.parus8.consComparationData.items[c].INCLUDEDIFF;a.updateRow(c)}})})},"parus/balanceReportsFileExportDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportsFileExportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceReportsFileExportDialog",[parus.Dialog],{_lastValues:null,onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},saveFormLastValues:function(){this._lastValues.userProcEdit=this.userProcEdit.value;this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,
this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.userProcEdit.attr("value",this._lastValues.userProcEdit);this.userSize=this._lastValues.userSize||null}})})},"parus/balanceReportsExchangeImportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportsExchangeImportDialog");b.require("dojo.io.iframe");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");
b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.balanceReportsExchangeImportDialog",[parus.Dialog],{kind:null,_lastValues:null,_files:null,applyProgressLabel:"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430.",onLoad:function(){this._files=[this.fileData]},onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues();t.hideTooltip(this.fileData)},
validate:function(){var a=this.inherited(arguments);if(!this.fileData.disabled&&a)if(this.fileData.value)b.removeClass(this.fileData,"dijitError"),t.hideTooltip(this.fileData);else return t.showTooltip("\u042d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",this.fileData),b.addClass(this.fileData,"dijitError"),!1;else b.removeClass(this.fileData,"dijitError"),t.hideTooltip(this.fileData);var c=!1;b.forEach(this._files,
b.hitch(this,function(e){e.value||(c=!0)}));this.oneMoreFileButton.attr("disabled",c);return a},useJournalChanged:function(){this.useJournal.attr("checked")?(this.journalCatalog.attr("disabled",!1),this.showJournal.attr("disabled",!1),this.showJournalLabel.style.color="",this.fileData.disabled=!0,this.fileData.style.color="#808080",this.fileData.value=null,this.reportTypeEdit.attr("disabled",!0),this.reportTypeEdit.attr("value","0"),this.agentCode.attr("required",!1)):(this.journalCatalog.attr("disabled",
!0),this.journalCatalog.attr("value",null),this.showJournal.attr("disabled",!0),this.showJournal.attr("checked",!1),this.showJournalLabel.style.color="#808080",this.fileData.disabled=!1,this.fileData.style.color="",this.reportTypeEdit.attr("disabled",!1),this.agentCode.attr("required",!0))},exchangeKindChanged:function(){var a=parus.database.execute("BalanceReportExchangeKindInfo",{CODE:this.exchangeKind.value});a&&(a=parus.parus8.rowNodes(a)[0],"1"==parus.parus8.nodeField(a,"NWEB_SIGN")?(this.journalCatalog.attr("disabled",
!1),this.useJournal.attr("disabled",!0),this.useJournal.attr("checked",!0),this.useJournalLabel.style.color="#808080",this.showJournal.attr("disabled",!1),this.showJournalLabel.style.color="",this.fileData.disabled=!0,this.fileData.style.color="#808080",this.fileData.value=null,this.reportTypeEdit.attr("disabled",!0),this.reportTypeEdit.attr("value","0")):(this.journalCatalog.attr("disabled",!0),this.journalCatalog.attr("value",null),this.useJournal.attr("disabled",!1),this.useJournal.attr("checked",
!1),this.useJournalLabel.style.color="",this.showJournal.attr("disabled",!0),this.showJournal.attr("checked",!1),this.showJournalLabel.style.color="#808080",this.fileData.disabled=!1,this.fileData.style.color="",this.reportTypeEdit.attr("disabled",!1)),this.validate())},saveFormLastValues:function(){this._lastValues.useJournal=this.useJournal.checked;this._lastValues.exchangeKind=this.exchangeKind.value;this._lastValues.showJournal=this.showJournal.checked;this._lastValues.reportDate=this.reportDate.value?
b.date.locale.format(this.reportDate.value,{selector:"date",datePattern:"dd.MM.yyyy"}):"";this._lastValues.agentCode=this.agentCode.value;this._lastValues.reportTypeEdit=this.reportTypeEdit.value;this._lastValues.reportEdit=this.reportEdit.value;this._lastValues.canOverWrite=this.canOverWrite.attr("value");this._lastValues.recalcReports=this.recalcReports.checked;this._lastValues.journalCatalog=this.journalCatalog.value;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=
parus.userdata.get(this.declaredClass)||{};this.exchangeKind.attr("value",this._lastValues.exchangeKind);setTimeout(b.hitch(this,function(){this.useJournal.attr("checked",this._lastValues.useJournal);setTimeout(b.hitch(this,function(){this.showJournal.attr("checked",this._lastValues.showJournal);this.reportDate.attr("value",this._lastValues.reportDate?b.date.locale.parse(this._lastValues.reportDate,{datePattern:"dd.MM.yyyy",selector:"date"}):null);this.agentCode.attr("value",this._lastValues.agentCode);
this.reportTypeEdit.attr("value",this._lastValues.reportTypeEdit);this.reportEdit.attr("value",this._lastValues.reportEdit);this.canOverWrite.attr("value",this._lastValues.canOverWrite);this.recalcReports.attr("checked",this._lastValues.recalcReports);this.journalCatalog.attr("value",this._lastValues.journalCatalog)}),100)}),100)},fileDataChanged:function(){this.validate()},deleteFile:function(a,c){return b.hitch(this,function(){this._files[c].value=null;this.validate()})},oneMoreFile:function(){var a=
this.dataGroupBoxTable.insertRow(this.dataGroupBoxTableButtonRow.rowIndex),c=a.insertCell(-1);c.colSpan=2;c.innerHTML='\x3cinput size\x3d"32" style\x3d"font-weight:bold" onchange\x3d"dijit.getEnclosingWidget(this).dialogObject.fileDataChanged()" type\x3d"file" /\x3e';this._files.push(c.firstChild);c=a.insertCell(-1);c.align="right";c.width="70";new t.form.Button({label:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",onClick:this.deleteFile(a.rowIndex,this._files.length-1)},c.appendChild(document.createElement("span")));
a=b._getMarginSize(this.dialog.containerNode);a.h+=31;b.setMarginBox(this.dialog.containerNode,a.h);this.__sizeDialog.call(this.dialog);this.__positionDialog.call(this.dialog);this.validate();this.dataGroupBoxTable.rows[this.dataGroupBoxTable.rows.length-1].scrollIntoView(!0)}})})},"parus/designerTableModelIndexesDictionaryDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTableModelIndexesDictionaryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");
b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.require("parus.gridActions");b.require("parus.catalogActions");b.require("parus.dictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelIndexDialog");b.require("parus.designerTableModelsDictionaryDialog");b.declare("parus.designerTableModelIndexesDictionaryDialog",[parus.editableDictionaryDialog],{createMenu:function(){this.menu=
parus.designerTableModelsDictionaryDialog.prototype.createIndexPopupMenu(this,this.grid,!1,this.getTableModelRN);this.inherited(arguments);return this.menu},getTableModelRN:function(){return this.getGridCondition("PRN")}})})},"parus/designerReportLinkDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportLinkDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");
b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerReportDialog");b.declare("parus.designerReportLinkDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));a&&c&&this.reportEdit.attr("value",a.getValue(c,"LINKED_CODE"))},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceReportForm.Links.Insert",
{PRN:this.prn,LINKED_CODE:this.reportEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceReportForm.Links.Update",{RN:this.rn,LINKED_CODE:this.reportEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceReportForm.Links.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/balanceFolderDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceFolderDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.NumberTextBox");b.require("dijit.form.Select");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.groupBox");b.require("parus.balanceFolderQueryDialog");b.declare("parus.balanceFolderDialog",[parus.Dialog],{schema:null,folder:null,_boxes:null,query:null,name:null,note:null,customQuery:!1,processSchemaParam:function(a,c){var e=a.RN[0]["#text"],f=a.VISUALPARAMS[0]["#text"],g=a.DATATYPE[0]["#text"],h=a.ISSYSTEM[0]["#text"],
l=a.NAME[0]["#text"],m=[];a.VALUES&&b.forEach(a.VALUES[0].VALUE,function(F){m.push(F["#text"])});var p=a.UNITCODE?a.UNITCODE[0]["#text"]:null,r=a.SHOWMETHOD?a.SHOWMETHOD[0]["#text"]:null,w=a.PARAMETER_IN?a.PARAMETER_IN[0]["#text"]:null,x=a.PARAMETER_OUT?a.PARAMETER_OUT[0]["#text"]:null,A=p?[p,r,w,x].join("#"):null,B=a.EXTRADICT?a.EXTRADICT[0]["#text"]:null,D=a.INTPART?a.INTPART[0]["#text"]:null,I=a.FRACPART?a.FRACPART[0]["#text"]:null,u=a.DEFAULT?a.DEFAULT[0]:null,y=null,z=null,G=null,E=c._contentTable.insertRow(-1),
J=E.insertCell(-1);b.place("\x3cb\x3e"+l+":\x3c/b\x3e",J,"only");J=E.insertCell(-1);var K=new parus.conditionFolderSelect({intermediateChanges:!0,style:"width:100%",isSystem:"1"==h,rn:e,row:E,buildValue:function(){var F={RN:e};if("0"==K.value)return null;"1"==K.value||"2"==K.value?(m.length?F.VALUES=[{VALUE:y.attr("value")}]:F.VALUE="2"==g?Math.round((y.attr("value")-new Date(1899,11,30))/1E3/60/60/24):y.attr("value"),"2"==K.value&&(F.USENOT=1)):"3"==K.value||"4"==K.value?(m.length?F.VALUES=b.map(y.attr("value").split(";"),
function(L){return{VALUE:L}}):B||A?F.VALUE=y.attr("value"):"2"==g?(F.BEGVAL=Math.round((y.attr("value")-new Date(1899,11,30))/1E3/60/60/24),F.ENDVAL=Math.round((z.attr("value")-new Date(1899,11,30))/1E3/60/60/24)):(F.BEGVAL=y.attr("value"),F.ENDVAL=z.attr("value")),"4"==K.value&&(F.USENOT=1)):"6"==K.value?F.USENOT=1:"7"==K.value?(F.SHIFTDATE=Math.round((y.attr("value")-new Date(1899,11,30))/1E3/60/60/24),F.SHIFTPERIOD=z.attr("value"),F.SHIFTVALUE=G.attr("value")):"8"==K.value&&(F.SHIFTPERIOD=y.attr("value"),
F.SHIFTVALUE=z.attr("value"));return F},setFolderValue:function(F){if(F){var L=F.USENOT[0]["#text"],O=F.VALUE?F.VALUE[0]["#text"]:null,Q=F.BEGVAL?F.BEGVAL[0]["#text"]:null,M=F.ENDVAL?F.ENDVAL[0]["#text"]:null,P=[];F.VALUES&&b.forEach(F.VALUES[0].VALUE,function(V){P.push(V["#text"])});var T=F.SHIFTPERIOD?F.SHIFTPERIOD[0]["#text"]:null,U=F.SHIFTVALUE?F.SHIFTVALUE[0]["#text"]:null;F=F.SHIFTDATE?F.SHIFTDATE[0]["#text"]:null;if(m.length)F=0,F=0==P.length?5:1==P.length?1:3,"1"==L&&F++,K.attr("value",F),
setTimeout(function(){y.attr("value",P.join(";"))},100);else if(F&&"2"==g){var X=new Date(1899,11,30);X.setDate(X.getDate()+parseInt(F));K.attr("value",7);setTimeout(function(){y.attr("value",X);z.attr("value",T);G.attr("value",U)},100)}else T&&"2"==g?(K.attr("value",8),setTimeout(function(){y.attr("value",T);z.attr("value",U)},100)):O?("1"==L?K.attr("value",2):K.attr("value",1),setTimeout(function(){if("2"==g){var V=new Date(1899,11,30);V.setDate(V.getDate()+parseInt(O));y.attr("value",V)}else y.attr("value",
O)},100)):Q&&M?("1"==L?K.attr("value",4):K.attr("value",3),setTimeout(function(){if("2"==g){var V=new Date(1899,11,30);V.setDate(V.getDate()+parseInt(Q));y.attr("value",V);V=new Date(1899,11,30);V.setDate(V.getDate()+parseInt(M));z.attr("value",V)}else y.attr("value",Q),z.attr("value",M)},100)):"1"==L?K.attr("value",6):K.attr("value",5)}else if(F=K.options[0].value,F==K.attr("value"))K.onChange();else K.attr("value",F)},revert:b.hitch(this,function(){K.setFolderValue(u)}),onChange:b.hitch(this,function(){b.forEach([y,
z,G],function(Q){Q&&Q.destroyRecursive()});for(G=z=y=null;2<E.cells.length;)E.removeChild(E.cells[2]);if("8"==K.value){var F=E.insertCell(-1);F.colSpan=4;b.style(F,{paddingLeft:"5px",paddingRight:"5px"});y=new t.form.Select({intermediateChanges:!0,style:"width:100%",options:[{label:"\u0414\u0435\u043d\u044c",value:"0"},{label:"\u041d\u0435\u0434\u0435\u043b\u044f",value:"1"},{label:"\u0414\u0435\u043a\u0430\u0434\u0430",value:"2"},{label:"\u041c\u0435\u0441\u044f\u0446",value:"3"},{label:"\u0413\u043e\u0434",
value:"4"}]},b.place("\x3cselect\x3e\x3c/select\x3e",F,"only"));F=E.insertCell(-1);F.width="30px";b.style(F,{paddingLeft:"5px",paddingRight:"5px"});z=new t.form.NumberTextBox({intermediateChanges:!0,style:"width:100%",constraints:{min:-99,max:99,fractional:!1}},b.place("\x3cselect\x3e\x3c/select\x3e",F,"only"))}else if("7"==K.value)F=E.insertCell(-1),F.colSpan=2,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),y=new t.form.DateTextBox({style:"width:100%",required:!0,value:new Date},b.place("\x3cinput\x3e\x3c/input\x3e",
F,"only")),F=E.insertCell(-1),F.colSpan=2,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),z=new t.form.Select({intermediateChanges:!0,style:"width:100%",options:[{label:"\u0414\u0435\u043d\u044c",value:"0"},{label:"\u041d\u0435\u0434\u0435\u043b\u044f",value:"1"},{label:"\u0414\u0435\u043a\u0430\u0434\u0430",value:"2"},{label:"\u041c\u0435\u0441\u044f\u0446",value:"3"},{label:"\u0413\u043e\u0434",value:"4"}]},b.place("\x3cselect\x3e\x3c/select\x3e",F,"only")),F=E.insertCell(-1),F.width="30px",b.style(F,
{paddingLeft:"5px",paddingRight:"5px"}),G=new t.form.NumberTextBox({intermediateChanges:!0,style:"width:100%",constraints:{min:-99,max:99,fractional:!1}},b.place("\x3cselect\x3e\x3c/select\x3e",F,"only"));else if("3"==K.value||"4"==K.value)if(m.length)F=E.insertCell(-1),F.colSpan=5,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),y=new parus.dictEdit({style:"width:100%",required:!0,multiselect:!0,dictionary:"ConditionSchemesElementsParamsValues",onGetGridConditions:function(){return{RN:e}}},b.place("\x3cinput\x3e\x3c/input\x3e",
F,"only"));else if(B)F=E.insertCell(-1),F.colSpan=5,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),y=new parus.extraDictEdit({style:"width:100%",multiselect:!0,arbitrary:!0,extraDictionaryCode:B,multiselect:!0,required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"));else if(A)F=E.insertCell(-1),F.colSpan=5,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),y="BalanceReports#catalog#pos_ctlgname#ctlgname"==A?new parus.catalogDictEdit({unitCode:"BalanceReports",multiselect:!0,style:"width:100%",
required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")):"AGNLIST#agents#pos_agnmnemo#agnmnemo"==A?new parus.dictEdit({multiselect:!0,dictionary:"AGNLISTByAGNABBR",style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")):"BalanceReportForms#normal#pos_code#code"==A?new parus.dictEdit({multiselect:!0,dictionary:"BalanceReportForms",style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")):new parus.designerDictEdit({multiselect:!0,unitCode:p,methodCode:r,
inCode:w,outCode:x,style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"));else if(1==g){var L="";if(parseInt(D)){for(var O=0;O<D;O++)L+="#";if(parseInt(I))for(L+=".",O=0;O<I;O++)L+="#"}F=E.insertCell(-1);F.width="20px";F.align="right";b.style(F,{paddingLeft:"5px",paddingRight:"5px"});F.appendChild(document.createTextNode("c:"));F=E.insertCell(-1);b.style(F,{paddingLeft:"5px",paddingRight:"5px"});y=new t.form.NumberTextBox({constraints:{pattern:L},maxLength:L.length,style:"width:100%",
required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"));F=E.insertCell(-1);F.width="20px";F.align="right";b.style(F,{paddingLeft:"5px",paddingRight:"5px"});F.appendChild(document.createTextNode("\u043f\u043e:"));F=E.insertCell(-1);F.colSpan=2;b.style(F,{paddingLeft:"5px",paddingRight:"5px"});z=new t.form.NumberTextBox({constraints:{pattern:L},maxLength:L.length,style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"))}else 2==g?(F=E.insertCell(-1),F.width="20px",F.align=
"right",b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),F.appendChild(document.createTextNode("c:")),F=E.insertCell(-1),b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),y=new t.form.DateTextBox({style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")),F=E.insertCell(-1),F.width="20px",F.align="right",b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),F.appendChild(document.createTextNode("\u043f\u043e:")),F=E.insertCell(-1),F.colSpan=2,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),
z=new t.form.DateTextBox({style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"))):(F=E.insertCell(-1),F.width="20px",F.align="right",b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),F.appendChild(document.createTextNode("c:")),F=E.insertCell(-1),b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),y=new t.form.ValidationTextBox({style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")),F=E.insertCell(-1),F.width="20px",F.align="right",b.style(F,{paddingLeft:"5px",
paddingRight:"5px"}),F.appendChild(document.createTextNode("\u043f\u043e:")),F=E.insertCell(-1),F.colSpan=2,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),z=new t.form.ValidationTextBox({style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")));else if("1"==K.value||"2"==K.value)if(F=E.insertCell(-1),F.colSpan=5,b.style(F,{paddingLeft:"5px",paddingRight:"5px"}),m.length)y=new t.form.Select({intermediateChanges:!0,style:"width:100%",options:b.map(m,function(Q){return{value:Q,
label:Q}})},b.place("\x3cselect\x3e\x3c/select\x3e",F,"only"));else if(B)y=new parus.extraDictEdit({style:"width:100%",extraDictionaryCode:B,multiselect:!0,required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"));else if(A)y="BalanceReports#catalog#pos_ctlgname#ctlgname"==A?new parus.catalogDictEdit({multiselect:!0,unitCode:"BalanceReports",style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")):"AGNLIST#agents#pos_agnmnemo#agnmnemo"==A?new parus.dictEdit({multiselect:!0,
dictionary:"AGNLISTByAGNABBR",style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")):"BalanceReportForms#normal#pos_code#code"==A?new parus.dictEdit({multiselect:!0,dictionary:"BalanceReportForms",style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")):new parus.designerDictEdit({multiselect:!0,unitCode:p,methodCode:r,inCode:w,outCode:x,style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"));else if(1==g){L="";if(parseInt(D)){for(O=
0;O<D;O++)L+="#";if(parseInt(I))for(L+=".",O=0;O<I;O++)L+="#"}y=new t.form.NumberTextBox({constraints:{pattern:L},maxLength:L.length,style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"))}else y=2==g?new t.form.DateTextBox({style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only")):new t.form.ValidationTextBox({style:"width:100%",required:!0},b.place("\x3cinput\x3e\x3c/input\x3e",F,"only"));this.paramsContainer.layout()})},b.place("\x3cselect\x3e\x3c/select\x3e",
J,"only"));"1"!=f.substr(5,1)&&K.addOption({value:"0",label:"\u041d\u0435 \u0437\u0430\u0434\u0430\u043d\u043e"});"1"==f.substr(0,1)&&(K.addOption({value:"1",label:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u043e"}),"1"==f.substr(2,1)&&K.addOption({value:"2",label:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0440\u0430\u0432\u043d\u043e"}));"1"==f.substr(1,1)&&(K.addOption({value:"3",label:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435"}),
"1"==f.substr(2,1)&&K.addOption({value:"4",label:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u043d\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430"}));"1"==f.substr(3,1)&&(K.addOption({value:"5",label:"\u041f\u0443\u0441\u0442\u043e"}),"1"==f.substr(2,1)&&K.addOption({value:"6",label:"\u041d\u0435 \u043f\u0443\u0441\u0442\u043e"}));"2"==g&&0==m.length&&(K.addOption({value:"7",label:"\u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435"}),K.addOption({value:"8",label:"\u041e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435"}));
return K},postCreate:function(){this.inherited(arguments);this._boxes=[];b.forEach(this.schema.SCHEMA[0].ELEMENT,b.hitch(this,function(a){var c=parus.conditionFolderContentBox({region:"top",title:a.NAME[0]["#text"]},b.place('\x3cdiv\x3e\x3ctable width\x3d"100%"\x3e\x3c/table\x3e\x3c/div\x3e',this.paramsContainer.containerNode,"last"));c._contentTable=b.query("table",c.containerNode)[0];b.forEach(a.PARAMS[0].PARAM,b.hitch(this,function(e){c.params.push(this.processSchemaParam(e,c))}));c.startup();
this._boxes.push(c)}));new t.layout.ContentPane({region:"top",style:"height:8px;overflow-x:hidden;overflow-x:hidden"},b.place("\x3cdiv\x3e\x26#160;\x3c/div\x3e",this.paramsContainer.containerNode,"last"));this.folder?(b.forEach(this.folder.FOLDER[0].PARAM,b.hitch(this,function(a){var c=this._findParam(a.RN[0]["#text"]);c&&c.setFolderValue(a)})),this.nameEdit.attr("value",this.name),this.noteEdit.attr("value",this.note)):this.revertAll();this.showValues(!0,!1)},_findParam:function(a){var c=null;b.forEach(this._boxes,
function(e){b.forEach(e.params,function(f){f.rn==a&&(c=f)})});return c},showValues:function(a,c){b.forEach(this._boxes,function(e){var f=0;b.forEach(e.params,function(g){g.isSystem&&c||!g.isSystem&&a?(g.row.style.display="",f++):g.row.style.display="none"});e.domNode.style.display=f?"":"none"});this.paramsContainer.layout();b.forEach(this._boxes,function(e){e.resize()})},revertAll:function(){b.forEach(this._boxes,function(a){b.forEach(a.params,function(c){c.revert()})})},buildFolder:function(){var a=
{FOLDER:[]};b.forEach(this._boxes,function(c){b.forEach(c.params,function(e){e.buildValue()&&a.FOLDER.push({PARAM:e.buildValue()})})});return a},editQuery:function(){var a=new parus.balanceFolderQueryDialog({onShow:b.hitch(this,function(){a.noteEdit.attr("value",this.query)}),onApply:b.hitch(this,function(){this.query=a.noteEdit.attr("value");return this.customQuery=!0})});a.show()},apply:function(){var a=arguments,c=b.hitch(this,function(){this.inherited(a)});this.customQuery?(new parus.confirmationDialog({message:"\u0417\u0430\u043f\u0440\u043e\u0441 \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. \u041f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442\u0431\u043e\u0440\u0430?",
onApply:b.hitch(this,function(){this.customQuery=!1;return!0}),onClose:c})).show():c()}});b.declare("parus.conditionFolderSelect",t.form.Select,{isSystem:!1});b.declare("parus.conditionFolderContentBox",parus.groupBox,{params:null,_contentTable:null,postCreate:function(){this.inherited(arguments);this.params=[]}})})},"parus/designerTemplatesDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTemplatesDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");
b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.require("parus.templateDesignPane");b.require("parus.designerTemplateDialog");b.require("parus.designerTemplateRoleAndUserAssignDialog");b.declare("parus.designerTemplatesDialog",[parus.Dialog],{editionRN:null,_refreshGridTimeoutID:null,_selectedMaster:null,postCreate:function(){this.inherited(arguments);this.templatesGrid.attr("store",new parus.gridData({queryid:"BalanceReportFormsTemplates",onGetConditions:b.hitch(this,
function(c){c.parentRN=this.editionRN;return{PRN:this.editionRN}}),onComplete:b.hitch(this,function(c,e){0<e.length&&!this.templatesGrid.selection.getSelectedCount()&&(this.templatesGrid.selection.select(0),this.templatesGrid.updateRow(0),this.templatesGrid.autoSelected=!0);this.templatesGrid.onSelected()})}));this.templatesGrid.setQuery({});this.indexesGrid.attr("store",new parus.gridData({queryid:"BalanceReportFormsTemplatesIndexes",onGetConditions:b.hitch(this,function(c){var e=this.templatesGrid.store,
f=this.templatesGrid.selection.getSelectedIndex();f=0<=f?this.templatesGrid.getItem(f):null;c.parentRN=e.getValue(f,"RN");return{PRN:e.getValue(f,"RN")||parus.parus8.CLASS_EmptyData}}),onComplete:b.hitch(this,function(c,e){0<e.length&&!this.indexesGrid.selection.getSelectedCount()&&(this.indexesGrid.selection.select(0),this.indexesGrid.updateRow(0),this.indexesGrid.autoSelected=!0)})}));this.indexesGrid.setQuery({});this.tablesGrid.attr("store",new parus.gridData({queryid:"BalanceReportFormsTemplatesTables",
onGetConditions:b.hitch(this,function(c){var e=this.templatesGrid.store,f=this.templatesGrid.selection.getSelectedIndex();f=0<=f?this.templatesGrid.getItem(f):null;c.parentRN=e.getValue(f,"RN");return{PRN:e.getValue(f,"RN")||parus.parus8.CLASS_EmptyData}}),onComplete:b.hitch(this,function(c,e){0<e.length&&!this.tablesGrid.selection.getSelectedCount()&&(this.tablesGrid.selection.select(0),this.tablesGrid.updateRow(0),this.tablesGrid.autoSelected=!0)})}));this.tablesGrid.setQuery({});this.usersGrid.attr("store",
new parus.gridData({queryid:"BalanceReportFormsTemplatesUsers",onGetConditions:b.hitch(this,function(c){var e=this.templatesGrid.store,f=this.templatesGrid.selection.getSelectedIndex();f=0<=f?this.templatesGrid.getItem(f):null;c.parentRN=e.getValue(f,"RN");return{PRN:e.getValue(f,"RN")||parus.parus8.CLASS_EmptyData}}),onComplete:b.hitch(this,function(c,e){0<e.length&&!this.usersGrid.selection.getSelectedCount()&&(this.usersGrid.selection.select(0),this.usersGrid.updateRow(0),this.usersGrid.autoSelected=
!0)})}));this.usersGrid.setQuery({});this.historyGrid.attr("store",new parus.gridData({queryid:"BalanceReportFormsTemplatesHistory",onGetConditions:b.hitch(this,function(c){var e=this.templatesGrid.store,f=this.templatesGrid.selection.getSelectedIndex();f=0<=f?this.templatesGrid.getItem(f):null;c.parentRN=e.getValue(f,"RN");return{PRN:e.getValue(f,"RN")||parus.parus8.CLASS_EmptyData}}),onComplete:b.hitch(this,function(c,e){0<e.length&&!this.historyGrid.selection.getSelectedCount()&&(this.historyGrid.selection.select(0),
this.historyGrid.updateRow(0),this.historyGrid.autoSelected=!0)})}));this.historyGrid.setQuery({});parus.balance._createActionsButton(this.templatesPopupMenu,this.headerPane);this.templatesPopupMenu.bindDomNode(this.templatesGrid.viewsNode);var a=parus.userdata.get(this.declaredClass);a&&(parus.gridSettingsDialog.mergeMenuSettings(this.templatesPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.templatesGrid,a.gridSettings),
parus.gridSettingsDialog.mergeColorConditions(this.templatesGrid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.templatesGrid,a.showFilterBar,a.filterValues,a.sortInfo));if(a=parus.userdata.get(this.declaredClass+"-indexesGrid"))parus.gridSettingsDialog.mergeMenuSettings(this.indexesGridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.indexesGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.indexesGrid,
a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.indexesGrid,a.showFilterBar,a.filterValues,a.sortInfo);parus.balance._createActionsButton(this.indexesGridPopupMenu,this.indexesGridHeaderPane);this.indexesGridPopupMenu.bindDomNode(this.indexesGrid.viewsNode);if(a=parus.userdata.get(this.declaredClass+"-tablesGrid"))parus.gridSettingsDialog.mergeMenuSettings(this.tablesGridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.tablesGrid,
a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.tablesGrid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.tablesGrid,a.showFilterBar,a.filterValues,a.sortInfo);parus.balance._createActionsButton(this.tablesGridPopupMenu,this.tablesGridHeaderPane);this.tablesGridPopupMenu.bindDomNode(this.tablesGrid.viewsNode);if(a=parus.userdata.get(this.declaredClass+"-usersGrid"))parus.gridSettingsDialog.mergeMenuSettings(this.usersGridPopupMenu,a.actionSettings,a.userProcsActions,
a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.usersGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.usersGrid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.usersGrid,a.showFilterBar,a.filterValues,a.sortInfo);parus.balance._createActionsButton(this.usersGridPopupMenu,this.usersGridHeaderPane);this.usersGridPopupMenu.bindDomNode(this.usersGrid.viewsNode);if(a=parus.userdata.get(this.declaredClass+"-historyGrid"))parus.gridSettingsDialog.mergeMenuSettings(this.historyGridPopupMenu,
a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.historyGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.historyGrid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.historyGrid,a.showFilterBar,a.filterValues,a.sortInfo);parus.balance._createActionsButton(this.historyGridPopupMenu,this.historyGridHeaderPane);this.historyGridPopupMenu.bindDomNode(this.historyGrid.viewsNode)},gridChanged:function(){this._refreshGridTimeoutID&&
clearTimeout(this._refreshGridTimeoutID);this._refreshGridTimeoutID=setTimeout(b.hitch(this,function(){this._refreshGridTimeoutID&&clearTimeout(this._refreshGridTimeoutID);this._refreshGridTimeoutID=null;var a=this.templatesGrid,c=a.store,e=a.selection.getSelectedIndex();a=0<=e?a.getItem(e):null;c=c.getValue(a,"RN")||parus.parus8.CLASS_EmptyData;this._selectedMaster!=c&&(this._selectedMaster=c,parus.balance.refreshGrid(this.indexesGrid),parus.balance.refreshGrid(this.tablesGrid),parus.balance.refreshGrid(this.usersGrid),
parus.balance.refreshGrid(this.historyGrid))}),300)},createTemplate:function(a){parus.editableDictionaryDialog.prototype.insertAction(this,a,parus.designerTemplateDialog)},duplicateTemplate:function(a){parus.editableDictionaryDialog.prototype.duplicateAction(this,a,parus.designerTemplateDialog)},editTemplate:function(a){parus.editableDictionaryDialog.prototype.updateAction(this,a,parus.designerTemplateDialog)},deleteTemplate:function(a){parus.editableDictionaryDialog.prototype.deleteAction(this,a,
parus.designerTemplateDialog)},tableIndexes:function(a){var c=a.store;a=a.selection.getFirstSelected();var e=parus.dictionaries.DesignerTemplateTableIndexes;b.mixin(e,{dictionary:e,unitCode:e.unitCode,hideCancel:!0,gridConditions:{PRN:c.getValue(a,"RN")}});(new parus.dictionaryDialog(e)).show()},tableTotals:function(a){var c=a.store;a=a.selection.getFirstSelected();var e=parus.dictionaries.DesignerTemplateTableTotals;b.mixin(e,{dictionary:e,unitCode:e.unitCode,hideCancel:!0,gridConditions:{PRN:c.getValue(a,
"RN")}});(new parus.dictionaryDialog(e)).show()},deleteHistory:function(a){parus.gridActions.deleteSelected(a,function(c,e){parus.database.execute("deleteBalanceReportFormsTemplatesHistory",{RN:c.getValue(e,"RN")})})},rollbackHistory:function(a){1!=a.selection.getSelectedCount()?parus.parus8.errorMessage("\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0434\u043d\u0443 \u0437\u0430\u043f\u0438\u0441\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u0438."):(new parus.confirmationDialog({message:"\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u0430?",
onApply:function(){var c=a.store,e=a.selection.getFirstSelected();parus.database.execute("BalanceReportFormsTemplatesHistoryRollback",{RN:c.getValue(e,"RN")});a.selection.deselectAll();parus.balance.refreshGrid(a);return!0}})).show()},showEditor:function(a){a=!1;for(var c=this.templatesGrid.store,e=this.templatesGrid.selection.getFirstSelected(),f=0;f<this.templatesGrid.selection.getSelectedCount();f++){var g=c.getValue(e,"RN");if(!parus.balance.TabContainer||parus.parus8._embeddedMode){if(parus.parus8._themeEditorMode){alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
return}a=b.moduleUrl("parus","designerTemplate.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([g]);parus.parus8._embeddedMode?(c=[report,subreport,+new Date].join("_"),parus.embeddedMode.openTab(c,"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u0430",a)):window.open(a,"_blank");parus.parus8.registerAction();return}var h=new t.layout.BorderContainer({design:"headline",
gutters:!1,"class":"balanceTemplateContentPane",region:"center",style:"height:100%;width:100%;padding:0"}),l=parus.balance.describeReport(null,null,g,null,null,null,null,6),m=parus.balance._createHeadingPane(l);h.addChild(m);var p=new parus.templateDesignPane({region:"center",template:g,headingContentPane:m,onModified:function(){if(r.controlButton){var w=b.query("*",r.controlButton.containerNode);w.removeClass("balanceReadOnlyHeader");w.removeClass("balanceModifiedHeader");p.readonly?w.addClass("balanceReadOnlyHeader"):
p.modified&&w.addClass("balanceModifiedHeader")}parus.parus8._embeddedMode&&parus.embeddedMode.changeTabState(p.modified)},onTitleChanged:function(){if(p.title){var w=parus.balance.formatPageTitle(p.title);r.attr("title",w);parus.parus8._embeddedMode&&parus.embeddedMode.changeTabTitle(w)}}});h.addChild(p);var r=new t.layout.ContentPane({title:parus.balance.formatPageTitle(l),closable:!0,region:"center","class":"balanceTemplateContentPane",onClose:b.hitch(p,p.onClose)});p.parentPane=r;r.setContent(h);
parus.balance.TabContainer&&(parus.balance.TabContainer.addChild(r),a||(parus.balance.TabContainer.selectChild(r),a=!0));e=this.templatesGrid.selection.getNextSelected(e)}this.close()},insertUser:function(a){parus.editableDictionaryDialog.prototype.insertAction(this,a,parus.designerTemplateRoleAndUserAssignDialog)},duplicateUser:function(a){parus.editableDictionaryDialog.prototype.duplicateAction(this,a,parus.designerTemplateRoleAndUserAssignDialog)},editUser:function(a){parus.editableDictionaryDialog.prototype.updateAction(this,
a,parus.designerTemplateRoleAndUserAssignDialog)},deleteUser:function(a){parus.editableDictionaryDialog.prototype.deleteAction(this,a,parus.designerTemplateRoleAndUserAssignDialog)}});b.mixin(parus.designerTemplatesDialog,{formatUsage:function(a,c,e){return["\u0414\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f","\u0414\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430"][a]},formatDirection:function(a,c,e){return["\u0412\u043d\u0438\u0437",
"\u0412\u043f\u0440\u0430\u0432\u043e"][a]},formatTableColNumber:function(a,c,e){return"$"+parus.parus8.toLetters(a)},formatTableRowNumber:function(a,c,e){return"$"+a.toString()}})})},"parus/balancePreparedConsolidationDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balancePreparedConsolidationDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balancePreparedConsolidationDialog",
[parus.Dialog],{data:null,_attrDescriptors:null,postCreate:function(){this.inherited(arguments);this._attrDescriptors=parus.parus8._attrDescriptors?parus.parus8.rowNodes(parus.database.execute("attrDescriptors",{UNITCODE:"BalanceReportsConstition"}).documentElement.childNodes[0].childNodes[0].childNodes[0])||[]:[];var a=b.clone(this.grid.structure);b.forEach(this._attrDescriptors,b.hitch(this,function(e){a[0].cells[0].push({colSpan:1,attrRN:parus.parus8.nodeField(e,"RN"),dataType:parus.parus8.nodeField(e,
"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(e,"RN"),name:parus.parus8.nodeField(e,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(e,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(e,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(e,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(e,"PARAMCOUNT")?parus.parus8.nodeField(e,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(e,"STOREDPROC")+"(T.RN)"})}));
this.grid.attr("structure",a);this.grid.rowsPerPage=this.data.length+25;this.grid.attr("store",new parus.gridData({persistent:!0,_data:this.data,onComplete:b.hitch(this,function(){this.grid.selection.selectRange(0,this.data.length-1)})}));this.grid.setQuery({});this.popupMenu.bindDomNode(this.grid.viewsNode);parus.balance._createActionsButton(this.popupMenu,this.headerPane);var c=parus.userdata.get(this.declaredClass);c&&(parus.gridSettingsDialog.mergeGridSettings(this.grid,c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.grid,
c.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.popupMenu,c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions),parus.gridSettingsDialog.mergeFilterBar(this.grid,c.showFilterBar,c.filterValues,c.sortInfo))}})})},"parus/balanceUserProcsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceUserProcsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceUserProcsDialog",
[parus.Dialog],{unitcode:null,queryid:"userProcs",postCreate:function(){var a=this.title||b.query("[dojoType\x3d'dijit.Dialog']",this.domNode)[0].getAttribute("title");b.query("TH",this.domNode).forEach(function(c){c.innerHTML=a});this.inherited(arguments);this.userProcsGrid.attr("store",new parus.gridData({queryid:this.queryid,onGetConditions:b.hitch(this,function(c){return{UNITCODE:this.unitcode}})}));this.userProcsGrid.setQuery({})}})})},"parus/designerReportCheckListDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.designerReportCheckListDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerCheckListDialog");b.require("parus.designerCheckDialog");b.require("parus.designerReportPeriodDialog");
b.require("parus.designerReportPeriodDateDialog");b.declare("parus.designerReportCheckListDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));a&&c&&(this.checkListEdit.attr("value",a.getValue(c,"CODE")),this.periodEdit.attr("value",a.getValue(c,"PERIOD")),this.mainCheckBox.attr("checked","1"==a.getValue(c,"MAIN")))},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceReportForm.CheckList.Insert",
{PRN:this.prn,CHECKLIST:this.checkListEdit.attr("value"),PERIOD:this.periodEdit.attr("value"),MAIN:this.mainCheckBox.attr("checked")?"1":"0"}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceReportForm.CheckList.Update",{RN:this.rn,CHECKLIST:this.checkListEdit.attr("value"),PERIOD:this.periodEdit.attr("value"),MAIN:this.mainCheckBox.attr("checked")?"1":"0"})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceReportForm.CheckList.Delete",
{RN:a.getValue(c,"RN")})}})})},"parus/catalogTreeModel":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.catalogTreeModel");b.require("dijit.tree.TreeStoreModel");b.require("parus.parus8");b.require("parus.database");b.declare("parus.treeModel",null,{constructor:function(a){a&&b.mixin(this,a)},isItem:function(a){return!0},fetchItemByIdentity:function(a){parus.parus8.unimplemented(this,"fetchItemByIdentity",arguments)},newItem:function(a,c,e){parus.parus8.unimplemented(this,
"newItem",arguments)},pasteItem:function(a,c,e,f){parus.parus8.unimplemented(this,"pasteItem",arguments)},onChange:function(a){},onChildrenChange:function(a,c){},hasAction:function(a,c){return c?!1:!0},checkAccess:function(){return!1},isValid:function(a){return!0},refresh:function(){},getIdentity:function(a){return null},getItem:function(a){return null}});b.declare("parus.catalogTreeModel",[parus.treeModel],{queryid:null,identityFieldName:"ID",labelFieldName:"NAME",parentLinkFieldName:"PARENT",hasChildrenFieldName:"HASCHILDREN",
onGetConditions:function(a,c){},_rootNodes:null,_childrenSet:null,_hasChildren:null,_allFetched:!1,getConditions:function(a){return this.onGetConditions(this,a)},getIdentity:function(a){return parus.parus8.nodeField(a,this.identityFieldName)||null},getLabel:function(a){return parus.parus8.nodeField(a,this.labelFieldName)},getParentLink:function(a){return parus.parus8.nodeField(a,this.parentLinkFieldName)},getValue:function(a,c,e){return parus.parus8.nodeField(a,c)||e||null},destroy:function(){this._hasChildren=
this._childrenSet=this._rootNodes=null;this._allFetched=!1},getRoot:function(a){a&&(this._rootNodes?b.forEach(this._rootNodes,a):parus.database.query(this.queryid,this.getConditions(null),b.hitch(this,function(c){this._rootNodes=parus.parus8.rowNodes(c);b.forEach(this._rootNodes,a)})))},mayHaveChildren:function(a){this._hasChildren||(this._hasChildren=[]);var c=this.getIdentity(a);if(0<=b.indexOf(this._hasChildren,c))return!0;(a="1"==parus.parus8.nodeField(a,this.hasChildrenFieldName).toString())&&
this._hasChildren.push(c);return a},getChildren:function(a,c){if(c)if(this.mayHaveChildren(a)){var e;this._childrenSet?e=this._childrenSet[this.getIdentity(a)]:this._childrenSet={};if(e)c(e);else return parus.database.query(this.queryid,this.getConditions(a),b.hitch(this,function(f){e=parus.parus8.rowNodes(f);this._childrenSet[this.getIdentity(a)]=e;c(e)}))}else c([])},refresh:function(){this._hasChildren=this._childrenSet=this._rootNodes=null;this._allFetched=!1},newItemCreated:function(a,c){this._hasChildren||
(this._hasChildren=[]);this._childrenSet||(this._childrenSet={});var e=this.getIdentity(a);this._hasChildren.push(e);this._childrenSet[e]=null;this.getChildren(a,function(){c&&c()})},isValid:function(a){return"1"==parus.parus8.nodeField(a,"ISVALID")},checkAccess:function(){return this._rootNodes?"1"==parus.parus8.nodeField(this._rootNodes[0],"CHECKACCESS"):!1},hasAction:function(a,c){if(!c)return!0;if(!a)return!1;if(9>=b.isIE)return a.selectSingleNode("XMLFUNCTIONS/ROWSET/ROW[FUNC\x3d'"+c+"']")?!0:
!1;if(a.children)for(var e=a.children,f=0,g=e.length;f<g;f++){if("XMLFUNCTIONS"==e[f].nodeName&&e[f].firstChild)for(var h=0,l=e[f].firstChild.children.length;h<l;h++)if("ROW"==e[f].firstChild.children[h].nodeName)for(var m=0,p=e[f].firstChild.children[h].children.length;m<p;m++)if(e[f].firstChild.children[h].children[m].firstChild.nodeValue==c)return!0}else for(e=a.firstElementChild;e;){if("XMLFUNCTIONS"==e.nodeName)for(f=e.firstElementChild?e.firstElementChild.firstElementChild:null;f;){for(g=f.firstElementChild;g;){if(g.firstChild.nodeValue==
c)return!0;g=g.nextElementSibling}f=f.nextElementSibling}e=e.nextElementSibling}return!1},fetchAll:function(a){var c=null;if(!this._allFetched){c=this.getConditions(null);c.CRN=null;c=parus.database.query(this.queryid,c);var e=parus.parus8.rowNodes(c);this._childrenSet={};b.forEach(e,b.hitch(this,function(f){var g=this.getParentLink(f);this._childrenSet[g]||(this._childrenSet[g]=[]);this._childrenSet[g].push(f)}));this._allFetched=!0}a&&a(this,c)},getItem:function(a){var c=null;this._rootNodes&&b.forEach(this._rootNodes,
b.hitch(this,function(f){c||this.getIdentity(f)!=a||(c=f)}));if(!c&&this._childrenSet)for(var e in this._childrenSet)c||b.forEach(this._childrenSet[e],b.hitch(this,function(f){c||this.getIdentity(f)!=a||(c=f)}));!c&&(e={},e[this.identityFieldName]=a,response=parus.database.query(this.queryid,e))&&(e=parus.parus8.rowNodes(response),e.length&&(c=e[0]));return c}});b.declare("parus.emptyTreeModel",[parus.treeModel],{destroy:function(){},getRoot:function(a){},mayHaveChildren:function(a){return!1},getChildren:function(a,
c){},getIdentity:function(a){},getLabel:function(a){}});b.mixin(parus.parus8,{emptyTreeModel:function(){return new parus.emptyTreeModel}})})},"parus/editDictionaryDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.editDictionaryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictionaryDialog");b.declare("parus.editDictionaryDialog",
[parus.Dialog],{parentDialog:null,store:null,item:null,rn:null,prn:null,crn:null,editMode:!1,titlePostfix:null,postCreate:function(){this.inherited(arguments);this.titlePostfix&&(this.dialog.titleNode.innerHTML+=" "+this.titlePostfix);this.onLoadParams(this.store,this.item,this.editMode)},onLoadParams:function(a,c,e){a&&(c?(this.rn=a.getValue(c,"RN"),this.prn=a.getValue(c,"PRN"),this.crn=a.getValue(c,"CRN")):(a.parentRN&&(this.prn=a.parentRN),a.catalogRN&&(this.crn=a.catalogRN)))},getParentDialogCondition:function(a){if(this.parentDialog&&
this.parentDialog.gridConditions&&this.parentDialog.gridConditions.hasOwnProperty(a))return this.parentDialog.gridConditions[a]},getParentDialogMasterGridItem:function(a){if(this.parentDialog&&this.parentDialog.grid){var c=this.parentDialog.grid,e=c.store;c=c.selection.getFirstSelected();return e.getValue(c,a)}},getParentDialogDetailGridItem:function(a){if(this.parentDialog&&this.parentDialog.detailGrid){var c=this.parentDialog.detailGrid,e=c.store;c=c.selection.getFirstSelected();return e.getValue(c,
a)}},executeInsert:function(a){},executeUpdate:function(){},executeDelete:function(a,c){}})})},"parus/balanceTemplatesDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceTemplatesDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceTemplatesDialog",[parus.Dialog],{templates:null,postCreate:function(){this.inherited(arguments);this.templatesGrid.attr("store",new parus.gridData({persistent:!0,
_data:this.templates}));this.templatesGrid.setQuery({})}})})},"parus/customEdit":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.customEdit");b.require("dijit.form.DateTextBox");b.require("dijit.form.NumberTextBox");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.TimeTextBox");b.require("dijit.form.CheckBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.designerEdit");parus||(parus={});b.mixin(parus,{_docPropsValueForGrid:function(a,
c,e){return a&&"1"==c?b.number.format(b.number.parse(a.toString().split(".").join(","))):a},_docPropsValueValueForWidget:function(a,c,e,f){b.mixin(a,{_docPropsDataType:e,_docPropsDataSubType:f});"0"==e?a.attr("value",c||null):"1"==e?a.attr("value",c?b.number.parse(c.toString().split(".").join(",")):c):"2"==e?(e=c?b.date.locale.parse(c.toString().slice(0,10),{selector:"date",datePattern:"dd.MM.yyyy"}):null,a.attr("value",e),"1"==f?(a.subWidget||b.mixin(a,{subWidget:new t.form.TimeTextBox({constraints:{formatLength:"short"},
disabled:a.disabled,style:"width:80px"},a.domNode.parentNode.appendChild(document.createElement("div")))}),c?a.subWidget.attr("value",b.date.stamp.fromISOString("T"+c.toString().slice(11),new Date)):a.subWidget.attr("value",null)):"2"==f&&(a.subWidget||b.mixin(a,{subWidget:new t.form.TimeTextBox({constraints:{timePattern:"HH:mm:ss"},disabled:a.disabled,style:"width:80px"},a.domNode.parentNode.appendChild(document.createElement("div")))}),c?a.subWidget.attr("value",b.date.stamp.fromISOString("T"+c.toString().slice(11),
new Date)):a.subWidget.attr("value",null))):"4"==e&&(c?a.attr("value",b.date.stamp.fromISOString("T"+c.toString(),new Date)):a.attr("value",null))},_docPropsValueValueFromWidget:function(a){var c=a._docPropsDataType,e=a._docPropsDataSubType;if("0"==c)return a.attr("value")||a.value||"";if("1"==c)return c=a.attr("value"),void 0===c||isNaN(c)?"":b.number.parse(c.toString().split(".").join(","));if("2"==c){c=a.attr("value");if(!c||a._isInvalidDate(c))return"";if("0"==e)return b.date.locale.format(c,
{selector:"date",datePattern:"dd.MM.yyyy"});if("1"==e){if((e=a.subWidget.attr("value"))&&!a.subWidget._isInvalidDate(e)){for(e=b.date.locale.format(e,{selector:"time",formatLength:"short"});5>e.length;)e="0"+e;e=" "+e}else e="";return b.date.locale.format(c,{selector:"date",datePattern:"dd.MM.yyyy"})+e}if("2"==e){if((e=a.subWidget.attr("value"))&&!a.subWidget._isInvalidDate(e)){for(e=b.date.locale.format(e,{selector:"time",timePattern:"HH:mm:ss"});8>e.length;)e="0"+e;e=" "+e}else e="";return b.date.locale.format(c,
{selector:"date",datePattern:"dd.MM.yyyy"})+e}}else if("4"==c){c=a.attr("value");if(!c||a._isInvalidDate(c))return"";if("0"==e){for(c=b.date.locale.format(c,{selector:"time",formatLength:"short"});5>c.length;)c="0"+c;return c}if("1"==e){for(c=b.date.locale.format(c,{selector:"time",timePattern:"HH:mm:ss"});8>c.length;)c="0"+c;return c}}},customEditProperties:function(a,c,e,f,g,h,l){f={constructor:function(){return a?"BalanceReports#catalog#pos_ctlgname#ctlgname"==a||"AGNLIST#agents#pos_agnmnemo#agnmnemo"==
a||"BalanceReportForms#normal#pos_code#code"==a?parus.dictEdit:-1!=a.indexOf("#")?parus.designerDictEdit:parus.extraDictEdit:"0"==c&&255<g?parus.parus8.validationTextArea:"1"==c?t.form.NumberTextBox:"2"==c?t.form.DateTextBox:"3"==c?t.form.CheckBox:"4"==c?t.form.TimeTextBox:"5"==c?parus.parus8.blobEditor:"6"==c?parus.parus8.clobEditor:t.form.ValidationTextBox},params:{required:f}};if(a)"BalanceReports#catalog#pos_ctlgname#ctlgname"==a?b.mixin(f.params,{onDictButtonClick:function(){var p=this,r=[];
if(p.value){var w=parus.database.query("CatalogsPath",{UNITCODE:"BalanceReports",NAME:p.value});b.forEach(parus.parus8.rowNodes(w),function(x){r.push(parus.parus8.nodeField(x,"RN"))})}(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),key:"BalanceReports",onDefaultNeeded:function(){var x=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return x?parus.parus8.nodeField(parus.parus8.rowNodes(x)[0],"PATH"):null},value:r.length?r.join(";"):null,onPerform:function(x,
A){p.attr("value",A);return!0}})).show();return!0},style:"width:100%"}):"AGNLIST#agents#pos_agnmnemo#agnmnemo"==a?b.mixin(f.params,{dictionary:"AGNLISTByAGNABBR",style:"width:100%"}):"BalanceReportForms#normal#pos_code#code"==a?b.mixin(f.params,{dictionary:"BalanceReportForms",style:"width:100%"}):-1!=a.indexOf("#")?(h=a.split("#"),b.mixin(f.params,{unitCode:h[0],methodCode:h[1],inCode:h[2],outCode:h[3],style:"width:100%"})):b.mixin(f.params,{extraDictionaryCode:a,style:"width:100%"});else if("0"==
c&&255<g)b.mixin(f.params,{rows:5,intermediateChanges:!0});else if("1"==c){if(parseInt(h)){e="";for(var m=0;m<h;m++)e+="#";if(parseInt(l))for(e+=".",m=0;m<l;m++)e+="#";b.mixin(f.params,{constraints:{pattern:e},maxLength:e.length})}}else"2"==c?b.mixin(f.params,{constraints:{selector:"date",datePattern:"dd.MM.yyyy"},style:"width:100px"}):"3"!=c&&("4"==c?"1"==e?b.mixin(f.params,{constraints:{timePattern:"HH:mm:ss"},style:"width:80px"}):b.mixin(f.params,{constraints:{formatLength:"short"},style:"width:80px"}):
b.mixin(f.params,{maxLength:g||255,style:"width:100%"}));return f}});b.declare("parus.parus8.blobEditor",[t._Widget,t._Templated],{templateString:'\x3cinput onchange\x3d"dijit.byNode(this).onChange()"  type\x3d"file"/\x3e',type:"blob",onChange:function(){}});b.declare("parus.parus8.clobEditor",[parus.parus8.blobEditor],{type:"clob"});b.declare("parus.parus8.validationTextArea",[t.form.SimpleTextarea],{required:!1,validate:function(){if(!this.required)return b.removeClass(this.domNode,"dijitError"),
!0;var a=!!this.attr("value");a?b.removeClass(this.domNode,"dijitError"):b.addClass(this.domNode,"dijitError");return a},_refreshState:function(){this.inherited(arguments);this.validate()}})})},"parus/embeddedContent":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.embeddedContent");b.require("dojo.window");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.TabContainer");b.require("dijit.layout.ContentPane");
b.require("dijit.Menu");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.dictEdit");b.require("parus.xml");parus||(parus={});parus.embeddedContent||b.mixin(parus,{embeddedContent:{}});b.mixin(parus.embeddedContent,{startup:function(){var a=mill.session.values.params;a=parus.parus8.hexDecodeParams(a);var c=a[0],e=a[1],f=a[2],g=a[3]||"";a=c?mill.session.values[c]:"";var h=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane"+
("0"==f?" balanceModifiedHeader":""),style:"height:100%;width:100%;padding:0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"},b.place("\x3cdiv\x3e\x3c/div\x3e",b.body(),"last"));e=parus.balance._createHeadingPane(e);h.addChild(e);var l=new t.layout.ContentPane({region:"center",content:a,href:g,"class":"balanceTemplateContentPaneContent",onLoad:function(){b.fadeIn({node:l.domNode}).play()},onShow:function(){loadingDiv.style.display="none";b.fadeIn({node:h.domNode,duration:300}).play();
"0"==f&&parus.embeddedMode.changeTabState(!0);g||b.fadeIn({node:l.domNode}).play();c&&mill.session.setValue(c,"",!0)}});h.addChild(l);h.startup()}})})},"parus/balanceIndexConsPrint":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsPrint");b.require("parus.parus8");b.require("parus.database");b.require("parus.balanceIndexConsDialog");b.mixin(parus,{balanceIndexConsPrint:{print:function(){var a,c,e,f;b.xhrGet({url:"../.system/session.xml",handleAs:"xml",sync:!0,
preventCache:!0,load:function(h){b.isIE||h.normalize();for(var l=h.documentElement.getElementsByTagName("*"),m=0;m!=l.length;m++)"querydata"==l[m].nodeName?a=l[m].childNodes.item(0).nodeValue:"handler"==l[m].nodeName?c=l[m].childNodes.item(0).nodeValue:"skipzero"==l[m].nodeName?e="1"==l[m].childNodes.item(0).nodeValue:"hiddencols"==l[m].nodeName?f=l[m].childNodes.item(0).nodeValue:"htmldata"==l[m].nodeName&&(g=l[m].childNodes.item(0).nodeValue);return h}});if(a){parus.database.connected=c;var g=parus.balanceIndexConsDialog.printRender(b.fromJson(a),
e,f)}g&&document.body.insertAdjacentHTML("afterBegin",g)}}})})},"parus/designerReportTableIndexDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportTableIndexDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");
b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelIndexDialog");b.require("parus.designerReportIndexDialog");b.require("parus.designerReportTableNotIncludedIndexesDictionaryDialog");b.declare("parus.designerReportTableIndexDialog",[parus.designerReportIndexDialog],{getIndexCondition:function(){return{PRN:this.prn}},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceTables.Indexes.Insert",{PRN:this.prn,BALANCEINDEX:this.indexEdit.attr("value"),DICTIONARY:this.dictionaryEdit.attr("value"),
PRIORITY:this.priorityEdit.attr("value"),AGR_FUNC:this.agrFuncSelect.attr("value"),NULLABLE:this.nullableCheckBox.attr("checked")?"1":"0",DICT_CHECK:this.dictCheckCheckBox.attr("checked")?"1":"0",DICT_VAL_NOTE:this.dictValNoteCheckBox.attr("checked")?"1":"0"}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTables.Indexes.Update",{RN:this.rn,BALANCEINDEX:this.indexEdit.attr("value"),DICTIONARY:this.dictionaryEdit.attr("value"),
PRIORITY:this.priorityEdit.attr("value"),AGR_FUNC:this.agrFuncSelect.attr("value"),NULLABLE:this.nullableCheckBox.attr("checked")?"1":"0",DICT_CHECK:this.dictCheckCheckBox.attr("checked")?"1":"0",DICT_VAL_NOTE:this.dictValNoteCheckBox.attr("checked")?"1":"0"})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceTables.Indexes.Delete",{RN:a.getValue(c,"RN")})},executeInsertList:function(a,c){return parus.database.execute("designer.BalanceTables.Indexes.InsertList",{PRN:a,RN:c})},
executeChangePriority:function(a,c){return!!parus.database.execute("designer.BalanceTables.Indexes.ChangePriority",{PRN:a,PRIORITY:c})}})})},"parus/dictEdit":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.dictEdit");b.require("dijit.form.ComboBox");b.require("dijit.form._FormWidgetMixin");b.require("parus.parus8");b.require("parus.dictionaryDialog");b.require("parus.balanceExtraDictionaryConditionsDialog");b.declare("parus.checkEdit",[t.form.ComboBox],{postCreate:function(){this.inherited(arguments);
b.query(".dijitArrowButtonInner",this.domNode).addClass("checkButton")},_onDropDownMouseDown:function(){this.disabled||this.dictButtonClick();return this.inherited(arguments)},dictButtonClick:function(){}});b.declare("parus.dictEdit",[parus.checkEdit],{dictionary:null,multiselect:!1,intermediateChanges:!0,unitCode:null,menu:null,catalogMenu:null,detailMenu:null,autoComplete:!1,dialogClass:parus.dictionaryDialog,onGetGridConditions:function(){},onGetMenu:function(){},onGetDetailMenu:function(){},onGetCatalogMenu:function(){},
onMixInDictionary:function(c){},showingDictionary:!1,onApplyDictionary:function(c){},dictButtonClick:function(){if(!this.onDictButtonClick()&&this.dictionary&&!this.showingDictionary){var c=parus.dictionaries[this.dictionary];b.mixin(c,{multiselect:this.multiselect,label:this.value,dictionary:c,unitCode:this.unitCode||c.unitCode,gridConditions:this.onGetGridConditions(),menu:this.menu?this.menu:this.onGetMenu(),detailMenu:this.detailMenu?this.detailMenu:this.onGetDetailMenu(),catalogMenu:this.catalogMenu?
this.catalogMenu:this.onGetCatalogMenu(),onApply:b.hitch(this,function(e){this.setValue(e.getLabel());this.onApplyDictionary(e);return!0}),onClose:b.hitch(this,function(e){this.showingDictionary=!1;t.focus(this.focusNode)})});this.onMixInDictionary(c);this.showingDictionary=!0;t.hideTooltip(this.domNode);setTimeout(b.hitch(this,function(){(new this.dialogClass(c)).show()}),100)}},_checkMenu:function(c,e,f){if(!e&&f)return e=f()},onDictButtonClick:function(){},postCreate:function(){this.inherited(arguments);
var c=b.query(".dijitArrowButtonInner",this.domNode);c.removeClass("checkButton");c.addClass("dictButton");b.query(".dijitArrowButtonChar",this.domNode).forEach(function(e){for(;0<e.childNodes.length;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(String.fromCharCode(8230)))})},_startSearch:function(c){this.showingDictionary||this.autoComplete&&c&&this.store&&this.inherited(arguments)},_itemCount:null,postMixInProperties:function(){this.autoComplete&&this.dictionary&&(this.store=
parus.dictionaries._getStore(this.dictionary));this.inherited(arguments);this.autoComplete&&this.dictionary&&(this.searchAttr=parus.dictionaries[this.dictionary].labelField,this.conditions={},this.store.fetch({start:0,query:this.onGetGridConditions()||{},queryOptions:{ignoreCase:!0,deep:!0},onBegin:b.hitch(this,function(c){this._itemCount=c;null!=parus.dictionaries._autoCompleteLimit&&this._itemCount>=parus.dictionaries._autoCompleteLimit&&(this.autoComplete=!1,this.searchAttr="")})}))}});b.declare("parus.editableDictEdit",
[parus.dictEdit],{editDialogClass:null,editDetailDialogClass:null,allowEditCatalog:null,allowMoveCatalog:null,moveCatalogQueryID:null,postMixInProperties:function(){this.inherited(arguments);this.dialogClass&&this.dialogClass!=parus.dictionaryDialog||(this.dialogClass=parus.editableDictionaryDialog)},onMixInDictionary:function(c){b.mixin(c,{editDialogClass:this.editDialogClass,editDetailDialogClass:this.editDetailDialogClass});null!=this.allowEditCatalog&&(c.allowEditCatalog=this.allowEditCatalog);
null!=this.allowMoveCatalog&&(c.allowMoveCatalog=this.allowMoveCatalog);null!=this.moveCatalogQueryID&&(c.moveCatalogQueryID=this.moveCatalogQueryID)}});parus||(parus={});parus.dictionaries||b.mixin(parus,{dictionaries:{}});b.mixin(parus.dictionaries,{BalanceReportForms:{title:"\u0424\u043e\u0440\u043c\u044b \u043e\u0442\u0447\u0435\u0442\u043e\u0432",catalogsQueryID:"catalogsQuery",labelField:"CODE",keyField:"RN",pathQueryID:"BalanceReportFormsPath",queryID:"BalanceReportForms",catalogLinkFieldName:"CRN",
unitCode:"BalanceReportForms",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"121px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},AGNLISTByAGNABBR:{title:"\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u044b",catalogsQueryID:"catalogsQuery",labelField:"AGNABBR",keyField:"RN",pathQueryID:"AGNLISTByAGNABBRPath",queryID:"AGNLIST",catalogLinkFieldName:"CRN",unitCode:"AGNLIST",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",
field:"AGNABBR",width:"121px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"AGNNAME",width:"200px"},{name:"\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043d\u0430\u043b\u043e\u0433\u043e\u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0430",field:"AGNIDNUMB",width:"200px"},{name:"\u0413\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f",
field:"HEAD_ORG_NAME",width:"200px"}]},AGNLISTByAGNNAME:{title:"\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u044b",catalogsQueryID:"catalogsQuery",labelField:"AGNNAME",keyField:"RN",pathQueryID:"AGNLISTByAGNNAMEPath",queryID:"AGNLIST",catalogLinkFieldName:"CRN",unitCode:"AGNLIST",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"AGNABBR",width:"121px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"AGNNAME",width:"200px"},
{name:"\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043d\u0430\u043b\u043e\u0433\u043e\u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0430",field:"AGNIDNUMB",width:"200px"},{name:"\u0413\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f",field:"HEAD_ORG_NAME",width:"200px"}]},BalanceReportDates:{title:"\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432",
labelField:"BDATE",queryID:"BalanceReportViewPeriodsDates",unitCode:"BalanceReportViewPeriodsDates",columns:[{name:"\u0414\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f",field:"BDATE",dataType:"2",sortField:"T.BDATE",width:"200px"}]},BalanceReportFormsSections:{title:"\u0420\u0430\u0437\u0440\u0435\u0437\u044b \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438",catalogsQueryID:"BalanceReportFormsSectionsHier",labelField:"CODE",keyField:"RN",
pathQueryID:"BalanceReportFormsSectionsHierPath",queryID:"BalanceReportFormsSections",catalogLinkFieldName:"CRN",unitCode:"BalanceReportFormsSections",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"121px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},BalanceCalcTypesOfReport:{title:"\u0422\u0438\u043f\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0442\u0447\u0435\u0442\u043e\u0432",
labelField:"CODE",queryID:"BalanceCalcTypesOfReport",unitCode:"BalanceCalcType",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},BalanceCalcType:{title:"\u0422\u0438\u043f\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0442\u0447\u0435\u0442\u043e\u0432",catalogsQueryID:"catalogsQuery",labelField:"CODE",keyField:"RN",
catalogLinkFieldName:"CRN",queryID:"BalanceReportRecalcTypes",unitCode:"BalanceCalcType",pathQueryID:"BalanceReportRecalcTypesPath",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},CustomFormats:{title:"\u0424\u043e\u0440\u043c\u0430\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438-\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0442\u0435\u043a\u0441\u0442",
catalogsQueryID:"catalogsQuery",labelField:"CODE",keyField:"RN",catalogLinkFieldName:"CRN",queryID:"CustomFormats",unitCode:"BalanceTextFormats",pathQueryID:"CustomFormatsPath",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},UnionAgentsGroups:{title:"\u0413\u0440\u0443\u043f\u043f\u044b \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432",
catalogsQueryID:"catalogsQuery",labelField:"CODE",keyField:"RN",catalogLinkFieldName:"CRN",queryID:"UnionAgentsGroups",unitCode:"UnionAgentsGroups",pathQueryID:"UnionAgentsGroupsPath",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},BalanceReportsChecks:{title:"\u041f\u0435\u0440\u0435\u0447\u043d\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a",
keyField:"RN",labelField:"CODE",queryID:"BalanceReportFormsCheckLists",unitCode:"BalanceReportFormsCheckLists",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"100px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"100px"},{name:"\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c",field:"PERIOD",width:"100px"},{name:"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0447\u0435\u043d\u044c",
field:"MAIN",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0424\u043e\u0440\u043c\u0430",field:"FORM_CODE",width:"125px"},{name:"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441",field:"BEGDATE",dataType:"2",sortField:"E.BEGDATE",width:"125px"},{name:"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e",field:"ENDDATE",dataType:"2",
sortField:"E.ENDDATE",width:"150px"}]},BalanceReportsStatusesHistory:{title:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u043e\u0442\u0447\u0435\u0442\u0430",labelField:"CHANGEDATE",queryID:"BalanceReportsStatusesHistory",unitCode:"BalanceReportsStatusesHistory",hasAttributes:!0,columns:[{name:"\u0414\u0430\u0442\u0430",field:"CHANGEDATE",dataType:"2",sortField:"T.CHANGE_DATE",width:"200px"},{name:"\u0421\u0442\u0430\u0442\u0443\u0441",field:"STATUS_NAME",
width:"121px"},{name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",field:"NAME",width:"200px"},{name:"\u0421\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438",field:"SET_MODE",formatter:function(c,e,f){return parus.balance.formatReportStatusSetMode(c,e,f)},width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435",field:"ACTION_NAME",width:"200px"}]},BalanceSubReportsStatusesHistory:{title:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430",
labelField:"CHANGEDATE",queryID:"BalanceSubReportsStatusesHistory",unitCode:"BalanceSubReportsStatusesHistory",hasAttributes:!0,columns:[{name:"\u0414\u0430\u0442\u0430",field:"CHANGEDATE",dataType:"2",sortField:"T.CHANGE_DATE",width:"200px"},{name:"\u0421\u0442\u0430\u0442\u0443\u0441",field:"STATUS_NAME",width:"121px"},{name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",field:"NAME",width:"200px"},{name:"\u0421\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438",
field:"SET_MODE",formatter:function(c,e,f){return parus.balance.formatReportStatusSetMode(c,e,f)},width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435",field:"ACTION_NAME",width:"200px"}]},BalanceReportsStatesHistory:{title:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043e\u0442\u0447\u0435\u0442\u0430",labelField:"CHANGEDATE",queryID:"BalanceReportsStatesHistory",unitCode:"BalanceReportsStatesHistory",hasAttributes:!0,columns:[{name:"\u0414\u0430\u0442\u0430",
field:"CHANGEDATE",dataType:"2",sortField:"T.CHANGEDATE, T.RN",width:"200px"},{name:"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435",field:"STATE",formatter:function(c,e,f){return parus.balance.formatReportStatus(c,e,f)},width:"200px"},{name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",field:"NAME",width:"200px"}]},BalanceReportsValuesHistory:{title:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442\u0447\u0435\u0442\u0430",
keyField:"RN",labelField:"REPORT_DATE",queryID:"BalanceReportsValuesHistory",unitCode:"BalanceReportsValuesHistory",columns:[{name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",field:"USERNAME",width:"200px"},{name:"\u0414\u0430\u0442\u0430",field:"REPORT_DATE",dataType:"2",sortField:"T.REPORT_DATE",width:"200px"},{name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435",field:"NOTE",width:"200px"}]},ConditionFolders:{title:"\u041f\u0430\u043f\u043a\u0438 \u043e\u0442\u0431\u043e\u0440\u0430",
queryID:"ConditionFolders",keyField:"RN",labelField:"NAME",columns:[{name:"\u041f\u0430\u043f\u043a\u0438",field:"NAME",width:"200px"}]},BalanceCompareReportRuleSectionGroups:{title:"\u0413\u0440\u0443\u043f\u043f\u044b \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432",queryID:"BalanceCompareReportRuleSectionGroups",unitCode:"BalanceCompareReportRuleSectionGroups",labelField:"CODE",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",
field:"NAME",width:"200px"}]},ConsolidationReports:{title:"\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f",queryID:"ConsolidationReports",keyField:"RN",hasAttributes:!0,unitCode:"BalanceReportsConstition",columns:[{name:"\u0424\u043e\u0440\u043c\u0430",field:"CODE",width:"150px"},{name:"\u0414\u0430\u0442\u0430",field:"BDATE",dataType:"2",sortField:"R.BDATE",width:"81px"},{name:'\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e \x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e',
field:"AGNABBR",width:"121px"},{name:'\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e \x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e',field:"AGNNAME",width:"161px"},{name:"\u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430",field:"KIND",width:"81px",formatter:function(c,e,f){return parus.balance.formatReportKind(c,e,f)}},{name:"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435",field:"STATE",
width:"100px",formatter:function(c,e,f){return parus.balance.formatReportStatus(c,e,f)}},{name:"\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d",field:"CHECKED",width:"81px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d",field:"SENT",width:"81px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0440\u0438\u043d\u044f\u0442",field:"ACCEPTED",width:"81px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,
e,f)}},{name:"\u0421\u0442\u0430\u0442\u0443\u0441",field:"STATUS_NAME",width:"121px"},{name:'\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e \x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e',field:"AGNABBR1",width:"121px"},{name:'\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e \x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e',
field:"AGNNAME1",width:"161px"},{name:"\u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430",field:"KIND1",width:"81px",formatter:function(c,e,f){return parus.balance.formatReportKind(c,e,f)}},{name:"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435",field:"STATE1",width:"100px",formatter:function(c,e,f){return parus.balance.formatReportStatus(c,e,f)}},{name:"\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d",field:"CHECKED1",width:"81px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,
e,f)}},{name:"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d",field:"SENT1",width:"81px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0440\u0438\u043d\u044f\u0442",field:"ACCEPTED1",width:"81px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0421\u0442\u0430\u0442\u0443\u0441",field:"STATUS_NAME1",width:"121px"}]},ConsolidationProposal:{title:"\u0421\u043e\u0441\u0442\u0430\u0432 \u0441\u0432\u043e\u0434\u0430",queryID:"ConsolidationProposal",
keyField:"RN",hasAttributes:!0,unitCode:"BalanceReportsConstition",columns:[{name:"\u0424\u043e\u0440\u043c\u0430",field:"CODE",width:"150px"},{name:"\u0414\u0430\u0442\u0430",field:"BDATE",dataType:"2",sortField:"R.BDATE",width:"81px"},{name:'\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e \x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e',field:"AGNABBR",width:"121px"},{name:'\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e \x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e',
field:"AGNNAME",width:"150px"},{name:"\u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430",field:"KIND",width:"81px",formatter:function(c,e,f){return parus.balance.formatReportKind(c,e,f)}},{name:"\u0412 \u0441\u0432\u043e\u0434\u0435",field:"CONSOLIDATED",width:"100px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}]},AttachedDocumentTypes:{title:"\u0422\u0438\u043f\u044b \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432",
queryID:"AttachedDocumentTypes",pathQueryID:"AttachedDocumentTypesPath",keyField:"RN",labelField:"CODE",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",unitCode:"FileLinksTypes",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"150px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",sortField:"NAME",width:"81px"},{name:"\u0422\u0438\u043f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e",
field:"CONTENT_TYPE",width:"150px",formatter:function(c,e,f){return parus.balance.formatAttachedContentFileType(c,e,f)}},{name:"\u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432",field:"CRNFLNKS_NAME",sortField:"CRNFLNKS_NAME",width:"300px"}]},BalanceCompareReportRules:{title:"\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432",
queryID:"BalanceCompareReportRules",pathQueryID:"BalanceCompareReportRulesPath",keyField:"RN",labelField:"CODE",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",unitCode:"BalanceCompareReportRules",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",sortField:"T.CODE",width:"150px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",sortField:"T.NAME",width:"300px"},{name:"\u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430",
field:"FORM_CODE",sortField:"F.CODE",width:"150px"},{name:"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",field:"TABLE_CODE",sortField:"B.CODE",width:"150px"},{name:"\u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f",
field:"CRITERIA_SIGN",sortField:"T.CRITERIA_SIGN",width:"350px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}]},BalanceRemarkStates:{title:"\u0421\u0442\u0430\u0442\u0443\u0441\u044b \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0439",labelField:"CODE",queryID:"BalanceRemarkStates",unitCode:"BalanceRemarkStates",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",sortField:"T.CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",
field:"NAME",sortField:"T.NAME",width:"200px"},{name:"\u0426\u0432\u0435\u0442",field:"COLOR",sortField:"T.COLOR",width:"200px",formatter:function(c,e,f){return parus.parus8.formatColor(c,e,f)}}]},Users:{title:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438",queryID:"Users",pathQueryID:"UsersPath",keyField:"RN",labelField:"AUTHID",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",unitCode:"Users",columns:[{name:"\u0418\u043c\u044f",field:"AUTHID",width:"120px"},
{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",sortField:"NAME",width:"250px"},{name:"\u0414\u0430\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0411\u0414",field:"CREATED",width:"120px"},{name:"\u0420\u0435\u0436\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430",field:"USER_MODE",width:"100px"},{name:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0430\u043d\u0441\u043e\u0432",
field:"LOGIN_ENABLED",width:"180px"},{name:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430/\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u0435\u0430\u043d\u0441\u0430",field:"REGISTER_SIGN",width:"150px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0434\u043d\u0438)",
field:"LOGIN_ENABLED_LIFE",width:"180px"},{name:"\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",field:"ANONYMOUS",width:"100px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0424\u043e\u043d\u043e\u0432\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",field:"BACKGROUND",width:"100px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},
{name:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 WIN-\u043a\u043b\u0438\u0435\u043d\u0442",field:"CLIENT_WIN",width:"150px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0411\u0414",field:"PASSWORD_CHANGE",width:"150px",
formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0441\u043c\u0435\u043d\u0438\u0442\u044c WEB-\u043f\u0430\u0440\u043e\u043b\u044c",field:"PASSWORD_CHANGE_WEB",width:"150px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435/\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f",
field:"USE_SETTINGS_SIGN",width:"180px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435/\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f",field:"SAVE_PASSWORD_SIGN",width:"150px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 WEB-\u043a\u043b\u0438\u0435\u043d\u0442",
field:"CLIENT_WEB",width:"150px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u043d\u0430\u0447\u0430\u043b\u0430 WEB-\u0441\u0435\u0430\u043d\u0441\u0430",field:"LOGON_TRY_WEB",width:"200px"},{name:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u0430 WEB-\u0441\u0435\u0430\u043d\u0441\u0430 (\u043c\u0438\u043d.)",
field:"LOGON_LOCK_WEB",width:"200px"},{name:"\u041f\u0430\u0440\u043e\u043b\u044c WEB-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f",field:"PASSWORD_WEB",width:"150px"},{name:"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c WEB-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f",field:"PASSWORD_MSTCHG_WEB",width:"180px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,
e,f)}},{name:"\u0423\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430",field:"ACC_LOCK",width:"120px"},{name:"\u0414\u0430\u0442\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438",field:"ACC_LOCK_DATE",width:"120px"},{name:"\u0423\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c WIN-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430",
field:"ACC_LOCK_WIN",width:"100px"},{name:"\u0414\u0430\u0442\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 WIN-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f",field:"ACC_LOCK_DATE_WIN",width:"150px"},{name:"\u0423\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c WEB-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430",
field:"ACC_LOCK_WEB",width:"150px"},{name:"\u0414\u0430\u0442\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 WEB-\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f",field:"ACC_LOCK_DATE_WEB",width:"150px"},{name:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438",
field:"SEC_NAME",width:"200px"}]},UserExternalAccounts:{title:"\u041b\u043e\u0433\u0438\u043d\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438",queryID:"UserExternalAccounts",keyField:"RN",labelField:"CODE",columns:[{name:"\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440",field:"PROVIDER_NAME",width:"120px"},{name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0435",
field:"PROVIDER_NAME",width:"180px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u043d\u0430",field:"CODE",width:"120px"},{name:"\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f",field:"COMPANY_NAME",width:"120px"},{name:"\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435",field:"APPNAME",width:"180px"}]},UserProcedures:{title:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b",
queryID:"allUserProcs",pathQueryID:"UserProcsPath",keyField:"RN",labelField:"CODE",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",unitCode:"UserProcedures",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"150px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",sortField:"NAME",width:"250px"},{name:"\u0422\u0438\u043f",field:"PROCTYPE",width:"150px",formatter:function(c,e,f){return parus.balance.formatUserProcedureType(c,
e,f)}},{name:"\u0421\u043f\u043e\u0441\u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f",field:"PROCAUTO",width:"150px",formatter:function(c,e,f){return parus.balance.formatUserProcedureAuto(c,e,f)}},{name:"\u0418\u043c\u044f \u0445\u0440\u0430\u043d\u0438\u043c\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b",field:"PROCNAME",width:"150px"},{name:"\u0411\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438",
field:"LOCK4EXEC",width:"150px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0438\u043a\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430",field:"SYSIMAGE_CODE",width:"100px"},{name:"\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0430",field:"BLK2PRC",width:"100px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}]},catalogsQuery:{title:"\u0412\u044b\u0431\u043e\u0440 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430",
queryID:"catalogsQuery",keyField:"ID",labelField:"NAME",columns:[{name:"\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438",field:"NAME",width:"300px"}]},ConditionSchemesElementsParamsValues:{title:"\u0421\u043f\u0438\u0441\u043e\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439",labelField:"CAPTION",queryID:"ConditionSchemesElementsParamsValues",unitCode:"ConditionSchemesElementsParamsValues",columns:[{name:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435",field:"CAPTION",sortField:"T.CAPTION",
width:"200px"}]},MessagesJournal:{title:"\u0416\u0443\u0440\u043d\u0430\u043b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439",labelField:"MSG_TEXT",queryID:"MessagesJournal",columns:[{name:"\u0412\u0438\u0434 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f",field:"RECTYPE",sortField:"T.RECTYPE",width:"160px",formatter:function(c,e,f){return parus.balance.formatMessageRectype(c,e,f)}},{name:"\u0422\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f",field:"MSG_TEXT",
sortField:"T.MSG_TEXT",width:"400px"}]},BalanceReportExchangeKinds:{title:"\u0412\u0438\u0434\u044b \u043e\u0431\u043c\u0435\u043d\u0430 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e",queryID:"BalanceReportExchangeKinds",keyField:"RN",labelField:"CODE",unitCode:"BalanceReportExchangeKinds",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",sortField:"T.CODE",width:"150px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",
field:"NAME",sortField:"T.NAME",width:"300px"},{name:"\u041e\u0431\u043c\u0435\u043d \u0447\u0435\u0440\u0435\u0437 WEB",field:"WEB_SIGN",sortField:"T.WEB_SIGN",width:"150px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0428\u0430\u0431\u043b\u043e\u043d \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430",field:"FILE_PATTERN",sortField:"T.FILE_PATTERN",width:"200px"},{name:"\u0428\u0430\u0431\u043b\u043e\u043d \u0438\u043c\u0435\u043d\u0438 \u0430\u0440\u0445\u0438\u0432\u0430",
field:"ARCH_PATTERN",sortField:"T.ARCH_PATTERN",width:"200px"},{name:"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430",field:"FILE_PROC_CODE",sortField:"U2.CODE",width:"200px"},{name:"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u0430",
field:"HEADER_PROC_CODE",sortField:"U.CODE",width:"200px"},{name:"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 \u0430\u0440\u0445\u0438\u0432\u0430",field:"ARCH_PROC_CODE",sortField:"U3.CODE",width:"200px"},{name:"\u041a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 \u0444\u0430\u0439\u043b\u0430",field:"CHARSET",sortField:"T.CHARSET",width:"200px",formatter:function(c,e,f){return parus.balance.formatCharset(c,
e,f)}}]},BalanceStatusModelHistory:{title:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432",queryID:"BalanceStatusModelHistory",keyField:"RN",labelField:"CHANGEDATE",unitCode:"BalanceStatusModelHistory",columns:[{name:"\u0414\u0430\u0442\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f",field:"CHANGEDATE",dataType:"2",sortField:"T.CHANGE_DATE",width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435",field:"ACTION_NAME",width:"200px"},
{name:"\u0410\u0432\u0442\u043e\u0440",field:"AUTHNAME",width:"200px"},{name:"\u0421\u0442\u0430\u0442\u0443\u0441",field:"EVENT_STAT",width:"200px"},{name:"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435",field:"EVENT_DESCR",width:"200px"},{name:"\u041e\u0442\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438",field:"PERF_MARK",width:"200px"},{name:"\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430",
field:"CLIENT_CLIENT",width:"200px"},{name:"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0430",field:"CLIENT_PERSON",width:"200px"},{name:"\u041a\u043b\u0438\u0435\u043d\u0442",field:"CLIENT",width:"200px"},{name:"\u041d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c",field:"SEND",width:"200px"},{name:"\u041d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c (\u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442)",field:"SEND_PERSON_AGNCODE",width:"200px"},
{name:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f",field:"NOTE_HEADER",width:"200px"},{name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435",field:"NOTE",width:"200px"},{name:"\u0410\u0432\u0442\u043e\u0440 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f",field:"NOTE_AUTHNAME",width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435",field:"LINKED_ACTION_NAME",
width:"200px"},{name:"\u041e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f",field:"REASON",width:"200px"},{name:"\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b",field:"ACTREC_UNTINAME",width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0440\u0430\u0437\u0434\u0435\u043b\u0430",
field:"ACTREC_NAME",width:"200px"}]},BalanceStatusModelNotes:{title:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f",queryID:"BalanceStatusModelNotes",keyField:"RN",labelField:"NUMB",unitCode:"BalanceStatusModelNotes",columns:[{name:"\u041d\u043e\u043c\u0435\u0440",field:"NUMB",width:"121px"},{name:"\u0414\u0430\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f",field:"CHANGE_DATE_NOTE",dataType:"2",sortField:"T.CHANGE_DATE",
width:"200px"},{name:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f",field:"NOTE_HEADER",width:"200px"},{name:"\u0410\u0432\u0442\u043e\u0440 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f",field:"NOTE_AUTHNAME",width:"200px"},{name:"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435",field:"NOTE",width:"200px"}]},BalanceStatusModelNextPerformMarks:{title:"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u043e\u0442\u043c\u0435\u0442\u043a\u0438 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438",
queryID:"BalanceStatusModelNextPerformMarks",keyField:"PERF_MARK_TYPE",labelField:"PERF_MARK_TYPE_CODE",unitCode:"BalanceStatusModelNextPerformMarks",columns:[{name:"\u041e\u0442\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438",field:"PERF_MARK_TYPE_CODE",width:"200px"},{name:"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043e\u0442\u043c\u0435\u0442\u043a\u0438",
field:"NOTE_ADD_SIGN",width:"200px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430/\u0441\u043d\u044f\u0442\u0438\u0435",field:"AUTO_SIGN",width:"200px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}]},BalanceStatusModelPassNextStatus:{title:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430",
queryID:"BalanceStatusModelPassNextStatus",keyField:"NEXT_POINT_CODE",labelField:"NEXT_POINT_NAME",unitCode:"BalanceStatusModelPassNextStatus",columns:[{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0447\u043a\u0438",field:"NEXT_POINT_CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430",field:"NEXT_POINT_NAME",width:"200px"}]},BalanceReportStatusModels:{title:"\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432",
catalogsQueryID:"catalogsQuery",pathQueryID:"BalanceReportStatusModelsPath",catalogLinkFieldName:"CRN",queryID:"BalanceReportStatusModels",unitCode:"BalanceReportStatusModels",labelField:"CODE",keyField:"RN",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},DesignerBalanceReportPeriods:{title:"\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432",
keyField:"RN",labelField:"CODE",queryID:"BalanceReportViewPeriods",unitCode:"BalanceReportViewPeriods",detailTitle:"\u0414\u0430\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f",detailQueryID:"BalanceReportViewPeriodDates",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}],detailColumns:[{name:"\u0414\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f",
field:"BDATE",width:"200px"}]},DesignerTemplateUsers:{title:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438",queryID:"designer.Template.Users",pathQueryID:"designer.Template.UsersPath",keyField:"RN",labelField:"NAME",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",unitCode:"Users",columns:[{name:"\u0418\u043c\u044f",field:"AUTHID",width:"120px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",sortField:"NAME",width:"250px"}]},
DesignerTemplateRoles:{title:"\u0420\u043e\u043b\u0438",queryID:"designer.Template.Roles",pathQueryID:"designer.Template.RolesPath",keyField:"RN",labelField:"ROLENAME",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",unitCode:"Roles",columns:[{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"ROLENAME",width:"250px"}]},DesignerTemplateTableIndexes:{title:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b",
queryID:"designer.Template.TableIndexes",keyField:"RN",labelField:"CODE",unitCode:"BalanceTablesIndexes",columns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",field:"CODE",width:"200px"},{name:"\u0421\u0442\u043e\u043b\u0431\u0435\u0446",field:"COL",width:"100px",formatter:function(c,e,f){return"$"+parus.parus8.toLetters(c)}},{name:"\u0421\u0442\u0440\u043e\u043a\u0430",field:"ROWN",width:"100px",formatter:function(c,e,f){return"$"+c.toString()}}]},DesignerTemplateTableTotals:{title:"\u0418\u0442\u043e\u0433\u0438",
queryID:"designer.Template.TableTotals",keyField:"RN",labelField:"CODE",unitCode:"BalanceTablesTotals",columns:[{name:"\u0412\u0438\u0434",field:"KIND",width:"100px",formatter:function(c,e,f){return["\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439","\u041e\u0431\u0449\u0438\u0439"][c]}},{name:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c",field:"PRIORITY",width:"60px"},{name:"\u041f\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e",field:"CODE",width:"130px"},
{name:"\u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u044b",field:"FORMULA",width:"200px"},{name:"\u0421\u0442\u043e\u043b\u0431\u0435\u0446",field:"COL",width:"70px",formatter:function(c,e,f){return"$"+parus.parus8.toLetters(c)}},{name:"\u0421\u0442\u0440\u043e\u043a\u0430",field:"ROWN",width:"70px",formatter:function(c,e,f){return"$"+c.toString()}},{name:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432",
field:"COL_CNT",width:"80px"},{name:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a",field:"ROWN_CNT",width:"80px"}]},DesignerBalanceReportFormFormulas:{title:"\u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",queryID:"designer.BalanceReportForm.Formulas",keyField:"RN",labelField:"CODE",unitCode:"BalanceReportFormFormulas",columns:[{name:"\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",
field:"RECALCTYPE",sortField:"RT.CODE",width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441",field:"BEGINDATE",width:"100px",dataType:"2"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e",field:"ENDDATE",width:"100px",dataType:"2"},{name:"\u0424\u043e\u0440\u043c\u0443\u043b\u0430",field:"USERPROC",sortField:"UP.CODE",width:"200px"}]},DesignerBalanceReportFormCheckList:{title:"\u041f\u0435\u0440\u0435\u0447\u043d\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a",
queryID:"designer.BalanceReportForm.CheckList",keyField:"RN",labelField:"CODE",unitCode:"BalanceReportFormCheckList",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"100px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"100px"},{name:"\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c",field:"PERIOD",width:"100px"},{name:"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0447\u0435\u043d\u044c",
field:"MAIN",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0424\u043e\u0440\u043c\u0430",field:"FORM_CODE",width:"125px"},{name:"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441",field:"BEGDATE",width:"125px",dataType:"2"},{name:"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e",field:"ENDDATE",width:"125px",dataType:"2"}]},
BalanceCheckListsWithDetails:{title:"\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a",catalogsQueryID:"catalogsQuery",labelField:"CODE",keyField:"RN",catalogLinkFieldName:"CRN",queryID:"designer.BalanceCheckLists",unitCode:"BalanceCheckLists",pathQueryID:"designer.BalanceCheckListsPath",moveDocumentQueryID:"designer.BalanceCheckLists.Move",detailTitle:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0438",detailQueryID:"designer.BalanceChecks",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",
field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}],detailColumns:[{name:"\u0424\u043e\u0440\u043c\u0443\u043b\u0430",field:"FORMULA_CODE",width:"120px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b",field:"FORMULA_NAME",width:"200px"},{name:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0441\u0442\u0438",
field:"ERROR_LEVEL",width:"100px",formatter:function(c,e,f){return parus.balance.formatCheckErrorLevel(c,e,f)}}]},BalanceCalcTypeEditable:{"extends":"BalanceCalcType",title:"\u0422\u0438\u043f\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",moveDocumentQueryID:"designer.BalanceCalcType.Move"},UserProceduresWithDetails:{"extends":"UserProcedures",detailTitle:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b",detailQueryID:"UserProcedureParams",
detailColumns:[{name:"\u041f\u043e\u0437\u0438\u0446\u0438\u044f",field:"POSITION",width:"60px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430",field:"PARAMNAME",width:"130px"},{name:"\u0422\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445",field:"DATA_TYPE",width:"80px",formatter:function(c,e,f){return parus.balance.formatUserProcParamDataType(c,e,f)}},{name:"\u0422\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430",
field:"PARAMTYPE",width:"95px",formatter:function(c,e,f){return parus.balance.formatUserProcParamType(c,e,f)}},{name:"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430",field:"NAME",width:"150px"},{name:"\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f",field:"VISUALIZE",width:"90px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430",field:"LINKING",
width:"150px",formatter:function(c,e,f){return parus.balance.formatUserProcParamLinking(c,e,f)}},{name:"\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439",field:"MANDATORY",width:"95px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0420\u0430\u0437\u0434\u0435\u043b",field:"UNITNAME",width:"100px"},{name:"\u041c\u0435\u0442\u043e\u0434 \u0432\u044b\u0437\u043e\u0432\u0430",field:"SHOWMETHODNAME",width:"100px"},{name:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440",
field:"PARAM_NAME",width:"100px"},{name:"\u0420\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440",field:"INITNAME",width:"100px"},{name:"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044c",field:"SED_NAME",width:"110px"}]},DesignerBalanceReportFormLinks:{title:"\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b",queryID:"designer.BalanceReportForm.Links",
keyField:"RN",labelField:"CODE",unitCode:"BalanceReportFormsLinks",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434 \u0444\u043e\u0440\u043c\u044b",field:"LINKED_CODE",width:"150px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u044b",field:"LINKED_NAME",width:"300px"}]},DesignerBalanceReportFormIndexes:{title:"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",queryID:"designer.BalanceReportForm.Indexes",
keyField:"RN",labelField:"CODE",unitCode:"BalanceReportFormsIndexConstition",columns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",field:"BALANCEINDEX",width:"150px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BALANCEINDEXNAME",width:"200px"},{name:"\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BITYPE",width:"100px",formatter:function(c,
e,f){return parus.balance.formatBalanceIndexType(c,e,f)}},{name:"\u0421\u043b\u043e\u0432\u0430\u0440\u044c",field:"DICTIONARY",width:"150px"},{name:"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430",field:"PRIORITY",width:"100px"},{name:"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",field:"NULLABLE",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,
e,f)}},{name:"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044e",field:"DICT_CHECK",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f",field:"AGR_FUNC",
width:"150px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexAgrFunc(c,e,f)}},{name:"\u0412\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044f",field:"DICT_VAL_NOTE",width:"130px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}]},BalanceReportFormsWithDetails:{"extends":"BalanceReportForms",
detailTitle:"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u0438 \u0444\u043e\u0440\u043c",detailQueryID:"BalanceReportFormEditions",detailColumns:[{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441",field:"BEGDATE",dataType:"2",width:"121px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e",field:"ENDDATE",dataType:"2",width:"121px"},{name:"\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c",field:"PERIOD_CODE",sortField:"P.CODE",
width:"121px"},{name:"\u0410\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442",field:"AUTOCALC",width:"121px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435",field:"NOTES",width:"200px"},{name:"\u0420\u0430\u0441\u0447\u0451\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",
field:"RESULTS",width:"200px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",field:"CALC_CODE",sortField:"TR1.CODE",width:"200px"}]},DesignerBalanceSections:{title:"\u0420\u0430\u0437\u0440\u0435\u0437\u044b \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438",queryID:"designer.BalanceSections",keyField:"RN",labelField:"CODE",
unitCode:"BalanceSections",catalogsQueryID:"hierQuerySingle",catalogLinkFieldName:"CRN",pathQueryID:"designer.BalanceSectionsPath",moveDocumentQueryID:"designer.BalanceSections.Move",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}]},ExtraDictionariesWithDetails:{title:"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u0438",
queryID:"ExtraDictionaries",keyField:"RN",labelField:"CODE",unitCode:"ExtraDictionaries",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",pathQueryID:"ExtraDictionariesPath",detailTitle:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044f",detailQueryID:"ExtraDictionaryValues",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"120px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",
field:"NAME",width:"200px"},{name:"\u0424\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445",field:"FORMAT",width:"150px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexType(c,e,f)}},{name:"\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445",field:"NUM_WIDTH",width:"150px"},{name:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043d\u0430\u043a\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439",
field:"NUM_PRECISION",width:"150px"},{name:"\u0414\u043b\u0438\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445",field:"STR_WIDTH",width:"150px"}],detailColumns:[{name:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435",field:"VALUE",width:"200px"},{name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435",field:"NOTE",width:"300px"}]},DesignerBalanceIndexesWithDetails:{title:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438",
queryID:"designer.BalanceIndexes",keyField:"RN",labelField:"CODE",unitCode:"BalanceIndexes",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",pathQueryID:"designer.BalanceIndexesPath",moveDocumentQueryID:"designer.BalanceIndexes.Move",detailTitle:"\u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",detailQueryID:"designer.BalanceIndexes.Formulas",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"120px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",
field:"NAME",width:"200px"},{name:"\u0422\u0438\u043f",field:"BITYPE",width:"150px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexType(c,e,f)}}],detailColumns:[{name:"\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",field:"RECALCTYPE",sortField:"RT.CODE",width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441",field:"BEGINDATE",dataType:"2",width:"100px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e",
field:"ENDDATE",dataType:"2",width:"100px"},{name:"\u0424\u043e\u0440\u043c\u0443\u043b\u0430",field:"USERPROC",sortField:"UP.CODE",width:"150px"}]},DesignerBalanceIndexesWithDetails:{title:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438",queryID:"designer.BalanceIndexes",keyField:"RN",labelField:"CODE",unitCode:"BalanceIndexes",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",pathQueryID:"designer.BalanceIndexesPath",moveDocumentQueryID:"designer.BalanceIndexes.Move",detailTitle:"\u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",
detailQueryID:"designer.BalanceIndexes.Formulas",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"120px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"},{name:"\u0422\u0438\u043f",field:"BITYPE",width:"150px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexType(c,e,f)}}],detailColumns:[{name:"\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",field:"RECALCTYPE",
sortField:"RT.CODE",width:"200px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441",field:"BEGINDATE",dataType:"2",width:"100px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e",field:"ENDDATE",dataType:"2",width:"100px"},{name:"\u0424\u043e\u0440\u043c\u0443\u043b\u0430",field:"USERPROC",sortField:"UP.CODE",width:"150px"}]},DesignerBalanceIndexesInputPatterns:{title:"\u0428\u0430\u0431\u043b\u043e\u043d\u044b \u0432\u0432\u043e\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",
queryID:"designer.BalanceIndexes.InputPatterns",keyField:"RN",labelField:"CODE",unitCode:"BalanceIndexesInputPatterns",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",pathQueryID:"designer.BalanceIndexes.InputPatternsPath",moveDocumentQueryID:"designer.BalanceIndexes.InputPatterns.Move",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"120px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"150px"},
{name:"\u0422\u0435\u043a\u0441\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u0430",field:"PATTERN",width:"150px"},{name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435",field:"NOTE",width:"150px"}]},DesignerBalanceIndexesGroupsWithDetails:{title:"\u0413\u0440\u0443\u043f\u043f\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",queryID:"designer.BalanceIndexes.Groups",keyField:"RN",labelField:"CODE",unitCode:"BalanceIndexesGroups",detailTitle:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0433\u0440\u0443\u043f\u043f\u044b",
detailQueryID:"designer.BalanceIndexes.GroupsParts",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}],detailColumns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",field:"BALANCEINDEX",width:"200px"},{name:"\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BITYPE",width:"150px",formatter:function(c,
e,f){return parus.balance.formatBalanceIndexType(c,e,f)}},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"BALANCEINDEXNAME",width:"200px"}]},DesignerBalanceTablesWithIndexes:{title:"\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0444\u043e\u0440\u043c\u044b",queryID:"designer.BalanceTables",keyField:"RN",labelField:"CODE",unitCode:"BalanceTables",detailTitle:"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",
detailQueryID:"designer.BalanceTables.Indexes",columns:[{name:"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",field:"CODE",width:"140px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b",field:"NAME",width:"200px"},{name:"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430",field:"PRIORITY",width:"90px"},
{name:"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u0442\u043e\u0433\u0438",field:"SIGN_TOTALS",width:"90px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u043d\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",field:"SOURCE_TO_RESULT",
width:"90px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u043d\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f",field:"SOURCE_TO_UNION",width:"90px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}],detailColumns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",
field:"BALANCEINDEX",width:"140px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BALANCEINDEXNAME",width:"200px"},{name:"\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BITYPE",width:"90px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexType(c,e,f)}},{name:"\u0421\u043b\u043e\u0432\u0430\u0440\u044c",field:"DICTIONARY",width:"140px"},{name:"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430",
field:"PRIORITY",width:"90px"},{name:"\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f",field:"AGR_FUNC",width:"100px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexAgrFunc(c,e,f)}},{name:"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",field:"NULLABLE",width:"80px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,
e,f)}},{name:"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044e",field:"DICT_CHECK",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0412\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044f",
field:"DICT_VAL_NOTE",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}]},DesignerBalanceTablesNotIncludedIndexes:{title:"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b",queryID:"designer.BalanceTables.NotIncludedIndexes",keyField:"RN",labelField:"BALANCEINDEX",unitCode:"BalanceTableModels",columns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",
field:"BALANCEINDEX",width:"140px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BALANCEINDEXNAME",width:"200px"},{name:"\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BITYPE",width:"90px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexType(c,e,f)}},{name:"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430",
field:"PRIORITY",width:"90px"},{name:"\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f",field:"AGR_FUNC",width:"100px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexAgrFunc(c,e,f)}}]},DesignerBalanceTableTotals:{title:"\u0418\u0442\u043e\u0433\u0438",queryID:"designer.BalanceTables.Totals",keyField:"RN",labelField:"BALANCEINDEX",unitCode:"BalanceTablesTotals",columns:[{name:"\u0412\u0438\u0434",field:"KIND",width:"120px",
formatter:function(c,e,f){return parus.balance.formatBalanceTableTotalKind(c,e,f)}},{name:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c",field:"PRIORITY",width:"120px"},{name:"\u041f\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e",field:"BALANCEINDEX",width:"150px"},{name:"\u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u044b",field:"FORMULA",width:"150px"},{name:"\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435",field:"LOCATION",
width:"150px",formatter:function(c,e,f){return parus.balance.formatBalanceTableTotalLocation(c,e,f)}}]},DesignerBalanceTableIndexesWithUnits:{title:"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b",queryID:"designer.BalanceTables.Indexes",keyField:"RN",labelField:"BALANCEINDEX",unitCode:"BalanceTableModels",detailTitle:"\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b",
detailQueryID:"designer.BalanceTables.Indexes.Units",columns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",field:"BALANCEINDEX",width:"140px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BALANCEINDEXNAME",width:"200px"},{name:"\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BITYPE",width:"90px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexType(c,
e,f)}},{name:"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",field:"NULLABLE",width:"80px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0421\u043b\u043e\u0432\u0430\u0440\u044c",field:"DICTIONARY",width:"140px"},{name:"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044e",
field:"DICT_CHECK",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u0412\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044f",field:"DICT_VAL_NOTE",width:"120px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430",
field:"PRIORITY",width:"90px"},{name:"\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f",field:"AGR_FUNC",width:"100px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexAgrFunc(c,e,f)}}],detailColumns:[{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430",field:"UNITNAME",width:"200px"},{name:"\u041c\u0435\u0442\u043e\u0434 \u0432\u044b\u0437\u043e\u0432\u0430",
field:"METHOD_NAME",width:"200px"}]},DesignerBalanceTableConstraintsWithDetails:{title:"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f",queryID:"designer.BalanceTables.Constraints",keyField:"RN",labelField:"NAME",unitCode:"BalanceTablesConstraints",detailTitle:"\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b",detailQueryID:"designer.BalanceTables.Constraints.Attributes",columns:[{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"140px"},
{name:"\u0422\u0438\u043f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f",field:"CONSTR_TYPE",width:"80px",formatter:function(c,e,f){return parus.balance.formatBalanceTableConstraintType(c,e,f)}},{name:"\u0422\u0435\u043a\u0441\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f",field:"TEXT",width:"150px"},{name:"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0438",field:"MESSAGE",
width:"250px"},{name:"\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442",field:"TEMPLATE",width:"150px"},{name:"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e",field:"ACTIVE_SIGN",width:"90px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}],detailColumns:[{name:"\u041f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440",field:"NUMB",width:"200px"},{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",
field:"BALANCEINDEX",width:"200px"}]},BalanceReportFormsTemplates:{title:"\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b",queryID:"BalanceReportFormsTemplates",unitCode:"BalanceReportFormsTemplates",labelField:"NAME",keyField:"RN",columns:[{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"250px"},{name:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435",field:"USAGE",width:"121px",formatter:function(c,e,f){return parus.designerTemplatesDialog.formatUsage(c,
e,f)}},{name:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",field:"EDIT_DEFAULT",width:"100px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}},{name:"\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u0430",field:"DIRECT_TABLE",width:"100px",formatter:function(c,e,f){return parus.designerTemplatesDialog.formatDirection(c,e,f)}},{name:"\u0412\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432 Excel",
field:"TO_EXCEL_SIGN",width:"100px",formatter:function(c,e,f){return parus.parus8.formatBoolean(c,e,f)}}]},DesignerUnits:{title:"\u0420\u0430\u0437\u0434\u0435\u043b\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b",catalogsQueryID:"catalogsQuery",pathQueryID:"designer.UnitsPath",catalogLinkFieldName:"CRN",queryID:"designer.Units",unitCode:"Units",labelField:"NAME",keyField:"CODE",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434 \u0440\u0430\u0437\u0434\u0435\u043b\u0430",field:"CODE",
width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430",field:"NAME",width:"400px"}]},DesignerBalanceTableModelsWithIndexes:{title:"\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",queryID:"designer.BalanceTableModels",keyField:"RN",labelField:"CODE",unitCode:"BalanceTableModels",catalogsQueryID:"catalogsQuery",catalogLinkFieldName:"CRN",pathQueryID:"designer.BalanceTableModelsPath",
moveDocumentQueryID:"designer.BalanceTableModels.Move",detailTitle:"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439",detailQueryID:"designer.BalanceTableModels.Indexes",columns:[{name:"\u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434",field:"CODE",width:"200px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435",field:"NAME",width:"200px"}],detailColumns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",
field:"BALANCEINDEX",width:"140px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BALANCEINDEXNAME",width:"200px"},{name:"\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BITYPE",width:"90px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexType(c,e,f)}},{name:"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430",
field:"PRIORITY",width:"90px"},{name:"\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f",field:"AGR_FUNC",width:"100px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexAgrFunc(c,e,f)}}]},DesignerBalanceTableModelIndexes:{title:"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b",queryID:"designer.BalanceTableModels.Indexes",
keyField:"RN",labelField:"BALANCEINDEX",unitCode:"BalanceTableModels",columns:[{name:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c",field:"BALANCEINDEX",width:"140px"},{name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BALANCEINDEXNAME",width:"200px"},{name:"\u0422\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f",field:"BITYPE",width:"90px",formatter:function(c,
e,f){return parus.balance.formatBalanceIndexType(c,e,f)}},{name:"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430",field:"PRIORITY",width:"90px"},{name:"\u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f",field:"AGR_FUNC",width:"100px",formatter:function(c,e,f){return parus.balance.formatBalanceIndexAgrFunc(c,e,f)}}]},DesignerBalanceTableModelsTotals:{title:"\u0418\u0442\u043e\u0433\u0438",
queryID:"designer.BalanceTableModels.Totals",keyField:"RN",labelField:"CODE",unitCode:"BalanceTableModelTotals",columns:[{name:"\u0412\u0438\u0434",field:"KIND",width:"120px",formatter:function(c,e,f){return parus.balance.formatBalanceTableTotalKind(c,e,f)}},{name:"\u0423\u0440\u043e\u0432\u0435\u043d\u044c",field:"PRIORITY",width:"120px"},{name:"\u041f\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e",field:"BALANCEINDEX",width:"150px"},{name:"\u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u044b",
field:"FORMULA",width:"150px"},{name:"\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435",field:"LOCATION",width:"150px",formatter:function(c,e,f){return parus.balance.formatBalanceTableTotalLocation(c,e,f)}}]},DesignerBalanceTableModelsFormulas:{title:"\u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",queryID:"designer.BalanceTableModels.Formulas",keyField:"RN",labelField:"CODE",unitCode:"BalanceTableModelsFormulas",columns:[{name:"\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430",
field:"RECALCTYPE",width:"150px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441",field:"BEGINDATE",dataType:"2",width:"120px"},{name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e",field:"ENDDATE",dataType:"2",width:"120px"},{name:"\u0424\u043e\u0440\u043c\u0443\u043b\u0430",field:"USERPROC",width:"200px"}]},DesignerBalanceTableModelsTotalFormulas:{"extends":"DesignerBalanceTableModelsFormulas",title:"\u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u0438 \u0438\u0442\u043e\u0433\u043e\u0432",
unitCode:"BalanceTableModelsTotalFormulas"}});b.mixin(parus.parus8,{extraDictionaries:{_canCacheExtraDictionaries:!0,_autoCompleteLimit:1E3,_stores:null,getStore:function(c,e,f){if(c){this._stores||(this._stores={});var g=c+"*"+(e||"")+"*"+(f||""),h=this._canCacheExtraDictionaries?this._stores[g]:null;if(!h){h=parus.userdata.get("ExtraDictionaries-"+c).sortInfo||2;var l={attribute:"2"==h||"-2"==h?"VALUE":"NOTE",descending:0>h,field:"2"==h||"-2"==h?"VALUE":"NOTE"},m="EV.STR_VALUE,EV.NUM_VALUE,EV.DATE_VALUE";
"-2"==h?m="EV.STR_VALUE desc,EV.NUM_VALUE desc,EV.DATE_VALUE desc":"2"==h?m="EV.STR_VALUE,EV.NUM_VALUE,EV.DATE_VALUE":"-3"==h?m="EV.NOTE desc":"3"==h&&(m="EV.NOTE");h=new parus.gridData({asJson:!0,persistent:!0,__lastSort:b.clone(l),__lastConditions:{__sort:b.clone(l)},_data:parus.database.queryObject("ExtraDictValues",{DICTIONARY:c,AGENT:e,SECTION:f,order:m})});this._stores[g]=h}return h}}}});b.declare("parus.extraDictEdit",[parus.dictEdit],{autoComplete:!0,extraDictionaryCode:null,arbitrary:null,
agent:null,section:null,searchAttr:"VALUE",_savedSearchAttr:null,conditions:null,_itemCount:null,_focusTimeOut:null,validator:function(c){var e=this.inherited(arguments);if(e){if(!this.required&&!c||this.arbitrary||!c)return!0;e=this.store.find(this._savedSearchAttr,c);e||this._focusTimeOut||(this._focusTimeOut=setTimeout(b.hitch(this,function(){this._focusTimeOut=null;t.focus(this.focusNode)}),10));return!!e}return e},_dictionaryDialog:null,dictButtonClick:function(){if(!this.showingDictionary){this.showingDictionary=
!0;this.menu=new t.Menu({"class":"balanceMenu"});this.menu.addChild(new t.MenuItem({label:"\u041e\u0442\u043e\u0431\u0440\u0430\u0442\u044c...",itemAction:!1,onClick:b.hitch(this,function(){this._dictionaryDialog.executeConditions()})}));this._dictionaryDialog=new this.dialogClass({title:"\u0412\u044b\u0431\u043e\u0440 \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f",label:this.value,multiselect:this.multiselect,labelField:this._savedSearchAttr||this.searchAttr,gridPersistent:this.store,queryID:"ExtraDictValues",
menu:this.menu,userDataSection:"ExtraDictionaries-"+this.extraDictionaryCode,dictionary:{code:"ExtraDictionaries-"+this.extraDictionaryCode},gridConditions:this.conditions,columns:[{name:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435",field:"VALUE",width:"200px"},{name:"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435",field:"NOTE",width:"515px"}],onApply:b.hitch(this,function(e){this.setValue(e.getLabel());this.onApplyDictionary(e);return!0}),onClose:b.hitch(this,function(e){this.showingDictionary=
!1;this._dictionaryDialog=null;t.focus(this.focusNode)}),executeConditions:b.hitch(this,function(){var e=new parus.balanceExtraDictionaryConditionsDialog({title:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044f: \u041e\u0442\u0431\u043e\u0440",onShow:b.hitch(this,function(){e.valueEdit.attr("value",this.conditions.VALUE);e.noteEdit.attr("value",this.conditions.NOTE)}),onApply:b.hitch(this,function(){this.conditions.VALUE=e.valueEdit.value;this.conditions.NOTE=
e.noteEdit.value;this._dictionaryDialog.filterIndicator.style.display=this.conditions.VALUE||this.conditions.NOTE?"":"none";this._dictionaryDialog.headerPane.layout();this._dictionaryDialog.grid.setQuery(this.conditions);return!0})});e.show()})});var c=parus.userdata.get("ExtraDictionaries-"+this.extraDictionaryCode);c&&(parus.gridSettingsDialog.mergeGridSettings(this._dictionaryDialog.grid,c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this._dictionaryDialog.grid,c.colorConditions));
this._dictionaryDialog.show()}},postMixInProperties:function(){this.store=parus.parus8.extraDictionaries.getStore(this.extraDictionaryCode,this.agent,this.section);this.inherited(arguments);this._savedSearchAttr=this.searchAttr;this.conditions={};this.store.fetch({start:0,query:this.conditions,queryOptions:{ignoreCase:!0,deep:!0},onBegin:b.hitch(this,function(c){this._itemCount=c;null!=parus.parus8.extraDictionaries._autoCompleteLimit&&this._itemCount>=parus.parus8.extraDictionaries._autoCompleteLimit&&
(this.autoComplete=!1,this.searchAttr="")})})}});b.declare("parus.catalogDictEdit",parus.dictEdit,{dictButtonClick:function(){var c=this,e=[];if(c.value){var f=parus.database.query("CatalogsPath",{UNITCODE:c.unitCode,NAME:c.value});b.forEach(parus.parus8.rowNodes(f),function(g){e.push(parus.parus8.nodeField(g,"RN"))})}(new parus.treeDialog({model:new parus.catalogTreeModel({queryid:"catalogsQuery",onGetConditions:b.hitch(this,function(g,h){var l={UNITCODE:c.unitCode};l.CRN=h?g.getIdentity(h):"!*";
return l})}),key:c.unitCode,onDefaultNeeded:function(){var g=parus.database.execute("findAvailableCatalog",{UNITCODE:c.unitCode});return g?parus.parus8.nodeField(parus.parus8.rowNodes(g)[0],"PATH"):null},value:e.length?e.join(";"):null,onPerform:function(g,h){c.attr("value",h);return!0}})).show()}});for(var a in parus.dictionaries)b.mixin(parus.dictionaries[a],{code:a}),parus.dictionaries[a].hasOwnProperty("extends")&&(H=b.clone(parus.dictionaries[parus.dictionaries[a]["extends"]]),b.mixin(H,parus.dictionaries[a]),
parus.dictionaries[a]=H);b.mixin(parus.dictionaries,{_autoCompleteLimit:1E3,_stores:null,_getStore:function(c){if(c){this._stores||(this._stores={});var e=this._stores[c];if(!e){var f=this[c],g=f.labelAttr;b.forEach(f.columns,function(h){h.fieldName==f.labelAttr&&(g=h.sortField||f.labelAttr)});e={attribute:f.labelAttr,descending:!1,field:g};e=new parus.gridData({asJson:!0,persistent:!0,__lastSort:b.clone(e),__lastConditions:{__sort:b.clone(e)},_data:parus.database.queryObject(f.queryID,{})});this._stores[c]=
e}return e}}})})},"parus/customIconsPalette":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.customIconsPalette");b.require("dijit.dijit");b.require("dijit._Widget");b.require("dijit._Templated");b.require("dijit._PaletteMixin");b.require("dijit.form.DropDownButton");b.require("parus.parus8");parus||(parus={});b.declare("parus.customIconsPalette",[t._Widget,t._Templated,t._PaletteMixin],{definition:"",templateString:b.cache("dijit","templates/ColorPalette.html",'\x3cdiv class\x3d"dijitInline dijitColorPalette" role\x3d"grid"\x3e\n\t\x3ctable data-dojo-attach-point\x3d"paletteTableNode" class\x3d"dijitPaletteTable" cellSpacing\x3d"0" cellPadding\x3d"0" role\x3d"presentation"\x3e\n\t\t\x3ctbody data-dojo-attach-point\x3d"gridNode"\x3e\x3c/tbody\x3e\n\t\x3c/table\x3e\n\x3c/div\x3e\n'),
baseClass:"dijitColorPalette",dyeClass:"parus.customIconsPaletteItem",_definition:null,_default:null,buildRendering:function(){this.inherited(arguments);this._definition||(this._definition=b.fromJson(this.definition));var a=[],c=[],e={},f;for(f in this._definition)f.match(/^\..+/)||(this._default||(this._default=f),c.push(f),e[f]="",c.length==this._definition[".perrow"]&&(a.push(c),c=[]));this._preparePalette(a,e);this.onRendered()},onRendered:function(){}});b.declare("parus.customIconsPaletteItem",
null,{template:'\x3cspan class\x3d"dijitInline dijitPaletteImg"\x3e\x3cimg src\x3d"${blankGif}" class\x3d"${iconClass}" /\x3e\x3c/span\x3e',_value:null,constructor:function(a,c,e){this._value=a},getValue:function(){return this._value},fillCell:function(a,c){b.place(b.string.substitute(this.template,{iconClass:this._value,blankGif:c}),a)}});b.declare("parus.customIconsEditor",[t.form.DropDownButton],{definition:"",value:"",showLabel:!1,label:"\x3cb\x3e(\u041d\u0435\u0442)\x3c/b\x3e",_palette:null,
attributeMap:b.delegate(t._WidgetBase,{value:""}),paletteClass:"parus.customIconsPalette",_setValueAttr:function(a){this.value=a;this.domNode&&this.attr("iconClass",a);this.attr("showLabel",!a);this.onChange()},postMixInProperties:function(){this._palette||(this._palette=new (b.getObject(this.paletteClass))({definition:this.definition,onRendered:this.__paletteRendered,onChange:b.hitch(this,this._paletteChange)}));this.dropDown=this._palette;this._setValueAttr(this.value||this._palette._default);this.inherited(arguments)},
_paletteChange:function(){this.attr("value",this._palette.value)},__paletteRendered:function(){var a=this.gridNode.insertRow(0),c=a.insertCell(-1);c.colSpan=this._definition[".perrow"];c.align="center";var e=b.marginBox(a).w;if(!e){var f=this.gridNode.parentNode;document.body.appendChild(this.gridNode);e=b.coords(a).w;f.appendChild(this.gridNode)}(new t.form.Button({label:"\x3cb\x3e(\u041d\u0435\u0442)\x3c/b\x3e",style:"width:"+e+"px",onClick:b.hitch(this,function(){this.attr("value","")})},b.place("\x3cspan\x3e\x3c/span\x3e",
c,"only"))).domNode.firstChild.style.width="100%"},onChange:function(){}})})},"parus/designerReportTablesDictionaryDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportTablesDictionaryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.require("parus.gridActions");b.require("parus.catalogActions");
b.require("parus.dictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelDialog");b.require("parus.designerTableModelIndexDialog");b.require("parus.designerTableIndexChangePriorityDialog");b.require("parus.designerReportTableDialog");b.require("parus.designerReportTableIndexDialog");b.require("parus.designerReportTableNotIncludedIndexesDictionaryDialog");b.require("parus.designerReportTableTotalDialog");b.require("parus.designerReportTableConstraintDialog");b.require("parus.designerReportTableConstraintAttributeDialog");
b.declare("parus.designerReportTablesDictionaryDialog",[parus.editableDictionaryDialog],{createMenu:function(){var a=new t.Menu({"class":"balanceMenu"});a.addChild(new t.MenuItem({label:"\u0418\u0442\u043e\u0433\u0438...",itemAction:!0,onClick:b.hitch(this,this.showTotals)}));a.addChild(new t.MenuItem({label:"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f...",itemAction:!0,onClick:b.hitch(this,this.showConstraints)}));a.startup();this.menu=a;this.inherited(arguments);return a},
createDetailMenu:function(){this.detailMenu=this.createIndexPopupMenu(this,this.detailGrid,!0,this.getTableRN);this.inherited(arguments);return this.detailMenu},getTableRN:function(){var a=this.grid,c=a.store;a=a.selection.getFirstSelected();return c.getValue(a,"RN")},createIndexPopupMenu:function(a,c,e,f){var g=new t.Menu({"class":"balanceMenu"});g.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u043e\u043c...",itemAction:!1,detailAction:e,
onClick:b.hitch(a,function(){var h=f.call(a);parus.designerReportTablesDictionaryDialog.prototype.showNonIncludedIndexes(a,c,h)})}));g.addChild(new t.MenuItem({label:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430...",itemAction:!1,detailAction:e,onClick:b.hitch(a,function(){var h=f.call(a);(new parus.designerTableIndexChangePriorityDialog({prn:h,onApply:b.hitch(a,function(l){(l=parus.designerReportTableIndexDialog.prototype.executeChangePriority(h,
l.priorityEdit.attr("value")))&&parus.balance.refreshGrid(c);return l})})).show()})}));g.addChild(new t.MenuSeparator);g.startup();return g},showNonIncludedIndexes:function(a,c,e){var f=parus.dictionaries.DesignerBalanceTablesNotIncludedIndexes;b.mixin(f,{multiselect:!0,gridConditions:{PRN:e},onApply:b.hitch(a,function(g){(g=g.getValue())&&0<g.length&&parus.designerReportTableIndexDialog.prototype.executeInsertList(e,g)&&parus.balance.refreshGrid(c);return!0})});a.showDictionaryAction(f,parus.designerReportTableNotIncludedIndexesDictionaryDialog,
parus.designerTableModelIndexDialog,null)},showTotals:function(){var a=this.grid,c=a.store;a=a.selection.getFirstSelected();var e=parus.dictionaries.DesignerBalanceTableTotals,f=new t.Menu({"class":"balanceMenu"});f.addChild(new t.MenuItem({label:"\u041f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c",itemAction:!0,onClick:b.hitch(this,function(){this.totalsChangePriority(g,!0)})}));f.addChild(new t.MenuItem({label:"\u041f\u043e\u043d\u0438\u0437\u0438\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c",
itemAction:!0,onClick:b.hitch(this,function(){this.totalsChangePriority(g,!1)})}));b.mixin(e,{multiselect:!0,hideCancel:!0,editByDoubleClick:!0,gridConditions:{PRN:c.getValue(a,"RN")},menu:f});var g=this.showDictionaryAction(e,null,parus.designerReportTableTotalDialog,null)},totalsChangePriority:function(a,c){var e=a.grid,f=e.store,g=e.selection.getFirstSelected();"1"!=f.getValue(g,"KIND")&&parus.designerReportTableTotalDialog.prototype.executeChangePriority(f,g,c)&&parus.balance.refreshGrid(e,"RN",
f.getValue(g,"RN"))},showConstraints:function(){var a=this.grid,c=a.store;a=a.selection.getFirstSelected();var e=parus.dictionaries.DesignerBalanceTableConstraintsWithDetails;b.mixin(e,{multiselect:!0,hideCancel:!0,editByDoubleClick:!0,gridConditions:{PRN:c.getValue(a,"RN")},checkDetailGridPopupMenu:function(f,g,h){h=f.grid;f=h.store;if(h=h.selection.getFirstSelected()){var l="1"==f.getValue(h,"CONSTR_TYPE");b.forEach(g.getChildren(),function(m){m.disabled||!m.itemAction&&!m.detailAction||(m.attr("disabled",
l),m.toolBarButton&&m.toolBarButton.attr("disabled",m.disabled))})}}});this.showDictionaryAction(e,null,parus.designerReportTableConstraintDialog,parus.designerReportTableConstraintAttributeDialog)}})})},"parus/balanceStatusesDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceStatusesDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceStatusesDialog",[parus.Dialog],{statuses:null,
postCreate:function(){this.inherited(arguments);this.statusesGrid.attr("store",new parus.gridData({persistent:!0,_data:this.statuses,onComplete:b.hitch(this,function(a,c){this.statusesGrid.selection.select(0);this.statusesGrid.updateRow(0);this.statusesGrid.scrollToRow(0);this.statusesGrid.autoSelected=!0})}));this.statusesGrid.setQuery({})}})})},"parus/designerEdit":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerEdit");b.require("dijit.form.DateTextBox");b.require("dijit.form.NumberTextBox");
b.require("dijit.form.ValidationTextBox");b.require("dijit.form.TimeTextBox");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dictEdit");b.declare("parus.designerDictEdit",[parus.dictEdit],{unitCode:null,methodCode:null,inCode:null,outCode:null,dictionaryInfoText:null,dictionaryInfoPending:!1,autoComplete:!1,postMixInProperties:function(){this._checkInfo();this.inherited(arguments)},_dictionaryInfoLoaded:function(){if(this.autoComplete){var a=b.fromJson(this.dictionaryInfoText);
this.searchAttr=a.labelField;var c=this.unitCode+"#"+this.methodCode+"#"+this.inCode+"#"+this.outCode,e=parus.dictionaries._stores?parus.dictionaries._stores[c]:null;if(!e){var f=a.labelAttr;b.forEach(a.columns,function(g){g.fieldName==a.labelAttr&&(f=g.sortField||a.labelAttr)});e={attribute:a.labelAttr,descending:!1,field:f};e=new parus.gridData({asJson:!0,persistent:!0,__lastSort:b.clone(e),__lastConditions:{__sort:b.clone(e)},_data:parus.database.queryObject(a.queryID,this.onGetGridConditions()||
{})});parus.dictionaries._stores||(parus.dictionaries._stores={});parus.dictionaries._stores[c]=e}this.store=e;this.store.fetch({start:0,query:{},queryOptions:{ignoreCase:!0,deep:!0},onBegin:b.hitch(this,function(g){this._itemCount=g;null!=parus.dictionaries._autoCompleteLimit&&this._itemCount>=parus.dictionaries._autoCompleteLimit&&(this.autoComplete=!1,this.searchAttr="")})});this._setStoreAttr(this.store)}},_checkInfo:function(){this.unitCode&&this.methodCode&&this.inCode&&this.outCode&&!this.dictionaryInfoText&&
!this.dictionaryInfoPending&&(this.dictionaryInfoPending=!0,parus.database.execute("designerUnitInfo",{UNITCODE:this.unitCode,METHOD_CODE:this.methodCode,INPARAM_CODE:this.inCode,OUTPARAM_CODE:this.outCode},b.hitch(this,function(a){this.dictionaryInfoText=parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"clobDEFINITION");this.dictionaryInfoPending=!1;this._dictionaryInfoLoaded()}),b.hitch(this,function(a){b.query(".dijitArrowButtonInner",this.domNode).style({display:"none"});this.dictionaryInfoText=
"{}";this.dictionaryInfoPending=!1})))},onGetGridConditions:function(){var a=this.inherited(arguments)||{};b.mixin(a,{UNITCODE:this.unitCode,METHOD_CODE:this.methodCode,INPARAM_CODE:this.inCode,OUTPARAM_CODE:this.outCode});return a},dictButtonClick:function(){this._checkInfo();if(!this.showingDictionary)if(this.dictionaryInfoPending)setTimeout(b.hitch(this,arguments.callee),1E3);else{var a=b.fromJson(this.dictionaryInfoText);b.mixin(a,{multiselect:this.multiselect,label:this.value,dictionary:a,unitCode:this.unitCode||
a.unitCode,gridConditions:this.onGetGridConditions(),userDataSection:this.unitCode||a.unitCode,menu:this.menu,catalogConditions:{METHOD_CODE:this.methodCode,INPARAM_CODE:this.inCode,OUTPARAM_CODE:this.outCode},onApply:b.hitch(this,function(c){this.setValue(c.getLabel());this.onApplyDictionary(c);return!0}),onClose:b.hitch(this,function(c){this.showingDictionary=!1;t.focus(this.focusNode)})});this.showingDictionary=!0;t.hideTooltip(this.domNode);setTimeout(function(){(new parus.dictionaryDialog(a)).show()},
100)}}})})},"parus/abonentCopyReportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.abonentCopyReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.abonentCopyReportDialog",[parus.Dialog],{formCode:null,getDatesCondition:function(){return{FORM_CODE:this.formCode}}})})},"parus/balanceReportDigitalSignaturesDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportDigitalSignaturesDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("parus.parus8");b.require("parus.gridData");b.require("parus.dialog");b.require("parus.digitalSignature");b.declare("parus.balanceReportDigitalSignaturesDialog",[parus.Dialog],{rn:null,unitCode:null,postCreate:function(){this.inherited(arguments);var a=b.clone(this.signaturesGrid.structure);b.forEach(a[0].cells[0],
b.hitch(this,function(c){"SIGN_STATE"==c.field?c.formatter=this.formatSignState:"STRUCT_STATE"==c.field&&(c.formatter=this.formatStructureState)}));this.signaturesGrid.attr("structure",a);this.signaturesGrid.attr("store",this.signaturesGridStore());this.signaturesGrid.setQuery(this.signaturesGrid.query);this.signaturesPopupMenu.bindDomNode(this.signaturesGrid.viewsNode);parus.balance._createActionsButton(this.signaturesPopupMenu,this.signaturesGridHeaderPane);if(a=parus.userdata.get(this.declaredClass))parus.gridSettingsDialog.mergeGridSettings(this.signaturesGrid,
a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.signaturesGrid,a.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.signaturesPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions)},destroy:function(){this.inherited(arguments)},signaturesGridStore:function(){return parus.gridData({queryid:"DigitalSignatures",onGetConditions:b.hitch(this,function(a){return{RN:this.rn,UNITCODE:this.unitCode}}),onComplete:b.hitch(this,function(a,c){0<c.length&&
!this.signaturesGrid.selection.getSelectedCount()&&(this.signaturesGrid.selection.select(0),this.signaturesGrid.autoSelected=!0)})})},checkSign:function(){for(var a=this.signaturesGrid,c=a.selection.getFirstSelected(),e=[],f=0;f<a.selection.getSelectedCount();f++){var g=a.store.getValue(c,"RN"),h="1"==a.store.getValue(c,"SIMPLESIGN"),l=parus.database.execute("VerifySign",{RN:g,DOCUMENT:this.rn,UNITCODE:this.unitCode});if(l){var m=parus.parus8.nodeField(parus.parus8.rowNodes(l)[0],"STRUCT_CHANGED"),
p=a.store.findIndex("RN",g);if(0<=p){p=a.getItem(p);h?p.setAttribute("formatSignState","\u041d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0430\u0441\u044c"):e.push({rn:g,data:parus.parus8.nodeField(parus.parus8.rowNodes(l)[0],"clobDOC_DATA"),signedData:parus.parus8.nodeField(parus.parus8.rowNodes(l)[0],"clobSIGN"),structChanged:m});g="";switch(m){case "0":g="\u041d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430";break;case "1":g="\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0430";
break;case "2":g="\u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f"}p.setAttribute("formatStructureState",g)}}c=a.selection.getNextSelected(c)}a.setQuery(a.query);parus.digitalSignature.checkPlugin().then(b.hitch(this,function(){parus.digitalSignature.checkSign(e).then(b.hitch(this,function(r){b.forEach(r,function(w){var x=a.store.findIndex("RN",w.rn);0<=x&&a.getItem(x).setAttribute("formatSignState",w.checkResult?"\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u0430":
w.checkError)});a.setQuery(a.query)}),function(r){this.close();parus.parus8.errorMessage(r)})}),function(r){parus.parus8.errorMessage(r)})},formatSignState:function(a,c,e){return e.grid.getItem(c).getAttribute("formatSignState")||"\u041d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e"},formatStructureState:function(a,c,e){return e.grid.getItem(c).getAttribute("formatStructureState")||"\u041d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e"}})})},"parus/designerReportPeriodDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.designerReportPeriodDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.editDictionaryDialog");b.declare("parus.designerReportPeriodDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",a.getValue(c,
"CODE")),this.nameEdit.attr("value",a.getValue(c,"NAME")))},executeInsert:function(a){if(a=parus.database.execute("insertDesignerReportPeriod",{CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("updateDesignerReportPeriod",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("deleteDesignerReportPeriod",
{RN:a.getValue(c,"RN")})}})})},"parus/designer":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designer");b.require("dojo.date.locale");b.require("dijit.dijit");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.TabContainer");b.require("dijit.layout.ContentPane");b.require("dijit.Menu");b.require("dijit.Tree");b.require("dijit.tree._dndSelector");b.require("dijit.form.Textarea");b.require("dijit.Toolbar");b.require("dijit.ToolbarSeparator");b.require("dojox.grid.DataGrid");
b.require("dojox.grid.EnhancedGrid");b.require("dojox.grid.enhanced._PluginManager");b.require("dojox.grid.enhanced.plugins.IndirectSelection");b.require("dojox.grid.enhanced.plugins.Selector");b.require("parus.cache");b.require("parus.balance");b.require("parus.catalogTreeModel");b.require("parus.gridData");b.require("parus.catalogActions");b.require("parus.userdata");b.require("parus.confirmationDialog");b.require("parus.treeDialog");b.require("parus.gridSettingsDialog");b.require("parus.gridStatus");
b.require("parus.gridColumnsFilter");b.require("parus.customIconsPalette");b.require("parus.excelFileFormatDialog");b.require("parus.excelColorModeDialog");b.require("parus.exportGridDialog");b.require("parus.designerTemplatesDialog");b.require("parus.designerReportDialog");b.require("parus.designerReportEditionDialog");b.require("parus.designerEditionSplitDialog");b.require("parus.designerReportFormulaDialog");b.require("parus.designerReportCheckListDialog");b.require("parus.designerReportLinkDialog");
b.require("parus.designerReportIndexDialog");b.require("parus.designerReportTablesDictionaryDialog");b.require("parus.designerReportTableDialog");b.require("parus.designerReportTableIndexDialog");b.require("parus.designerReportSectionDialog");b.require("parus.designerSectionDialog");b.require("parus.designerIndexDialog");b.require("parus.designerIndexFormulaDialog");b.require("parus.designerIndexGroupDialog");b.require("parus.designerIndexGroupPartDialog");b.require("parus.editableDictionaryDialog");
b.require("parus.designerTemplatesCheckDialog");parus||(parus={});parus.balance||b.mixin(parus,{balance:{}});b.mixin(parus.balance,{_createFormsPane:function(a){parus.balance.formsPage=new t.layout.ContentPane({style:"height:100%;width:100%;padding:0",title:parus.balance.formatPageTitle("\u0424\u043e\u0440\u043c\u044b\x3cbr/\x3e\u043e\u0442\u0447\u0435\u0442\u043e\u0432"),href:b.moduleUrl("parus","designer.html").toString(),selected:!0,region:"center",onShow:function(){8>=b.isIE?(parus.balance._shownPages[page.id]?
setTimeout(function(){parus.catalogActions.refreshCatalogTree(parus.balance.formsCatalogTree)},1E3):parus.balance.refreshGrid(parus.balance.formsMasterGrid),parus.balance._shownPages[page.id]=!0):parus.balance.refreshGrid(parus.balance.formsMasterGrid)},onLoad:function(){parus.balance.applicationCode&&(parus.balance._processMenu(parus.balance.formsMasterGridPopupMenu,function(f){f.removeForApplications&&0<=b.indexOf(f.removeForApplications.split(";"),parus.balance.applicationCode)&&f.destroyRecursive()}),
parus.balance._processMenu(parus.balance.formsDetailGridPopupMenu,function(f){f.removeForApplications&&0<=b.indexOf(f.removeForApplications.split(";"),parus.balance.applicationCode)&&f.destroyRecursive()}));var c=[];b.forEach(parus.balance._docprops,function(f){"1"==parus.parus8.nodeField(f,"SHOW_IN_GRID")&&c.push({colSpan:1,propRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,"DATATYPE"),dataSubType:parus.parus8.nodeField(f,"SUBTYPE"),field:"prop"+parus.parus8.nodeField(f,"RN"),
name:parus.parus8.nodeField(f,"CODE"),formatter:parus.balance.formatDocPropValue,width:"121px",styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":"right")+";",sortField:2==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_DATE_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceReports', T.RN)":1==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_NUM_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceReports', T.RN)":"F_DOCS_PROPS_GET_STR_VALUE("+parus.parus8.nodeField(f,"RN")+
",'BalanceReports', T.RN)"})});b.forEach(parus.balance._masterAttrDescriptors,function(f){c.push({colSpan:1,attrRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(f,"RN"),name:parus.parus8.nodeField(f,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(f,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(f,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":
"right")+";",sortField:"2"==parus.parus8.nodeField(f,"PARAMCOUNT")?parus.parus8.nodeField(f,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(f,"STOREDPROC")+"(T.RN)"})});if(c.length){var e=b.clone(parus.balance.formsMasterGrid.structure);e[0].cells[0]=e[0].cells[0].concat(c);parus.balance.formsMasterGrid.setStructure(e)}c=[];b.forEach(parus.balance._detailDocprops,function(f){"1"==parus.parus8.nodeField(f,"SHOW_IN_GRID")&&c.push({colSpan:1,propRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,
"DATATYPE"),dataSubType:parus.parus8.nodeField(f,"SUBTYPE"),field:"prop"+parus.parus8.nodeField(f,"RN"),name:parus.parus8.nodeField(f,"CODE"),formatter:parus.balance.formatDocPropValue,width:"121px",styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":"right")+";",sortField:2==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_DATE_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceSubReports', T.RN)":1==parus.parus8.nodeField(f,"DATATYPE")?"F_DOCS_PROPS_GET_NUM_VALUE("+parus.parus8.nodeField(f,
"RN")+",'BalanceSubReports', T.RN)":"F_DOCS_PROPS_GET_STR_VALUE("+parus.parus8.nodeField(f,"RN")+",'BalanceSubReports', T.RN)"})});b.forEach(parus.balance._detailAttrDescriptors,function(f){c.push({colSpan:1,attrRN:parus.parus8.nodeField(f,"RN"),dataType:parus.parus8.nodeField(f,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(f,"RN"),name:parus.parus8.nodeField(f,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(f,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(f,
"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(f,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(f,"PARAMCOUNT")?parus.parus8.nodeField(f,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(f,"STOREDPROC")+"(T.RN)"})});c.length&&(e=b.clone(parus.balance.formsDetailGrid.structure),e[0].cells[0]=e[0].cells[0].concat(c),parus.balance.formsDetailGrid.setStructure(e));parus.balance._createActionsButton(parus.balance.formsCatalogTreePopupMenu,parus.balance.formsCatalogTreeHeaderPane);
parus.balance._createActionsButton(parus.balance.formsMasterGridPopupMenu,parus.balance.formsMasterGridHeaderPane);parus.balance._createActionsButton(parus.balance.formsDetailGridPopupMenu,parus.balance.formsDetailGridHeaderPane);parus.balance._formsConditions=parus.userdata.get("formsConditions")||{};parus.balance.formsCatalogTreePopupMenu.bindDomNode(parus.balance.formsCatalogTree.domNode);parus.balance.formsMasterGridPopupMenu.bindDomNode(parus.balance.formsMasterGrid.viewsNode);parus.balance.formsDetailGridPopupMenu&&
parus.balance.formsDetailGridPopupMenu.bindDomNode(parus.balance.formsDetailGrid.viewsNode);(e=parus.userdata.get("parus.balance.formsCatalogTree"))&&parus.gridSettingsDialog.mergeMenuSettings(parus.balance.formsCatalogTreePopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions);if(e=parus.userdata.get("parus.balance.formsMasterGrid"))parus.gridSettingsDialog.setCatalogTreeVisible(parus.balance.formsCatalogTree,!e.hideCatalogTree),parus.gridSettingsDialog.mergeAdditions(parus.balance.formsSettingsAdditions(),
e.additions),parus.gridSettingsDialog.mergeMenuSettings(parus.balance.formsMasterGridPopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.formsMasterGrid,e.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.formsMasterGrid,e.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.formsMasterGrid,e.showFilterBar,e.filterValues,e.sortInfo),parus.balance.formsMasterGrid.abonentFields=
(e.abonentFields||parus.balance.formsMasterGrid.abonentFields.split(";")).join(";");if(e=parus.userdata.get("parus.balance.formsDetailGrid"))parus.gridSettingsDialog.mergeMenuSettings(parus.balance.formsDetailGridPopupMenu,e.actionSettings,e.userProcsActions,e.userReportsActions,e.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(parus.balance.formsDetailGrid,e.gridSettings),parus.gridSettingsDialog.mergeColorConditions(parus.balance.formsDetailGrid,e.colorConditions),parus.gridSettingsDialog.mergeFilterBar(parus.balance.formsDetailGrid,
e.showFilterBar,e.filterValues,e.sortInfo),parus.balance.formsDetailGrid.abonentFields=(e.abonentFields||parus.balance.formsDetailGrid.abonentFields.split(";")).join(";");parus.balance.formsCatalogTree.model=parus.balance.formsCatalogTreeStoreModel(parus.balance.formsCatalogTree);parus.catalogActions.refreshCatalogTree(parus.balance.formsCatalogTree);parus.balance._catalogChangeBuffer={};parus.balance._translateConditionsToFilters(parus.balance._formsConditions,parus.balance.formsMasterGrid.columnsFilterObject.values);
parus.parus8.showApplication(function(){setTimeout(function(){parus.balance.formsMasterGrid.focus.focusGrid()},300)})}},a)},startupDesigner:function(){parus.balance.availableUnits=b.map(parus.parus8.rowNodes(parus.database.query("availableUnits")),function(a){return parus.parus8.nodeField(a,"UNITCODE")});-1==b.indexOf(parus.balance.availableUnits,"BalanceReportForms")?parus.parus8.errorMessage('\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \x3cbr/\x3e "\u0424\u043e\u0440\u043c\u044b \u043e\u0442\u0447\u0435\u0442\u043e\u0432"\x3cbr/\x3e \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \x3cbr/\x3e "\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438. \u0426\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430 \u041e\u043d\u043b\u0430\u0439\u043d". \x3cbr/\x3e\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443.',
parus.parus8.logout):(-1!=b.indexOf(parus.balance.availableUnits,"BalanceNotifications")&&parus.parus8.checkNotifications(),parus.balance.formsPage=(new t.layout.ContentPane({href:b.moduleUrl("parus","balance.html").toString(),preload:!0,"class":parus.parus8.zoomContainerClass(),onLoad:function(){parus.parus8.interfaceSchemaLoaded("designer");parus.balance._createFormsPane();parus.balance.TabContainer.addChild(parus.balance.formsPage)}},parus.parus8.applicationNode())).startup())},formsCatalogTreeStoreModel:function(a){return new parus.catalogTreeModel({queryid:"catalogsQuery",
onGetConditions:function(c,e){return a&&a.hiddenMode?{CRN:parus.parus8.CLASS_EmptyData}:{UNITCODE:"BalanceReportForms",CRN:e?c.getIdentity(e):"!*"}}})},formsDetailGridStore:function(a,c,e){return new parus.gridData({queryid:"BalanceReportFormEditions",parentUnitCode:"BalanceReportForms",onGetConditions:b.hitch(this,function(f){var g=c.store,h=c.selection.getSelectedIndex();h=0<=h?c.getItem(h):null;var l={PRN:g.getValue(h,"RN")||parus.parus8.CLASS_EmptyData};f.parentRN=g.getValue(h,"RN");return l}),
onComplete:b.hitch(this,function(f,g,h){var l=a.selectedItem,m=parus.parus8.denote(e),p=function(r){b.forEach(r.getChildren(),function(w){if("dijit.MenuSeparator"!=w.declaredClass){w.userObjectsGrid=m;var x=a.listMode?!1:!a.model.hasAction(l,w.actionCode);a.model.checkAccess()&&!w.hiddenBySettings&&(w.domNode.style.display=x?"none":"");!x&&0==g.length&&w.itemAction&&(x=!0);"dijit.MenuSeparator"!=w.declaredClass&&w.attr("disabled",x);w.popup&&(w.popup.from_item=w,p(w.popup))}})};p(m.headerMenu);parus.parus8.checkMenuSeparators(m.headerMenu);
0<g.length&&!h.start&&(m.selection.select(0),m.updateRow(0),m.autoSelected=!0);setTimeout(function(){t.popup.getTopPopup()||b.marginBox(c.domNode).w&&c.focus.focusGrid()},0)})})},formsMasterGridStore:function(a,c){return parus.gridData({queryid:"BalanceReportForms",onGetConditions:b.hitch(this,function(e){var f=parus.parus8.denote(c);if(!a.selectedItem&&a.rootNode){var g=[],h=parus.userdata.get(c+"selectedCatalog");h.selectedCatalog&&(g=h.selectedCatalog.split(";"));if(0==g.length||""==g[0]){var l=
parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReportForms"});l&&(g=parus.parus8.nodeField(parus.parus8.rowNodes(l)[0],"PATH").split(";"))}if(0==g.length||""==g[0])g=[a.rootNode.item];(g=a.attr("path",g))&&g.addCallback&&g.addCallback(function(){delete parus.balance._catalogChangeBuffer[a.id];a.onClick()});h.checks&&a.setCheckedPaths(b.map(h.checks.split(";"),function(r){return r.split("/")}))}var m=[];a.checked.length?b.forEach(a.checked,function(r){m.push(a.model.getIdentity(r.item))}):
b.forEach(a.paths,function(r){a.model.isValid(r[r.length-1])&&m.push(a.model.getIdentity(r[r.length-1]))});e.catalogRN=a.listMode?null:m[0];e={CRN:a.listMode?null:m.join(";")||parus.parus8.CLASS_EmptyData};var p=a.selectedItem;b.forEach(f.headerMenu.getChildren(),function(r){r.actionCode&&"dijit.MenuSeparator"!=r.declaredClass&&r.attr("disabled",!a.model.hasAction(p,r.actionCode))});return e}),onComplete:b.hitch(this,function(e,f,g){var h=a.selectedItem,l=parus.parus8.denote(c),m=function(p){b.forEach(p.getChildren(),
function(r){if("dijit.MenuSeparator"!=r.declaredClass){r.userObjectsGrid=l;var w=a.listMode?!1:!a.model.hasAction(h,r.actionCode);a.model.checkAccess()&&!r.hiddenBySettings&&(r.domNode.style.display=w?"none":"");!w&&0==f.length&&r.itemAction&&(w=!0);"dijit.MenuSeparator"!=r.declaredClass&&r.attr("disabled",w);r.popup&&(r.popup.from_item=r,m(r.popup))}})};m(l.headerMenu);parus.parus8.checkMenuSeparators(l.headerMenu);0<f.length&&!l.selection.getSelectedCount()&&!g.start&&(l.selection.select(0),l.updateRow(0),
l.autoSelected=!0);l.onSelected()})})},formsMasterGridChange:function(a,c,e){parus.balance._refreshDetailGridTimeoutID&&clearTimeout(parus.balance._refreshDetailGridTimeoutID);parus.balance._refreshDetailGridTimeoutID=setTimeout(b.hitch(parus.balance,function(){this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID);this._refreshDetailGridTimeoutID=null;parus.balance._validateMenuByGrid(parus.parus8.denote(c),parus.parus8.denote(e));var f=parus.parus8.denote(c),g=f.store,
h=f.selection.getSelectedIndex();f=0<=h?f.getItem(h):null;g=g.getValue(f,"RN")||parus.parus8.CLASS_EmptyData;this._catalogChangeBuffer[c]!=g&&(this._catalogChangeBuffer[c]=g,(f=parus.parus8.denote(a))&&parus.balance.refreshGrid(f))}),300)},showFormsPage:function(a){8>=b.isIE?(parus.balance._shownPages[a.id]?setTimeout(function(){parus.catalogActions.refreshCatalogTree(parus.balance.formsCatalogTree)},1E3):parus.balance.refreshGrid(parus.balance.formsMasterGrid),parus.balance._shownPages[a.id]=!0):
parus.balance.refreshGrid(parus.balance.formsMasterGrid)},formsSettingsAdditions:function(){return{}},createForm:function(a,c){parus.editableDictionaryDialog.prototype.insertAction(this,c,parus.designerReportDialog)},duplicateForm:function(a,c){parus.editableDictionaryDialog.prototype.duplicateAction(this,c,parus.designerReportDialog)},editForm:function(a){parus.editableDictionaryDialog.prototype.updateAction(this,a,parus.designerReportDialog)},deleteForm:function(a){parus.editableDictionaryDialog.prototype.deleteAction(this,
a,parus.designerReportDialog)},moveForm:function(a){var c=a.store,e=a.selection.getFirstSelected();(new parus.treeDialog({model:parus.balance.formsCatalogTreeStoreModel(),key:"BalanceReportForms",onDefaultNeeded:function(){var f=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReportForms"});return f?parus.parus8.nodeField(parus.parus8.rowNodes(f)[0],"PATH"):null},onPerform:function(f){for(var g=0;g<a.selection.getSelectedCount();g++)parus.database.execute("moveDesignerReport",{RN:c.getValue(e,
"RN"),CRN:f}),e=a.selection.getNextSelected(e);a.selection.deselectAll();parus.balance.refreshGrid(a);return!0}})).show()},createEdition:function(a){parus.editableDictionaryDialog.prototype.insertAction(this,a,parus.designerReportEditionDialog)},duplicateEdition:function(a){parus.editableDictionaryDialog.prototype.duplicateAction(this,a,parus.designerReportEditionDialog)},editEdition:function(a){parus.editableDictionaryDialog.prototype.updateAction(this,a,parus.designerReportEditionDialog)},deleteEdition:function(a){parus.editableDictionaryDialog.prototype.deleteAction(this,
a,parus.designerReportEditionDialog)},editionSections:function(a){var c=a.store;a=a.selection.getFirstSelected();var e=c.getValue(a,"RN");c=new t.Menu({"class":"balanceMenu"});c.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",itemAction:!1,defaultIcon:"PCHardwareadaltCustomIcon",onClick:b.hitch(this,function(){(new parus.designerReportSectionDialog({titlePostfix:"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435",prn:e,onApply:b.hitch(this,function(g){if(g=
g.executeInsert()){var h=parus.parus8.nodeField(parus.parus8.rowNodes(g)[0],"NRN"),l=parus.parus8.nodeField(parus.parus8.rowNodes(g)[0],"PATH");l&&(l=l.split(";"),parus.catalogActions.refreshCatalogTree(f.catalogTree).then(function(){f.catalogTree.attr("path",l)}))}return!!h})})).show()})}));c.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",itemAction:!0,defaultIcon:"PCreduceCustomIcon",onClick:b.hitch(this,function(){parus.catalogActions.deleteCatalogTreeItem(f.catalogTree,
"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0437 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438","designer.BalanceReportForm.Sections.Delete")})}));c.addChild(new t.MenuSeparator);c.addChild(new t.MenuItem({label:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",itemAction:!1,defaultIcon:"PCisyncCustomIcon",onClick:b.hitch(this,function(){parus.catalogActions.refreshCatalogTree(f.catalogTree)})}));c.startup();var f=new parus.treeDialog({title:"\u0420\u0430\u0437\u0440\u0435\u0437\u044b \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u0444\u043e\u0440\u043c\u044b",
key:"BalanceReportFormsSections",restoreSelected:!0,model:new parus.catalogTreeModel({queryid:"designer.BalanceReportForm.Sections",onGetConditions:b.hitch(this,function(g,h){return{PRN:e,CRN:h?g.getIdentity(h):"!*"}})}),menu:c});f.show()},showIndexes:function(a,c){var e=parus.dictionaries.DesignerBalanceIndexesWithDetails;b.mixin(e,{multiselect:a,dictionary:e,editDialogClass:parus.designerIndexDialog,editDetailDialogClass:parus.designerIndexFormulaDialog,onApply:b.hitch(this,function(f){c&&c(f);
return!0})});(new parus.editableDictionaryDialog(e)).show()},showIndexesGroups:function(a,c){var e=parus.dictionaries.DesignerBalanceIndexesGroupsWithDetails,f=new t.Menu({"class":"balanceMenu"});f.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u043e\u043c...",itemAction:!1,onClick:b.hitch(this,function(){this.showIndexes(!0,b.hitch(this,function(h){var l=g.detailGrid.store.parentRN;(h=h.getValue())&&0<h.length&&parus.designerIndexGroupPartDialog.prototype.executeInsertList(l,
h)&&parus.balance.refreshGrid(g.detailGrid)}))})}));f.startup();b.mixin(e,{multiselect:a,dictionary:e,editDialogClass:parus.designerIndexGroupDialog,editDetailDialogClass:parus.designerIndexGroupPartDialog,onApply:b.hitch(this,function(h){c&&c(h);return!0}),detailMenu:f});var g=new parus.editableDictionaryDialog(e);g.show()},editionIndexes:function(a){var c=a.store;a=a.selection.getFirstSelected();var e=c.getValue(a,"RN");c=parus.dictionaries.DesignerBalanceReportFormIndexes;a=new t.Menu({"class":"balanceMenu"});
a.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u043e\u043c...",itemAction:!1,onClick:b.hitch(this,function(){this.showIndexes(!0,b.hitch(this,function(g){(g=g.getValue())&&0<g.length&&parus.designerReportIndexDialog.prototype.executeInsertList(e,g)&&parus.balance.refreshGrid(f.grid)}))})}));a.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443...",itemAction:!1,onClick:b.hitch(this,
function(){this.showIndexesGroups(!1,b.hitch(this,function(g){g=g.getLabel();parus.designerReportIndexDialog.prototype.executeInsertGroup(e,g)&&parus.balance.refreshGrid(f.grid)}))})}));a.startup();b.mixin(c,{dictionary:c,unitCode:c.unitCode,multiselect:!0,hideCancel:!0,editByDoubleClick:!0,editDialogClass:parus.designerReportIndexDialog,gridConditions:{PRN:e},menu:a});var f=new parus.editableDictionaryDialog(c);f.show()},editionTables:function(a){var c=a.store;a=a.selection.getFirstSelected();c=
c.getValue(a,"RN");a=parus.dictionaries.DesignerBalanceTablesWithIndexes;b.mixin(a,{dictionary:a,unitCode:a.unitCode,multiselect:!0,hideCancel:!0,editByDoubleClick:!0,editDialogClass:parus.designerReportTableDialog,editDetailDialogClass:parus.designerReportTableIndexDialog,gridConditions:{PRN:c}});(new parus.designerReportTablesDictionaryDialog(a)).show()},editionLinks:function(a){var c=a.store;a=a.selection.getFirstSelected();c=c.getValue(a,"RN");a=parus.dictionaries.DesignerBalanceReportFormLinks;
b.mixin(a,{dictionary:a,unitCode:a.unitCode,multiselect:!0,hideCancel:!0,editByDoubleClick:!0,editDialogClass:parus.designerReportLinkDialog,gridConditions:{PRN:c}});(new parus.editableDictionaryDialog(a)).show()},editionCheckLists:function(a){var c=a.store;a=a.selection.getFirstSelected();c=c.getValue(a,"RN");a=parus.dictionaries.DesignerBalanceReportFormCheckList;b.mixin(a,{dictionary:a,unitCode:a.unitCode,multiselect:!0,hideCancel:!0,editByDoubleClick:!0,editDialogClass:parus.designerReportCheckListDialog,
gridConditions:{PRN:c}});(new parus.editableDictionaryDialog(a)).show()},editionFormulas:function(a){var c=a.store;a=a.selection.getFirstSelected();c=c.getValue(a,"RN");a=parus.dictionaries.DesignerBalanceReportFormFormulas;b.mixin(a,{dictionary:a,unitCode:a.unitCode,multiselect:!0,hideCancel:!0,editByDoubleClick:!0,editByDoubleClick:!0,editDialogClass:parus.designerReportFormulaDialog,gridConditions:{PRN:c}});(new parus.editableDictionaryDialog(a)).show()},editionSplit:function(a){var c=a.store,
e=a.selection.getSelectedIndex();e=a.getItem(e);(new parus.designerEditionSplitDialog({rn:c.getValue(e,"RN"),onApply:b.hitch(this,function(f){var g=f.split();g&&parus.balance.refreshGrid(a,"RN",f.rn);return g})})).show()},editionTemplates:function(a){var c=a.store,e=a.selection.getSelectedIndex();a=a.getItem(e);(new parus.designerTemplatesDialog({editionRN:c.getValue(a,"RN")})).show()},editionCheckTemplates:function(a){var c=a.store,e=a.selection.getSelectedIndex();a=a.getItem(e);(new parus.designerTemplatesCheckDialog({rn:c.getValue(a,
"RN")})).show()},formatUserProcParamDataType:function(a,c,e){return"\u0421\u0442\u0440\u043e\u043a\u0430 (varchar2);\u0427\u0438\u0441\u043b\u043e (number);\u0414\u0430\u0442\u0430 (date);\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 (boolean);\u0414\u0432\u043e\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (blob);\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (clob)".split(";")[a]},formatUserProcParamType:function(a,
c,e){return["\u0412\u0445\u043e\u0434\u043d\u043e\u0439 (in)","\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439 (out)"][a]},formatUserProcParamLinking:function(a,c,e){return"\u041d\u0435\u0442;\u041a \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438;\u041a \u0440\u0430\u0437\u0434\u0435\u043b\u0443;\u041a \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443 \u0432\u0435\u0434\u043e\u043c\u043e\u0441\u0442\u0438;\u041a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443 \u0437\u0430\u043f\u0438\u0441\u0438;\u041a \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u043b\u043e\u0432\u0430\u0440\u044e;\u041a \u043a\u043e\u0434\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0430;\u041a \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439;\u041a \u041d\u0435\u0442".split(";")[a]},
formatCheckErrorLevel:function(a,c,e){return["\u041e\u0448\u0438\u0431\u043a\u0430","\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435"][a]},formatBalanceIndexType:function(a,c,e){return["\u0421\u0442\u0440\u043e\u043a\u0430","\u0427\u0438\u0441\u043b\u043e","\u0414\u0430\u0442\u0430"][a]},formatBalanceIndexAgrFunc:function(a,c,e){return["\u0421\u0443\u043c\u043c\u0430","\u0421\u0440\u0435\u0434\u043d\u0435\u0435","\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435",
"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435"][a]},formatBalanceTableTotalKind:function(a,c,e){return["\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439","\u041e\u0431\u0449\u0438\u0439"][a]},formatBalanceTableTotalLocation:function(a,c,e){return["\u041f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438","\u041d\u0430\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438"][a]},formatBalanceTableConstraintType:function(a,c,e){return["\u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c",
"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430"][a]}});parus.designer||b.mixin(parus,{designer:{}});parus.designer.startup||b.mixin(parus.designer,{startup:b.hitch(parus.balance,parus.balance.startupDesigner)})})},"parus/designerReportTableDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportTableDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");
b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerTableModelsDictionaryDialog");b.declare("parus.designerReportTableDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));a&&c&&(this.tableEdit.attr("value",a.getValue(c,"CODE")),this.nameEdit.attr("value",
a.getValue(c,"NAME")),this.priorityEdit.attr("value",a.getValue(c,"PRIORITY")),this.signTotalsCheckBox.attr("checked","1"==a.getValue(c,"SIGN_TOTALS")),this.sourceToResultCheckBox.attr("checked","1"==a.getValue(c,"SOURCE_TO_RESULT")),this.sourceToUnionCheckBox.attr("checked","1"==a.getValue(c,"SOURCE_TO_UNION")),this.editMode&&this.tableEdit.attr("disabled",!0));this.tableEdit.onApplyDictionary=b.hitch(this,this.tableChanged)},tableChanged:function(a){a?this.nameEdit.attr("value",a.getFieldValue("NAME")):
this.tableEdit.showingDictionary||this.tableEdit.attr("value")||this.nameEdit.attr("value","")},signTotalsChanged:function(){var a=this.signTotalsCheckBox.attr("checked");parus.controlActions.setDisabled(this.sourceToResultCheckBox,!a);parus.controlActions.setDisabled(this.sourceToUnionCheckBox,!a&&!this.sourceToResultCheckBox.attr("checked"))},sourceToResultChanged:function(){parus.controlActions.setDisabled(this.sourceToUnionCheckBox,!this.sourceToResultCheckBox.attr("checked"))},executeInsert:function(a){if(a=
parus.database.execute("designer.BalanceTables.Insert",{RN:a?this.rn:null,PRN:this.prn,TABLEMODELS:this.tableEdit.attr("value"),NAME:this.nameEdit.attr("value"),PRIORITY:this.priorityEdit.attr("value"),SIGN_TOTALS:this.signTotalsCheckBox.attr("checked")?"1":"0",SOURCE_TO_RESULT:this.sourceToResultCheckBox.attr("checked")?"1":"0",SOURCE_TO_UNION:this.sourceToUnionCheckBox.attr("checked")?"1":"0"}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTables.Update",
{RN:this.rn,TABLEMODELS:this.tableEdit.attr("value"),NAME:this.nameEdit.attr("value"),PRIORITY:this.priorityEdit.attr("value"),SIGN_TOTALS:this.signTotalsCheckBox.attr("checked")?"1":"0",SOURCE_TO_RESULT:this.sourceToResultCheckBox.attr("checked")?"1":"0",SOURCE_TO_UNION:this.sourceToUnionCheckBox.attr("checked")?"1":"0"})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceTables.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/balanceReportCheckProtocolTabPage":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportCheckProtocolTabPage");b.require("dojo.date.locale");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.gridData");b.require("parus.dictEdit");b.require("parus.tabPage");b.require("parus.balanceCheckReportCheckDialog");b.declare("parus.balanceReportCheckProtocolTabPage",[parus.tabPage],{_refreshChecksDetailGridTimeoutID:null,_refreshCheckResultsGridTimeoutID:null,_refreshCheckResultsDetailGridTimeoutID:null,_onSelectedChecksMasterGridEventHandler:null,
_onSelectedChecksDetailGridEventHandler:null,rn:null,subRn:null,checklist:null,showResultReportOnly:!1,autonomousMode:!1,_initialized:!1,_checkResultsGridInitialized:!1,postCreate:function(){this.inherited(arguments);this._checksMasterAttrDescriptors=parus.parus8._attrDescriptors?parus.parus8.rowNodes(parus.database.execute("attrDescriptors",{UNITCODE:"BalanceCheckReports"}).documentElement.childNodes[0].childNodes[0].childNodes[0])||[]:[];this._checksDetailAttrDescriptors=parus.parus8._attrDescriptors?
parus.parus8.rowNodes(parus.database.execute("attrDescriptors",{UNITCODE:"BalanceCheckReportsSpecs"}).documentElement.childNodes[0].childNodes[0].childNodes[0])||[]:[];this._onSelectedChecksMasterGridEventHandler=b.connect(this.checksMasterGrid,"onSelected",this,this.checksMasterGridChange,!0);this._onSelectedChecksDetailGridEventHandler=b.connect(this.checksDetailGrid,"onSelected",this,this.checksDetailGridChange,!0);b.connect(this.detailsPane,"onShow",this,this.pageChanged,!0)},settingsAdditions:function(){return[{widget:this.detailsPane,
title:"\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b",id:"detailsPaneHiddenMode"}]},onShow:function(){var a=[];b.forEach(this._checksMasterAttrDescriptors,function(e){a.push({colSpan:1,attrRN:parus.parus8.nodeField(e,"RN"),dataType:parus.parus8.nodeField(e,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(e,"RN"),name:parus.parus8.nodeField(e,"NAME"),formatter:parus.balance.formatAttrValue,
width:"1"==parus.parus8.nodeField(e,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(e,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(e,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(e,"PARAMCOUNT")?parus.parus8.nodeField(e,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(e,"STOREDPROC")+"(T.RN)"})});if(a.length){var c=b.clone(this.checksMasterGrid.structure);c[0].cells[0]=c[0].cells[0].concat(a);this.checksMasterGrid.setStructure(c)}a=[];b.forEach(this._checksDetailAttrDescriptors,
function(e){a.push({colSpan:1,attrRN:parus.parus8.nodeField(e,"RN"),dataType:parus.parus8.nodeField(e,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(e,"RN"),name:parus.parus8.nodeField(e,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(e,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(e,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(e,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(e,"PARAMCOUNT")?parus.parus8.nodeField(e,
"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(e,"STOREDPROC")+"(T.RN)"})});a.length&&(c=b.clone(this.checkResultsGrid.structure),c[0].cells[0]=c[0].cells[0].concat(a),this.checkResultsGrid.setStructure(c),c=b.clone(this.checkResultsDetailGrid.structure),c[0].cells[0]=c[0].cells[0].concat(a),this.checkResultsDetailGrid.setStructure(c));this.checksMasterGrid.attr("store",this.checksMasterGridStore());this.checksDetailGrid.attr("store",this.checksDetailGridStore());this.checkResultsGrid.attr("store",
this.checkResultsGridStore());this.checkResultsDetailGrid.attr("store",this.checkResultsDetailGridStore());parus.balance._createActionsButton(this.checksMasterGridPopupMenu,this.headingPane);this.checksMasterGridPopupMenu.bindDomNode(this.checksMasterGrid.viewsNode);if(c=parus.userdata.get(this.declaredClass+"-checksMasterGrid"))parus.gridSettingsDialog.mergeGridSettings(this.checksMasterGrid,c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.checksMasterGrid,c.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.checksMasterGridPopupMenu,
c.actionSettings,c.userProcsActions,c.userReportsActions,c.userAppsActions),parus.gridSettingsDialog.mergeFilterBar(this.checksMasterGrid,c.showFilterBar,c.filterValues,c.sortInfo),parus.gridSettingsDialog.mergeAdditions(this.settingsAdditions(),c.additions);parus.balance._createActionsButton(this.checksDetailGridPopupMenu,this.checksDetailHeaderPane);this.checksDetailGridPopupMenu.bindDomNode(this.checksDetailGrid.viewsNode);if(c=parus.userdata.get(this.declaredClass+"-checksDetailGrid"))parus.gridSettingsDialog.mergeGridSettings(this.checksDetailGrid,
c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.checksDetailGrid,c.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.checksDetailGrid,c.showFilterBar,c.filterValues,c.sortInfo);parus.balance._createActionsButton(this.checkResultsDetailGridPopupMenu,this.checkResultsDetailHeaderPane);this.checkResultsDetailGridPopupMenu.bindDomNode(this.checkResultsDetailGrid.viewsNode);if(c=parus.userdata.get(this.declaredClass+"-checkResultsDetailGrid"))parus.gridSettingsDialog.mergeGridSettings(this.checkResultsDetailGrid,
c.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.checkResultsDetailGrid,c.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.checkResultsDetailGrid,c.showFilterBar,c.filterValues,c.sortInfo);parus.balance._createActionsButton(this.checkResultsGridPopupMenu,this.checkResultsHeaderPane);this.checkResultsGridPopupMenu.bindDomNode(this.checkResultsGrid.viewsNode);setTimeout(b.hitch(this,function(){this.checksMasterGrid.setQuery(this.checksMasterGrid.query);this._initialized=
!0}),100);this.autonomousMode&&(b.place("\x3cspan\x3e"+this.title+"\x3cspan\x3e",this.headingPane.getChildren()[0].containerNode,"only"),document.title=this.title)},destroy:function(){b.disconnect(this._onSelectedChecksMasterGridEventHandler);b.disconnect(this._onSelectedChecksDetailGridEventHandler);this.inherited(arguments)},getGridFieldValue:function(a,c){var e=a.store,f=a.selection.getSelectedIndex();f=a.getItem(f);return e.getValue(f,c)},checksMasterGridStore:function(){return parus.gridData({queryid:"ReportCheckProtocols",
onGetConditions:b.hitch(this,function(a){a={};a.REPORT=this.rn.join(";");this.checklist&&(a.CHECKLIST=this.checklist);this.subRn&&(a.BLSUBREPORT=this.subRn.join(";"));this.showResultReportOnly&&(a.BALSECTION="!*");return a}),onComplete:b.hitch(this,function(a,c){0<c.length&&!this.checksMasterGrid.selection.getSelectedCount()&&(this.checksMasterGrid.selection.select(0),this.checksMasterGrid.autoSelected=!0);b.forEach(this.checksMasterGridPopupMenu.getChildren(),b.hitch(this,function(e){e.userObjectsGrid=
this.checksMasterGrid;e.itemAction&&"dijit.MenuSeparator"!=e.declaredClass&&e.attr("disabled",0==c.length)}));parus.parus8.checkMenuSeparators(this.checksMasterGridPopupMenu)})})},checksDetailGridStore:function(){return parus.gridData({queryid:"ReportChecks",onGetConditions:b.hitch(this,function(a){return{PRN:this.getGridFieldValue(this.checksMasterGrid,"RN")||"!*"}}),onComplete:b.hitch(this,function(a,c){0<c.length&&!this.checksDetailGrid.selection.getSelectedCount()&&(this.checksDetailGrid.selection.select(0),
this.checksDetailGrid.autoSelected=!0);this.checksDetailGridChange()})})},checkResultsDetailGridStore:function(){return parus.gridData({queryid:"ReportCheckResults",onGetConditions:b.hitch(this,function(a){return{PRN:this.getGridFieldValue(this.checksDetailGrid,"PRN")||"!*",BLCHECK:this.getGridFieldValue(this.checksDetailGrid,"BLCHECK")||"!*"}}),onComplete:b.hitch(this,function(a,c){0<c.length&&!this.checkResultsDetailGrid.selection.getSelectedCount()&&(this.checkResultsDetailGrid.selection.select(0),
this.checkResultsDetailGrid.autoSelected=!0)})})},checkResultsGridStore:function(){return parus.gridData({queryid:"ReportCheckResults",onGetConditions:b.hitch(this,function(a){return{PRN:this.getGridFieldValue(this.checksMasterGrid,"RN")||"!*"}}),onComplete:b.hitch(this,function(a,c){0<c.length&&!this.checkResultsGrid.selection.getSelectedCount()&&(this.checkResultsGrid.selection.select(0),this.checkResultsGrid.autoSelected=!0)})})},pageChanged:function(){if(!this.detailsPages.selectedChildWidget.isFirstChild&&
!this._checkResultsGridInitialized){var a=parus.userdata.get(this.declaredClass+"-checkResultsGrid");a&&(parus.gridSettingsDialog.mergeGridSettings(this.checkResultsGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.checkResultsGrid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.checkResultsGrid,a.showFilterBar,a.filterValues));this._checkResultsGridInitialized=!0}setTimeout(b.hitch(this,function(){this.checksMasterGridChange()}),100)},checksMasterGridChange:function(){this._refreshChecksDetailGridTimeoutID&&
clearTimeout(this._refreshChecksDetailGridTimeoutID);this._refreshChecksDetailGridTimeoutID=null;this._refreshCheckResultsGridTimeoutID&&clearTimeout(this._refreshCheckResultsGridTimeoutID);this._refreshCheckResultsGridTimeoutID=null;this._initialized&&(this.detailsPages.selectedChildWidget.isFirstChild?this._refreshChecksDetailGridTimeoutID=setTimeout(b.hitch(this,this._refreshChecksDetailGrid),300):this._refreshCheckResultsGridTimeoutID=setTimeout(b.hitch(this,this._refreshCheckResultsGrid),300))},
checksDetailGridChange:function(){this._refreshCheckResultsDetailGridTimeoutID&&clearTimeout(this._refreshCheckResultsDetailGridTimeoutID);this._refreshCheckResultsDetailGridTimeoutID=setTimeout(b.hitch(this,this._refreshCheckResultsDetailGrid),300)},_onQueryComplete:null,_refreshChecksDetailGrid:function(){this._refreshChecksDetailGridTimeoutID&&clearTimeout(this._refreshChecksDetailGridTimeoutID);this._refreshChecksDetailGridTimeoutID=null;this._refreshCheckResultsDetailGridTimeoutID&&clearTimeout(this._refreshCheckResultsDetailGridTimeoutID);
this._refreshCheckResultsDetailGridTimeoutID=null;parus.balance.refreshGrid(this.checksDetailGrid)},_refreshCheckResultsDetailGrid:function(){this._refreshCheckResultsDetailGridTimeoutID&&clearTimeout(this._refreshCheckResultsDetailGridTimeoutID);this._refreshCheckResultsDetailGridTimeoutID=null;parus.balance.refreshGrid(this.checkResultsDetailGrid)},_refreshCheckResultsGrid:function(){this._refreshCheckResultsGridTimeoutID&&clearTimeout(this._refreshCheckResultsGridTimeoutID);this._refreshCheckResultsGridTimeoutID=
null;parus.balance.refreshGrid(this.checkResultsGrid)},editValues:function(){var a=this.checksMasterGrid.store,c=this.checksMasterGrid.selection.getSelectedIndex(),e=this.checksMasterGrid.getItem(c);this.autonomousMode&&!parus.parus8._embeddedMode?parus.database.query("BalanceReportTemplates",{REPORT:a.getValue(e,"REPORT")},b.hitch(this,function(f){f=parus.parus8.rowNodes(f);if(0==f.length)parus.parus8.errorMessage("\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.");
else{if(1==f.length){var g=parus.parus8.nodeField(f[0],"RN");parus.parus8.nodeField(f[0],"DIRECT_TABLE")}else b.forEach(f,function(l){"1"==parus.parus8.nodeField(l,"EDIT_DEFAULT")&&(g=parus.parus8.nodeField(l,"RN"),parus.parus8.nodeField(l,"DIRECT_TABLE"))});parus.parus8.registerAction();if(g)window.open(b.moduleUrl("parus","report.html").toString()+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([a.getValue(e,"REPORT"),a.getValue(e,"BALSECTION")?a.getValue(e,
"BLSUBREPORT"):null,g]));else{var h=new parus.balanceTemplatesDialog({templates:f,onApply:b.hitch(this,function(){b.forEach(h.templatesGrid.selection.getSelected(),function(l){g=h.templatesGrid.store.getValue(l,"RN","");h.templatesGrid.store.getValue(l,"DIRECT_TABLE","")});if(!g)return!1;window.open(b.moduleUrl("parus","report.html").toString()+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([a.getValue(e,"REPORT"),a.getValue(e,"BALSECTION")?a.getValue(e,
"BLSUBREPORT"):null,g]));return!0})});h.show()}}})):parus.balance.executeEditValues(a.getValue(e,"REPORT"),a.getValue(e,"BALSECTION")?a.getValue(e,"BLSUBREPORT"):null,a.getValue(e,"REPDATE"),a.getValue(e,"REPFORMCODE"),a.getValue(e,"AGNABBR"),a.getValue(e,"BALSECTIONCODE"),a.getValue(e,"REPKIND"),a.getValue(e,"AGENT"))},print:function(a){var c={};c.REPORT=this.rn.join(";");this.checklist&&(c.CHECKLIST=this.checklist);this.subRn&&(c.BLSUBREPORT=this.subRn.join(";"));this.showResultReportOnly&&(c.BALSECTION=
"!*");orders=[];b.forEach(this.checksMasterGrid.getSortProps()||[],function(e){var f=b.indexOf("REPDATE REPFORMCODE BALSECTIONCODE AGNABBR CHECKDATE BLCHECKLISTCODE BLCHECKLISTNAME TYPE ERRORSCOUNT WARNINGSCOUNT".split(" "),e.field);(f=0<=f?[3,1,2,4,null,5,5,null,null,null][f]:null)&&orders.push(f+(e.descending?" desc":""))});b.forEach(this.checkResultsDetailGrid.getSortProps()||[],function(e){var f=b.indexOf("RESULT MAIN_DESC LEFT_DESC LEFT_RESULT REL_OPERATOR RIGHT_DESC RIGHT_RESULT SUBTRACTION MESSAGE".split(" "),
e.field);(f=0<=f?[6,8,9,12,11,10,13,14,7][f]:null)&&orders.push(f+(e.descending?" desc":""))});b.forEach(this.checkResultsGrid.getSortProps()||[],function(e){var f=b.indexOf("FORMULACODE FORMULANAME RESULT MAIN_DESC LEFT_DESC LEFT_RESULT REL_OPERATOR RIGHT_DESC RIGHT_RESULT SUBTRACTION MESSAGE".split(" "),e.field);(f=0<=f?[null,null,6,8,9,12,11,10,13,14,7][f]:null)&&orders.push(f+(e.descending?" desc":""))});c.order=orders.length?orders.join(","):"1,2,3,4,5,6,7";parus.parus8._embeddedMode?this.printForm.htmldata.value=
parus.balanceReportCheckProtocolTabPage.printRender(c,a?1:0,this.title):(this.printForm.querydata.value=b.toJson(c),this.printForm.full.value=a?1:0,this.printForm.handler.value=parus.database.connected);this.printForm.title.value=this.title;document.body.appendChild(this.printForm);this.printForm.submit();document.body.removeChild(this.printForm)},checksDetailGridRecheck:function(){for(var a=this.checksDetailGrid.store,c=this.checksDetailGrid.selection.getFirstSelected(),e=0;e<this.checksDetailGrid.selection.getSelectedCount();e++)parus.database.execute("ReCheck",
{PRN:a.getValue(c,"PRN"),CHECK:a.getValue(c,"BLCHECK")}),c=this.checksDetailGrid.selection.getNextSelected(c);parus.balance.refreshGrid(this.checksDetailGrid)},checkResultsGridRecheck:function(){for(var a=this.checkResultsGrid.store,c=this.checkResultsGrid.selection.getFirstSelected(),e=0;e<this.checkResultsGrid.selection.getSelectedCount();e++)parus.database.execute("ReCheck",{RN:a.getValue(c,"RN"),PRN:a.getValue(c,"PRN"),CHECK:a.getValue(c,"BLCHECK")}),c=this.checkResultsGrid.selection.getNextSelected(c);
parus.balance.refreshGrid(this.checkResultsGrid)},checkReport:function(){for(var a=[],c=[],e=[],f=this.checksMasterGrid,g=0,h=f.store,l=f.selection.getFirstSelected(),m=0;m<f.selection.getSelectedCount();m++)a.push(h.getValue(l,"BLSUBREPORT")),c.push(h.getValue(l,"BLREPFORMED")),g=h.getValue(l,"REPKIND")||0,e.push(h.getValue(l,"REPORT")),l=f.selection.getNextSelected(l);(new parus.balanceCheckReportCheckDialog({grid:f,kind:g,isSubReport:!0,rn:a,formedRn:c,reportRn:e,title:(0==g?"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435":
"\u0421\u0432\u043e\u0434\u043d\u044b\u0435")+" \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"})).show()}});b.mixin(parus.balanceReportCheckProtocolTabPage,{printRender:function(a,c,e){var f=document.createElement("body");f.style.width=c?"260mm":"190mm";"\x3c"!=e.charAt(0)&&(e='\x3cdiv align\x3d"center"\x3e'+e+"\x3c/div\x3e");f.insertAdjacentHTML("afterBegin",e);e=f.firstChild;e.style.height="auto";e.style.fontWeight=
"bold";e.style.fontFamily="Tahoma, Verdana, sans-serif";e.style.margin="10px";var g=f.appendChild(document.createElement("table"));g.width="100%";g.border="1";g.cellSpacing="0";e=g.insertRow(-1);e.style.fontWeight="bold";e.insertCell(-1).appendChild(document.createTextNode("\u2116\u2116 \u043f/\u043f"));e.insertCell(-1).appendChild(document.createTextNode("\u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430"));e.insertCell(-1).appendChild(document.createTextNode("\u0420\u0430\u0437\u0440\u0435\u0437"));
e.insertCell(-1).appendChild(document.createTextNode("\u0414\u0430\u0442\u0430 \u043e\u0442\u0447\u0435\u0442\u0430"));e.insertCell(-1).appendChild(document.createTextNode("\u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442"));e.insertCell(-1).appendChild(document.createTextNode("\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c"));e.insertCell(-1).appendChild(document.createTextNode("\u0422\u0438\u043f"));e.insertCell(-1).appendChild(document.createTextNode("\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435"));
c&&(e.insertCell(-1).appendChild(document.createTextNode("\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438")),e.insertCell(-1).appendChild(document.createTextNode("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438")),e.insertCell(-1).appendChild(document.createTextNode("\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440")),e.insertCell(-1).appendChild(document.createTextNode("\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438")),
e.insertCell(-1).appendChild(document.createTextNode("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438")),e.insertCell(-1).appendChild(document.createTextNode("\u0420\u0430\u0437\u043d\u043e\u0441\u0442\u044c")));var h=1;a=parus.parus8.rowNodes(parus.database.query("ReportCheckResultsPrint",a));b.forEach(a,function(l){var m=g.insertRow(-1);m.style.fontSize="smaller";m.insertCell(-1).appendChild(document.createTextNode(h++));m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,
"FORM_CODE")||String.fromCharCode(160)));m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"SECTION_CODE")||String.fromCharCode(160)));m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"BDATE")||String.fromCharCode(160)));m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"AGENT_CODE")||String.fromCharCode(160)));m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"CHECKLIST_CODE")||String.fromCharCode(160)));
m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"RESULT")||String.fromCharCode(160)));m.insertCell(-1).innerHTML=(parus.parus8.nodeField(l,"MESSAGE")||String.fromCharCode(160)).split("\n").join("\x3cbr/\x3e");c&&(m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"LEFT_DESC")||String.fromCharCode(160))),m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"LEFT_RESULT")||String.fromCharCode(160))),m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,
"REL_OPERATOR")||String.fromCharCode(160))),m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"RIGHT_DESC")||String.fromCharCode(160))),m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"RIGHT_RESULT")||String.fromCharCode(160))),m.insertCell(-1).appendChild(document.createTextNode(parus.parus8.nodeField(l,"SUBTRACTION")||String.fromCharCode(160))))});1==h&&b.place("\x3cdiv\x3e\u041d\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439.\x3c/div\x3e",
g,"replace");return f.innerHTML}})})},"parus/templateDesignPane":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.templateDesignPane");b.require("dojo.window");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.layout.BorderContainer");b.require("dijit.layout.TabContainer");b.require("dijit.layout.ContentPane");b.require("dijit.Menu");b.require("dijit.Tooltip");b.require("dijit.TooltipDialog");b.require("dijit.form.NumberTextBox");b.require("dijit.form.DateTextBox");
b.require("dijit.form.ValidationTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.dictEdit");b.require("parus.xml");b.require("parus.progressDialog");b.require("parus.balanceZoomDialog");b.require("parus.sheet");b.require("parus.templateUploadDialog");b.require("parus.templateDesignColumns");b.declare("parus.templateDesignPane",[t.layout.ContentPane],{content:b.cache("parus","templateDesignPane.html",'\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"width:100%; height:100%"\x3e\x3cdiv class\x3d"dijitBorderContainer templateDesignFormulaPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3cdiv dojoType\x3d"dijit.Toolbar" style\x3d"height:23px"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" onClick\x3d"this.templateDesignPane.showFormulasClick()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarSeparator" dojoType\x3d"dijit.ToolbarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" showLabel\x3d"false"\x3e\x3c/div\x3e\x3c/div\x3e\x3ctable style\x3d"width:100%"\x3e\x3ctr\x3e\x3cth style\x3d"width:1px"\x3e\x3cspan style\x3d"text-wrap:nowrap" templateDesignRole\x3d"textCaptionNode"\x3e\x3c/span\x3e\x3c/th\x3e\x3ctd\x3e\x3cspan dojoType\x3d"dijit.form.Textarea" rows\x3d"1" intermediateChanges\x3d"true" onChange\x3d"this.templateDesignPane.textAreaChanged()" onInput\x3d"this.templateDesignPane.textAreaChanged()" templateDesignRole\x3d"textArea" style\x3d"width:100%;margin-right:3px"\x3e\x3c/span\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.TabContainer" region\x3d"center" tabPosition\x3d"bottom"\x3e\x3cdiv class\x3d"balanceTemplateContentPaneContentOpaque" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442"\x3e\x3cdiv role\x3d"sheet"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceTemplateContentPaneContentOpaque" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f"\x3e\x3cdiv role\x3d"sheet"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
"class":"balanceTemplateContentPaneContent",template:null,modified:!1,headingContentPane:null,returnToPane:null,_progressIndicator:null,_loaded:!1,templateSheet:null,infoSheet:null,_indexes:null,_tables:null,_loadedInfoXML:null,_setContent:function(a){var c=this.inherited(arguments);c.then(b.hitch(this,function(){b.query("*[templateDesignRole]",this.containerNode).forEach(b.hitch(this,function(e){this[e.getAttribute("templateDesignRole")]=t.byNode(e)||e}));b.query("*[widgetId]",this.containerNode).forEach(b.hitch(this,
function(e){if(e=t.byNode(e))e.templateDesignPane=this}))}));return c},progressIndicate:function(a){a?this._progressIndicator?this._progressIndicator.messageText.innerHTML=a:(this._progressIndicator=new parus.progressDialog({message:a}),this._progressIndicator.show()):this._progressIndicator&&(this._progressIndicator.close(),this._progressIndicator=null)},refreshTemplate:function(){b.query("[role\x3d'sheet']",this.domNode).forEach(b.hitch(this,function(a){t.byNode(a).destroyRecursive()}));this.loadTemplate()},
reload:function(){this.performConfirmation(b.hitch(this,function(){b.fadeOut({node:this.domNode,onEnd:b.hitch(this,function(){this.refreshTemplate()})}).play()}),!0)},performConfirmation:function(a,c){this.modified?(new parus.confirmationDialog({message:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0412\u0430\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f?",onShow:function(){c&&(this.cancelButton.domNode.style.display=
"",this.noButton.onClick=b.hitch(this,function(){a&&a();this.close()}))}})).show():a()},saveChanges:function(a){this.performConfirmation(b.hitch(this,function(){setTimeout(b.hitch(this,function(){var c=document.createElement("form");c.method="POST";c.action=parus.database.getDesignTemplateSaveUrl();var e=document.createElement("input");e.type="hidden";e.name="template";e.value=this.template;c.appendChild(e);e=document.createElement("input");e.type="hidden";e.name="DESIGN";e.value='\x3croot text\x3d"\u043f\u0440\u0438\u0432\u0435\u0442"/\x3e';
c.appendChild(e);e=document.createElement("input");e.type="hidden";e.name="OLDINFO";e.value=this._loadedInfoXML;c.appendChild(e);e=document.createElement("input");e.type="hidden";e.name="INFO";e.value=this._buildInfoXML();c.appendChild(e);document.body.appendChild(c);b.io.iframe.send({method:"POST",form:c,handleAs:"xml",handle:b.hitch(this,function(f,g){document.body.removeChild(c);this.progressIndicate();"error"!=f.documentElement.nodeName&&a&&a()})})}),100)}),!0)},downloadExcel:function(){this.performConfirmation(b.hitch(this,
function(){setTimeout(b.hitch(this,function(){var a=document.createElement("form");a.method="GET";a.action=parus.database.getDesignTemplateWorkBookUrl();var c=document.createElement("input");c.type="hidden";c.name="template";c.value=this.template;a.appendChild(c);document.body.appendChild(a);a.submit();document.body.removeChild(a)}),100)}),!0)},uploadExcel:function(){var a=new parus.templateUploadDialog({onApply:b.hitch(this,function(){if(!a.validate()||!a.fileData.value)return!1;parus.parus8.registerAction();
a.postForm.action=parus.database.getDesignTemplateUploadUrl();a.template.value=this.template;a.oldInfo.value=this._loadedInfoXML;b.io.iframe.send({method:"POST",form:a.postForm,handleAs:"xml",handle:b.hitch(this,function(c,e){a.applied=!0;a.close();this.refreshTemplate()})});return!0})});a.show()},createTemplatePopupMenu:function(){var a=new t.Menu({"class":"balanceMenu",preAction:b.hitch(this,function(){this.editing&&this.editing.cancelValue&&this.editing.cancelValue()}),_openMyself:b.hitch(this,
function(c){this.editing&&this.editing.cancelValue&&this.editing.cancelValue();t.Menu.prototype._openMyself.apply(a,arguments)})});a.addChild(new t.MenuItem({label:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f",defaultIcon:"PCfloppyCustomIcon",disabled:this.readonly,onClick:b.hitch(this,function(){var c=b.hitch(this,function(){parus.parus8.notificationMessage("\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d.")});
this.saveChanges(c)})}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b...",onClick:b.hitch(this,function(){(new parus.templateDesignColumns({})).show()})}));a.addChild(new t.MenuItem({label:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043a\u043d\u0438\u0433\u0443 Excel...",defaultIcon:"PCDownCustomIcon",onClick:b.hitch(this,this.downloadExcel)}));a.addChild(new t.MenuItem({label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043a\u043d\u0438\u0433\u0443 Excel...",
defaultIcon:"PCUpCustomIcon",onClick:b.hitch(this,this.uploadExcel)}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",defaultIcon:"PCisyncCustomIcon",onClick:b.hitch(this,this.reload)}));a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438...",onClick:b.hitch(this,function(){parus.balance.executeSettings(null,a,this.declaredClass,
null)})}));a.startup();return a},onShow:function(){this._loaded||this.loadTemplate();this._loaded=!0},_buildInfoXML:function(){var a=["\x3cROOT\x3e"];a.push("\x3cTABLES\x3e");b.forEach(this._tables,function(c){a.push("\x3cT_"+c.RN+"\x3e");a.push("\x3cPOS\x3e");a.push("\x3cCOL\x3e"+c.COL+"\x3c/COL\x3e");a.push("\x3cROW\x3e"+c.ROW+"\x3c/ROW\x3e");a.push("\x3cCOL_COUNT\x3e"+c.COLCNT+"\x3c/COL_COUNT\x3e");a.push("\x3cROW_COUNT\x3e"+c.ROWCNT+"\x3c/ROW_COUNT\x3e");a.push("\x3c/POS\x3e");a.push("\x3cTOTALS\x3e");
b.forEach(c.totals,function(e){a.push("\x3cTT_"+e.RN+"\x3e");a.push("\x3cPOS\x3e");a.push("\x3cCOL\x3e"+e.COL+"\x3c/COL\x3e");a.push("\x3cROW\x3e"+e.ROW+"\x3c/ROW\x3e");a.push("\x3cCOL_COUNT\x3e"+e.COLCNT+"\x3c/COL_COUNT\x3e");a.push("\x3cROW_COUNT\x3e"+e.ROWCNT+"\x3c/ROW_COUNT\x3e");a.push("\x3c/POS\x3e");a.push("\x3c/TT_"+e.RN+"\x3e")});a.push("\x3c/TOTALS\x3e");a.push("\x3cINDEXES\x3e");b.forEach(c.indexes,function(e){a.push("\x3cTID_"+e.RN+"\x3e");a.push("\x3cPOS\x3e");a.push("\x3cCOL\x3e"+e.COL+
"\x3c/COL\x3e");a.push("\x3cROW\x3e"+e.ROW+"\x3c/ROW\x3e");a.push("\x3c/POS\x3e");a.push("\x3c/TID_"+e.RN+"\x3e")});a.push("\x3c/INDEXES\x3e");a.push("\x3c/T_"+c.RN+"\x3e")});a.push("\x3c/TABLES\x3e");a.push("\x3cINDEXES\x3e");b.forEach(this._indexes,function(c){a.push("\x3cID_"+c.RN+"\x3e");a.push("\x3cPOS\x3e");a.push("\x3cCOL\x3e"+c.COL+"\x3c/COL\x3e");a.push("\x3cROW\x3e"+c.ROW+"\x3c/ROW\x3e");a.push("\x3c/POS\x3e");a.push("\x3c/ID_"+c.RN+"\x3e")});a.push("\x3c/INDEXES\x3e");a.push("\x3c/ROOT\x3e");
return a.join("")},loadTemplate:function(){this.progressIndicate("\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0441\u044f....");this.headingContentPane&&(this.headingContentPane.actionsButton&&this.headingContentPane.actionsButton.destroyRecursive(),this.headingContentPane.toolbar&&this.headingContentPane.toolbar.destroyRecursive(),b.mixin(this.headingContentPane,{actionsButton:null,toolbar:null}));var a,c,e;(new b.DeferredList([b.xhrGet({handleAs:"json",
sync:!1,headers:{"Disable-Basic-Auth":"yes"},preventCache:!0,url:parus.database.getDesignTemplateUrl(this.template),load:function(f){a=f}}),parus.database.query("DesignTemplateInfo",{TEMPLATE:this.template},function(f){parus.parus8.rowNodes(f)}),parus.database.query("DesignTemplateTablesInfo",{TEMPLATE:this.template},function(f){c=parus.parus8.rowNodes(f)}),parus.database.query("DesignTemplateIndexesInfo",{TEMPLATE:this.template},function(f){e=parus.parus8.rowNodes(f)})])).addCallback(b.hitch(this,
function(){b.query("[role\x3d'sheet']",this.domNode).forEach(b.hitch(this,function(h){this.templateSheet?this.infoSheet||(this.infoSheet=new parus.sheet(a._sheets[1]||{},h)):this.templateSheet=new parus.sheet(a._sheets[0]||{},h)}));this._indexes=[];this._tables=[];b.forEach(e,b.hitch(this,function(h){this._indexes.push({RN:parus.parus8.nodeField(h,"BALANCEINDEX"),COL:parseInt(parus.parus8.nodeField(h,"COL")),ROW:parseInt(parus.parus8.nodeField(h,"ROWN")),CODE:parus.parus8.nodeField(h,"CODE"),NAME:parus.parus8.nodeField(h,
"NAME")});this.templateSheet.placeIndex(parseInt(parus.parus8.nodeField(h,"ROWN")),parseInt(parus.parus8.nodeField(h,"COL")),parus.parus8.nodeField(h,"BALANCEINDEX"),parus.parus8.nodeField(h,"CODE"))}));b.forEach(c,b.hitch(this,function(h){this.templateSheet.placeTable(parseInt(parus.parus8.nodeField(h,"ROWN")),parseInt(parus.parus8.nodeField(h,"COL")),parseInt(parus.parus8.nodeField(h,"COL_CNT")),parseInt(parus.parus8.nodeField(h,"ROWN_CNT")),parus.parus8.nodeField(h,"BLTABLES"),parus.parus8.nodeField(h,
"NAME"));var l=[];b.forEach(parus.parus8.rowNodes(parus.parus8.nodeField(h,"XMLINDEXES")),b.hitch(this,function(p){l.push({RN:parus.parus8.nodeField(p,"TABLEIND"),COL:parseInt(parus.parus8.nodeField(p,"COL")),ROW:parseInt(parus.parus8.nodeField(p,"ROWN")),CODE:parus.parus8.nodeField(p,"CODE"),NAME:parus.parus8.nodeField(p,"NAME")});this.templateSheet.placeTableIndex(parseInt(parus.parus8.nodeField(p,"ROWN")),parseInt(parus.parus8.nodeField(p,"COL")),parus.parus8.nodeField(p,"TABLEIND"),parus.parus8.nodeField(p,
"CODE"))}));var m=[];b.forEach(parus.parus8.rowNodes(parus.parus8.nodeField(h,"XMLTOTALS")),b.hitch(this,function(p){m.push({RN:parus.parus8.nodeField(p,"TOTALKEY"),COL:parseInt(parus.parus8.nodeField(p,"COL")),ROW:parseInt(parus.parus8.nodeField(p,"ROWN")),COLCNT:parseInt(parus.parus8.nodeField(p,"COL_CNT")),ROWCNT:parseInt(parus.parus8.nodeField(p,"ROWN_CNT")),NAME:parus.parus8.nodeField(p,"NAME")});this.templateSheet.placeTotal(parseInt(parus.parus8.nodeField(p,"ROWN")),parseInt(parus.parus8.nodeField(p,
"COL")),parseInt(parus.parus8.nodeField(p,"COL_CNT")),parseInt(parus.parus8.nodeField(p,"ROWN_CNT")),parus.parus8.nodeField(p,"TOTALKEY"),parus.parus8.nodeField(p,"NAME"))}));this._tables.push({RN:parus.parus8.nodeField(h,"BLTABLES"),NAME:parus.parus8.nodeField(h,"NAME"),COL:parseInt(parus.parus8.nodeField(h,"COL")),ROW:parseInt(parus.parus8.nodeField(h,"ROWN")),COLCNT:parseInt(parus.parus8.nodeField(h,"COL_CNT")),ROWCNT:parseInt(parus.parus8.nodeField(h,"ROWN_CNT")),indexes:l,totals:m})}));this._loadedInfoXML=
this._buildInfoXML();this.templateSheet.buildRendering();var f=this.createTemplatePopupMenu();parus.balance._createActionsButton(f,this.headingContentPane);f.bindDomNode(this.domNode);var g=parus.userdata.get(this.declaredClass);g&&parus.gridSettingsDialog.mergeMenuSettings(f,g.actionSettings,g.userProcsActions,g.userReportsActions,g.userAppsActions);b.fadeIn({node:this.domNode,onBegin:b.hitch(this,function(){this._layoutChildren()}),onEnd:b.hitch(this,function(){this.progressIndicate();this.textCaptionNode.innerText=
"\u0424\u043e\u0440\u043c\u0443\u043b\u0430:"})}).play()}))},onModified:function(){},onTitleChanged:function(){},_confirmed:!1,onClose:function(){if(this.editing&&!this.editing.postValue())if(this.editing.cancelValue)this.editing.cancelValue();else return!1;var a=b.hitch(this,function(){this._confirmed=!0;parus.balance.TabContainer.selectChild(parus.balance.formsPage,!1)});if(this._confirmed)return!0;if(!this.modified)return a(),!1;(new parus.confirmationDialog({message:"\u0412\u044b \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u043c \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u043e\u043c. \x3cbr/\x3e\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0412\u0430\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f?",
onShow:function(){this.cancelButton.domNode.style.display="";this.noButton.onClick=b.hitch(this,function(){a();this.close()})}})).show();return this._confirmed=!1},_setTitleAttr:function(a){this.inherited(arguments);this.autonomousMode&&(document.title=a);b.place("\x3cspan\x3e"+a+"\x3cspan\x3e",this.headingContentPane.containerNode.firstChild,"only");this.title=a;this.onTitleChanged()},showFormulasClick:function(){b.forEach(this.templateSheet._cells,function(a){a.formulaText||b.addClass(a.domNode,
"templateDesignCellHidden")})},textAreaChanged:function(){setTimeout(b.hitch(this,function(){this._singleChild.layout()}),100)}})})},"parus/database":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.database");b.require("parus.xml");b.require("parus.parus8");b.require("parus.changePasswordDialog");parus||(parus={});parus.database||b.mixin(parus,{database:{}});b.mixin(parus.database,{connected:null,attributes:null,login:null,authException:null,companyName:null,sessionIdentAllowedForSubDomains:!1,
connect:function(a,c,e,f,g,h){this.authException=this.connected=null;this.attributes={};this.login=c;this.sessionIdentAllowedForSubDomains=!!h;var l=a,m=a.split(";");1<m.length?(l=m[0],this.companyName=m[1]):this.companyName="";m=!1;var p="..",r=!1;h&&parus.parus8._SSLCertAuthSubDomain&&(p=parus.parus8._SSLCertAuthSubDomain,r=!0);var w={SessionCompanyName:this.companyName};c&&(w.login=c);e&&(w.password=e);h&&(w.SSLCert_auth_request="1");f&&(w.new_password=f);b.xhrGet({handleAs:"xml",sync:!0,headers:c||
e||h?{"Disable-Basic-Auth":"yes"}:{},withCredentials:this.sessionIdentAllowedForSubDomains,preventCache:!0,url:p+"/"+l+"/"+(f?"changePassword.xml":g?"getNegotiateUserName.xml":"sysinfo.xml"),content:w,load:b.hitch(this,function(A){if("error"==A.documentElement.nodeName){if("1"!=A.documentElement.getAttribute("session_reused")){var B=A.documentElement.getElementsByTagName("message");x=(0<B.length?B[0].childNodes[0].nodeValue:A.documentElement.childNodes[0].nodeValue)||x}}else{this.connected=a;for(B=
0;B<A.documentElement.attributes.length;B++)this.attributes[A.documentElement.attributes[B].nodeName]=A.documentElement.attributes[B].nodeValue;this.companyName=this.attributes.company}return A}),error:b.hitch(this,function(A){403===A.status?b.xhrGet({handleAs:"xml",sync:!0,preventCache:!0,url:"../.system/session.xml",load:b.hitch(this,function(B){b.isIE||B.normalize();for(var D=B.documentElement.getElementsByTagName("*"),I=0;I!=D.length;I++)D[I].nodeName.startsWith("auth-")&&(this.attributes[D[I].nodeName]=
D[I].childNodes.item(0).nodeValue);return B})}):r&&void 0===A.status&&"NetworkError"===A.name&&(x="\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443")})});
if(!this.connected&&!x&&(this.attributes["auth-is2FactorAuth"]||h)&&("1"==this.attributes["auth-is2FactorAuth"]||h))if(r)var x=this.attributes["auth-SSLCert_Current_Thumbprint"]?"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.":
"\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0435 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0438\u043b\u0438 \u043e\u043d \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c.";else return this.connect(a,c,e,f,g,!0);!x&&this.attributes["auth-loginEnabled"]&&"0"==this.attributes["auth-loginEnabled"]&&
(x=this.attributes["auth-loginEnabledTimeLeft"]?"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u043e. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 "+
this.attributes["auth-loginEnabledTimeLeft"]+" \u043c\u0438\u043d.":"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0430\u043d\u0441\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u043e. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443");
!x&&this.attributes["auth-logonTryWeb"]&&"0"==this.attributes["auth-logonTryWeb"]&&(x="\u0414\u043e\u0441\u0442\u0443\u043f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0437\u0430\u043a\u0440\u044b\u0442. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443");!x&&this.attributes["auth-accountLocked"]&&"0"!=this.attributes["auth-accountLocked"]&&(x="\u0423\u0447\u0451\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u0430. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443");
x||f||(c="1"==this.attributes["auth-userCanChangePassword"],this.attributes["auth-passwordExpiried"]&&("1"==this.attributes["auth-passwordExpiried"]?x=c?'\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u0438\u0441\u0442\u0435\u043a. \x3cbr/\x3e \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e "\x3cb\x3e\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c\x3c/b\x3e"':
"\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u0438\u0441\u0442\u0435\u043a. \u0420\u0430\u0431\u043e\u0442\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443":"2"==this.attributes["auth-passwordExpiried"]&&
(x=c?'\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \x3cbr/\x3e \u0417\u0430\u043a\u0440\u043e\u0439\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (\u043a\u0440\u0435\u0441\u0442\u043e\u043c \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443), \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e "\x3cb\x3e\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c\x3c/b\x3e"':
"\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0430\u0440\u043e\u043b\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443",m=!0)),!x&&this.attributes["auth-mustChangePassword"]&&
"1"==this.attributes["auth-mustChangePassword"]&&(x='\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c. \x3cbr/\x3e \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e "\x3cb\x3e\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c\x3c/b\x3e"'));x&&(m||(this.authException=
!0),parus.parus8.notificationMessage(x));if(this.authException||!this.connected)this.clearSessionIdent(),this.attributes=this.companyName=this.connected=null;return this.connected},clearSessionIdent:function(){b.cookie("HTTPID","",{path:"/"})},_xhr:function(a,c,e,f,g,h){if(!this.connected)throw Error("Not connected to database.");h||parus.parus8.registerAction();h="";h=null;if(e)for(var l in e)if(e[l]==parus.parus8.CLASS_EmptyData){h=!0;break}if(h){var m=document.createElement("ROWSET");if(f){var p=
new b.Deferred;setTimeout(function(){f(m);p.callback({success:!0})},1);return p}return m}h=[];c&&b.mixin(h,{id:c});for(l in e)c={},c[l]=e[l],h.push(c);h=parus.xml.toXml({query:h});var r=null,w=-1!=a.indexOf(".xml");e=this.connected.split(";");e=1<e.length?e[0]:this.connected;var x=!1;a={handleAs:w?"xml":"json",sync:f?!1:!0,content:{query:h,SessionCompanyName:this.companyName},headers:{"Disable-Basic-Auth":"yes"},url:encodeURI("../"+e+"/"+a),load:b.hitch(this,function(A){if(w&&(b.isIE||A.normalize(),
"error"==A.documentElement.nodeName))return g?g(A):(parus.parus8.errorMessage(parus.parus8.nodeField(A.documentElement,"message")),f&&!x&&(x=!0,f(A))),r=null,A;r=A;f&&f(A);return A}),error:function(A){g?g(A):parus.parus8.errorMessage("\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \x3cbr/\x3e\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u043b \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0431\u043e\u0439, \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0442\u0430\u043b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \x3cbr/\x3e\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0439\u0442\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.");
f&&!x&&(x=!0,f(document.createElement("ROWSET")));r=null;return A}};a.sync&&b.isSafari&&(a.headers||(a.headers={}),b.mixin(a.headers,{"Sync-Short-Timeout":"yes"}));p=b.xhrPost(a);return f?p:r},_buildUrl:function(a){var c=this.connected.split(";");c=1<c.length?c[0]:this.connected;c="../"+c+a;this.companyName&&(c=-1==c.indexOf("?")?c+"?SessionCompanyName\x3d"+this.companyName:c+"\x26SessionCompanyName\x3d"+this.companyName);return encodeURI(c)},query:function(a,c,e,f,g){return this._xhr("query.xml",
a,c,e,f,g)},execute:function(a,c,e,f,g){return this._xhr("execute.xml",a,c,e,f,g)},queryObject:function(a,c,e,f,g){return this._xhr("query.js",a,c,e,f,g)},toBuffer:function(a,c,e,f){var g=this.connected.split(";");g=1<g.length?g[0]:this.connected;if(a.value){var h=document.createElement("form");h.method="POST";h.action="../"+g+"/tobuffer.xml";h.encoding="multipart/form-data";b.isIE?(h.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'type'/\x3e"),g=h.childNodes[0]):(g=h.appendChild(document.createElement("input")),
g.type="hidden",g.name="type");g.value=c;e&&(b.isIE?(h.insertAdjacentHTML("afterBegin","\x3cinput type\x3d'hidden' name\x3d'IDENT'/\x3e"),c=h.childNodes[0]):(c=h.appendChild(document.createElement("input")),c.type="hidden",c.name="IDENT"),c.value=e);var l=a.parentNode,m=a.name;a.name="data";h.appendChild(a);document.body.appendChild(h);b.io.iframe.send({method:"POST",form:h,handleAs:10<=b.isIE?"html":"xml",handle:function(p){b.isIE||p.normalize();"error"==p.documentElement.nodeName&&(parus.parus8.errorMessage(parus.parus8.nodeField(p.documentElement,
"message")),p=null);document.body.removeChild(h);l&&l.appendChild(a);a.name=m;p&&f&&f(parus.parus8.nodeField(parus.parus8.rowNodes(p)[0],"IDENT"));return p}})}else f&&f(null)}})})},"parus/sheet":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.sheet");b.require("dojo.window");b.declare("parus.sheet",[t._Widget,t._TemplatedMixin],{unique:null,styleSheetNode:null,styleSheet:null,_rowHeaderWidth:40,_colHeaderHeight:20,_aspectX:7.829181494661921,_aspectY:1.466666666666667,_fontSizeAspect:1.1111111111111,
_defaultColWidth:8.43,_defaultRowHeight:15,_defaultFontName:"Calibri",_defaultFontSize:11,_rows:[],_cols:[],_cells:[],_styles:{},_formulasNode:null,_defaultCol:function(){return b.clone({size:this._defaultColWidth,pageBreak:!1,hidden:!1})},_defaultRow:function(){return b.clone({size:this._defaultRowHeight,pageBreak:!1,hidden:!1})},_defaultCell:function(){return b.clone({accessible:!0,text:"",formulaNode:"",formulaText:"",hyperLink:"",comment:"",numberFormat:"General",fontName:this._defaultFontName,
fontSize:this._defaultFontSize,bold:!1,italic:!1,underline:!1,fontColor:"#000000",backgroundColor:"#FFFFFF",wrapText:!1,horizontalAlignment:parus.sheet.XlHAlign.xlHAlignGeneral,verticalAlignment:parus.sheet.XlVAlign.xlVAlignBottom,indentLevel:0,locked:!0,pattern:parus.sheet.XlPattern.xlPatternNone,orientation:parus.sheet.XlOrientation.xlHorizontal,rightBorder:{style:parus.sheet.XlLineStyle.xlLineStyleNone,width:parus.sheet.XlBorderWeight.xlThin,color:"#000000"},bottomBorder:{style:parus.sheet.XlLineStyle.xlLineStyleNone,
width:parus.sheet.XlBorderWeight.xlThin,color:"#000000"},diagonalBorder:{style:parus.sheet.XlLineStyle.xlLineStyleNone,width:parus.sheet.XlBorderWeight.xlThin,color:"#000000"},diagonalBorderUp:!1,diagonalBorderDown:!1,merged:!1,rows:1,cols:1})},postMixInProperties:function(){this.inherited(arguments);this._styles={};if(!this._rows.length&&!this._cols.length&&!this._cells.length){this._rows=[];this._cols=[];this._cells=[];for(var a=0;3>a;a++)this._rows.push(this._defaultRow()),this._cols.push(this._defaultCol());
for(a=0;a<this._cols.length*this._rows.length;a++)this._cells.push(this._defaultCell())}this.unique=this.unique||"U"+Math.trunc(Math.random()*(new Date).valueOf());this.templateString='\x3cdiv class\x3d"'+this.unique+' templateDesignSheet"\x3e\x3cstyle type\x3d"text/css" dojoAttachPoint\x3d"styleSheetNode"\x3e\x3c/style\x3e\x3cdiv dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e';this._cornerNode={};this._formulasNode=document.createElement("xml")},buildRendering:function(){this.inherited(arguments);
this._styles.templateDesignRowHeader={style:"left:0px;width:"+this._rowHeaderWidth+"px"};this._styles.templateDesignColHeader={style:"top:0px;height:"+this._colHeaderHeight+"px"};this._cornerNode.domNode||b.mixin(this._cornerNode,this._nodeWithContent('\x3cdiv class\x3d"templateDesignHeader templateDesignCorner templateDesignRowHeader templateDesignColHeader"\x3e\x3cdiv class\x3d"templateDesignCellBorder"\x3e\x3cdiv class\x3d"templateDesignCellContent"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'));var a=
this._colHeaderHeight;b.forEach(this._rows,b.hitch(this,function(c,e){this._rows[e]._offset=a;var f=[];f.push("top:"+a+"px");f.push("height:"+Math.round(c.size*this._aspectY)+"px");c.hidden?f.push("display:none"):(this._rows[e]._height=Math.round(c.size*this._aspectY),a+=Math.round(c.size*this._aspectY));this._styles["R"+(e+1)]={style:f.join(";")};this._rows[e].contentNode?this._rows[e].contentNode.innerHTML=e+1:b.mixin(this._rows[e],this._nodeWithContent('\x3cdiv class\x3d"templateDesignHeader templateDesignRowHeader R'+
(e+1)+'"\x3e\x3cdiv class\x3d"templateDesignCellBorder"\x3e\x3cdiv class\x3d"templateDesignCellContent"\x3e'+(e+1)+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e"))}));a=this._rowHeaderWidth;b.forEach(this._cols,b.hitch(this,function(c,e){this._cols[e]._offset=a;var f=[];f.push("left:"+a+"px");f.push("width:"+Math.round(c.size*this._aspectX)+"px");c.hidden?f.push("display:none"):(this._cols[e]._width=Math.round(c.size*this._aspectX),a+=Math.round(c.size*this._aspectX));this._styles["C"+(e+1)]={style:f.join(";")};
this._cols[e].contentNode?this._cols[e].contentNode.innerHTML=this.numberToLetters(e+1):b.mixin(this._cols[e],this._nodeWithContent('\x3cdiv class\x3d"templateDesignHeader templateDesignColHeader C'+(e+1)+'"\x3e\x3cdiv class\x3d"templateDesignCellBorder"\x3e\x3cdiv class\x3d"templateDesignCellContent"\x3e'+this.numberToLetters(e+1)+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e"))}));b.forEach(this._cells,b.hitch(this,function(c,e){this._renderCell(c,Math.trunc(e/this._cols.length)+1,e%this._cols.length+1)}));
b.forEach(this._images,b.hitch(this,function(c,e){this._renderImage(c)}));b.connect(this.domNode,"onscroll",this,this._doScroll);setTimeout(b.hitch(this,this._renderStylesheet),10)},_borderToStyle:function(a){if(a.style!=parus.sheet.XlLineStyle.xlLineStyleNone){var c=a.width==parus.sheet.XlBorderWeight.xlMedium?"3":a.width==parus.sheet.XlBorderWeight.xlThick?"2":"1";c+="px ";c=a.style==parus.sheet.XlLineStyle.xlContinuous?c+"solid":a.style==parus.sheet.XlLineStyle.xlDash?c+"dashed":a.style==parus.sheet.XlLineStyle.xlDot?
c+"dotted":a.style==parus.sheet.XlLineStyle.xlDashDot?c+"dashed":a.style==parus.sheet.XlLineStyle.xlDashDotDot?c+"dotted":a.style==parus.sheet.XlLineStyle.xlDouble?"3px double":c+"solid";return c=c+" "+a.color}return""},_makeSelector:function(a,c){return a+b.map(c.split(""),function(e){return e.match(/\w/)?e:"_"+e.charCodeAt(0)}).join("")},_renderCell:function(a,c,e){a.formulaXml&&!a.formulaNode&&(a.formulaNode=b.place(a.formulaXml,this._formulasNode,"last"));a.formulaNode&&!a.formulaText&&(a.formulaText=
a.formulaNode.innerText);var f=a.text||"",g=[],h=[];g.push("templateDesignCell");g.push("R"+c);g.push("C"+e);var l=this._borderToStyle(a.rightBorder);if(l){var m=this._makeSelector("br",l);this._styles[m+" .templateDesignCellBorder"]={style:"border-right:"+l};g.push(m)}if(l=this._borderToStyle(a.bottomBorder))m=this._makeSelector("bb",l),this._styles[m+" .templateDesignCellBorder"]={style:"border-bottom:"+l},g.push(m);l=[];a.horizontalAlignment!=parus.sheet.XlHAlign.xlHAlignGeneral&&(a.horizontalAlignment==
parus.sheet.XlHAlign.xlHAlignCenter||a.horizontalAlignment==parus.sheet.XlHAlign.xlHAlignCenterAcrossSelection||a.horizontalAlignment==parus.sheet.XlHAlign.xlHAlignDistributed||a.horizontalAlignment==parus.sheet.XlHAlign.xlHAlignFill||a.horizontalAlignment==parus.sheet.XlHAlign.xlHAlignJustify?(l.push("justify-content:center"),l.push("text-align:center")):a.horizontalAlignment==parus.sheet.XlHAlign.xlHAlignRight&&(l.push("justify-content:right"),l.push("text-align:right")));a.verticalAlignment!=parus.sheet.XlVAlign.xlVAlignBottom&&
(a.verticalAlignment==parus.sheet.XlVAlign.xlVAlignCenter||a.verticalAlignment==parus.sheet.XlVAlign.xlVAlignDistributed||a.verticalAlignment==parus.sheet.XlVAlign.xlVAlignJustify?l.push("align-items:center"):a.verticalAlignment==parus.sheet.XlVAlign.xlVAlignTop&&l.push("align-items:start"));l.length&&(m=this._makeSelector("a",l.join(";")),this._styles[m+" .templateDesignCellBorder"]={style:l.join(";")},g.push(m));l=[];a.wrapText&&l.push("text-wrap:wrap");a.indent&&l.push("margin-left:"+10*a.indent+
"px");a.orientation!=parus.sheet.XlOrientation.xlHorizontal&&(l.push("writing-mode: tb-rl"),l.push("transform:rotate(180deg)"),l.push("filter:flipv() fliph()"));l.length&&(m=this._makeSelector("t",l.join(";")),this._styles[m+" .templateDesignCellContent"]={style:l.join(";")},g.push(m));l=[];a.bold&&l.push("font-weight:800");a.italic&&l.push("font-style:italic");a.underline&&l.push("text-decoration:underline");"#000000"!=a.fontColor&&l.push("color:"+a.color);"#FFFFFF"!=a.backgroundColor&&l.push("background-color:"+
a.backgroundColor);a.fontSize!=this._defaultFontSize&&l.push("font-size:"+a.fontSize*this._fontSizeAspect+"pt");l.length&&(m=this._makeSelector("f",l.join(";")),this._styles[m]={style:l.join(";")},g.push(m));if(1<a.cols){for(m=size=0;m<a.cols;m++)size+=this._cols[e+m-1].hidden?0:Math.round(this._cols[e+m-1].size*this._aspectX);h.push("width:"+size+"px")}if(1<a.rows){for(m=size=0;m<a.rows;m++)size+=this._rows[c+m-1].hidden?0:Math.round(this._rows[c+m-1].size*this._aspectY);h.push("height:"+size+"px")}a.accessible||
h.push("display:none");a.fontName!=this._defaultFontName&&h.push("font-family:\x26quot;"+a.fontName+"\x26quot;,\x26quot;"+this._defaultFontName+"\x26quot;");a.domNode||b.mixin(a,this._nodeWithContent('\x3cdiv style\x3d"'+h.join(";")+'"  class\x3d"'+g.join(" ")+'"\x3e\x3cdiv class\x3d"templateDesignCellBorder"\x3e\x3cdiv class\x3d"templateDesignCellContent"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'));a.contentNode.innerText=f},_renderImage:function(a){a.domNode||(a.domNode=b.place('\x3cimg class\x3d"R'+
a.row+" C"+a.col+'" style\x3d"position:absolute;z-index:5" src\x3d"data:image/png;base64,'+a.data+'"\x3e\x3c/img\x3e',this.containerNode,"last"),b.style(a.domNode,{left:this._cols[a.col-1]._offset+a.left+"px",top:this._rows[a.row-1]._offset+a.top+"px",width:a.width+"px",height:a.height+"px"}))},_nodeWithContent:function(a){a=b.place(a,this.containerNode,"last");return{domNode:a,borderNode:b.query(".templateDesignCellBorder",a)[0],contentNode:b.query(".templateDesignCellContent",a)[0]}},_renderStylesheet:function(){if(!this.styleSheet)for(var a=
0;a<document.styleSheets.length;a++)this.styleSheetNode==document.styleSheets[a].ownerNode&&(this.styleSheet=document.styleSheets[a]);a=this.styleSheet.rules.length;for(var c in this._styles)this._styles[c].rule||(this.styleSheet.addRule("."+this.unique+" ."+c,this._styles[c].style,a),this._styles[c].rule=this.styleSheet.rules[a],a+=1)},_doScroll:function(a){b.query(".templateDesignColHeader",this.containerNode).style({top:a.target.scrollTop+"px"});b.query(".templateDesignRowHeader",this.containerNode).style({left:a.target.scrollLeft+
"px"})},numberToLetters:function(a){var c="";do{var e=(a-1)%26;c=String.fromCharCode(65+e)+c;a=Math.trunc((a-e)/26)}while(0<a);return c},getCell:function(a,c){var e=this._cols.length,f=this._rows.length;if(c>e){for(;c>this._cols.length;)this._cols.push(this._defaultCol());for(var g=this._rows.length-1;0<=g;g--)for(var h=0;h<c-e;h++)this._cells.splice((g+1)*e,0,this._defaultCell())}if(a>f)for(;a>this._rows.length;)for(this._rows.push(this._defaultRow()),g=0;g<this._cols.length;g++)this._cells.push(this._defaultCell());
return this._cells[(a-1)*this._cols.length+c-1]},placeIndex:function(a,c,e,f){var g=this.getCell(a,c);b.mixin(g,{indexInfo:f,index:e});this._renderCell(g,a,c)},placeTable:function(a,c,e,f,g,h){for(var l=0;l<e;l++)for(var m=0;m<f;m++){var p=this.getCell(a+m,c+l);b.mixin(p,{indexInfo:h,table:g});this._renderCell(p,a+m,c+l)}},placeTotal:function(a,c,e,f,g,h){for(var l=0;l<e;l++)for(var m=0;m<f;m++){var p=this.getCell(a+m,c+l);b.mixin(p,{indexInfo:p.indexInfo?p.indexInfo+" ("+h+")":h,total:g});this._renderCell(p,
a+m,c+l)}},placeTableIndex:function(a,c,e,f){var g=this.getCell(a,c);b.mixin(g,{indexInfo:g.indexInfo?g.indexInfo+" ("+f+")":f,tableIndex:e});this._renderCell(g,a,c)}});b.mixin(parus.sheet,{XlLineStyle:{xlContinuous:1,xlDash:-4115,xlDashDot:4,xlDashDotDot:5,xlDot:-4118,xlDouble:-4119,xlSlantDashDot:13,xlLineStyleNone:-4142},XlBorderWeight:{xlHairline:1,xlMedium:-4138,xlThick:4,xlThin:2},XlVAlign:{xlVAlignBottom:-4107,xlVAlignCenter:-4108,xlVAlignDistributed:-4117,xlVAlignJustify:-4130,xlVAlignTop:-4160},
XlHAlign:{xlHAlignCenter:-4108,xlHAlignCenterAcrossSelection:7,xlHAlignDistributed:-4117,xlHAlignFill:5,xlHAlignGeneral:1,xlHAlignJustify:-4130,xlHAlignLeft:-4131,xlHAlignRight:-4152},XlPattern:{xlPatternAutomatic:-4105,xlPatternChecker:9,xlPatternCrissCross:16,xlPatternDown:-4121,xlPatternGray16:17,xlPatternGray25:-4124,xlPatternGray50:-4125,xlPatternGray75:-4126,xlPatternGray8:18,xlPatternGrid:15,xlPatternHorizontal:-4128,xlPatternLightDown:13,xlPatternLightHorizontal:11,xlPatternLightUp:14,xlPatternLightVertical:12,
xlPatternNone:-4142,xlPatternSemiGray75:10,xlPatternSolid:1,xlPatternUp:-4162,xlPatternVertical:-4166},XlOrientation:{xlDownward:-4170,xlHorizontal:-4128,xlUpward:-4171,xlVertical:-4166},XlFormatConditionType:{xlCellValue:1,xlExpression:2},XlFormatConditionOperator:{xlBetween:1,xlNotBetween:2,xlEqual:3,xlNotEqual:4,xlGreater:5,xlLess:6,xlGreaterEqual:7,xlLessEqual:8},XlSheetVisibility:{xlSheetVisible:-1,xlSheetHidden:0,xlSheetVeryHidden:2},XlPageOrientation:{xlLandscape:2,xlPortrait:1},XlPaperSize:{xlPaper10x14:16,
xlPaper11x17:17,xlPaperA3:8,xlPaperA4:9,xlPaperA4Small:10,xlPaperA5:11,xlPaperB4:12,xlPaperB5:13,xlPaperCsheet:24,xlPaperDsheet:25,xlPaperEnvelope10:20,xlPaperEnvelope11:21,xlPaperEnvelope12:22,xlPaperEnvelope14:23,xlPaperEnvelope9:19,xlPaperEnvelopeB4:33,xlPaperEnvelopeB5:34,xlPaperEnvelopeB6:35,xlPaperEnvelopeC3:29,xlPaperEnvelopeC4:30,xlPaperEnvelopeC5:28,xlPaperEnvelopeC6:31,xlPaperEnvelopeC65:32,xlPaperEnvelopeDL:27,xlPaperEnvelopeItaly:36,xlPaperEnvelopeMonarch:37,xlPaperEnvelopePersonal:38,
xlPaperEsheet:26,xlPaperExecutive:7,xlPaperFanfoldLegalGerman:41,xlPaperFanfoldStdGerman:40,xlPaperFanfoldUS:39,xlPaperFolio:14,xlPaperLedger:4,xlPaperLegal:5,xlPaperLetter:1,xlPaperLetterSmall:2,xlPaperNote:18,xlPaperQuarto:15,xlPaperStatement:6,xlPaperTabloid:3,xlPaperUser:256}})})},"parus/editableDictionaryDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.editableDictionaryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");
b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridData");b.require("parus.gridActions");b.require("parus.catalogActions");b.require("parus.dictionaryDialog");b.require("parus.editDictionaryDialog");b.declare("parus.editableDictionaryDialog",[parus.dictionaryDialog],{parentDialog:null,editByDoubleClick:!1,editDialogClass:null,editDetailDialogClass:null,allowEditCatalog:!0,allowMoveCatalog:!0,moveCatalogQueryID:"moveCatalog",moveDocumentQueryID:null,
postMixInProperties:function(){this.templateString=b.cache(b.moduleUrl("parus","dictionaryDialog.html"));this.inherited(arguments)},onCreateMenu:function(){this.inherited(arguments);this.editDialogClass&&(this.menu=this.createMenu());this.detailQueryID&&this.editDetailDialogClass&&(this.detailMenu=this.createDetailMenu());this.catalogsQueryID&&(this.allowEditCatalog||this.allowMoveCatalog)&&(this.catalogMenu=this.createCatalogMenu())},createMenu:function(){return this._createCustomMenu(this.menu,
this.grid,this.editDialogClass,this.editByDoubleClick,this.moveDocumentQueryID,!1)},createDetailMenu:function(){return this._createCustomMenu(this.detailMenu,this.detailGrid,this.editDetailDialogClass,!0,null,!0)},createCatalogMenu:function(){var a=this.catalogMenu,c=!!a;c||(a=new t.Menu({"class":"balanceMenu"}));var e=0;this.allowEditCatalog&&(a.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",itemAction:!1,actionCode:"CATALOG_INSERT",defaultIcon:"PCHardwareadaltCustomIcon",
onClick:b.hitch(this,function(){parus.catalogActions.insertCatalog(this.catalogTree)})}),e++),a.addChild(new t.MenuItem({label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",itemAction:!0,actionCode:"CATALOG_UPDATE",defaultIcon:"PCdocumentCustomIcon",onClick:b.hitch(this,function(){parus.catalogActions.updateCatalog(this.catalogTree)})}),e++));this.allowMoveCatalog&&a.addChild(new t.MenuItem({label:"\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c...",itemAction:!0,
actionCode:"CATALOG_MOVE",onClick:b.hitch(this,function(){parus.catalogActions.moveCatalog(this.catalogTree,this.moveCatalogQueryID)})}),e++);this.allowEditCatalog&&a.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",itemAction:!0,actionCode:"CATALOG_DELETE",defaultIcon:"PCreduceCustomIcon",onClick:b.hitch(this,function(){parus.catalogActions.deleteCatalog(this.catalogTree)})}),e++);c&&a.addChild(new t.MenuSeparator,e++);a.startup();return a},_createCustomMenu:function(a,
c,e,f,g,h){var l=!!a;l||(a=new t.Menu({"class":"balanceMenu"}));var m=0;a.addChild(new t.MenuItem({label:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c...",itemAction:!1,detailAction:h,defaultIcon:"PCHardwareadaltCustomIcon",onClick:b.hitch(this,function(){this.insertAction(this,c,e)})}),m++);a.addChild(new t.MenuItem({label:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c...",itemAction:!0,defaultIcon:"PCcopyCustomIcon",onClick:b.hitch(this,function(){this.duplicateAction(this,c,
e)})}),m++);a.addChild(new t.MenuItem({label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",itemAction:!0,"default":f,defaultIcon:"PCdocumentCustomIcon",onClick:b.hitch(this,function(){this.updateAction(this,c,e)})}),m++);this.catalogTree&&g&&a.addChild(new t.MenuItem({label:"\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c...",itemAction:!0,onClick:b.hitch(this,function(){parus.gridActions.moveDocumentToCatalog(c,this.catalogTree,this.unitCode,g)})}),m++);a.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",
itemAction:!0,defaultIcon:"PCreduceCustomIcon",onClick:b.hitch(this,function(){this.deleteAction(this,c,e)})}),m++);l&&a.addChild(new t.MenuSeparator,m++);a.startup();return a},insertAction:function(a,c,e){(new e({titlePostfix:"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435",parentDialog:a,store:c.store,onApply:b.hitch(a,function(f){(f=f.executeInsert(!1))&&parus.balance.refreshGrid(c,"RN",f);return!!f})})).show()},duplicateAction:function(a,c,e){var f=c.store,g=c.selection.getSelectedIndex();
g=c.getItem(g);(new e({titlePostfix:"\u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435",parentDialog:a,store:f,item:g,onApply:b.hitch(a,function(h){(h=h.executeInsert(!0))&&parus.balance.refreshGrid(c,"RN",h);return!!h})})).show()},updateAction:function(a,c,e){var f=c.store,g=c.selection.getSelectedIndex();g=c.getItem(g);(new e({titlePostfix:"\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435",parentDialog:a,store:f,item:g,editMode:!0,onApply:b.hitch(a,function(h){var l=
h.executeUpdate();l&&parus.balance.refreshGrid(c,"RN",h.rn);return l})})).show()},deleteAction:function(a,c,e){parus.gridActions.deleteSelected(c,e.prototype.executeDelete)},showDictionaryAction:function(a,c,e,f){b.mixin(a,{dictionary:a,unitCode:a.unitCode,editDialogClass:e,editDetailDialogClass:f});a.menu&&a.menu.startup();c||(c=parus.editableDictionaryDialog);a=new c(a);a.parentDialog=this;a.show();return a},getGridCondition:function(a){if(this.gridConditions&&this.gridConditions.hasOwnProperty(a))return this.gridConditions[a]},
getParentDialogCondition:function(a){if(this.parentDialog&&this.parentDialog.gridConditions&&this.parentDialog.gridConditions.hasOwnProperty(a))return this.parentDialog.gridConditions[a]},getParentDialogMasterGridItem:function(a){if(this.parentDialog&&this.parentDialog.grid){var c=this.parentDialog.grid,e=c.store;c=c.selection.getFirstSelected();return e.getValue(c,a)}},getParentDialogDetailGridItem:function(a){if(this.parentDialog&&this.parentDialog.detailGrid){var c=this.parentDialog.detailGrid,
e=c.store;c=c.selection.getFirstSelected();return e.getValue(c,a)}}})})},"parus/gridSettingsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.gridSettingsDialog");b.require("dojo.data.ItemFileReadStore");b.require("dojo.data.ItemFileWriteStore");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.NumberSpinner");b.require("dijit._editor._Plugin");b.require("dijit._editor.plugins.AlwaysShowToolbar");b.require("dijit._editor.plugins.FontChoice");
b.require("dijit._editor.plugins.TextColor");b.require("dojox.grid.cells.dijit");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.UpDown");b.require("parus.customIconsPalette");b.require("parus.gridFormatConditionDialog");b.require("parus.richEditDialog");b.declare("parus.gridSettingsDialog",[parus.Dialog],{sourceGrid:null,sourceMenu:null,sourceCatalogTree:null,additions:null,userProcsUnitCode:null,userReportsUnitCode:null,userAppsUnitCode:null,onShow:function(){this._colorConditions=
[];if(this.sourceGrid){if(this.sourceGrid.abonentFieldsNeeded){var a=this.columnsGrid.structure;a[0].cells[0][1].width="300px";a[0].cells[0][4].hidden=!1;this.columnsGrid.setStructure(a);a=this.actionsGrid.structure;a[0].cells[0][0].width="268px";a[0].cells[0][3].hidden=!1;this.actionsGrid.setStructure(a);a=this.userAppsGrid.structure;a[0].cells[0][0].width="430px";a[0].cells[0][2].hidden=!1;this.userAppsGrid.setStructure(a);a=this.userProcsGrid.structure;a[0].cells[0][0].width="430px";a[0].cells[0][2].hidden=
!1;this.userProcsGrid.setStructure(a);a=this.userReportsGrid.structure;a[0].cells[0][0].width="430px";a[0].cells[0][2].hidden=!1;this.userReportsGrid.setStructure(a)}this.columnsGrid.setStore(this.columnsStore());this.sourceGrid.colorConditions&&b.forEach(this.sourceGrid.colorConditions,b.hitch(this,function(f){var g;this.columnsGrid.store.fetch({onItem:b.hitch(this,function(h){f.field==this.columnsGrid.store.getValue(h,"id")&&(g=this.columnsGrid.store.getValue(h,"name"))})});g&&this._colorConditions.push({id:this._colorConditions.length,
field:f.field,fieldTitle:g,color:f.color,applyToRow:f.applyToRow,mask:f.mask,fromValue:f.fromValue,toValue:f.toValue,title:this.formatConditionTitle(f.mask,f.fromValue,f.toValue)})}));this.colorConditionsGrid.setStore(this.colorConditionsStore());this.colorConditionsGridSelected();this.sourceGrid.pluginMgr&&this.sourceGrid.pluginMgr.getPlugin("status")?(this.sourceCatalogTree&&(this.hideCatalogTreeRow.style.display="",this.hideCatalogTree.attr("checked",!parus.gridSettingsDialog.getCatalogTreeVisible(this.sourceCatalogTree))),
this.additions&&this.additions.length&&b.forEach(this.additions,b.hitch(this,function(f){var g=this.additionsTable.insertRow(-1).insertCell(-1),h=g.appendChild(document.createElement("input"));g.appendChild(document.createElement("b")).appendChild(document.createTextNode("\n"+f.title));b.mixin(f,{_widget:new t.form.CheckBox({checked:f.widget?"none"==f.widget.domNode.style.display:f.get()},h)})})),this.sourceGrid.pluginMgr.getPlugin("columnsFilter")?(this.showFilterBarRow.style.display="",this.showFilterBarCheckBox.attr("checked",
this.sourceGrid.getFilterBarVisible())):(this.showFilterBarCheckBox.destroyRecursive(),this.showFilterBarCheckBox=null)):(a=this.columnsGrid.structure,a[0].cells[0][5].hidden=!0,a[0].cells[0][5].width=0,this.columnsGrid.setStructure(a),this.tabContainer.removeChild(this.pluginsSettingsPane),this.pluginsSettingsPane.destroyRecursive(),this.additionsTable=this.hideCatalogTreeRow=this.hideCatalogTree=this.showFilterBarCheckBox=null);this.colorConditionsGridPopupMenu.bindDomNode(this.colorConditionsGrid.viewsNode)}else{this.tabContainer.removeChild(this.columnsSettingsPane);
this.columnsSettingsPane.destroyRecursive();this.columnsGrid=this.columnsSettingsPane=null;var c=!1;this.additions&&this.additions.length&&b.forEach(this.additions,b.hitch(this,function(f){c=!0;var g=this.additionsTable.insertRow(-1).insertCell(-1),h=g.appendChild(document.createElement("input"));g.appendChild(document.createElement("b")).appendChild(document.createTextNode("\n"+f.title));b.mixin(f,{_widget:new t.form.CheckBox({checked:f.widget?"none"==f.widget.domNode.style.display:f.get()},h)})}));
c||(this.tabContainer.removeChild(this.pluginsSettingsPane),this.pluginsSettingsPane.destroyRecursive());this.tabContainer.removeChild(this.colorConditionsPane);this.colorConditionsPane.destroyRecursive();this.colorConditionsGrid=this.colorConditionsPane=null}if(this.sourceMenu){this.actionsGrid.views.views[0].onAfterRow=b.hitch(this,this.actionsGridAfterRow);this.actionsGrid.setStore(this.actionsStore());var e=!1;this.userAppsUnitCode&&(a=this.userObjectsStore("userApps",this.userAppsUnitCode),a._jsonData.items.length&&
(this.userAppsGrid.setStore(a),e=!0));e||(this.tabContainer.removeChild(this.userAppsPane),this.userAppsGrid=null,this.userAppsPane.destroyRecursive(),this.userAppsPane=null);e=!1;this.userProcsUnitCode&&(a=this.userObjectsStore("userProcs",this.userProcsUnitCode),a._jsonData.items.length&&(this.userProcsGrid.setStore(a),e=!0));e||(this.tabContainer.removeChild(this.userProcsPane),this.userProcsGrid=null,this.userProcsPane.destroyRecursive(),this.userProcsPane=null);e=!1;this.userReportsUnitCode&&
(a=this.userObjectsStore("userReports",this.userReportsUnitCode),a._jsonData.items.length&&(this.userReportsGrid.setStore(a),e=!0));e||(this.tabContainer.removeChild(this.userReportsPane),this.userReportsGrid=null,this.userReportsPane.destroyRecursive(),this.userReportsPane=null)}else this.tabContainer.removeChild(this.actionsSettingsPane),this.actionsGrid=null,this.actionsSettingsPane.destroyRecursive(),this.actionsSettingsPane=null,this.tabContainer.removeChild(this.userAppsPane),this.userAppsGrid=
null,this.userAppsPane.destroyRecursive(),this.userAppsPane=null,this.tabContainer.removeChild(this.userProcsPane),this.userProcsGrid=null,this.userProcsPane.destroyRecursive(),this.userProcsPane=null,this.tabContainer.removeChild(this.userReportsPane),this.userReportsGrid=null,this.userReportsPane.destroyRecursive(),this.userReportsPane=null;-1!=b.indexOf(parus.balance.availableUnits,"Users")&&(this.spreadButton.domNode.style.display="")},columnsStore:function(){var a=[],c=0;b.forEach(this.sourceGrid.views.views[0].structure.cells[0],
b.hitch(this,function(e){e.field&&a.push({id:e.field,name:e.name,width:e.hidden?0:parus.parus8.styleSize(e.unitWidth||e.width),nowrap:0<=(" "+(e.cellClasses||"")+" ").indexOf(" unwrappable "),inabonent:-1!=b.indexOf((this.sourceGrid.abonentFields||"").split(";"),e.field),aggregate:e.aggregate||0,position:++c})}));return store=new parus.gridSettingsDialogColumnGridStore({data:{identifier:"id",label:"name",items:a}})},_moveUp:function(a){0>=a||(this.columnsGrid.store.moveUp(a),id1=this.columnsGrid.store.getIdentity(this.columnsGrid.store._arrayOfAllItems[a]),
id2=this.columnsGrid.store.getIdentity(this.columnsGrid.store._arrayOfAllItems[a-1]),this.columnsGrid._by_idty[id1].item=this.columnsGrid.store._arrayOfAllItems[a],this.columnsGrid._by_idty[id2].item=this.columnsGrid.store._arrayOfAllItems[a-1],this.columnsGrid._by_idx[a].item=this.columnsGrid.store._arrayOfAllItems[a],this.columnsGrid._by_idx[a-1].item=this.columnsGrid.store._arrayOfAllItems[a-1])},actionsStore:function(){var a=[],c=0,e=function(f,g){b.forEach(f.getChildren(),function(h){"dijit.MenuSeparator"==
h.declaredClass||"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438..."==b.trim(h.label)||h.userProcRN||h.userReportRN||h.userAppRN||(a.push({name:'\x3cdiv class\x3d"dojoxGridExpando '+(h.popup?"dojoxGridExpandoOpened":"dojoxGridNoChildren")+'" style\x3d"margin-left: '+18*g+'px;"\x3e'+(h.popup?'\x3cdiv class\x3d"dojoxGridExpandoNode"\x3e':"")+'\x3cdiv class\x3d"dojoxGridExpandoNodeInner"\x3e'+(h.popup?"-":"+")+"\x3c/div\x3e"+(h.popup?"\x3c/div\x3e":"")+"\x3c/div\x3e"+h.label,hash:parus.parus8.hash(h.label),
level:g,id:c++,enabled:"none"!=h.domNode.style.display,icon:h.customIcon?h.customIcon+"Big":"",defaultIcon:h.defaultIcon,inabonent:h.inAbonent}),h.popup&&e(h.popup,g+1))})};e(this.sourceMenu,0);return new parus.gridSettingsDialogStore({data:{identifier:"id",label:"name",items:a}})},userObjectsStore:function(a,c){var e=[],f=0,g=[],h=function(m){b.forEach(m.getChildren(),function(p){p.userAppRN&&g.push(p.userAppRN);p.userProcRN&&g.push(p.userProcRN);p.userReportRN&&g.push(p.userReportRN);p.popup&&h(p.popup)})},
l=this.sourceMenu;h(l);b.forEach(parus.parus8.rowNodes(parus.database.query(a,{UNITCODE:c})),function(m){e.push({name:parus.parus8.nodeField(m,"NAME"),hash:parus.parus8.nodeField(m,"RN"),level:1,id:f++,inmenu:0<=b.indexOf(g,parus.parus8.nodeField(m,"RN")),inabonent:0<=b.indexOf(l.inAbonentUserApps||[],parus.parus8.nodeField(m,"RN"))||0<=b.indexOf(l.inAbonentUserProcs||[],parus.parus8.nodeField(m,"RN"))||0<=b.indexOf(l.inAbonentUserReports||[],parus.parus8.nodeField(m,"RN"))})});return new parus.gridSettingsDialogStore({data:{identifier:"id",
label:"name",items:e}})},madeSettings:function(){var a=[],c=[];this.columnsGrid&&this.columnsGrid.store.fetch({onItem:b.hitch(this,function(x){var A={id:this.columnsGrid.store.getValue(x,"id"),name:this.columnsGrid.store.getValue(x,"name"),width:this.columnsGrid.store.getValue(x,"width"),nowrap:this.columnsGrid.store.getValue(x,"nowrap"),aggregate:this.columnsGrid.store.getValue(x,"aggregate")};a.push(A);this.columnsGrid.store.getValue(x,"inabonent")&&c.push(this.columnsGrid.store.getValue(x,"id"))})});
var e=[],f=[],g=[],h=[],l=[],m=[],p=[];this.actionsGrid&&(this.actionsGrid.store.fetch({onItem:b.hitch(this,function(x){x={hash:this.actionsGrid.store.getValue(x,"hash"),enabled:this.actionsGrid.store.getValue(x,"enabled"),customIcon:(this.actionsGrid.store.getValue(x,"icon")||"").replace(/Big$/,""),inabonent:this.actionsGrid.store.getValue(x,"inabonent")};e.push(x)})}),this.userAppsGrid&&this.userAppsGrid.store.fetch({onItem:b.hitch(this,function(x){this.userAppsGrid.store.getValue(x,"inmenu")&&
f.push(this.userAppsGrid.store.getValue(x,"hash"));this.userAppsGrid.store.getValue(x,"inabonent")&&l.push(this.userAppsGrid.store.getValue(x,"hash"))})}),this.userProcsGrid&&this.userProcsGrid.store.fetch({onItem:b.hitch(this,function(x){this.userProcsGrid.store.getValue(x,"inmenu")&&g.push(this.userProcsGrid.store.getValue(x,"hash"));this.userProcsGrid.store.getValue(x,"inabonent")&&m.push(this.userProcsGrid.store.getValue(x,"hash"))})}),this.userReportsGrid&&this.userReportsGrid.store.fetch({onItem:b.hitch(this,
function(x){this.userReportsGrid.store.getValue(x,"inmenu")&&h.push(this.userReportsGrid.store.getValue(x,"hash"));this.userReportsGrid.store.getValue(x,"inabonent")&&p.push(this.userReportsGrid.store.getValue(x,"hash"))})}));var r=[];b.forEach(this._colorConditions,function(x){r.push({applyToRow:x.applyToRow,color:x.color,field:x.field,mask:x.mask,fromValue:x.fromValue,toValue:x.toValue})});var w={};this.additions&&b.forEach(this.additions,b.hitch(this,function(x){w[x.id]=x._widget.checked}));return{gridSettings:a,
actionSettings:e,userAppsActions:this.userAppsUnitCode?{actions:f,inabonent:l,unitcode:this.userAppsUnitCode}:null,userProcsActions:this.userProcsUnitCode?{actions:g,inabonent:m,unitcode:this.userProcsUnitCode}:null,userReportsActions:this.userReportsUnitCode?{actions:h,inabonent:p,unitcode:this.userReportsUnitCode}:null,colorConditions:r,showFilterBar:this.showFilterBarCheckBox?this.showFilterBarCheckBox.checked:!1,hideCatalogTree:this.hideCatalogTree?this.hideCatalogTree.checked:!1,additions:w,
filterValues:this.sourceGrid?this.showFilterBarCheckBox&&this.showFilterBarCheckBox.checked?this.sourceGrid.pluginMgr.getPlugin("columnsFilter").values:{}:{},sortInfo:this.sourceGrid?this.sourceGrid.sortInfo||null:null,abonentFields:c}},_checkActionsByLevel:function(a,c){var e=this.actionsGrid.getItem(a);e&&this.actionsGrid.store.getValue(e,"level")>c&&(this.actionsGrid.store.setValue(e,"enabled",!1),this.actionsGrid.updateRow(a),this._checkActionsByLevel(a+1,c))},toggleAction:function(a){var c=this.actionsGrid.getItem(a),
e=this.actionsGrid.store.getValue(c,"enabled");this.actionsGrid.store.setValue(c,"enabled",e?!1:!0);this.actionsGrid.updateRow(a);e&&this._checkActionsByLevel(a+1,this.actionsGrid.store.getValue(c,"level"))},toggleWrap:function(a){var c=this.columnsGrid.getItem(a),e=this.columnsGrid.store.getValue(c,"nowrap");this.columnsGrid.store.setValue(c,"nowrap",e?!1:!0);this.columnsGrid.updateRow(a)},toggleAbonent:function(a){var c=this.columnsGrid.getItem(a),e=this.columnsGrid.store.getValue(c,"inabonent");
this.columnsGrid.store.setValue(c,"inabonent",e?!1:!0);this.columnsGrid.updateRow(a)},toggleActionAbonent:function(a){var c=this.actionsGrid.getItem(a),e=this.actionsGrid.store.getValue(c,"inabonent");this.actionsGrid.store.setValue(c,"inabonent",e?!1:!0);this.actionsGrid.updateRow(a)},toggleUserAppAbonent:function(a){var c=this.userAppsGrid.getItem(a),e=this.userAppsGrid.store.getValue(c,"inabonent");this.userAppsGrid.store.setValue(c,"inabonent",e?!1:!0);this.userAppsGrid.updateRow(a)},toggleUserProcAbonent:function(a){var c=
this.userProcsGrid.getItem(a),e=this.userProcsGrid.store.getValue(c,"inabonent");this.userProcsGrid.store.setValue(c,"inabonent",e?!1:!0);this.userProcsGrid.updateRow(a)},toggleUserReportAbonent:function(a){var c=this.userReportsGrid.getItem(a),e=this.userReportsGrid.store.getValue(c,"inabonent");this.userReportsGrid.store.setValue(c,"inabonent",e?!1:!0);this.userReportsGrid.updateRow(a)},toggleUserApp:function(a){var c=this.userAppsGrid.getItem(a),e=this.userAppsGrid.store.getValue(c,"inmenu");this.userAppsGrid.store.setValue(c,
"inmenu",e?!1:!0);this.userAppsGrid.updateRow(a)},toggleUserProc:function(a){var c=this.userProcsGrid.getItem(a),e=this.userProcsGrid.store.getValue(c,"inmenu");this.userProcsGrid.store.setValue(c,"inmenu",e?!1:!0);this.userProcsGrid.updateRow(a)},toggleUserReport:function(a){var c=this.userReportsGrid.getItem(a),e=this.userReportsGrid.store.getValue(c,"inmenu");this.userReportsGrid.store.setValue(c,"inmenu",e?!1:!0);this.userReportsGrid.updateRow(a)},editTitle:function(a){var c=this.columnsGrid.getItem(a),
e=this.columnsGrid.store.getValue(c,"name"),f=new parus.richEditDialog({title:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a",onShow:function(){f.editor.attr("value",e)},onApply:b.hitch(this,function(){e=f.editor.attr("value");this.columnsGrid.store.setValue(c,"name",e);this.columnsGrid.updateRow(a);return!0})});f.show()},fieldsAsOptions:function(){var a=[];this.columnsGrid.store.fetch({onItem:b.hitch(this,function(c){a.push({value:this.columnsGrid.store.getValue(c,"id"),label:this.columnsGrid.store.getValue(c,
"name")})})});return a},_colorConditions:null,colorConditionsStore:function(){return new parus.gridSettingsDialogStore({data:{identifier:"id",items:b.clone(this._colorConditions)}})},formatConditionTitle:function(a,c,e){return a?a:c&&!e?"C "+c:!c&&e?"\u041f\u043e "+e:"C "+c+" \u043f\u043e "+e},addColorCondition:function(){var a=new parus.gridFormatConditionDialog({fieldsAsOptions:this.fieldsAsOptions(),onShow:function(){a.fieldSelect.options.length&&a.fieldSelect.attr("value",a.fieldSelect.options[0].value);
a.colorSelect.options.length&&a.colorSelect.attr("value",a.colorSelect.options[0].value)},onApply:b.hitch(this,function(){var c=a.fieldSelect.value;this.columnsGrid.store.fetch({onItem:b.hitch(this,function(e){a.fieldSelect.value==this.columnsGrid.store.getValue(e,"id")&&(c=this.columnsGrid.store.getValue(e,"name"))})});this._colorConditions.push({id:this._colorConditions.length,field:a.fieldSelect.value,fieldTitle:c,color:a.colorSelect.value,applyToRow:a.applyToRowCheckBox.checked?1:0,mask:a.maskEdit.value,
fromValue:a.fromEdit.value,toValue:a.toEdit.value,title:this.formatConditionTitle(a.maskEdit.value,a.fromEdit.value,a.toEdit.value)});this.colorConditionsGrid.setStore(this.colorConditionsStore());this.colorConditionsGrid.selection.select(this._colorConditions.length-1);this.colorConditionsGrid.updateRow(this._colorConditions.length-1);this.colorConditionsGrid.views.setScrollTop(this.colorConditionsGrid.scroller.findScrollTop(this.colorConditionsGrid.getItem(this._colorConditions.length-1)));return!0})});
a.show()},editColorCondition:function(){var a=this.colorConditionsGrid.store,c=this.colorConditionsGrid.selection.getSelectedIndex(),e=this.colorConditionsGrid.getItem(c),f=new parus.gridFormatConditionDialog({fieldsAsOptions:this.fieldsAsOptions(),onShow:b.hitch(this,function(){f.fieldSelect.attr("value",a.getValue(e,"field"));f.colorSelect.attr("value",a.getValue(e,"color").toString());f.applyToRowCheckBox.attr("checked","1"==a.getValue(e,"applyToRow"));f.maskEdit.attr("value",a.getValue(e,"mask"));
f.fromEdit.attr("value",a.getValue(e,"fromValue"));f.toEdit.attr("value",a.getValue(e,"toValue"));f.maskEdit.value||f.useRange.attr("checked",!0);f.modeChanged()}),onApply:b.hitch(this,function(){var g=f.fieldSelect.value;this.columnsGrid.store.fetch({onItem:b.hitch(this,function(h){f.fieldSelect.value==this.columnsGrid.store.getValue(h,"id")&&(g=this.columnsGrid.store.getValue(h,"name"))})});b.mixin(this._colorConditions[c],{field:f.fieldSelect.value,fieldTitle:g,color:f.colorSelect.value,applyToRow:f.applyToRowCheckBox.checked?
1:0,mask:f.maskEdit.value,fromValue:f.fromEdit.value,toValue:f.toEdit.value,title:this.formatConditionTitle(f.maskEdit.value,f.fromEdit.value,f.toEdit.value)});this.colorConditionsGrid.setStore(this.colorConditionsStore());this.colorConditionsGrid.selection.select(c);this.colorConditionsGrid.updateRow(c);this.colorConditionsGrid.scrollToRow(c);return!0})});f.show()},deleteColorCondition:function(){var a=this.colorConditionsGrid.selection.getSelectedIndex();(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){this._colorConditions.splice(a,1);b.forEach(this._colorConditions,function(c,e){c.id=e});this.colorConditionsGrid.setStore(this.colorConditionsStore());this.colorConditionsGrid.selection.select(a-1);this.colorConditionsGrid.updateRow(a-1);this.colorConditionsGrid.scrollToRow(a-1);return!0})})).show()},colorConditionsGridSelected:function(){var a=0<=this.colorConditionsGrid.selection.getSelectedIndex()&&this.colorConditionsGrid.selection.getSelectedIndex()<this._colorConditions.length,
c=function(e){b.forEach(e.getChildren(),function(f){f.itemAction&&f.attr("disabled",!a);f.popup&&c(f.popup)})};c(this.colorConditionsGridPopupMenu)},clearUserData:function(){(new parus.confirmationDialog({message:"\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432\u0430\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0441\u0435\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b?",
onApply:b.hitch(this,function(){parus.userdata.cleanUp();parus.parus8.notificationMessage("\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u044b. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0439\u0442\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u043e\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0441\u0438\u043b\u0443.");
this.close();return!0})})).show()},spread:function(){var a=parus.dictionaries.Users;b.mixin(a,{code:"Users",multiselect:!0,dictionary:a,onApply:b.hitch(this,function(c){var e=c.getValue().split(";");if(!e.length||!e[0])return!1;(new parus.confirmationDialog({message:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439: "+e.length+". \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044d\u0442\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 \u0432\u0430\u0448\u0438. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c?",
onApply:b.hitch(this,function(){parus.userdata.spread(e);parus.parus8.notificationMessage("\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 \u0432\u0430\u0448\u0438.");this.close();return!0})})).show();return!0})});setTimeout(function(){(new parus.dictionaryDialog(a)).show()},100)},actionsGridAfterRow:function(a,
c,e){-1==a&&(a=b.parser.parse({rootNode:e,template:!0}),b.forEach(a,b.hitch(this,function(f){b.mixin(f,{dialogObject:this,dialog:this.dialog});var g=f.dojoAttachPoint;g&&-1!=b.indexOf(this._attachPoints,g)&&(this[g]=f)})))},clearAllIcons:function(){(new parus.confirmationDialog({message:"\u0423\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439?",onApply:b.hitch(this,function(){this.actionsGrid.store.fetch({onItem:b.hitch(this,
function(a){this.actionsGrid.store.setValue(a,"icon",null)}),onComplete:b.hitch(this,function(){setTimeout(b.hitch(this,function(){parus.balance.refreshGrid(this.actionsGrid)}),30)})});return!0})})).show()},defaultAllIcons:function(){(new parus.confirmationDialog({message:"\u0412\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e?",
onApply:b.hitch(this,function(){this.actionsGrid.store.fetch({onItem:b.hitch(this,function(a){this.actionsGrid.store.setValue(a,"icon",this.actionsGrid.store.getValue(a,"defaultIcon")?this.actionsGrid.store.getValue(a,"defaultIcon")+"Big":"")}),onComplete:b.hitch(this,function(){setTimeout(b.hitch(this,function(){parus.balance.refreshGrid(this.actionsGrid)}),30)})});return!0})})).show()}});b.mixin(parus.gridSettingsDialog,{formatEditableText:function(a,c,e){return'\x3cdiv\x3e\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.editTitle('+
c+')" align\x3d"right" style\x3d"position: relative; top: 0px; right: 0px; z-index: 99;"\x3e\x3cspan class\x3d"dijit dijitReset dijitInline dijitButton"\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents" style\x3d"user-select: none;"\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon dijitNoIcon"\x3e\x3c/span\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\u25cf\x3c/span\x3e\x3cspan class\x3d"dijitReset dijitInline"\x3e\x3cdiv class\x3d"dictButton" style\x3d"width:10px;height:10px;overflow:hidden"\x3e\x26nbsp;\x3c/div\x3e\x3c/span\x3e\x3c/span\x3e\x3c/span\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv style\x3d"position: relative; top: -16; left:0"\x3e'+
a+"\x3c/div\x3e\x3c/div\x3e"},formatCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleAction('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatWrapCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleWrap('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+
(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatAbonentCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleAbonent('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},
formatAbonentActionCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleActionAbonent('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatAbonentUserAppCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleUserAppAbonent('+
c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatAbonentUserProcCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleUserProcAbonent('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+
(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatAbonentUserReportCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleUserReportAbonent('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatUserAppsCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleUserApp('+
c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatUserProcsCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleUserProc('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+
(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatUserReportsCheck:function(a,c,e){return'\x3cdiv onclick\x3d"dijit.getEnclosingWidget(this).grid.dialogObject.toggleUserReport('+c+')" class\x3d"dojoxGridRowSelector dijitReset dijitInline dijitCheckBox '+(a?"dijitCheckBoxChecked":"")+' "\x3e\x3cspan class\x3d"dojoxGridRowSelectorStatusText"\x3e'+(a?"\x26#8730;":"\x26#4F;")+"\x3c/span\x3e\x3c/div\x3e"},formatIcon:function(a,c,e){return a?'\x3cdiv class\x3d"gridSettingsIcon"\x3e\x3cimg class\x3d"'+
a+'" src\x3d"'+(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString()+'"/\x3e\x3c/div\x3e':"(\u041d\u0435\u0442)"},formatAggregate:function(a,c,e){return a?"(\u041d\u0435\u0442) \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0421\u0443\u043c\u043c\u0430 \u041c\u0438\u043d\u0438\u043c\u0443\u043c \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0421\u0440\u0435\u0434\u043d\u0435\u0435".split(" ")[a]:"(\u041d\u0435\u0442)"},mergeColorConditions:function(a,c){a&&
c&&(a.colorConditions=c,a.setQuery(a.query))},_mergeStructures:function(a,c){var e=a[0].cells?a[0].cells[0]:a,f=[];b.forEach(c,function(h){for(var l=0;l<e.length;l++)if(e[l]&&e[l].field==h.id){h.width?(e[l].width=h.width+"px",e[l].hidden=!1):e[l].hidden=!0;var m=(e[l].cellClasses||"").split(" "),p=b.indexOf(m,"unwrappable");h.nowrap?-1==p&&m.push("unwrappable"):-1!=p&&delete m[p];e[l].cellClasses=m.join(" ");e[l].name=h.name||e[l].name;e[l].aggregate=h.aggregate;f.push(b.clone(e[l]));e[l]=null}});
for(var g=0;g<e.length;g++)e[g]&&f.push(b.clone(e[g]));a[0]&&a[0].cells?a[0].cells[0]=f:a=f;return a},mergeGridSettings:function(a,c){a&&c&&(a.setStructure(this._mergeStructures(b.clone(a.structure),c)),a.abonentFields=c.abonentFields||"")},mergeMenuSettings:function(a,c,e,f,g){if(a&&c){var h=null,l=null,m=function(p,r){var w=!1;b.forEach(p.getChildren(),function(x,A){var B=!0,D="",I=x.inAbonent;if("dijit.MenuSeparator"!=x.declaredClass){"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438..."==
b.trim(x.label)&&(l=p,h=x);for(var u=0;u<c.length;u++)parus.parus8.hash(x.label)==c[u].hash&&(B=c[u].enabled,D=c[u].customIcon||D,I=c[u].inabonent);r&&(B=!1);x.popup&&(B&&(B=m(x.popup)),B||m(x.popup,!0));if(x.userProcRN||x.userReportRN||x.userAppRN)B=!1,x.destroyRecursive(),x=null}x&&(B?(x.hiddenBySettings=!1,x.domNode.style.display="",w=!0):(x.hiddenBySettings=!0,x.domNode.style.display="none"),x.customIcon=D,x.inAbonent=I)});return w};m(a);(e||f||g)&&l&&h&&(g&&(a.inAbonentUserApps=g.inabonent||
[],l.addChild(new t.MenuSeparator,h.getIndexInParent()),b.forEach(parus.parus8.rowNodes(parus.database.query("userApps",{UNITCODE:g.unitcode})),function(p){var r=parus.parus8.nodeField(p,"RN");if(-1!=b.indexOf(g.actions,r)){var w=new t.MenuItem({label:parus.parus8.nodeField(p,"NAME"),itemAction:!1,userAppRN:r,onClick:function(){parus.balance.userApplication(w.userObjectsGrid,g.unitcode,r,"0"!=parus.parus8.nodeField(p,"GROUP_RECORDS"))}});l.addChild(w,h.getIndexInParent())}})),e&&(a.inAbonentUserProcs=
e.inabonent||[],l.addChild(new t.MenuSeparator,h.getIndexInParent()),b.forEach(parus.parus8.rowNodes(parus.database.query("userProcs",{UNITCODE:e.unitcode})),function(p){var r=parus.parus8.nodeField(p,"RN");if(-1!=b.indexOf(e.actions,r)){var w=new t.MenuItem({label:parus.parus8.nodeField(p,"NAME"),itemAction:!1,userProcRN:r,onClick:function(){parus.balance.userProcedure(w.userObjectsGrid,e.unitcode,r,parus.parus8.nodeField(p,"CONFIRM_TEXT"),"0"!=parus.parus8.nodeField(p,"PERRECORD"),"0"!=parus.parus8.nodeField(p,
"PERSELECTION"))}});l.addChild(w,h.getIndexInParent())}})),f&&(a.inAbonentUserReports=f.inabonent||[],l.addChild(new t.MenuSeparator,h.getIndexInParent()),b.forEach(parus.parus8.rowNodes(parus.database.query("userReports",{UNITCODE:f.unitcode})),function(p){var r=parus.parus8.nodeField(p,"RN");if(-1!=b.indexOf(f.actions,r)){var w=new t.MenuItem({label:parus.parus8.nodeField(p,"NAME"),itemAction:!1,userReportRN:r,onClick:function(){parus.balance.userReport(w.userObjectsGrid,f.unitcode,r,parus.parus8.nodeField(p,
"NAME"),parus.parus8.nodeField(p,"REPORT_TYPE"))}});l.addChild(w,h.getIndexInParent())}})),l.addChild(new t.MenuSeparator,h.getIndexInParent()));parus.parus8.checkMenuSeparators(a);a.actionsButtonPane&&parus.balance._createActionsButton(a,a.actionsButtonPane,!0)}},mergeFilterBar:function(a,c,e,f){a&&a.pluginMgr&&a.pluginMgr.getPlugin("columnsFilter")&&(f&&(a.sortInfo=f),c?(e&&b.mixin(a.pluginMgr.getPlugin("columnsFilter").values,e),a.showFilterBar()):a.hideFilterBar())},mergeAdditions:function(a,
c){a&&c&&b.forEach(a,function(e){if(e.widget){var f=t.byNode(e.widget.domNode.parentNode);c.hasOwnProperty(e.id)&&(e.widget.domNode.style.display=c[e.id]?"none":"");e.widget._splitterWidget&&(e.widget._splitterWidget.domNode.style.display=e.widget.domNode.style.display);b.query("*[widgetId]",e.widget.domNode).forEach(function(g){(g=t.byNode(g))&&"dijit.Tree"==g.declaredClass&&(e.widget.domNode.style.display?(g.listMode=!0,g.hiddenMode=!0):(g.listMode=!1,g.hiddenMode=!1,parus.catalogActions.refreshCatalogTree(g)))});
f&&setTimeout(function(){f.layout()},100)}else e.set&&e.set(c[e.id])})},getCatalogTreeVisible:function(a){return a?!a.hiddenMode:!1},setCatalogTreeVisible:function(a,c){if(a){a.hiddenMode=!c;var e=a.domNode.parentNode.parentNode.parentNode,f=t.byNode(e);f||(e=a.domNode.parentNode,f=t.byNode(e));var g=t.byNode(e.parentNode);c?(f.domNode.style.display="",a.listMode=!1,parus.catalogActions.refreshCatalogTree(a)):(f.domNode.style.display="none",a.listMode=!0);f._splitterWidget&&(f._splitterWidget.domNode.style.display=
c?"":"none");setTimeout(function(){g.layout()},100)}}});b.declare("parus.gridSettingsDialogStore",[b.data.ItemFileWriteStore],{_containsValue:function(a,c,e,f){return b.isFunction(e)&&!f?!0:this.inherited(arguments)}});b.declare("parus.gridSettingsDialogColumnGridStore",[parus.gridSettingsDialogStore],{moveUp:function(a){if(!(0>=a)){var c=b.clone(this._arrayOfAllItems[a].name),e=b.clone(this._arrayOfAllItems[a].width),f=b.clone(this._arrayOfAllItems[a].nowrap),g=b.clone(this._arrayOfAllItems[a].inabonent),
h=b.clone(this._arrayOfAllItems[a].aggregate),l=b.clone(this._arrayOfAllItems[a].id),m=b.clone(this._arrayOfAllItems[a-1].name),p=b.clone(this._arrayOfAllItems[a-1].width),r=b.clone(this._arrayOfAllItems[a-1].nowrap),w=b.clone(this._arrayOfAllItems[a-1].inabonent),x=b.clone(this._arrayOfAllItems[a-1].aggregate),A=b.clone(this._arrayOfAllItems[a-1].id);this._arrayOfAllItems[a].name=m;this._arrayOfAllItems[a].width=p;this._arrayOfAllItems[a].nowrap=r;this._arrayOfAllItems[a].inabonent=w;this._arrayOfAllItems[a].aggregate=
x;this._arrayOfAllItems[a].id=A;this._arrayOfAllItems[a-1].name=c;this._arrayOfAllItems[a-1].width=e;this._arrayOfAllItems[a-1].nowrap=f;this._arrayOfAllItems[a-1].inabonent=g;this._arrayOfAllItems[a-1].aggregate=h;this._arrayOfAllItems[a-1].id=l;this._itemsByIdentity[this.getIdentity(this._arrayOfAllItems[a])]=this._arrayOfAllItems[a];this._itemsByIdentity[this.getIdentity(this._arrayOfAllItems[a-1])]=this._arrayOfAllItems[a-1]}}});b.declare("parus.gridSettingsDialogPositionEditor",[parus.UpDown],
{cell:null,onChange:function(a){t.typematic.stop();1==a?(this.value-=2,this.moveUp(this.value,-1)):(this.value+=2,this.moveUp(this.value-1,0))},moveUp:function(a,c){0>=a||a>=this.cell.grid.store._arrayOfAllItems.length||(this.cell.grid.dialogObject._moveUp(a),setTimeout(b.hitch(this,function(){this.cell.apply(a);this.cell.grid.selection.select(a+c);this.cell.grid.focus.focusGrid();this.cell.grid.focus.setFocusIndex(a+c,this.cell.index);this.cell.grid.edit.setEditCell(this.cell,a+c);this.cell.grid.updateRow(a);
this.cell.grid.updateRow(a-1)}),50))}});b.declare("dojox.grid.cells.gridSettingsDialogPositionEditor",[H.grid.cells._Widget],{getWidgetProps:function(a){var c=this.inherited(arguments);b.mixin(c,{cell:this});return c},getValue:function(a){return a+1},setValue:function(a,c){this.widget.value=a+1;t.focus(this.widget.domNode)},_finish:function(a){this.inherited(arguments);this.grid.updateRow(a)}});b.mixin(H.grid.cells.gridSettingsDialogPositionEditor,{markupFactory:H.grid.cells._Widget.markupFactory,
formatPosition:function(a,c,e){return c+1}});b.declare("dojox.grid.cells.gridSettingsDialogIconEditor",[H.grid.cells._Widget],{getWidgetProps:function(a){var c=this.inherited(arguments);b.mixin(c,{cell:this});return c},getValue:function(a){return this.widget.value}});b.declare("parus.gridSettingsDialogIconEditor",[parus.customIconsEditor],{cell:null,definition:b.cache("parus","theme/customIconsBig.js")});b.mixin(H.grid.cells.gridSettingsDialogIconEditor,{markupFactory:H.grid.cells._Widget.markupFactory});
b.declare("parus.gridSettingsDialogAggregateEditor",[H.grid.cells._Widget],{widgetProps:{options:[{label:"(\u041d\u0435\u0442)",value:0},{label:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e",value:1},{label:"\u0421\u0443\u043c\u043c\u0430",value:2},{label:"\u041c\u0438\u043d\u0438\u043c\u0443\u043c",value:3},{label:"\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c",value:4},{label:"\u0421\u0440\u0435\u0434\u043d\u0435\u0435",value:5}]}});b.mixin(parus.gridSettingsDialogAggregateEditor,
{markupFactory:H.grid.cells._Widget.markupFactory})})},"parus/balanceReportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.customEdit");b.declare("parus.balanceReportDialog",[parus.Dialog],{_agentCodeLoaded:!1,_agentNameLoaded:!1,_dateIsSet:!1,_docprops:null,postCreate:function(){this.inherited(arguments);this.noteEdit.attr("value",
null);this._docprops={};if(parus.balance._docprops.length){this.requsitesPane.domNode.style.margin="0";var a=new t.layout.TabContainer({region:"center","class":"balanceInternalPages"});a.addChild(this.requsitesPane);var c=new t.layout.ContentPane({title:"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430","class":"dialogContentPane",style:"overflow-y:scroll"}),e=document.createElement("table");e.cellSpacing="5";e.width="100%";b.forEach(parus.balance._docprops,b.hitch(this,function(f){var g=e.insertRow(-1);
g.insertCell(-1).appendChild(document.createElement("b")).appendChild(document.createTextNode(parus.parus8.nodeField(f,"PROMPT")+":"));g=g.insertCell(-1);g.align="right";var h=parus.customEditProperties(parus.parus8.nodeField(f,"DICTIONARY"),"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE"),"1"==parus.parus8.nodeField(f,"REQUIRE"),parus.parus8.nodeField(f,"STRLEN"),parus.parus8.nodeField(f,"INTPART"),parus.parus8.nodeField(f,"FRACPART"));
b.mixin(h.params,{disabled:"1"==parus.parus8.nodeField(f,"READONLY")});g=new (h.constructor())(h.params,g.appendChild(document.createElement("div")));this._docprops[parus.parus8.nodeField(f,"RN")]=g}));c.containerNode.appendChild(e);a.addChild(c);this.mainContainer.addChild(a);b.style(this.mainContainer.domNode,{height:parus.parus8.styleSize(this.mainContainer.domNode.style.height)+30+"px"})}parus.balance._masterUserCalcs.length&&(this.userCalcsButton.domNode.style.display="")},agentsChanged:function(a){a&&
a.disabled||(""==this.agentCodeEdit.value&&""==this.agentNameEdit.value?(this.agentCodeEdit.attr("disabled",!1),this.agentNameEdit.attr("disabled",!1)):""!=this.agentCodeEdit.value&&"agentCodeEdit"==a.dojoAttachPoint?this._agentCodeLoaded?this._agentCodeLoaded=!1:(this.agentNameEdit.attr("disabled",!0),this.agentNameEdit.attr("value",null)):""!=this.agentNameEdit.value&&"agentNameEdit"==a.dojoAttachPoint&&(this._agentNameLoaded?this._agentNameLoaded=!1:(this.agentCodeEdit.attr("disabled",!0),this.agentCodeEdit.attr("value",
null))),setTimeout(b.hitch(this,function(){var c=parus.parus8.rowNodes(parus.database.execute("getAgentInfo",{AGENT_CODE:this.agentCodeEdit.disabled?"":this.agentCodeEdit.value,AGENT_NAME:this.agentNameEdit.disabled?"":this.agentNameEdit.value}))[0];this.agentCodeEdit.disabled&&this.agentCodeEdit.attr("value",parus.parus8.nodeField(c,"RAGNABBR"));this.agentNameEdit.disabled&&this.agentNameEdit.attr("value",parus.parus8.nodeField(c,"RAGNNAME"));this.agentHeadEdit.disabled&&this.agentHeadEdit.attr("value",
parus.parus8.nodeField(c,"RHEAD"));""==this.agentCodeEdit.value&&""==this.agentNameEdit.value&&(this.agentCodeEdit.attr("disabled",!1),this.agentNameEdit.attr("disabled",!1))}),100))},formChanged:function(){if(this._dateIsSet)this._dateIsSet=!1;else if(""!=this.formCodeEdit.value){var a=parus.database.execute("findNearestPeriodDate",{SFORM:this.formCodeEdit.value});a&&this.reportDateEdit.attr("value",parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"RESULT"))}},getDatesCondition:function(){return{FORM_CODE:this.formCodeEdit.value||
parus.parus8.CLASS_EmptyData}},propValues:function(){var a={},c;for(c in this._docprops)a["P"+c]=parus._docPropsValueValueFromWidget(this._docprops[c]);return{DOCPROPS:a}},_userCalcParams:null,paramsForUserCalc:function(){var a=this._userCalcParams||{};b.mixin(a,{SAGENT_CODE:this.agentCodeEdit.value,SAGENT_NAME:this.agentNameEdit.value,DBDATE:this.reportDateEdit.value,SNOTE:this.noteEdit.value,SFORM_CODE:this.formCodeEdit.value,NUSE_HISTORY:this.historySelect.value,NONLY_LAST_HISTORY:this.historyLastCheckBox.checked?
1:0});return a},paramsFromUserCalc:function(a){a.SAGENT_CODE&&(this.agentCodeEdit.attr("value",a.SAGENT_CODE),this.agentsChanged(this.agentCodeEdit));a.SAGENT_NAME&&(this.agentNameEdit.attr("value",a.SAGENT_NAME),this.agentsChanged(this.agentNameEdit));a.DBDATE&&this.reportDateEdit.attr("value",a.DBDATE);a.SNOTE&&this.noteEdit.attr("value",a.SNOTE);a.SFORM_CODE&&(this.formCodeEdit.attr("value",a.SFORM_CODE),this.formChanged());a.NUSE_HISTORY&&this.historySelect.attr("value",a.NUSE_HISTORY);a.NONLY_LAST_HISTORY&&
this.historyLastCheckBox.attr("checked",a.NONLY_LAST_HISTORY="1")},userCalcs:function(){parus.balance.executeUserCalcs(parus.balance._masterUserCalcs,!0,!0,b.hitch(this,this.paramsForUserCalc),b.hitch(this,this.paramsFromUserCalc))}})})},"parus/richEditDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.richEditDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.richEditDialog",[parus.Dialog],
{})})},"parus/balanceFolderQueryDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceFolderQueryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceFolderQueryDialog",[parus.Dialog],{})})},"parus/designerTemplatesCheckDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerTemplatesCheckDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");
b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.designerTemplatesCheckDialog",[parus.Dialog],{rn:null,_lastValues:null,onShow:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.autoInsertCheckBox.attr("checked",this._lastValues.autoInsert);this.autoDeleteCheckBox.attr("checked",this._lastValues.autoDelete);this.userSize=this._lastValues.userSize||null},onClose:function(){this.applied&&(this._lastValues.autoInsert=this.autoInsertCheckBox.attr("checked"),
this._lastValues.autoDelete=this.autoDeleteCheckBox.attr("checked"),this._lastValues.userSize=this.userSize,parus.userdata.set(this.declaredClass,this._lastValues))},clear:function(){this.autoInsertCheckBox.attr("checked",!1);this.autoDeleteCheckBox.attr("checked",!1)},onApply:function(){var a=parus.database.execute("designer.BalanceReportFormEdition.Check",{RN:this.rn,AUTO_INS:this.autoInsertCheckBox.attr("checked")?1:0,AUTO_DEL:this.autoDeleteCheckBox.attr("checked")?1:0});if(a){var c=parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],
"clobWARNINGS");parus.parus8.notificationMessage(c)}return!!a}})})},"parus/gridFormatConditionDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.gridFormatConditionDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.gridFormatConditionDialog",[parus.Dialog],{fieldsAsOptions:null,postCreate:function(){this.inherited(arguments);this.colorSelect.attr("options",parus.parus8.colorOptions());
this.fieldSelect.attr("options",this.fieldsAsOptions)},modeChanged:function(){this.maskEdit.attr("disabled",!this.useMask.checked);this.fromEdit.attr("disabled",this.useMask.checked);this.toEdit.attr("disabled",this.useMask.checked);this.useMask.checked?(b.removeClass(this.maskLabel,"balanceReadOnlyHeader"),b.addClass(this.fromLabel,"balanceReadOnlyHeader"),b.addClass(this.toLabel,"balanceReadOnlyHeader")):(b.addClass(this.maskLabel,"balanceReadOnlyHeader"),b.removeClass(this.fromLabel,"balanceReadOnlyHeader"),
b.removeClass(this.toLabel,"balanceReadOnlyHeader"));this.maskEdit.disabled&&this.maskEdit.attr("value","");this.fromEdit.disabled&&this.fromEdit.attr("value","");this.toEdit.disabled&&this.toEdit.attr("value","")},validate:function(){var a=this.inherited(arguments);a&&this.useRange.checked&&(this.fromEdit.value||this.toEdit.value||(a=!1));return a}})})},"parus/balanceExtraDictionaryConditionsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceExtraDictionaryConditionsDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.TitlePane");b.require("dijit.form.DateTextBox");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.groupBox");b.require("parus.dictEdit");b.declare("parus.balanceExtraDictionaryConditionsDialog",[parus.Dialog],{clearConditions:function(){this.valueEdit.attr("value",null);this.noteEdit.attr("value",null)}})})},"parus/balanceReportCheckProtocolPrint":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportCheckProtocolPrint");b.require("parus.parus8");b.require("parus.database");b.require("parus.balanceReportCheckProtocolTabPage");b.mixin(parus,{balanceReportCheckProtocolPrint:{print:function(){var a,c,e,f;b.xhrGet({url:"../.system/session.xml",handleAs:"xml",sync:!0,preventCache:!0,load:function(l){b.isIE||l.normalize();for(var m=l.documentElement.getElementsByTagName("*"),p=0;p!=m.length;p++)"querydata"==m[p].nodeName?a=m[p].childNodes.item(0).nodeValue:
"full"==m[p].nodeName?c="1"==m[p].childNodes.item(0).nodeValue:"handler"==m[p].nodeName?e=m[p].childNodes.item(0).nodeValue:"title"==m[p].nodeName?f=m[p].childNodes.item(0).nodeValue:"htmldata"==m[p].nodeName&&(g=m[p].childNodes.item(0).nodeValue);return l}});if(a){parus.database.connected=e;var g=parus.balanceReportCheckProtocolTabPage.printRender(b.fromJson(a),c,f)}g&&document.body.insertAdjacentHTML("afterBegin",g);var h=document.body.firstChild;document.title=!b.isIE||10<=b.isIE?h.textContent:
h.innerText}}})})},"parus/formats":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.formats");parus||(parus={});parus.formats||b.mixin(parus,{formats:{}});b.mixin(parus.formats,{stringToDate:function(a,c){return a?b.date.locale.parse(a,{datePattern:"dd.MM.yyyy",selector:"date"}):c||null},dateToString:function(a,c){return a?b.date.locale.format(a,{selector:"date",datePattern:"dd.MM.yyyy"}):c||null},stringOfChar:function(a,c){return Array(c+1).join(a)}})})},"parus/balanceDeconsolidateDialog":function(){define(["dijit",
"dojo","dojox"],function(t,b,H){b.provide("parus.balanceDeconsolidateDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceDeconsolidateDialog",[parus.Dialog],{})})},"parus/signDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.signDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("dojo.data.ItemFileReadStore");b.require("parus.parus8");
b.require("parus.dialog");b.require("parus.digitalSignature");b.declare("parus.signDialog",[parus.Dialog],{rn:null,unitCode:null,showNote:!0,allowSimpleSign:!0,checkPluginVersion:!1,requiredVersion:{major:0,minor:0,build:0},isUserCertificatesUsed:!1,postCreate:function(){this.inherited(arguments);this.noteEdit.attr("value",null);this.showNote||(this.notePanel.domNode.style.display="none");this.allowSimpleSign||(this.simpleSignPane.domNode.style.display="none");parus.balance._createActionsButton(this.popupMenu,
this.headerPane);this.popupMenu.bindDomNode(this.certificateGrid.viewsNode);var a=parus.userdata.get(this.declaredClass);a&&(parus.gridSettingsDialog.mergeGridSettings(this.certificateGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.certificateGrid,a.colorConditions))},show:function(){var a=this;this.inherited(arguments).then(b.hitch(this,function(){parus.digitalSignature.checkPlugin().then(b.hitch(this,function(){(!this.checkPluginVersion||this.checkPluginVersion&&parus.digitalSignature.checkPluginVersion(this.requiredVersion))&&
parus.digitalSignature.certificatesStore(this.getAllowedUserCerts()).then(b.hitch(this,function(c){this.certificateGrid.attr("store",c);this.certificateGrid.setQuery(this.certificateGrid.query);this.certificateGrid.selection.select(0)}),function(c){parus.parus8.errorMessage(c)})}),function(c){a.close();parus.parus8.errorMessage(c)})}))},onSimpleSignCheckBoxClicked:function(){this.certificateGrid.domNode.style.display=this.simpleSign.checked?"none":""},getAllowedUserCerts:function(){this.isUserCertificatesUsed=
!1;var a=parus.database.execute("GetContextUserCertificates",{RN:this.rn.join(";"),UNITCODE:this.unitCode});return a?(this.isUserCertificatesUsed="1"==parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"UseUserCertificates"))?(parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"sTHUMBPRINTS")||"").split(","):null:[]},getNote:function(){return this.noteEdit.value},getIsSimpleSign:function(){return this.simpleSign.checked},getCertificateAttribute:function(a){if(this.simpleSign.checked)return null;var c=
this.certificateGrid;return c.store.getValue(c.getItem(c.selection.getSelectedIndex()),a)},getSerialNumber:function(){return this.getCertificateAttribute("SERIALNUMBER")},getThumbprint:function(){return this.getCertificateAttribute("THUMBPRINT")},getIssuedTo:function(){return this.getCertificateAttribute("ISSUEDTO")},getIssuedBy:function(){return this.getCertificateAttribute("ISSUER")},getValidFrom:function(){return this.getCertificateAttribute("VALIDFROMDATE")},getValidTo:function(){return this.getCertificateAttribute("VALIDTODATE")},
getGOSTVersion:function(){return this.getCertificateAttribute("GOST_VERSION")},getGOSTKeySize:function(){return this.getCertificateAttribute("GOST_KEYSIZE")}})})},"parus/balanceAbsentReportsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceAbsentReportsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dojox.grid.DataGrid");b.require("parus.parus8");b.require("parus.gridData");b.require("parus.dialog");b.declare("parus.balanceAbsentReportsDialog",
[parus.Dialog],{date:null,agentGroup:null,kind:null,postCreate:function(){this.inherited(arguments);this.reportsGrid.attr("store",this.gridStore());this.reportsPopupMenu.bindDomNode(this.reportsGrid.viewsNode);parus.balance._createActionsButton(this.reportsPopupMenu,this.headerPane);var a=parus.userdata.get(this.declaredClass);a&&(parus.gridSettingsDialog.mergeGridSettings(this.reportsGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.reportsGrid,a.colorConditions),parus.gridSettingsDialog.mergeMenuSettings(this.reportsPopupMenu,
a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeFilterBar(this.reportsGrid,a.showFilterBar,a.filterValues,a.sortInfo));this.reportsGrid.setQuery(this.reportsGrid.query)},gridStore:function(){return parus.gridData({queryid:"AbsentReports",onGetConditions:b.hitch(this,function(a){return{KIND:this.kind,AGNGRP:this.agentGroup,BDATE:this.date}}),onComplete:b.hitch(this,function(a,c){b.forEach(c,b.hitch(this,function(e,f){"1"==parus.parus8.nodeField(e,
"CREATEREPORT")&&this.reportsGrid.selection.addToSelection(f)}));this.gridChanged()})})},gridChanged:function(){b.forEach(this.reportsPopupMenu.getChildren(),b.hitch(this,function(a){a.itemAction&&"dijit.MenuSeparator"!=a.declaredClass&&a.attr("disabled",!this.reportsGrid.selection.getSelectedCount())}));parus.parus8.checkMenuSeparators(this.reportsPopupMenu)},createReports:function(){for(var a=[],c=this.reportsGrid.selection.getFirstSelected(),e=0;e<this.reportsGrid.selection.getSelectedCount();e++)a.push({RN:this.reportsGrid.store.getValue(c,
"RN"),BDATE:this.reportsGrid.store.getValue(c,"BDATE")}),c=this.reportsGrid.selection.getNextSelected(c);a.length&&(new parus.confirmationDialog({message:"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u043d\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b?",onApply:b.hitch(this,function(){b.forEach(a,function(f){parus.database.execute("createAbsentReports",f)});parus.balance.refreshGrid(this.reportsGrid);
return!0})})).show()},sendMessages:function(){for(var a=[],c=this.reportsGrid.selection.getFirstSelected(),e=0;e<this.reportsGrid.selection.getSelectedCount();e++)a.push(this.reportsGrid.store.getValue(c,"RN")),c=this.reportsGrid.selection.getNextSelected(c);a.length&&(new parus.confirmationDialog({message:"\u0420\u0430\u0437\u043e\u0441\u043b\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u043d\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c \u043e\u0442\u0447\u0435\u0442\u0430\u043c?",
onApply:b.hitch(this,function(){parus.database.execute("createAbsentReportsMessages",{RN:a.join(";")});return!0})})).show()}})})},"parus/excelFileFormatDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.excelFileFormatDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.Select");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.excelFileFormatDialog",[parus.Dialog],{_lastValues:null,
allowSave:!1,allowTypeSelect:!1,onShow:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.userSize=this._lastValues.userSize||null;this.formatEdit.attr("value",this._lastValues.formatEdit);this.otherSheetsCheckBox.attr("checked",this._lastValues.otherSheetsCheckBox);this.allowSave&&null===parus.parus8.optionValue("BalanceOnlineSaveReportUserProcedure")&&(this.allowSave=!1);"1"==parus.database.attributes.newoffice&&(this.showFileFormatRow.style.display="");this.allowSave&&
(this.showSaveCheckBoxRow.style.display="",this.saveCheckBox.attr("checked",this._lastValues.saveCheckBox));this.allowTypeSelect&&(this.typeEditRow.style.display="",this.typeEdit.attr("value",this._lastValues.typeEdit))},onClose:function(){this._lastValues.formatEdit=this.formatEdit.attr("value");this._lastValues.saveCheckBox=this.saveCheckBox.attr("checked");this._lastValues.otherSheetsCheckBox=this.otherSheetsCheckBox.attr("checked");this._lastValues.typeEdit=this.typeEdit.attr("value");this._lastValues.userSize=
this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)}})})},"parus/balanceCheckReportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceCheckReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.balanceCheckReportDialog",[parus.Dialog],{grid:null,kind:null,isSubReport:null,rn:null,formedRn:null,
reportRn:null,checks:null,_lastValues:null,applyProgressLabel:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439...",onShow:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.checkResults.attr("checked",this._lastValues.checkResults);this.useAgnCheckLists.attr("checked",this._lastValues.useAgnCheckLists);this.showReportCheckBox.attr("checked",this._lastValues.showReportCheckBox);
this.protocolChanged();this.showResultReportCheckBox.attr("checked",this._lastValues.showResultReportCheckBox);this.userSize=this._lastValues.userSize||null},onApply:function(){var a="checkReport";this.isSubReport&&(a="checkSubReport");var c={RESULT:this.checkResults.checked?"1":"0",USE_AGNCHKLST:this.useAgnCheckLists.checked?"1":"0",CHECKS:this.checks},e=this.showReportCheckBox.checked,f=this.grid,g=this.rn,h=g[0],l=this.kind,m=this.isSubReport,p=this.showResultReportCheckBox.checked,r=this.checks,
w=!0;parus.progressDialog.iterateOverArray(this.applyProgressLabel,g,function(x){b.mixin(c,{RN:x});w&&(parus.database.execute(a,c)||(w=!1))},function(){w&&(e?parus.balance.balanceShowCheckReportProtocol(f,l,m,p,g,r):parus.parus8.notificationMessage("\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430."));f&&parus.balance.refreshGrid(f,"RN",h)});this._lastValues.checkResults=this.checkResults.attr("checked");this._lastValues.useAgnCheckLists=this.useAgnCheckLists.attr("checked");
this._lastValues.showReportCheckBox=this.showReportCheckBox.attr("checked");this._lastValues.showResultReportCheckBox=this.showResultReportCheckBox.attr("checked");this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues);return!0},showProtocol:function(){parus.balance.balanceShowCheckReportProtocol(this.grid,this.kind,this.isSubReport,this.showResultReportCheckBox.checked,this.rn,this.checks)},selectCheckList:function(){var a=parus.dictionaries.BalanceReportsChecks;
b.mixin(a,{multiselect:!0,dictionary:a,gridConditions:{REPORTS:this.reportRn.join(";"),BLREPFORMED:this.formedRn.join(";"),USE_AGNCHKLST:this.useAgnCheckLists.checked?"1":"0",onComplete:b.hitch(this,function(){setTimeout(function(){c.grid.selection.selectRange(0,c.grid.rowCount-1)},1)})},onApply:b.hitch(this,function(e){this.checks=e.getValue();return!0})});var c=new parus.dictionaryDialog(a);c.show()},protocolChanged:function(){this.showReportCheckBox.checked?(this.showResultReportCheckBox.attr("disabled",
!1),this.showResultReportCheckBoxText.style.color="",b.removeClass(this.showResultReportCheckBoxText,"balanceReadOnlyHeader")):(this.showResultReportCheckBox.attr("disabled",!0),this.showResultReportCheckBox.attr("checked",!1),b.addClass(this.showResultReportCheckBoxText,"balanceReadOnlyHeader"))}})})},"parus/embeddedMode":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.embeddedMode");b.require("dojo.dom-style");b.require("parus.parus8");parus||(parus={});parus.embeddedMode||
b.mixin(parus,{embeddedMode:{}});b.mixin(parus.embeddedMode,{tabId:"",_onClose:null,_onShow:null,version:null,startup:function(a){parus.parus8._embeddedMode=!0;this.tabId=(new URLSearchParams(window.location.search)).get("tab_id");window.addEventListener("message",this._windowEventListener);this.tabId||(this.tabId=Date.now()+Math.floor(100*Math.random()),this.postMessage("register",this.tabId,{url:document.URL}));setTimeout(b.hitch(this,function(){this.postMessage("ready",this.tabId,{})}),100)},_windowEventListener:function(a){if(a.data.hasOwnProperty("action"))if("onTabCloseConfirm"==
a.data.action)parus.embeddedMode.onTabCloseConfirm()&&parus.embeddedMode.closeTab();else if("onShowTab"==a.data.action)parus.embeddedMode.onShowTab();else"onGlobalChanged"==a.data.action?parus.embeddedMode.handleGlobalChanged(a.data.params.identifier,a.data.params.value):"onGetVersion"==a.data.action&&parus.embeddedMode.handleGetVersion(a.data.params.version)},postMessage:function(a,c,e){window.top.postMessage({action:a,id:c||"",params:e||{}},"*")},onTabCloseConfirm:function(){return this._onClose&&
"function"===typeof this._onClose?(this._onClose(this.tabId),!1):!0},onShowTab:function(){this._onShow&&"function"===typeof this._onShow&&this._onShow(this.tabId);var a=[];b.query("*[widgetId]",document.body).forEach(function(c){(c=t.byNode(c))&&c.dialogObject&&b.isFunction(c.dialogObject._startupResize)?(0>b.indexOf(a,c.dialogObject.id)&&c.dialogObject._activateResize(),a.push(c.dialogObject.id)):c&&c.isInstanceOf&&b.isFunction(c.isInstanceOf)&&(c.isInstanceOf(t.Dialog)||c.isInstanceOf(t.DialogUnderlay))||
(c&&c.layout&&b.isFunction(c.layout)&&c.layout(),c&&c.resize&&b.isFunction(c.resize)&&c.resize())});return!0},openTab:function(a,c,e,f){var g=location.pathname.split("/");g.pop();e.startsWith("..")&&(e=e.substring(2),g.pop());e=location.origin+(g.length?g.join("/"):"")+e;this.postMessage("openTab",a,{title:c,url:e,confirmClose:null==f?!0:!0===f})},registerOnCloseCallback:function(a){this._onClose=a},registerOnShowCallback:function(a){this._onShow=a},changeTabTitle:function(a){this.postMessage("changeTabTitle",
this.tabId,{title:a})},changeTabState:function(a){this.postMessage("changeTabState",this.tabId,{modified:a})},closeTab:function(){this.postMessage("closeTab",this.tabId)},handleGlobalChanged:function(a,c){eval(a+"\x3d("+(c&&b.isObject(c)&&Object.keys(c).length?b.toJson(c):"null")+")")},globalChanged:function(a,c){this.postMessage("globalChanged",this.tabId,{identifier:a,value:c})},handleGetVersion:function(a){this.version=b.clone(a)}});50<b.isFF&&require(["dojo/dom-style","dojo/_base/window","dojo/dom"],
function(a,c,e){var f=a.get;b.mixin(a,{getComputedStyle:function(g){var h=g.ownerDocument.defaultView;h=h.opener?h:c.global.window;return 1==g.nodeType?h.getComputedStyle(g,null):{}},get:function(g,h){return 2==arguments.length&&"opacity"==h?this.getComputedStyle(e.byId(g)).opacity:f.apply(this,arguments)}});b.getComputedStyle=a.getComputedStyle});parus.aboutBoxWindow||b.mixin(parus,{aboutBoxWindow:{}});b.mixin(parus.aboutBoxWindow,{startup:function(){(function(){parus.embeddedMode.version?(loadingDiv.style.display=
"none",parus.parus8.aboutBox(function(){parus.embeddedMode.closeTab()})):setTimeout(arguments.callee,100)})()}})})},"parus/designerIndexInputPatternDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerIndexInputPatternDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");
b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.declare("parus.designerIndexInputPatternDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",a.getValue(c,"CODE")),this.nameEdit.attr("value",a.getValue(c,"NAME")),this.patternEdit.attr("value",a.getValue(c,"PATTERN")),this.noteEdit.attr("value",a.getValue(c,"NOTE")))},executeInsert:function(){var a=parus.database.execute("designer.BalanceIndexes.InputPatterns.Insert",
{CRN:this.crn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value"),PATTERN:this.patternEdit.attr("value"),NOTE:this.noteEdit.attr("value")});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceIndexes.InputPatterns.Update",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value"),PATTERN:this.patternEdit.attr("value"),NOTE:this.noteEdit.attr("value")})},executeDelete:function(a,
c){return!!parus.database.execute("designer.BalanceIndexes.InputPatterns.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/balanceReportsFileImportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceReportsFileImportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.xml");b.require("parus.balanceUserProcParamsDialog");b.declare("parus.balanceReportsFileImportDialog",[parus.Dialog],
{_lastValues:null,onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},saveFormLastValues:function(){this._lastValues.userProcEdit=this.userProcEdit.value;this._lastValues.binaryDataCheckBox=this.binaryDataCheckBox.attr("checked");this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.userProcEdit.attr("value",this._lastValues.userProcEdit);
this.binaryDataCheckBox.attr("checked",this._lastValues.binaryDataCheckBox);this.userSize=this._lastValues.userSize||null},performLoad:function(){if(this.validate()&&this.fileData.value){var a=parus.database.execute("FindUserProcedure",{CODE:this.userProcEdit.value});if(!a)return!1;this.OKButton.attr("disabled",!0);this.CancelButton.attr("disabled",!0);var c=new parus.balanceUserProcParamsDialog({useSavedValues:"0"!=parus.parus8.optionValue("StoreUserProcsParams"),userproc:parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],
"NRN"),onApply:b.hitch(this,function(){this.impparams.value=parus.xml.toXml({PARAMS:{PARAMS:c.paramValues()}});this.unitcode.value="BalanceReports";this.userprocValue.value=c.userproc;this.postForm.action=parus.database.getFileImportUrl();this.postForm.method="POST";this.postForm.encoding="multipart/form-data";var e=new parus.progressDialog({message:"\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430"});e.show();b.io.iframe.send({method:"POST",
form:this.postForm,handleAs:10<=b.isIE?"html":"xml",handle:b.hitch(this,function(f,g){e.close();e.destroyRecursive();this.OKButton.attr("disabled",!1);this.CancelButton.attr("disabled",!1);"error"==f.documentElement.nodeName?parus.parus8.errorMessage(parus.parus8.nodeField(f.documentElement,"message")):(new b.DeferredList([this.dialog.hide()])).then(b.hitch(this,function(){this.apply();if("1"==parus.parus8.nodeField(parus.parus8.rowNodes(f.documentElement)[0],"HASJOURNAL")){var h=parus.dictionaries.MessagesJournal;
b.mixin(h,{dictionary:h,hideCancel:!0,gridConditions:{IDENT:parus.parus8.nodeField(parus.parus8.rowNodes(f.documentElement)[0],"IDENT")},onApply:b.hitch(this,function(l){return!0})});(new parus.dictionaryDialog(h)).show()}else parus.parus8.notificationMessage("\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430.")}))})});return!0}),onClose:b.hitch(this,function(){c.saveFormLastValues();this.OKButton.attr("disabled",!1);this.CancelButton.attr("disabled",
!1)})});c.show()}}})})},"parus/designerReportTableConstraintAttributeDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportTableConstraintAttributeDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");
b.require("parus.editDictionaryDialog");b.require("parus.designerReportTableIndexDialog");b.declare("parus.designerReportTableConstraintAttributeDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.numbEdit.attr("value",a.getValue(c,"NUMB")),this.indexEdit.attr("value",a.getValue(c,"BALANCEINDEX")));this.editMode||this.numbEdit.attr("value",this.executeGetNextNumber())},getIndexCondition:function(){return{PRN:this.getParentDialogCondition("PRN")}},
getExecParams:function(){return{NUMB:this.numbEdit.attr("value"),BALANCEINDEX:this.indexEdit.attr("value")}},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceTables.Constraints.Attributes.Insert",b.mixin(this.getExecParams(),{PRN:this.prn})))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTables.Constraints.Attributes.Update",b.mixin(this.getExecParams(),{RN:this.rn}))},executeDelete:function(a,
c){return!!parus.database.execute("designer.BalanceTables.Constraints.Attributes.Delete",{RN:a.getValue(c,"RN")})},executeGetNextNumber:function(){var a=parus.database.execute("designer.BalanceTables.Constraints.Attributes.GetNextNumber",{PRN:this.prn});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NUMB")}})})},"parus/controlActions":function(){define(["dijit","dojo","dojox","dojo/require!dijit/Dialog,dijit/form/Button,dijit/form/CheckBox,dijit/form/Select,dijit/form/ValidationTextBox,dijit/form/SimpleTextarea,dijit/form/NumberTextBox,parus/parus8,parus/dialog,parus/treeDialog,parus/groupBox,parus/dictEdit,parus/formats"],
function(t,b,H){b.provide("parus.controlActions");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.CheckBox");b.require("dijit.form.Select");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("dijit.form.NumberTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.treeDialog");b.require("parus.groupBox");b.require("parus.dictEdit");b.require("parus.formats");parus||(parus={});parus.controlActions||b.mixin(parus,
{controlActions:{}});b.mixin(parus.controlActions,{setDisabled:function(a,c){a.attr("disabled",c);c&&(a.isInstanceOf(t.form.CheckBox)?a.attr("checked",!1):a.isInstanceOf(parus.dictEdit)?a.attr("value",null):a.isInstanceOf(t.form.ValidationTextBox)||a.isInstanceOf(t.form.SimpleTextarea)?a.attr("value",null):a.isInstanceOf(t.form.Select)?a.attr("value",0):a.isInstanceOf(t.NumberTextBox)&&a.attr("value",0))}})})},"parus/balanceValuesHistoryDialog":function(){define(["dijit","dojo","dojox"],function(t,
b,H){b.provide("parus.balanceValuesHistoryDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceValuesHistoryDialog",[parus.Dialog],{})})},"parus/changePasswordDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.changePasswordDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.database");b.require("parus.dialog");b.declare("parus.changePasswordDialog",
[parus.Dialog],{handler:null,login:null,password:null,apply:function(){if(this.passwordEdit.value!=this.passwordEditCopy.value)parus.parus8.errorMessage("\u0412\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0412\u0430\u043c\u0438 \u043f\u0430\u0440\u043e\u043b\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b.");
else return parus.database.connect(this.handler,this.login,this.password,this.passwordEdit.value)?parus.parus8.notificationMessage("\u041f\u0430\u0440\u043e\u043b\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d.",parus.parus8.internalLogout):parus.database.authException||alert("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0432\u0435\u0440\u043d\u044b. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0430."),
this.inherited(arguments)}})})},"parus/abonentReportRecalculateValuesDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.abonentReportRecalculateValuesDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.abonentReportRecalculateValuesDialog",[parus.Dialog],{rns:null,applyProgressLabel:"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439...",
isSubReport:!1,getCalcTypeCondition:function(){return{REPORT:this.rns.join(";")}},show:function(){return"0"!=parus.parus8.optionValue("Balance_ShowCalculationParamsForm")?this.inherited(arguments):(new parus.confirmationDialog({message:"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f "+(this.isSubReport?"\u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430":"\u043e\u0442\u0447\u0435\u0442\u0430")+"?",onApply:b.hitch(this,function(){var a=
new parus.progressDialog({message:this.applyProgressLabel});a.show();setTimeout(b.hitch(this,function(){this.onShow();this.applied=!0;this.onApply();a.close();a.destroyRecursive();this.onClose()}),1E3);return!0}),onClose:b.hitch(this,this.onClose)})).show()}})})},"parus/cache":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.cache");b.cache("parus","abonent.html",'\x3cdiv class\x3d"abonentApplicationWindow" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.abonent.applicationWindow" style\x3d"height:100%; width:100%; overflow:hidden"\x3e\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.abonent.scrollersPane" region\x3d"top" style\x3d"height:25px"\x3e\x3cdiv class\x3d"abonentScrollingTab" controllerWidget\x3d"parus.abonent.ScrollingTabController" dojoType\x3d"dijit.layout.TabContainer" jsid\x3d"parus.abonent.timeLine" nested\x3d"true" region\x3d"center"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentScrollingTab" controllerWidget\x3d"parus.abonent.agentScrollingTabController" dojoType\x3d"dijit.layout.TabContainer" jsid\x3d"parus.abonent.agentLine" nested\x3d"true" region\x3d"right" style\x3d"width:40%"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentScrollingTab" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.abonent.timelinePane" region\x3d"top" style\x3d"height:55px"\x3e\x3c/div\x3e\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv align\x3d"left" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.abonent.listView" region\x3d"center"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentActionsBar" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.abonent.actionsPane" region\x3d"right" style\x3d"width:190px"\x3e\x3cdiv class\x3d"abonentToolBar" dojoType\x3d"dijit.Toolbar"\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCisyncCustomIconBig" label\x3d"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c" onClick\x3d"parus.abonent.refresh" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCapplicationsCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041e\u0442\u043a\u0440\u044b\u0442\u044c" onClick\x3d"parus.abonent.editReportValues()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCHardwareadaltCustomIconBig" label\x3d"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c" onClick\x3d"parus.abonent.addReport()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCUpCustomIconBig" jsid\x3d"parus.abonent.loadButton" label\x3d"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c" onClick\x3d"parus.abonent.loadReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCreduceCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u0423\u0434\u0430\u043b\u0438\u0442\u044c" onClick\x3d"parus.abonent.deleteReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCacquisitionCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c" onClick\x3d"parus.abonent.moveReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCcopyCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c" onClick\x3d"parus.abonent.copyReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCcalculator2CustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c" onClick\x3d"parus.abonent.calculateReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCCheckCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c" onClick\x3d"parus.abonent.checkReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCRightCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c" onClick\x3d"parus.abonent.sendReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCxlsCustomIconBig" itemsPerAction\x3d"2" label\x3d"Excel" onClick\x3d"parus.abonent.downloadReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCdocumentsCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0412\u043b\u043e\u0436\u0435\u043d\u0438\u044f" onClick\x3d"parus.abonent.attachmentsReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCdocumentCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430" onClick\x3d"parus.abonent.propertiesReports()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.abonent.statusBar" region\x3d"bottom" style\x3d"height:30px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentCopyReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:118px; width:460px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'BalanceReportDates\'" dojoAttachPoint\x3d"reportDateEdit" dojotype\x3d"parus.dictEdit" onGetGridConditions\x3d"{return this.dialogObject.getDatesCondition()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentCustomLoadReportsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:162px; width:460px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0424\u0430\u0439\u043b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"fileData" name\x3d"fileData" size\x3d"32" style\x3d"font-weight:bold" type\x3d"file"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'CustomFormats\'" dojoAttachPoint\x3d"formatCode" dojotype\x3d"parus.dictEdit" name\x3d"formatCode" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentMoveReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:142px; width:460px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'BalanceReportDates\'" dojoAttachPoint\x3d"reportDateEdit" dojotype\x3d"parus.dictEdit" onGetGridConditions\x3d"{return this.dialogObject.getDatesCondition()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"reportAgent" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%"/\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:332px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"requsitesPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" maxLength\x3d"240" rows\x3d"12" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"historySelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u041d\u0435\u0442 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0414\u0430 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"historyLastCheckBox" dojotype\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd align\x3d"right"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentReportRecalculateValuesDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0430\u0441\u0447\u0451\u0442\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:89px; width:480px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100px"\x3e\x3cb\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceCalcTypesOfReport\'" dojoAttachPoint\x3d"recalculateTypeEdit" dojotype\x3d"parus.dictEdit" onGetGridConditions\x3d"{return this.dialogObject.getCalcTypeCondition()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentSelectFormDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430"\x3e\x3cdiv dojoAttachPoint\x3d"mainConainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:470px; width:760px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"dataPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"background-color:#FFFFFF"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentSubreports.html",'\x3cdiv style\x3d"width: 710px"\x3e\x3cdiv class\x3d"dijitDialog dijitDialogFixed" style\x3d"padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; position: relative"\x3e\x3cdiv class\x3d"dijitDialogTitleBar" style\x3d"padding-right: 7px; padding-left: 7px; padding-bottom: 2px; padding-top: 2px"\x3e\x3cspan class\x3d"dijitDialogTitle" dojoAttachPoint\x3d"dialogTitle" style\x3d"font-weight: 700; font-size: 80%"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/span\x3e\x3cspan class\x3d"dijitDialogCloseIcon" onClick\x3d"dijit.getEnclosingWidget(this).closeClick()" style\x3d"top:0px"\x3e\x3cspan class\x3d"closeText"\x3ex\x3c/span\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv design\x3d"sidebar" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:390px; background-color:#FFFFFF"\x3e\x3cdiv dojoAttachPoint\x3d"dataContainer" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentActionsBar" dojoAttachPoint\x3d"actionsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"width:190px"\x3e\x3cdiv class\x3d"abonentToolBar" dojoType\x3d"dijit.Toolbar"\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCisyncCustomIconBig" label\x3d"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsRefresh()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCapplicationsCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041e\u0442\u043a\u0440\u044b\u0442\u044c" onClick\x3d"this.dialogObject.subreportsEditValues()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCHardwareadaltCustomIconBig" label\x3d"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsAdd()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCreduceCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u0423\u0434\u0430\u043b\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsDelete()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCcopyCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c" onClick\x3d"this.dialogObject.subreportsCopy()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCcalculator2CustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c" onClick\x3d"this.dialogObject.subreportsCalculate()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCCheckCustomIconBig" itemsPerAction\x3d"2" label\x3d"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c" onClick\x3d"this.dialogObject.subreportsCheck()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCxlsCustomIconBig" itemsPerAction\x3d"2" label\x3d"Excel" onClick\x3d"this.dialogObject.subreportsExcel()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCdocumentsCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0412\u043b\u043e\u0436\u0435\u043d\u0438\u044f" onClick\x3d"this.dialogObject.subreportsAttachments()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarItem"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PCdocumentCustomIconBig" itemsPerAction\x3d"1" label\x3d"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430" onClick\x3d"this.dialogObject.subreportsProperties()" showLabel\x3d"true"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentToolBarSeparator"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","abonentTile.html",'\x3cdiv\x3e\x3cdiv class\x3d"abonentTileContent" dojoAttachPoint\x3d"tileContentNode"\x3e\x3cdiv class\x3d"abonentTileCaption" dojoAttachPoint\x3d"tileCaptionNode"\x3e\x3c/div\x3e\x3ca dojoAttachPoint\x3d"anchorNode"\x3e\x3cdiv class\x3d"abonentTileLoading" dojoAttachPoint\x3d"loadingNode"\x3e\x3cdiv class\x3d"abonentTileThumbnail" dojoAttachPoint\x3d"thumbNode"\x3e\x3cdiv align\x3d"center" class\x3d"abonentTileThumbLabel abonentTileStateAbsent" ondragstart\x3d"return false;" onselectstart\x3d"return false;"\x3e \u041d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d \x3c/div\x3e\x3cdiv align\x3d"center" class\x3d"abonentTileThumbLabel abonentTileStateNew" ondragstart\x3d"return false;" onselectstart\x3d"return false;"\x3e \u041d\u043e\u0432\u044b\u0439 \x3c/div\x3e\x3cdiv align\x3d"center" class\x3d"abonentTileThumbLabel abonentTileStateLoaded" ondragstart\x3d"return false;" onselectstart\x3d"return false;"\x3e \u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/a\x3e\x3cdiv class\x3d"dijitCheckBoxIcon abonentTileCheckBox" dojoAttachEvent\x3d"onclick:_onCheckClick" dojoAttachPoint\x3d"checkboxNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"abonentTileAttachment" dojoAttachPoint\x3d"attachmentsNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f"\x3e\x3c/div\x3e\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" class\x3d"abonentTileInfoTable" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd align\x3d"left" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileCalculated" dojoAttachPoint\x3d"calculatedNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u0440\u0430c\u0441\u0447\u0438\u0442\u0430\u043d"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"left" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileReportChecked" dojoAttachPoint\x3d"checkedNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"left" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileSent" dojoAttachPoint\x3d"sentNode" title\x3d"\u041e\u0442\u0447\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0426\u0435\u043d\u0442\u0440 \u0423\u0447\u0435\u0442\u0430"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cdiv class\x3d"abonentTileStatus" dojoAttachPoint\x3d"tileStatusNode"\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"right" style\x3d"width:24px" valign\x3d"bottom" width\x3d"22px"\x3e\x3cdiv class\x3d"abonentTileSubreports" dojoAttachEvent\x3d"onclick:_onSubreportsClick" dojoAttachPoint\x3d"subreportsNode" title\x3d"\u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b"\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","application.html",'\x3cdiv class\x3d"windowContainer" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.WindowContainer" region\x3d"center" style\x3d"overflow:hidden; width:100%; height:100%; opacity:0; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.applicationContent" region\x3d"center" style\x3d"overflow:hidden"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceApplicationTitle" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top" style\x3d"overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"left"\x3e\x3cdiv class\x3d"balanceApplicationTitleText"\x3e ${title} \x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3cbutton class\x3d"titleButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"balanceApplicationTitleCloseButton" label\x3d"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443" onClick\x3d"parus.balance.logout()" showLabel\x3d"false" style\x3d"margin-left:0px; margin-right:3px"\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3cbutton class\x3d"titleButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"balanceApplicationTitleHelpButton" label\x3d"\u0421\u043f\u0440\u0430\u0432\u043a\u0430" onClick\x3d"parus.balance.showHelp(\'parus.balance\')" showLabel\x3d"false" style\x3d"margin-left:0px; margin-right:1px"\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"padding-right:2px; overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.form.ComboButton" jsid\x3d"schemaSelect" onClick\x3d"this.toggleDropDown()"\x3e\x3cul dojoType\x3d"dijit.Menu" jsid\x3d"schemaSelectMenu" style\x3d"display:none"/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"padding-right:2px; padding-top:5px; overflow:hidden"\x3e\x3cspan class\x3d"balanceApplicationTitleLabel"\x3e \x26#160;\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u0430\u044f\x26#160;\u0441\u0445\u0435\u043c\u0430:\x26#160; \x3c/span\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"zoomSelectPanel" region\x3d"right" style\x3d"padding-right:6px; overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.form.ComboButton" jsid\x3d"zoomSelect" onClick\x3d"this.toggleDropDown()"\x3e\x3cul dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon" onClick\x3d"parus.parus8.changeInterfaceSchema([\'z100\', \'z125\', \'z150\'], \'z100\')"\x3e\x3cdiv overclass\x3d"z100"\x3e \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \x3c/div\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon" onClick\x3d"parus.parus8.changeInterfaceSchema([\'z100\', \'z125\', \'z150\'], \'z125\')"\x3e\x3cdiv overclass\x3d"z125"\x3e \u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \x3c/div\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon" onClick\x3d"parus.parus8.changeInterfaceSchema([\'z100\', \'z125\', \'z150\'], \'z150\')"\x3e\x3cdiv overclass\x3d"z150"\x3e \u041e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \x3c/div\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"zoomLabelPanel" region\x3d"right" style\x3d"padding-right:2px; padding-top:5px; overflow:hidden"\x3e\x3cspan class\x3d"balanceApplicationTitleLabel"\x3e \u041c\u0430\u0441\u0448\u0442\u0430\u0431:\x26#160; \x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"versionInfoPanel" region\x3d"left" style\x3d"padding-left:5px; padding-top:6px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.notificationsContainer" region\x3d"top" style\x3d"overflow:hidden; display:none"\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balance.html",'\x3cdiv class\x3d"balanceInternalPages" dojoType\x3d"dijit.layout.TabContainer" jsid\x3d"parus.balance.TabContainer" style\x3d"width:100%; height:100%"\x3e\x3c/div\x3e');b.cache("parus","balanceAbsentReportsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041d\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041d\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"reportsPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.createReports()"\x3e \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.sendMessages()"\x3e \u0420\u0430\u0437\u043e\u0441\u043b\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.reportsGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.reportsGrid, this.dialogObject.reportsPopupMenu, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"reportsGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" headerMenu\x3d"this.reportsPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onSelected\x3d"this.dialogObject.gridChanged()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"2" field\x3d"BDATE" sortField\x3d"1" width\x3d"81px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"FORM_CODE" width\x3d"81px"\x3e \u0424\u043e\u0440\u043c\u0430 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"121px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"AGNNAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"WARNMSG" width\x3d"150px"\x3e \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"REPORTS_CATALOG" width\x3d"150px"\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceAdvReportCompareDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:455px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"padding-bottom:5px"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100px"\x3e\x3cb\x3e \u041f\u0440\u0430\u0432\u0438\u043b\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceCompareReportRules\'" dojoAttachPoint\x3d"ruleEdit" dojotype\x3d"parus.dictEdit" intermediateChanges\x3d"false" onChange\x3d"this.dialogObject.ruleEditChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041e\u0442\u0447\u0435\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100px"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"181px"\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"formEdit" dojotype\x3d"dijit.form.TextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd\x3e \x26#160; \x3c/td\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" width\x3d"181px"\x3e\x3cselect dojoAttachPoint\x3d"reportType" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0421\u0432\u043e\u0434\u043d\u044b\u0435 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0412\u0441\u0435 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430 \u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"fromDateEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd\x3e \x26#160; \x3c/td\x3e\x3ctd\x3e\x3cb\x3e \u043f\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"toDateEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u044b: \x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"4"\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCodeEdit" dojotype\x3d"parus.dictEdit" multiselect\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0430\u043f\u043a\u0430 \u043e\u0442\u0431\u043e\u0440\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"4"\x3e\x3cinput dictionary\x3d"\'ConditionFolders\'" dojoAttachPoint\x3d"conditionFolder" dojotype\x3d"parus.dictEdit" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0413\u0440\u0443\u043f\u043f\u044b \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceCompareReportRuleSectionGroups\'" dojoAttachPoint\x3d"groupsEdit" dojotype\x3d"parus.dictEdit" multiselect\x3d"true" onGetGridConditions\x3d"{return this.dialogObject.getSectionGroupsCondition()}" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"criteriaGroupBox" dojoType\x3d"parus.groupBox" region\x3d"center" title\x3d"\u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f"\x3e\x3cdiv autoExpand\x3d"true" dojoAttachPoint\x3d"criteriaTreeView" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" model\x3d"parus.parus8.emptyTreeModel()" persist\x3d"false" showroot\x3d"false" style\x3d"overflow:auto; width:100%; height:100%"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"flagsGroupBox" dojoType\x3d"parus.groupBox" region\x3d"bottom" style\x3d"display:none"\x3e\x3cdiv\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"saveEqualsCheckBox" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \x3c/b\x3e\x3c/div\x3e\x3cdiv\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"saveExcludesCheckBox" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceAdvReportPane.html",'\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.advCheckCatalogTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.advCheckCatalogTreePopupMenu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.CheckedMenuItem" onClick\x3d"parus.catalogActions.listCatalogTree(parus.balance.advCheckCatalogTree)"\x3e \u0412\u0441\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.checkChildren(parus.balance.advCheckCatalogTree)"\x3e \u0421\u043f\u0438\u0441\u043e\u043a \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.advCheckCatalogTree.uncheckAll()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.expandCatalogTree(parus.balance.advCheckCatalogTree)"\x3e \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"CATALOG_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertCatalog(parus.balance.advCheckCatalogTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateCatalog(parus.balance.advCheckCatalogTree)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveCatalog(parus.balance.advCheckCatalogTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteCatalog(parus.balance.advCheckCatalogTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.advCheckCatalogTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.advCheckCatalogTreePopupMenu, \'parus.balance.advCheckCatalogTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"true" class\x3d"balanceGrid" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" jsid\x3d"parus.balance.advCheckCatalogTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.advCheckCatalogTree, null, parus.balance.advCheckMasterGrid, \'parus.balance.advCheckMasterGrid\', parus.balance.advCheckCatalogTreePopupMenu, null)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.advCheckCatalogTree, null, parus.balance.advCheckMasterGrid, \'parus.balance.advCheckMasterGrid\', parus.balance.advCheckCatalogTreePopupMenu, null)" onOpen\x3d" parus.balance.catalogTreeChange(parus.balance.advCheckCatalogTree, null, parus.balance.advCheckMasterGrid, \'parus.balance.advCheckMasterGrid\', parus.balance.advCheckCatalogTreePopupMenu, null)" persist\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.advCheckMasterGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.advCheckMasterGridPopupMenu" style\x3d"display:none"\x3e\x3cli actionCode\x3d"BLCOMPREP_MOVE_OUT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckMove(parus.balance.advCheckMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLCOMPREP_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDelete(parus.balance.advCheckMasterGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.advCheckMasterGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLCOMPREP_COMPARE" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.advCheckCompareReports(parus.balance.advCheckCatalogTree, parus.balance.advCheckMasterGrid)"\x3e \u0421\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli actionCode\x3d"BLCOMPREP_COMPARE" defaultIcon\x3d"PCsherlockCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckReCompareReports(parus.balance.advCheckMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.advCheckMasterGrid, \'BalanceCompareReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.advCheckMasterGrid, \'BalanceCompareReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.advCheckMasterGrid, \'BalanceCompareReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.advCheckMasterGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.advCheckMasterGrid, parus.balance.advCheckMasterGridPopupMenu, \'parus.balance.advCheckMasterGrid\', parus.balance.advCheckCatalogTree, parus.balance.advCheckSettingsAdditions(), \'BalanceCompareReports\', \'BalanceCompareReports\', \'BalanceCompareReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.advCheckMasterGrid" headerMenu\x3d"parus.balance.advCheckMasterGridPopupMenu" jsid\x3d"parus.balance.advCheckMasterGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.advCheckMasterGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onSelected\x3d"parus.balance.advCheckGridChange()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.advCheckGridStore(parus.balance.advCheckCatalogTree, \'parus.balance.advCheckMasterGrid\')"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"RULE_CODE" sortField\x3d"R.CODE" width\x3d"131px"\x3e \u041f\u0440\u0430\u0432\u0438\u043b\u043e \x3c/th\x3e\x3cth field\x3d"RULE_NAME" sortField\x3d"R.NAME" width\x3d"131px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"FORM_DATE" sortField\x3d"T.FORM_DATE" width\x3d"105px"\x3e \u0414\u0430\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \x3c/th\x3e\x3cth field\x3d"FORM_CODE" sortField\x3d"F.CODE" width\x3d"121px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u0424\u043e\u0440\u043c\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"KIND" formatter\x3d"parus.balance.formatReportKind" sortField\x3d"T.KIND" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u0422\u0438\u043f \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432\x3c/span\x3e\x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"DATE_FROM" sortField\x3d"T.DATE_FROM" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u0414\u0430\u0442\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043c\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432, c\x3c/span\x3e\x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"DATE_TO" sortField\x3d"T.DATE_TO" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u0414\u0430\u0442\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043c\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432, \u043f\u043e\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"AGENTS" sortField\x3d"to_char(T.AGENTS)" width\x3d"121px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"FOLDER_NAME" sortField\x3d"C.NAME" width\x3d"121px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u041f\u0430\u043f\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u043e\u0442\u0431\u043e\u0440\u0430 \x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"SECTION_GROUPS" sortField\x3d"T.SECTION_GROUPS" width\x3d"121px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u0413\u0440\u0443\u043f\u043f\u044b \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432 \x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"ALL_COUNT" sortField\x3d"T.ALL_COUNT" styles\x3d"text-align: right;" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \x3c/span\x3e\x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"EQUAL_COUNT" sortField\x3d"T.EQUAL_COUNT" styles\x3d"text-align: right;" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u0441\u0442\u0440\u043e\u043a \x3c/span\x3e\x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"MANUAL_COUNT" sortField\x3d"T.MANUAL_COUNT" styles\x3d"text-align: right;" width\x3d"121px"\x3e\x3cspan style\x3d"font-size:80%"\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0439 \u0441\u0442\u0440\u043e\u043a \x3c/span\x3e\x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.advCheckDetailGridPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:66%"\x3e\x3cdiv class\x3d"balanceInternalPages" dojoType\x3d"dijit.layout.TabContainer" jsid\x3d"parus.balance.advCheckDetailPages" style\x3d"width:100%; height:100%"\x3e\x3cdiv class\x3d"balanceTemplateContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.advCheckEqualDetailPage" onShow\x3d"parus.balance.advCheckDetailShowPage(this)" style\x3d"padding:0" title\x3d"\u0421\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.advCheckEqualDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0421\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.advCheckEqualDetailGridPopupMenu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.advCheckEqualDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailExecuteEdit(parus.balance.advCheckEqualDetailGrid, \'RN\')"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailFollowReport(parus.balance.advCheckEqualDetailGrid, \'RN\')"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0442\u0447\u0435\u0442\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.advCheckEqualDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.advCheckEqualDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.advCheckEqualDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.advCheckEqualDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.advCheckEqualDetailGrid, parus.balance.advCheckEqualDetailGridPopupMenu, \'parus.balance.advCheckEqualDetailGrid\', null, parus.balance.advCheckEqualSettingsAdditions(), \'BalanceCompareReportSpecs\', \'BalanceCompareReportSpecs\', \'BalanceCompareReportSpecs\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.advCheckEqualDetailGrid" headerMenu\x3d"parus.balance.advCheckEqualDetailGridPopupMenu" jsid\x3d"parus.balance.advCheckEqualDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.advCheckEqualDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onSelected\x3d"parus.balance.advCheckDetailGridChange(parus.balance.advCheckEqualDetailGrid, parus.balance.advCheckEqualSubDetailGrid, \'parus.balance.advCheckEqualSubDetailGrid\')" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"SECTION_CODE" sortField\x3d"3" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane balanceTemplateContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.advCheckEqualSubDetailPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.advCheckEqualSubDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.advCheckEqualSubDetailGridPopupMenu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.advCheckEqualSubDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailExecuteEdit(parus.balance.advCheckEqualSubDetailGrid, \'PRN\')"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailFollowReport(parus.balance.advCheckEqualSubDetailGrid, \'PRN\')"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0442\u0447\u0435\u0442\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.advCheckEqualSubDetailGrid, \'BalanceCompareReportSpecLinks\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.advCheckEqualSubDetailGrid, \'BalanceCompareReportSpecLinks\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.advCheckEqualSubDetailGrid, \'BalanceCompareReportSpecLinks\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.advCheckEqualSubDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.advCheckEqualSubDetailGrid, parus.balance.advCheckEqualSubDetailGridPopupMenu, \'parus.balance.advCheckEqualSubDetailGrid\', null, null, \'BalanceCompareReportSpecLinks\', \'BalanceCompareReportSpecLinks\', \'BalanceCompareReportSpecLinks\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.advCheckEqualSubDetailGrid" headerMenu\x3d"parus.balance.advCheckEqualSubDetailGridPopupMenu" jsid\x3d"parus.balance.advCheckEqualSubDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.advCheckEqualSubDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"SECTION_CODE" sortField\x3d"3" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceTemplateContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.advCheckUnEqualDetailPage" onShow\x3d"parus.balance.advCheckDetailShowPage(this)" style\x3d"padding:0" title\x3d"\u041d\u0435\u0441\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.advCheckUnEqualDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041d\u0435\u0441\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.advCheckUnEqualDetailGridPopupMenu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.advCheckUnEqualDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLCOMPREPSP_SELECT_ROWS" defaultIcon\x3d"PCsherlockCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailSelect(parus.balance.advCheckUnEqualDetailGrid)"\x3e \u041f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438... \x3c/li\x3e\x3cli actionCode\x3d"BLCOMPREPSP_EXCLUDE_ROW" defaultIcon\x3d"PCimagecaptureCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailExclude(parus.balance.advCheckUnEqualDetailGrid)"\x3e \u0418\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailExecuteEdit(parus.balance.advCheckUnEqualDetailGrid, \'RN\')"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailFollowReport(parus.balance.advCheckUnEqualDetailGrid, \'RN\')"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0442\u0447\u0435\u0442\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.advCheckUnEqualDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.advCheckUnEqualDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.advCheckUnEqualDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.advCheckUnEqualDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.advCheckUnEqualDetailGrid, parus.balance.advCheckUnEqualDetailGridPopupMenu, \'parus.balance.advCheckUnEqualDetailGrid\', null, parus.balance.advCheckUnEqualSettingsAdditions(), \'BalanceCompareReportSpecs\', \'BalanceCompareReportSpecs\', \'BalanceCompareReportSpecs\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.advCheckUnEqualDetailGrid" headerMenu\x3d"parus.balance.advCheckUnEqualDetailGridPopupMenu" jsid\x3d"parus.balance.advCheckUnEqualDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.advCheckUnEqualDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onSelected\x3d"parus.balance.advCheckDetailGridChange(parus.balance.advCheckUnEqualDetailGrid, parus.balance.advCheckUnEqualSubDetailGrid, \'parus.balance.advCheckUnEqualSubDetailGrid\')" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"SECTION_CODE" sortField\x3d"3" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane balanceTemplateContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.advCheckUnEqualSubDetailPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.advCheckUnEqualSubDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u043e\u0434\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.advCheckUnEqualSubDetailGridPopupMenu" style\x3d"display: none"\x3e\x3cli actionCode\x3d"BLCOMPREPLNK_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckSubDetailDelete(parus.balance.advCheckUnEqualSubDetailGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.advCheckUnEqualSubDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLCOMPREPLNK_SET_EQUAL" defaultIcon\x3d"PCPowerCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckSubDetailSetEqual(parus.balance.advCheckUnEqualSubDetailGrid)"\x3e \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailExecuteEdit(parus.balance.advCheckUnEqualSubDetailGrid, \'PRN\')"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailFollowReport(parus.balance.advCheckUnEqualSubDetailGrid, \'PRN\')"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0442\u0447\u0435\u0442\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.advCheckUnEqualSubDetailGrid, \'BalanceCompareReportSpecLinks\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.advCheckUnEqualSubDetailGrid, \'BalanceCompareReportSpecLinks\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.advCheckUnEqualSubDetailGrid, \'BalanceCompareReportSpecLinks\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.advCheckUnEqualSubDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.advCheckUnEqualSubDetailGrid, parus.balance.advCheckUnEqualSubDetailGridPopupMenu, \'parus.balance.advCheckUnEqualSubDetailGrid\', null, null, \'BalanceCompareReportSpecLinks\', \'BalanceCompareReportSpecLinks\', \'BalanceCompareReportSpecLinks\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.advCheckUnEqualSubDetailGrid" headerMenu\x3d"parus.balance.advCheckUnEqualSubDetailGridPopupMenu" jsid\x3d"parus.balance.advCheckUnEqualSubDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.advCheckUnEqualSubDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"SECTION_CODE" sortField\x3d"3" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.advCheckExcludedDetailPage" onShow\x3d"parus.balance.advCheckDetailShowPage(this)" title\x3d"\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.advCheckExcludedDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.advCheckExcludedDetailGridPopupMenu" style\x3d"display: none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.advCheckExcludedDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLCOMPREPSP_UNDO_EXCLUDE_ROW" defaultIcon\x3d"PCCloseCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailUndoExclude(parus.balance.advCheckExcludedDetailGrid)"\x3e \u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailExecuteEdit(parus.balance.advCheckExcludedDetailGrid, \'RN\')"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.advCheckDetailFollowReport(parus.balance.advCheckExcludedDetailGrid, \'RN\')"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0442\u0447\u0435\u0442\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.advCheckExcludedDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.advCheckExcludedDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.advCheckExcludedDetailGrid, \'BalanceCompareReportSpecs\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.advCheckExcludedDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.advCheckExcludedDetailGrid, parus.balance.advCheckExcludedDetailGridPopupMenu, \'parus.balance.advCheckExcludedDetailGrid\', null, null, \'BalanceCompareReportSpecs\', \'BalanceCompareReportSpecs\', \'BalanceCompareReportSpecs\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.advCheckExcludedDetailGrid" headerMenu\x3d"parus.balance.advCheckExcludedDetailGridPopupMenu" jsid\x3d"parus.balance.advCheckExcludedDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.advCheckExcludedDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"SECTION_CODE" sortField\x3d"3" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceAdvReportSelectDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u0431\u043e\u0440\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:275px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"padding-bottom:5px"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0413\u0440\u0443\u043f\u043f\u044b \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceCompareReportRuleSectionGroups\'" dojoAttachPoint\x3d"groupsEdit" dojotype\x3d"parus.dictEdit" multiselect\x3d"true" onGetGridConditions\x3d"{return this.dialogObject.getSectionGroupsCondition()}" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"criteriaGroupBox" dojoType\x3d"parus.groupBox" region\x3d"center" title\x3d"\u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f"\x3e\x3cdiv autoExpand\x3d"true" dojoAttachPoint\x3d"criteriaTreeView" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" model\x3d"parus.parus8.emptyTreeModel()" persist\x3d"false" showroot\x3d"false" style\x3d"overflow:auto; width:100%; height:100%"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceCheckAbsentReportsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0413\u0440\u0443\u043f\u043f\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:111px; width:520px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"220px"\x3e\x3cb\x3e \u0413\u0440\u0443\u043f\u043f\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'UnionAgentsGroups\'" dojoAttachPoint\x3d"agentsGroupEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"reportDate" dojotype\x3d"dijit.form.DateTextBox" name\x3d"reportDate" required\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceCheckReportCheckDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:140px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput dojoAttachPoint\x3d"checkResults" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/b\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput dojoAttachPoint\x3d"useAgnCheckLists" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0447\u043d\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.selectCheckList()"\x3e \u041f\u0435\u0440\u0435\u0447\u043d\u0438... \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceCheckReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:205px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput dojoAttachPoint\x3d"checkResults" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/b\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput dojoAttachPoint\x3d"useAgnCheckLists" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0447\u043d\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432 \x3c/b\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cdiv\x3e\x3cinput dojoAttachPoint\x3d"showReportCheckBox" dojoType\x3d"dijit.form.CheckBox" onClick\x3d"this.dialogObject.protocolChanged()"\x3e\x3c/input\x3e\x3cb\x3e\x3cspan\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \x3c/span\x3e\x3c/b\x3e\x3c/div\x3e\x3cdiv style\x3d"margin-top:5px"\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"showResultReportCheckBox" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e\x3cspan class\x3d"balanceReadOnlyHeader" dojoAttachPoint\x3d"showResultReportCheckBoxText"\x3e \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u043e \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u043c\u0443 \u043e\u0442\u0447\u0435\u0442\u0443 \x3c/span\x3e\x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.selectCheckList()"\x3e \u041f\u0435\u0440\u0435\u0447\u043d\u0438... \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceConsolidatedReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u043e\u0442\u0447\u0435\u0442"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:222px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"requsitesPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"220px"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceReportForms\'" dojoAttachPoint\x3d"formCodeEdit" dojotype\x3d"parus.dictEdit" readonly\x3d"true" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"reportDateEdit" dojotype\x3d"dijit.form.DateTextBox" readonly\x3d"true" required\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCodeEdit" dojotype\x3d"parus.dictEdit" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.agentsChanged(this)" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNNAME\'" dojoAttachPoint\x3d"agentNameEdit" dojotype\x3d"parus.dictEdit" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.agentsChanged(this)" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"agentHeadEdit" dojotype\x3d"dijit.form.TextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430: \x3cbr/\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"kindSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" required\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0421\u0432\u043e\u0434\u043d\u044b\u0439 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceConsolidatedReportPane.html",'\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.consolidatedCatalogTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.consolidatedCatalogTreePopupMenu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.CheckedMenuItem" onClick\x3d"parus.catalogActions.listCatalogTree(parus.balance.consolidatedCatalogTree)"\x3e \u0412\u0441\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.checkChildren(parus.balance.consolidatedCatalogTree)"\x3e \u0421\u043f\u0438\u0441\u043e\u043a \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.consolidatedCatalogTree.uncheckAll()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.expandCatalogTree(parus.balance.consolidatedCatalogTree)"\x3e \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"CATALOG_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertCatalog(parus.balance.consolidatedCatalogTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateCatalog(parus.balance.consolidatedCatalogTree)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveCatalog(parus.balance.consolidatedCatalogTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteCatalog(parus.balance.consolidatedCatalogTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.consolidatedCatalogTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.consolidatedCatalogTreePopupMenu, \'parus.balance.consolidatedCatalogTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"true" class\x3d"balanceGrid" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" jsid\x3d"parus.balance.consolidatedCatalogTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedFolderTree, parus.balance.consolidatedMasterGrid, \'parus.balance.consolidatedMasterGrid\', parus.balance.consolidatedCatalogTreePopupMenu, parus.balance.consolidatedFoldersTreePopupMenu)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedFolderTree, parus.balance.consolidatedMasterGrid, \'parus.balance.consolidatedMasterGrid\', parus.balance.consolidatedCatalogTreePopupMenu, parus.balance.consolidatedFoldersTreePopupMenu)" onOpen\x3d"parus.balance.catalogTreeChange(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedFolderTree, parus.balance.consolidatedMasterGrid, \'parus.balance.consolidatedMasterGrid\', parus.balance.consolidatedCatalogTreePopupMenu, parus.balance.consolidatedFoldersTreePopupMenu)" persist\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.consolidatedFoldersPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%; display:none"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.consolidatedFoldersTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0430\u043f\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.consolidatedFoldersTreePopupMenu" style\x3d"display:none"\x3e\x3cli actionCode\x3d"CONDFOLDERS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertFolder(parus.balance.consolidatedFolderTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateFolder(parus.balance.consolidatedFolderTree, function(){parus.balance.balanceReportsRefresh(parus.balance.consolidatedMasterGrid)})"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveFolder(parus.balance.consolidatedFolderTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteFolder(parus.balance.consolidatedFolderTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.consolidatedFolderTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.consolidatedFoldersTreePopupMenu, \'parus.balance.consolidatedFolderTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"false" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.folderTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" hiddenMode\x3d"true" jsid\x3d"parus.balance.consolidatedFolderTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedFolderTree, parus.balance.consolidatedMasterGrid, \'parus.balance.consolidatedMasterGrid\', parus.balance.consolidatedCatalogTreePopupMenu, parus.balance.consolidatedFoldersTreePopupMenu)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedFolderTree, parus.balance.consolidatedMasterGrid, \'parus.balance.consolidatedMasterGrid\', parus.balance.consolidatedCatalogTreePopupMenu, parus.balance.consolidatedFoldersTreePopupMenu)" onOpen\x3d"parus.balance.catalogTreeChange(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedFolderTree, parus.balance.consolidatedMasterGrid, \'parus.balance.consolidatedMasterGrid\', parus.balance.consolidatedCatalogTreePopupMenu, parus.balance.consolidatedFoldersTreePopupMenu)" persist\x3d"false" showRoot\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.consolidatedMasterGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e\x3cspan class\x3d"filterIndicator" id\x3d"parus.balance.consolidatedMasterGridFilterIndicator" onclick\x3d"parus.balance.consolidatedBalanceReportsConditions()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043e\u0442\u0431\u043e\u0440."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e\x3cspan class\x3d"maxGridRecordsIndicator" id\x3d"parus.balance.consolidatedMasterGridMaxGridRecordsIndicator" onclick\x3d"parus.balance.consolidatedMasterGridMaxGridRecordsIndicatorClick()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e \u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.consolidatedMasterGridPopupMenu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.consolidatedBalanceReportsConditions()"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsCreateReport(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedMasterGrid, 1)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDuplicateReport(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedMasterGrid, 1)"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsEditReport(parus.balance.consolidatedMasterGrid, 1)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_MOVE_OUT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsMoveReport(parus.balance.consolidatedMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDeleteReport(parus.balance.consolidatedMasterGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.consolidatedMasterGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_VALUES_UPDATE" defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.editReportValues(parus.balance.consolidatedMasterGrid, 1)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CLEAR" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsClearValues(parus.balance.consolidatedMasterGrid, false)"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CHECK" defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsCheckValues(parus.balance.consolidatedMasterGrid, 1, false)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowCheckReportProtocol(parus.balance.consolidatedMasterGrid, 1, false)"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.showConsolidationProposal()"\x3e \u0421\u043e\u0441\u0442\u0430\u0432 \u0441\u0432\u043e\u0434\u0430... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_CONS" defaultIcon\x3d"PCorganizeCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsConsolidate()"\x3e \u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0434... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_BEFOREHAND" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDoBeforeHand()"\x3e \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORT_CONFIRM" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsConfirmConsolidation()"\x3e \u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0435... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_DECONS" defaultIcon\x3d"PCcloseCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDeConsolidate()"\x3e \u0420\u0430\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0434... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041f\u0440\u0438\u0435\u043c\u043a\u0430\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_ACCEPT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSetReportAccepted(parus.balance.consolidatedMasterGrid, true)"\x3e \u041f\u0440\u0438\u043d\u044f\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UNDO_ACCEPT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSetReportAccepted(parus.balance.consolidatedMasterGrid, false)"\x3e \u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_SET_STATUS" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.changeStatus(parus.balance.consolidatedMasterGrid, 1)"\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceStatesHistory(parus.balance.consolidatedMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceStatusesHistory(parus.balance.consolidatedMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceValuesHistory(parus.balance.consolidatedMasterGrid, false)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f/\u0441\u043e\u0441\u0442\u0430\u0432\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowReportContents(parus.balance.consolidatedMasterGrid, true)"\x3e \u0421\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowReportContents(parus.balance.consolidatedMasterGrid, false)"\x3e \u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceCheckAbsentReports(parus.balance.consolidatedMasterGrid, 1)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043e\u0432... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balancePrimaryReportForming()"\x3e C\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442... \x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430/\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_LOAD" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsLoadReports(parus.balance.consolidatedMasterGrid, parus.balance.consolidatedCatalogTree, 1)"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CUSTOM_IMPORT" defaultIcon\x3d"PCUpCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsCustomFormatLoadReports(parus.balance.consolidatedMasterGrid, parus.balance.consolidatedCatalogTree, 1)"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_TEXT_EXPORT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadReport(parus.balance.consolidatedMasterGrid)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430 \u0443\u0447\u0435\u0442\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CUSTOM_EXPORT" defaultIcon\x3d"PCDownCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsCustomFormatDownloadReports(1)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_TEXT_EXPORT" defaultIcon\x3d"PCRightCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDoExport(parus.balance.consolidatedMasterGrid)"\x3e \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430... \x3c/li\x3e\x3cli defaultIcon\x3d"PCLeftCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsUndoExport(parus.balance.consolidatedMasterGrid)"\x3e \u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCxlsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.consolidatedMasterGrid, \'xls\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.consolidatedMasterGrid, \'pdf\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.consolidatedMasterGrid, \'html\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_EXCHANGE_EXPORT" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsExchangeExport(parus.balance.consolidatedMasterGrid, parus.balance.consolidatedCatalogTree, 1)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_EXCHANGE_IMPORT" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsExchangeImport(parus.balance.consolidatedMasterGrid, parus.balance.consolidatedCatalogTree, 1)"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem" features\x3d"StatusModel"\x3e\x3cspan\x3e\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c...\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridPass(parus.balance.primaryMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridSend(parus.balance.primaryMasterGrid)"\x3e \u041d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridAddNote(parus.balance.primaryMasterGrid)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridSetMark(parus.balance.primaryMasterGrid)"\x3e \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridRemoveMark(parus.balance.primaryMasterGrid)"\x3e \u0421\u043d\u044f\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridHistory(parus.balance.primaryMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridNotes(parus.balance.primaryMasterGrid)"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridRoute(parus.balance.primaryMasterGrid)"\x3e \u041c\u0430\u0440\u0448\u0440\u0443\u0442... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridCoWorking(parus.balance.primaryMasterGrid)"\x3e \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDigitalSignatures(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsSign(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsRemoveSign(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0421\u0432\u044f\u0437\u0438\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli defaultIcon\x3d"PCdocumentsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsAttachedDocuments(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.exportToFile(parus.balance.consolidatedMasterGrid)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"false" onClick\x3d"parus.balance.importFromFile(parus.balance.consolidatedMasterGrid)"\x3e \u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.exportToSignedFile(parus.balance.consolidatedMasterGrid, \'BalanceReports\')"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.consolidatedMasterGrid, parus.balance.consolidatedDetailGrid, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.consolidatedMasterGrid, parus.balance.consolidatedMasterGridPopupMenu, \'parus.balance.consolidatedMasterGrid\', parus.balance.consolidatedCatalogTree, parus.balance.consolidatedSettingsAdditions(), \'BalanceReports\', \'BalanceReports\', \'BalanceReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.consolidatedMasterGrid" headerMenu\x3d"parus.balance.consolidatedMasterGridPopupMenu" jsid\x3d"parus.balance.consolidatedMasterGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.consolidatedMasterGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editReportValues(parus.balance.consolidatedMasterGrid, 1)" onSelected\x3d"parus.balance.masterGridChange(\'parus.balance.consolidatedDetailGrid\', \'parus.balance.consolidatedMasterGrid\', \'parus.balance.consolidatedCatalogTree\')" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.masterGridStore(parus.balance.consolidatedCatalogTree, \'parus.balance.consolidatedMasterGrid\', 1, parus.balance.consolidatedFolderTree)"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"2" field\x3d"BDATE" sortField\x3d"T.BDATE" width\x3d"81px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"FORM_CODE" width\x3d"81px"\x3e \u0424\u043e\u0440\u043c\u0430 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"121px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"AGNNAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"HEAD_ORG_NAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"81px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"ACCEPTED" formatter\x3d"parus.balance.formatReportAccepted" width\x3d"81px"\x3e \u041f\u0440\u0438\u043d\u044f\u0442 \x3c/th\x3e\x3cth field\x3d"SENT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:90%"\x3e\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"CALCTYPE_CODE" width\x3d"81px"\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"CALC_STR" formatter\x3d"parus.parus8.formatBoolean" width\x3d"165px"\x3e\x3cspan style\x3d"font-size:80%"\x3e\u0420\u0430c\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0442\u0438\u043f\u0430 "\u0441\u0442\u0440\u043e\u043a\u0430" \x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"CALC_NUM" formatter\x3d"parus.parus8.formatBoolean" width\x3d"165px"\x3e\x3cspan style\x3d"font-size:80%"\x3e\u0420\u0430c\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0442\u0438\u043f\u0430 "\u0447\u0438\u0441\u043b\u043e" \x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"CALC_DATE" formatter\x3d"parus.parus8.formatBoolean" width\x3d"165px"\x3e\x3cspan style\x3d"font-size:80%"\x3e\u0420\u0430c\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0442\u0438\u043f\u0430 "\u0434\u0430\u0442\u0430" \x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"USE_HISTORY" formatter\x3d"parus.balance.formatReportHistory" width\x3d"101px"\x3e\x3cspan style\x3d"font-size:85%"\x3e\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"ONLY_LAST_HISTORY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e\x3cspan style\x3d"font-size:80%"\x3e\u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u0438\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATUS_NAME" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"STATUS_MODEL_CODE" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED_ANY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.consolidatedDetailGridPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.consolidatedDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.consolidatedDetailGridPopupMenu" style\x3d"display:none"\x3e\x3cli actionCode\x3d"BLSUBREPORTS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsEditSubReport(parus.balance.consolidatedDetailGrid, parus.balance.consolidatedMasterGrid)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDeleteSubReport(parus.balance.consolidatedDetailGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.consolidatedDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_VALUES_UPDATE" defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.editSubReportValues(parus.balance.consolidatedDetailGrid, parus.balance.consolidatedMasterGrid, 1)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CLEAR" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsClearValues(parus.balance.consolidatedDetailGrid, true)"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CHECK" defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsCheckValues(parus.balance.consolidatedDetailGrid, 1, true)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowCheckReportProtocol(parus.balance.consolidatedDetailGrid, 1, true)"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_SET_STATUS" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.changeSubreportStatus(parus.balance.consolidatedDetailGrid, 1)"\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceValuesHistory(parus.balance.consolidatedDetailGrid, true)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSubStatusesHistory(parus.balance.consolidatedDetailGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCxlsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.consolidatedDetailGrid, parus.balance.consolidatedMasterGrid, \'xls\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.consolidatedDetailGrid, parus.balance.consolidatedMasterGrid, \'pdf\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.consolidatedDetailGrid, parus.balance.consolidatedMasterGrid, \'html\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.consolidatedDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.consolidatedDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.consolidatedDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDigitalSignatures(parus.balance.consolidatedDetailGrid, \'BalanceSubReports\')"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsSign(parus.balance.consolidatedDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsRemoveSign(parus.balance.consolidatedDetailGrid, \'BalanceSubReports\')"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCdocumentsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsAttachedDocuments(parus.balance.consolidatedDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.consolidatedDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.consolidatedDetailGrid, parus.balance.consolidatedDetailGridPopupMenu, \'parus.balance.consolidatedDetailGrid\', null, null, \'BalanceSubReports\', \'BalanceSubReports\', \'BalanceSubReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.consolidatedDetailGrid" headerMenu\x3d"parus.balance.consolidatedDetailGridPopupMenu" jsid\x3d"parus.balance.consolidatedDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.consolidatedDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editSubReportValues(parus.balance.consolidatedDetailGrid, parus.balance.consolidatedMasterGrid, 1)" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.detailGridStore(parus.balance.consolidatedCatalogTree, parus.balance.consolidatedMasterGrid, \'parus.balance.consolidatedDetailGrid\')"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"RESULT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u0418\u0442\u043e\u0433 \x3c/th\x3e\x3cth field\x3d"CODE" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"121px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"161px"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"STATUS_NAME" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"IS_SIGNED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED_ANY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceCustomDownloadReportsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:287px; width:460px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0414\u0430\u0442\u0430 \u043e\u0442\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"reportDate" dojotype\x3d"dijit.form.DateTextBox" required\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCode" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'CustomFormats\'" dojoAttachPoint\x3d"formatCode" dojotype\x3d"parus.dictEdit" onChange\x3d"this.dialogObject.formatCodeChanged(this)" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"showReport" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041a\u0440\u0430\u0442\u043a\u0438\u0439 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" style\x3d"margin-top:10px" title\x3d"\u0424\u0430\u0439\u043b\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041e\u0442\u0447\u0435\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"fileNameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0410\u0440\u0445\u0438\u0432: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"archiveNameEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"encodingType" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e Windows-1251 (WIN) \x3c/option\x3e\x3coption value\x3d"1"\x3e IBM CP866 (OEM) \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceCustomLoadReportsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:380px; width:460px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cform dojoAttachPoint\x3d"postForm"\x3e\x3cinput dojoAttachPoint\x3d"catalogInput" name\x3d"catalog" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"custom" type\x3d"hidden" value\x3d"1"\x3e\x3c/input\x3e\x3cinput dojoAttachPoint\x3d"kindInput" name\x3d"kind" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput dojoAttachPoint\x3d"logKind" name\x3d"logKind" type\x3d"hidden"\x3e\x3c/input\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0424\u0430\u0439\u043b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"fileData" name\x3d"fileData" size\x3d"32" style\x3d"font-weight:bold" type\x3d"file"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"encodingType" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" name\x3d"encodingType"\x3e\x3coption value\x3d"0"\x3e Windows-1251 (WIN) \x3c/option\x3e\x3coption value\x3d"1"\x3e IBM CP866 (OEM) \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0414\u0430\u0442\u0430 \u043e\u0442\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"reportDate" dojotype\x3d"dijit.form.DateTextBox" name\x3d"reportDate" required\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCode" dojotype\x3d"parus.dictEdit" name\x3d"agentCode" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'CustomFormats\'" dojoAttachPoint\x3d"formatCode" dojotype\x3d"parus.dictEdit" name\x3d"formatCode" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"canOverWrite" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" name\x3d"canOverWrite"\x3e\x3coption value\x3d"0"\x3e \u041d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0414\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"recalcReports" dojoType\x3d"dijit.form.CheckBox" name\x3d"recalcReports"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"showReport" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041a\u0440\u0430\u0442\u043a\u0438\u0439 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.performLoad()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceDeconsolidateDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0430\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0434\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:86px; width:420px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"multiLevel" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u041c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435 \u0440\u0430\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceExtraDictionaryConditionsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:130px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoAttachPoint\x3d"commonGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100"\x3e\x3cb\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"valueEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.clearConditions()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceFolderDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u043f\u043a\u0430 \u043e\u0442\u0431\u043e\u0440\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:427px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top" style\x3d"height:180px"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"120px"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" intermediateChanges\x3d"true" maxLength\x3d"2000" rows\x3d"2" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442\u0431\u043e\u0440\u0430"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"33%"\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"showUsers" dojoType\x3d"dijit.form.RadioButton" onClick\x3d"this.dialogObject.showValues(true, false)"\x3e\x3c/input\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \x3c/td\x3e\x3ctd width\x3d"33%"\x3e\x3cinput dojoAttachPoint\x3d"showSystem" dojoType\x3d"dijit.form.RadioButton" onClick\x3d"this.dialogObject.showValues(false, true)"\x3e\x3c/input\x3e \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"showAll" dojoType\x3d"dijit.form.RadioButton" onClick\x3d"this.dialogObject.showValues(true, true)"\x3e\x3c/input\x3e \u0412\u0441\u0435 \x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoAttachPoint\x3d"paramsContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"overflow-y:scroll; overflow-x:hidden; padding-right:16px"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.revertAll()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.editQuery()"\x3e \u0417\u0430\u043f\u0440\u043e\u0441 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceFolderQueryDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u043f\u043a\u0430 - \u0437\u0430\u043f\u0440\u043e\u043e\u0441"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:330px; width:580px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" rows\x3d"16" style\x3d"width:100%; margin:2px"\x3e\x3c/textarea\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceIndexConsComparation.html",'\x3cdiv\x3e\x3cform action\x3d"../parusjs/balanceIndexConsComparationPrint.html" dojoAttachPoint\x3d"printForm" method\x3d"POST" target\x3d"_blank"\x3e\x3cinput name\x3d"querydata" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"handler" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"htmldata" type\x3d"hidden"\x3e\x3c/input\x3e\x3c/form\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"height:100%; width:100%;"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoAttachPoint\x3d"headerPaneText" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"consItemsGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.showItems()"\x3e \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCprinteraltCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.print()"\x3e \u0414\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.consItemsGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, this.dialogObject.consItemsGridPopupMenu, this.dialogObject.declaredClass, null, this.dialogObject.settingsAdditions())"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"consItemsGrid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{selector:{row:true, col:false, cell:false}, extraRow: {visible: false, rowCount: 2}, indirectSelection: {headerSelector:true}}"\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cinput dojoAttachPoint\x3d"withDivergenceCheckBox" dojoType\x3d"dijit.form.CheckBox" onchange\x3d"this.dialogObject.withDivergenceCheckBoxChanged()"\x3e\x3c/input\x3e\x3cb\x3e \u0422\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceIndexConsComparationItem.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:154px; width:580px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"80"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"titleEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"expressionEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3ci class\x3d"infoTipMessage"\x3e \u0412 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u0430 (A, B \u0438 \u0442. \u0434.), \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0441\u043a\u043e\u0431\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, (A+B)*100/C. \x3c/i\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceIndexConsComparationItems.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 - \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"height:100%; width:100%;"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoAttachPoint\x3d"headerPaneText" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 - \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"consItemsGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.addItem()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.editItem()"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.deleteItem()"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.clear()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.addFromTemplate()"\x3e\x3cb\x3e\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430...\x3c/b\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.saveAsTemplate()"\x3e\x3cb\x3e\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a \u0448\u0430\u0431\u043b\u043e\u043d...\x3c/b\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.performIndexConsComparation()"\x3e\x3cb\x3e\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435...\x3c/b\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.consItemsGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.consItemsGrid, this.dialogObject.consItemsGridPopupMenu, this.dialogObject.declaredClass, null, this.dialogObject.settingsAdditions())"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable canSort\x3d"return false" class\x3d"balanceGrid" dojoAttachPoint\x3d"consItemsGrid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"1" field\x3d"TITLE" width\x3d"161px"\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"VALUE" formatter\x3d"parus.parus8.formatFloatIntFrac" styles\x3d"text-align: right;" width\x3d"161px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"IDENTIFIER" width\x3d"121px"\x3e \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \x3c/th\x3e\x3cth field\x3d"EXPRESSION" width\x3d"121px"\x3e \u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"INCLUDEDIFF" formatter\x3d"parus.balanceIndexConsComparationItems.formatIncludeCheck" width\x3d"121px"\x3e \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.performIndexConsComparation()"\x3e\x3cb\x3e\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceIndexConsComparationTemplate.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0428\u0430\u0431\u043b\u043e\u043d \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:87px; width:420px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ComboBox" intermediatechanges\x3d"true" maxLength\x3d"160" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e \u041e\u041a \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceIndexConsComparationTemplatesDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0431\u043e\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:750px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" splitter\x3d"true"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0428\u0430\u0431\u043b\u043e\u043d\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"templatesGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display: none"\x3e\x3cli defaultIcon\x3d"PCreduceCustomIcon" dojoAttachPoint\x3d"deleteTemplateMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.deleteTemplate()"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoAttachPoint\x3d"clearTemplatesMenuItem" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.clearTemplates()"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \x3c/li\x3e\x3cli dojoAttachPoint\x3d"clearAllTemplatesMenuItem" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.clearAllTemplates()"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.templatesGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.settings()"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.... \x3c/li\x3e\x3c/ul\x3e\x3ctable canSort\x3d"return false" class\x3d"balanceGrid" dojoAttachPoint\x3d"templatesGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" onFilterChanged\x3d"this.dialogObject.gridFilterChanged(this.dialogObject.templatesGrid, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onSelected\x3d"this.dialogObject._selected()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"name" width\x3d"221px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"user" width\x3d"121px"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceIndexConsDialog.html",'\x3cdiv\x3e\x3cform action\x3d"../parusjs/balanceIndexConsPrint.html" dojoAttachPoint\x3d"printForm" method\x3d"POST" target\x3d"_blank"\x3e\x3cinput name\x3d"querydata" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"handler" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"skipzero" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"hiddencols" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"htmldata" type\x3d"hidden"\x3e\x3c/input\x3e\x3c/form\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"height:100%; width:100%;"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoAttachPoint\x3d"headerPaneText" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"consItemsGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCprinteraltCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.print()"\x3e \u0414\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.consItemsGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.consItemsGrid, this.dialogObject.consItemsGridPopupMenu, this.dialogObject.declaredClass, null, this.dialogObject.settingsAdditions())"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"consItemsGrid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"1" field\x3d"VALUE" formatter\x3d"parus.parus8.formatFloatIntFrac" styles\x3d"text-align:right;" width\x3d"161px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"KIND" formatter\x3d"parus.balance.formatReportKind" width\x3d"121px"\x3e \u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"121px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"AGNNAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"81px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u041e\u0442\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"ACCEPTED" formatter\x3d"parus.balance.formatReportAccepted" width\x3d"81px"\x3e \u041e\u0442\u0447\u0435\u0442 \u043f\u0440\u0438\u043d\u044f\u0442 \x3c/th\x3e\x3cth field\x3d"SENT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"110px"\x3e\x3cspan style\x3d"font-size:90%"\x3e\u041e\u0442\u0447\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"RESULT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u0418\u0442\u043e\u0433 \x3c/th\x3e\x3cth field\x3d"CODE" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3cth field\x3d"SRSTATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"121px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"SRCHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"161px"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"STRVAL" width\x3d"181px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0441\u0442\u0440\u043e\u043a\u0430) \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"NUMVAL" formatter\x3d"parus.parus8.formatFloatIntFrac" styles\x3d"text-align:right;" width\x3d"121px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0447\u0438\u0441\u043b\u043e) \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"DATEVAL" width\x3d"121px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0434\u0430\u0442\u0430) \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceLoadReportsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043e\u0442\u0447\u0435\u0442\u043e\u0432"\x3e\x3cform dojoAttachPoint\x3d"postForm" style\x3d"display:none"\x3e\x3cinput dojoAttachPoint\x3d"catalogInput" name\x3d"catalog" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"custom" type\x3d"hidden" value\x3d"0"\x3e\x3c/input\x3e\x3cinput name\x3d"canOverWrite" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"distrByCatalog" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"canSkipValues" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"canSkipSubreports" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"recalcReports" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"showReport" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"agent" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"kind" type\x3d"hidden"\x3e\x3c/input\x3e\x3c/form\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:375px; width:580px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u0424\u0430\u0439\u043b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput accept\x3d"text/xml" dojoAttachPoint\x3d"fileData" name\x3d"fileData" size\x3d"32" style\x3d"font-weight:bold" type\x3d"file"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442:\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentEdit" dojotype\x3d"parus.dictEdit" intermediatechanges\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430. \x3c/span\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cdiv\x3e\x3cinput dojoAttachPoint\x3d"canOverWrite" dojoType\x3d"dijit.form.CheckBox" type\x3d"checkbox"\x3e\x3c/input\x3e\x3cb\x3e \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/b\x3e\x3c/div\x3e\x3cdiv\x3e\x3cinput dojoAttachPoint\x3d"distrByCatalog" dojoType\x3d"dijit.form.CheckBox" type\x3d"checkbox"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cdiv\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"canSkipValues" dojoType\x3d"dijit.form.CheckBox" type\x3d"checkbox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \x3c/b\x3e\x3c/div\x3e\x3cdiv\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"canSkipSubreports" dojoType\x3d"dijit.form.CheckBox" type\x3d"checkbox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u043e\u0432 \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cdiv\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"recalcReports" dojoType\x3d"dijit.form.CheckBox" type\x3d"checkbox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \x3c/b\x3e\x3c/div\x3e\x3cdiv\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"showReport" dojoType\x3d"dijit.form.CheckBox" type\x3d"checkbox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.performLoad()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balancePreparedConsolidationDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u043e\u0441\u0442\u0430\u0432 \u0441\u0432\u043e\u0434\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0421\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"popupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.grid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.grid, null, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"grid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" style\x3d"height:300px"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"CODE" width\x3d"161px"\x3e \u0424\u043e\u0440\u043c\u0430 \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"BDATE" width\x3d"161px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"121px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"AGNNAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"KIND" formatter\x3d"parus.balance.formatReportKind" width\x3d"121px"\x3e \u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"81px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u041e\u0442\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"SENT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:90%"\x3e\u041e\u0442\u0447\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATUS_NAME" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"STATUS_MODEL_CODE" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balancePrimaryReportFormingDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:220px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"catalogInput" dojotype\x3d"parus.catalogDictEdit" name\x3d"catalogInput" required\x3d"true" style\x3d"width:100%" trim\x3d"true" unitcode\x3d"\'BalanceReports\'"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceReportDates\'" dojoAttachPoint\x3d"reportDateEdit" dojotype\x3d"parus.dictEdit" onGetGridConditions\x3d"{return this.dialogObject.getDatesCondition()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCodeEdit" dojotype\x3d"parus.dictEdit" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.agentsChanged(this)" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNNAME\'" dojoAttachPoint\x3d"agentNameEdit" dojotype\x3d"parus.dictEdit" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.agentsChanged(this)" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"agentHeadEdit" dojotype\x3d"dijit.form.TextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"reloadCheckBox" dojoType\x3d"dijit.form.CheckBox" type\x3d"checkbox"\x3e\x3c/input\x3e\x3cb\x3e \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balancePrimaryReportPane.html",'\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryCatalogTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryCatalogTreePopupMenu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.CheckedMenuItem" onClick\x3d"parus.catalogActions.listCatalogTree(parus.balance.primaryCatalogTree)"\x3e \u0412\u0441\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.checkChildren(parus.balance.primaryCatalogTree)"\x3e \u0421\u043f\u0438\u0441\u043e\u043a \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.primaryCatalogTree.uncheckAll()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.expandCatalogTree(parus.balance.primaryCatalogTree)"\x3e \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"CATALOG_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertCatalog(parus.balance.primaryCatalogTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateCatalog(parus.balance.primaryCatalogTree)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveCatalog(parus.balance.primaryCatalogTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteCatalog(parus.balance.primaryCatalogTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.primaryCatalogTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.primaryCatalogTreePopupMenu, \'parus.balance.primaryCatalogTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"true" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" jsid\x3d"parus.balance.primaryCatalogTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onOpen\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" persist\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.primaryFoldersPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%; display:none"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryFoldersTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0430\u043f\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryFoldersTreePopupMenu" style\x3d"display:none"\x3e\x3cli actionCode\x3d"CONDFOLDERS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertFolder(parus.balance.primaryFolderTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateFolder(parus.balance.primaryFolderTree, function(){parus.balance.balanceReportsRefresh(parus.balance.primaryMasterGrid)})"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveFolder(parus.balance.primaryFolderTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CONDFOLDERS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteFolder(parus.balance.primaryFolderTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.primaryFolderTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.primaryFoldersTreePopupMenu, \'parus.balance.primaryFolderTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"false" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.folderTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" hiddenMode\x3d"true" jsid\x3d"parus.balance.primaryFolderTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" onOpen\x3d"parus.balance.catalogTreeChange(parus.balance.primaryCatalogTree, parus.balance.primaryFolderTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTreePopupMenu, parus.balance.primaryFoldersTreePopupMenu)" persist\x3d"false" showRoot\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryMasterGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e\x3cspan class\x3d"filterIndicator" id\x3d"parus.balance.primaryMasterGridFilterIndicator" onclick\x3d"parus.balance.primaryBalanceReportsConditions()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043e\u0442\u0431\u043e\u0440."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e\x3cspan class\x3d"maxGridRecordsIndicator" id\x3d"parus.balance.primaryMasterGridMaxGridRecordsIndicator" onclick\x3d"parus.balance.primaryMasterGridMaxGridRecordsIndicatorClick()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e \u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryMasterGridPopupMenu" style\x3d"display: none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.primaryBalanceReportsConditions()"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsCreateReport(parus.balance.primaryCatalogTree, parus.balance.primaryMasterGrid, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDuplicateReport(parus.balance.primaryCatalogTree, parus.balance.primaryMasterGrid, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsEditReport(parus.balance.primaryMasterGrid, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_MOVE_OUT" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsMoveReport(parus.balance.primaryMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDeleteReport(parus.balance.primaryMasterGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.primaryMasterGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_VALUES_UPDATE" defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.editReportValues(parus.balance.primaryMasterGrid, 0)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CALC" defaultIcon\x3d"PCcalculator2CustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsRecalculateValues(false)"\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CLEAR" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsClearValues(parus.balance.primaryMasterGrid, false)"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CHECK" defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsCheckValues(parus.balance.primaryMasterGrid, 0, false)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowCheckReportProtocol(parus.balance.primaryMasterGrid, 0, false)"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041f\u0440\u0438\u0435\u043c\u043a\u0430\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_ACCEPT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSetReportAccepted(parus.balance.primaryMasterGrid, true)"\x3e \u041f\u0440\u0438\u043d\u044f\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UNDO_ACCEPT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSetReportAccepted(parus.balance.primaryMasterGrid, false)"\x3e \u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_SET_STATUS" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.changeStatus(parus.balance.primaryMasterGrid, 0)"\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceStatesHistory(parus.balance.primaryMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceStatusesHistory(parus.balance.primaryMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceValuesHistory(parus.balance.primaryMasterGrid, false)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f/\u0441\u043e\u0441\u0442\u0430\u0432\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowReportContents(parus.balance.primaryMasterGrid, false)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0421\u0432\u043e\u0434\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceCheckAbsentReports(parus.balance.primaryMasterGrid, 0)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u043e\u0432... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430/\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_LOAD" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsLoadReports(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CUSTOM_IMPORT" defaultIcon\x3d"PCUpCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsCustomFormatLoadReports(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_TEXT_EXPORT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadReport(parus.balance.primaryMasterGrid)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430 \u0443\u0447\u0435\u0442\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_CUSTOM_EXPORT" defaultIcon\x3d"PCDownCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsCustomFormatDownloadReports(0)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_TEXT_EXPORT" defaultIcon\x3d"PCRightCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDoExport(parus.balance.primaryMasterGrid)"\x3e \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_UNDO_EXPORT" defaultIcon\x3d"PCLeftCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsUndoExport(parus.balance.primaryMasterGrid)"\x3e \u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCxlsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.primaryMasterGrid, \'xls\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.primaryMasterGrid, \'pdf\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelReport(parus.balance.primaryMasterGrid, \'html\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli actionCode\x3d"BLREPORTS_EXCHANGE_EXPORT" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsExchangeExport(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPORTS_EXCHANGE_IMPORT" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsExchangeImport(parus.balance.primaryMasterGrid, parus.balance.primaryCatalogTree, 0)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem" features\x3d"StatusModel"\x3e\x3cspan\x3e\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c...\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridPass(parus.balance.primaryMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridSend(parus.balance.primaryMasterGrid)"\x3e \u041d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridAddNote(parus.balance.primaryMasterGrid)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridSetMark(parus.balance.primaryMasterGrid)"\x3e \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridRemoveMark(parus.balance.primaryMasterGrid)"\x3e \u0421\u043d\u044f\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridHistory(parus.balance.primaryMasterGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridNotes(parus.balance.primaryMasterGrid)"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridRoute(parus.balance.primaryMasterGrid)"\x3e \u041c\u0430\u0440\u0448\u0440\u0443\u0442... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"parus.balance.statusModelGridCoWorking(parus.balance.primaryMasterGrid)"\x3e \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userExternalAccounts()"\x3e \u041b\u043e\u0433\u0438\u043d\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDigitalSignatures(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsSign(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsRemoveSign(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0421\u0432\u044f\u0437\u0438\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli defaultIcon\x3d"PCdocumentsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsAttachedDocuments(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.exportToFile(parus.balance.primaryMasterGrid)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"false" onClick\x3d"parus.balance.importFromFile(parus.balance.primaryMasterGrid)"\x3e \u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPORTS_EXPORT_SIGNED_XML" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.exportToSignedFile(parus.balance.primaryMasterGrid, \'BalanceReports\')"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 \u0444\u0430\u0439\u043b \u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.primaryMasterGrid, parus.balance.primaryDetailGrid, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.primaryMasterGrid, parus.balance.primaryMasterGridPopupMenu, \'parus.balance.primaryMasterGrid\', parus.balance.primaryCatalogTree, parus.balance.primarySettingsAdditions(), \'BalanceReports\', \'BalanceReports\', \'BalanceReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable abonentFields\x3d"STATUS_NAME" abonentFieldsNeeded\x3d"true" class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.primaryMasterGrid" headerMenu\x3d"parus.balance.primaryMasterGridPopupMenu" jsid\x3d"parus.balance.primaryMasterGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.primaryMasterGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editReportValues(parus.balance.primaryMasterGrid, 0)" onSelected\x3d"parus.balance.masterGridChange(\'parus.balance.primaryDetailGrid\', \'parus.balance.primaryMasterGrid\', \'parus.balance.primaryCatalogTree\')" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.masterGridStore(parus.balance.primaryCatalogTree, \'parus.balance.primaryMasterGrid\', 0, parus.balance.primaryFolderTree)"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"2" field\x3d"BDATE" sortField\x3d"T.BDATE" width\x3d"81px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"FORM_CODE" width\x3d"81px"\x3e \u0424\u043e\u0440\u043c\u0430 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"121px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"AGNNAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"HEAD_ORG_NAME" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"81px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"ACCEPTED" formatter\x3d"parus.balance.formatReportAccepted" width\x3d"81px"\x3e \u041f\u0440\u0438\u043d\u044f\u0442 \x3c/th\x3e\x3cth field\x3d"SENT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e\x3cspan style\x3d"font-size:90%"\x3e\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0432 \u0446\u0435\u043d\u0442\u0440 \u0443\u0447\u0435\u0442\u0430\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"USE_HISTORY" formatter\x3d"parus.balance.formatReportHistory" width\x3d"101px"\x3e\x3cspan style\x3d"font-size:85%"\x3e\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"ONLY_LAST_HISTORY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e\x3cspan style\x3d"font-size:80%"\x3e\u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u0438\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"STATUS_NAME" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"STATUS_MODEL_CODE" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED_ANY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.primaryDetailGridPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.primaryDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.primaryDetailGridPopupMenu" style\x3d"display: none"\x3e\x3cli actionCode\x3d"BLSUBREPORTS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsCreateSubReport()" removeForApplications\x3d"BudgAcntBalance"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsDuplicateSubReport()" removeForApplications\x3d"BudgAcntBalance"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsEditSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid)" removeForApplications\x3d"BudgAcntBalance"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDeleteSubReport(parus.balance.primaryDetailGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.primaryDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_VALUES_UPDATE" defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.editSubReportValues(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, 0)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CALC" defaultIcon\x3d"PCcalculator2CustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.primaryBalanceReportsRecalculateValues(true)"\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CLEAR" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsClearValues(parus.balance.primaryDetailGrid, true)"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \x3c/li\x3e\x3cli actionCode\x3d"BLSUBREPORTS_CHECK" defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsCheckValues(parus.balance.primaryDetailGrid, 0, true)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceShowCheckReportProtocol(parus.balance.primaryDetailGrid, 0, true)"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLSUBREPORTS_SET_STATUS" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.changeSubreportStatus(parus.balance.primaryDetailGrid, 0)"\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceValuesHistory(parus.balance.primaryDetailGrid, true)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceSubStatusesHistory(parus.balance.primaryDetailGrid)"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCxlsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, \'xls\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, \'pdf\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.downloadExcelSubReport(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, \'html\')"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDigitalSignatures(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsSign(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsRemoveSign(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCdocumentsCustomIcon" dojoType\x3d"dijit.MenuItem" inAbonent\x3d"true" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsAttachedDocuments(parus.balance.primaryDetailGrid, \'BalanceSubReports\')"\x3e \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.primaryDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.primaryDetailGrid, parus.balance.primaryDetailGridPopupMenu, \'parus.balance.primaryDetailGrid\', null, null, \'BalanceSubReports\', \'BalanceSubReports\', \'BalanceSubReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable abonentFieldsNeeded\x3d"true" class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.primaryDetailGrid" headerMenu\x3d"parus.balance.primaryDetailGridPopupMenu" jsid\x3d"parus.balance.primaryDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.primaryDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editSubReportValues(parus.balance.primaryDetailGrid, parus.balance.primaryMasterGrid, 0)" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.detailGridStore(parus.balance.primaryCatalogTree, parus.balance.primaryMasterGrid, \'parus.balance.primaryDetailGrid\')"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"RESULT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"81px"\x3e \u0418\u0442\u043e\u0433 \x3c/th\x3e\x3cth field\x3d"CODE" width\x3d"81px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \x3c/th\x3e\x3cth field\x3d"STATE" formatter\x3d"parus.balance.formatReportStatus" width\x3d"121px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"CHECKED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"161px"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \x3c/th\x3e\x3cth field\x3d"STATUS_NAME" width\x3d"141px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"IS_SIGNED" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \x3c/th\x3e\x3cth field\x3d"IS_SIGNED_ANY" formatter\x3d"parus.parus8.formatBoolean" width\x3d"141px"\x3e \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceRemarkDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:193px; width:440px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"120px"\x3e\x3cb\x3e \u0421\u0442\u0430\u0442\u0443\u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceRemarkStates\'" dojoAttachPoint\x3d"statusEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" intermediateChanges\x3d"true" maxLength\x3d"2000" onChange\x3d"this.dialogObject.noteEditChange()" rows\x3d"4" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceRemarksDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:750px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" splitter\x3d"true"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"remarksGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display: none"\x3e\x3cli defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoAttachPoint\x3d"addRemerkMenuItem" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.addRemark()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCcopyCustomIcon" dojoAttachPoint\x3d"duplicateRemerkMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.duplicateRemark()"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c.... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoAttachPoint\x3d"clearRemarksMenuItem" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.clearRemarks()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.remarksGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.settings()"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"remarksGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" onFilterChanged\x3d"this.dialogObject.gridFilterChanged(this.dialogObject.remarksGrid, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onSelected\x3d"this.dialogObject._selected()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"1" field\x3d"NUMB" width\x3d"60px"\x3e \u041d\u043e\u043c\u0435\u0440 \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"CHANGE_DATE" width\x3d"120px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"CODE" width\x3d"150px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"NAME" width\x3d"150px"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"COLOR" formatter\x3d"parus.parus8.formatColor" width\x3d"150px"\x3e \u0426\u0432\u0435\u0442 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom" splitter\x3d"true" style\x3d"height:100px;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"margin:1px"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"overflow:hidden"\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" readonly\x3d"true" style\x3d"margin:0; height: 100%; width: 100%"\x3e\x3c/textarea\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportAttachedDocumentActionDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:316px; width:500px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"padding-bottom:5px"\x3e\x3cform dojoAttachPoint\x3d"postForm"\x3e\x3cinput dojoAttachPoint\x3d"prnInput" name\x3d"prnInput" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput dojoAttachPoint\x3d"rnInput" name\x3d"rnInput" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput dojoAttachPoint\x3d"unitcodeInput" name\x3d"unitcodeInput" type\x3d"hidden"\x3e\x3c/input\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041a\u043e\u0434 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"docCodeInput" dojotype\x3d"parus.checkEdit" maxLength\x3d"40" name\x3d"docCodeInput" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AttachedDocumentTypes\'" dojoAttachPoint\x3d"docTypeInput" dojotype\x3d"parus.dictEdit" intermediateChanges\x3d"false" name\x3d"docTypeInput" onChange\x3d"this.dialogObject.docTypeChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteInput" dojotype\x3d"dijit.form.SimpleTextarea" maxLength\x3d"240" name\x3d"noteInput" rows\x3d"4" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"bottom" title\x3d"\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"catalogInput" dojotype\x3d"parus.catalogDictEdit" name\x3d"catalogInput" required\x3d"true" style\x3d"width:100%" trim\x3d"true" unitcode\x3d"\'FileLinks\'"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0424\u0430\u0439\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"fileDataInput" name\x3d"fileDataInput" size\x3d"32" style\x3d"font-weight:bold" type\x3d"file"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.performLoad()"\x3e\x3cb\x3eOK\x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportAttachedDocumentsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"docsGridHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"docsGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.insertFile()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.updateFile()"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.deleteFile()"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.insertFiles()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u043e\u043c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCDownCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.downloadFile()"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.refresh()"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsDigitalSignatures(this.dialogObject.docsGrid, \'FileLinks\')"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsSign(this.dialogObject.docsGrid, \'FileLinks\')"\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.balanceReportsRemoveSign(this.dialogObject.docsGrid, \'FileLinks\')"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.docsGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.docsGrid, this.dialogObject.docsGridPopupMenu, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"docsGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"true" headerMenu\x3d"this.docsGridPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"CODE" width\x3d"120px"\x3e \u041a\u043e\u0434 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"LOAD_DATE" width\x3d"100px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"FILE_TYPE_NAME" width\x3d"100px"\x3e \u0422\u0438\u043f \x3c/th\x3e\x3cth field\x3d"CONTENT_TYPE" formatter\x3d"parus.balance.formatAttachedContentFileType" width\x3d"100px"\x3e \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"FILE_PATH" formatter\x3d"parus.balance.formatAttachedFileName" width\x3d"150px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \x3c/th\x3e\x3cth field\x3d"NOTE" width\x3d"150px"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportCheckProtocolTabPage.html",'\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"overflow:hidden; height:27px" title\x3d"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a"\x3e\x3cform action\x3d"../parusjs/balanceReportCheckProtocolPrint.html" dojoAttachPoint\x3d"printForm" method\x3d"POST" target\x3d"_blank"\x3e\x3cinput name\x3d"querydata" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"htmldata" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"full" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"handler" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput name\x3d"title" type\x3d"hidden"\x3e\x3c/input\x3e\x3c/form\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"padding:3px; width:100%; height:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" splitter\x3d"true" style\x3d"height:40%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headingPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"width:100%; height:100%"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"checksMasterGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.tabPageObject.checksMasterGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCapplicationsCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.tabPageObject.editValues()"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.tabPageObject.checkReport()"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442/\u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.tabPageObject.print(true)"\x3e \u0414\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 (\u043f\u043e\u043b\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f)... \x3c/li\x3e\x3cli defaultIcon\x3d"PCprinteraltCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.tabPageObject.print(false)"\x3e \u0414\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 (\u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f)... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(this.tabPageObject.checksMasterGrid, \'BalanceCheckReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(this.tabPageObject.checksMasterGrid, \'BalanceCheckReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(this.tabPageObject.checksMasterGrid, \'BalanceCheckReports\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.tabPageObject.checksMasterGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.tabPageObject.checksMasterGrid, this.tabPageObject.checksMasterGridPopupMenu, this.tabPageObject.declaredClass + \'-checksMasterGrid\', null, this.tabPageObject.settingsAdditions(), \'BalanceCheckReports\', \'BalanceCheckReports\', \'BalanceCheckReports\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"checksMasterGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.tabPageObject.declaredClass + \'-checksMasterGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"2" field\x3d"REPDATE" sortField\x3d"REP.BDATE" width\x3d"81px"\x3e \u0414\u0430\u0442\u0430 \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"REPFORMCODE" width\x3d"120px"\x3e \u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"BALSECTIONCODE" width\x3d"120px"\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"100px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3c/th\x3e\x3cth field\x3d"CHECKDATE" width\x3d"100px"\x3e \u0414\u0430\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \x3c/th\x3e\x3cth field\x3d"BLCHECKLISTCODE" width\x3d"100px"\x3e \u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \x3c/th\x3e\x3cth field\x3d"BLCHECKLISTNAME" width\x3d"120px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0447\u043d\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \x3c/th\x3e\x3cth field\x3d"TYPE" formatter\x3d"parus.balance.formatProtocolCheckType" width\x3d"81px"\x3e \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"ERRORSCOUNT" styles\x3d"text-align: right;" width\x3d"81px"\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"WARNINGSCOUNT" styles\x3d"text-align: right;" width\x3d"110px"\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoAttachPoint\x3d"detailsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom" splitter\x3d"true" style\x3d"height:66%"\x3e\x3cdiv class\x3d"balanceInternalPages" dojoAttachPoint\x3d"detailsPages" dojoType\x3d"dijit.layout.TabContainer" style\x3d"width:100%; height:100%"\x3e\x3cdiv class\x3d"balanceTemplateContentPane" dojoAttachPoint\x3d"detailsPane" dojoType\x3d"dijit.layout.ContentPane" selected\x3d"true" style\x3d"padding:0" title\x3d"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"\x3e\x3cdiv dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" splitter\x3d"true" style\x3d"height:40%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"checksDetailHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"checksDetailGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.tabPageObject.checksDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.tabPageObject.checksDetailGridRecheck()"\x3e \u041f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.tabPageObject.checksDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.tabPageObject.checksDetailGrid, null, this.tabPageObject.declaredClass + \'-checksDetailGrid\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable dojoAttachPoint\x3d"checksDetailGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.tabPageObject.declaredClass + \'-checksDetailGrid\', arguments[0])" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"FORMULACODE" width\x3d"120px"\x3e \u0424\u043e\u0440\u043c\u0443\u043b\u0430 \x3c/th\x3e\x3cth field\x3d"FORMULANAME" width\x3d"450px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane balanceTemplateContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" splitter\x3d"true"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"checkResultsDetailHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"checkResultsDetailGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.tabPageObject.checkResultsDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.tabPageObject.checkResultsDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.tabPageObject.checkResultsDetailGrid, null, this.tabPageObject.declaredClass + \'-checkResultsDetailGrid\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"checkResultsDetailGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.tabPageObject.declaredClass + \'-checkResultsDetailGrid\', arguments[0])" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"RESULT" formatter\x3d"parus.balance.formatProtocolCheckResult" width\x3d"81px"\x3e \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \x3c/th\x3e\x3cth field\x3d"MAIN_DESC" width\x3d"100px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"LEFT_DESC" width\x3d"120px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"LEFT_RESULT" formatter\x3d"parus.balance.formatTextAsFloat" styles\x3d"text-align: right;" width\x3d"120px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth field\x3d"REL_OPERATOR" width\x3d"81px"\x3e \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth field\x3d"RIGHT_DESC" width\x3d"120px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"RIGHT_RESULT" formatter\x3d"parus.balance.formatTextAsFloat" styles\x3d"text-align: right;" width\x3d"120px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"SUBTRACTION" formatter\x3d"parus.balance.formatTextAsFloat" styles\x3d"text-align: right;" width\x3d"100px"\x3e \u0420\u0430\u0437\u043d\u043e\u0441\u0442\u044c \x3c/th\x3e\x3cth field\x3d"MESSAGE" formatter\x3d"parus.parus8.formatWrappedText" width\x3d"400px"\x3e \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" onShow\x3d"this.tabPageObject.pageChanged()" selected\x3d"true" style\x3d"height:100%; width:100%; padding:0" title\x3d"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a"\x3e\x3cdiv dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"checkResultsHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"checkResultsGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.tabPageObject.checkResultsGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCCheckCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.tabPageObject.checkResultsGridRecheck()"\x3e \u041f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.tabPageObject.checkResultsGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.tabPageObject.checkResultsGrid, null, this.tabPageObject.declaredClass + \'-checkResultsGrid\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"checkResultsGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.tabPageObject.declaredClass + \'-checkResultsGrid\', arguments[0])" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"FORMULACODE" width\x3d"120px"\x3e \u0424\u043e\u0440\u043c\u0443\u043b\u0430 \x3c/th\x3e\x3cth field\x3d"FORMULANAME" width\x3d"120px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \x3c/th\x3e\x3cth field\x3d"RESULT" formatter\x3d"parus.balance.formatProtocolCheckResult" width\x3d"81px"\x3e \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \x3c/th\x3e\x3cth field\x3d"MAIN_DESC" width\x3d"100px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"LEFT_DESC" width\x3d"120px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"LEFT_RESULT" formatter\x3d"parus.balance.formatTextAsFloat" styles\x3d"text-align: right;" width\x3d"120px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth field\x3d"REL_OPERATOR" width\x3d"81px"\x3e \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth field\x3d"RIGHT_DESC" width\x3d"120px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"RIGHT_RESULT" formatter\x3d"parus.balance.formatTextAsFloat" styles\x3d"text-align: right;" width\x3d"120px"\x3e \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth dataType\x3d"1" field\x3d"SUBTRACTION" formatter\x3d"parus.balance.formatTextAsFloat" styles\x3d"text-align: right;" width\x3d"100px"\x3e \u0420\u0430\u0437\u043d\u043e\u0441\u0442\u044c \x3c/th\x3e\x3cth field\x3d"MESSAGE" formatter\x3d"parus.parus8.formatWrappedText" width\x3d"400px"\x3e \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportConsolidateDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:459px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv class\x3d"balanceWarningInfo" dojoAttachPoint\x3d"warning" dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"padding-left:10px; padding-top: 10px; display:none"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041f\u0430\u043f\u043a\u0430 \u043e\u0442\u0431\u043e\u0440\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'ConditionFolders\'" dojoAttachPoint\x3d"conditionFolder" dojotype\x3d"parus.dictEdit" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f \u0441\u0432\u043e\u0434\u0438\u043c\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"reportType" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0421\u0432\u043e\u0434\u043d\u044b\u0435 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0412\u0441\u0435 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceCalcType\'" dojoAttachPoint\x3d"recalculationType" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"multiLevel" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u041c\u043d\u043e\u0433\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"unCheckedReport" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"skipNonExisting" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u0438\u0437 \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u0441\u0432\u043e\u0434\u0430 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput dojoAttachPoint\x3d"allowRecalculation" dojoType\x3d"dijit.form.RadioButton" name\x3d"recalculation" onClick\x3d"this.dialogObject.recalculationChanged()"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u044b \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0441\u0432\u043e\u0434\u0430 \x3c/b\x3e\x3cdiv style\x3d"margin-left:10px; margin-top:5px"\x3e\x3cinput dojoAttachPoint\x3d"calculateValues" dojoType\x3d"dijit.form.CheckBox" onClick\x3d"this.dialogObject.calculateValuesChanged()"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"calculateValuesText"\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \x3c/b\x3e\x3cdiv dojoType\x3d"parus.groupBox" style\x3d"margin-bottom: 0; margin-left: 0; margin-right: 0;" title\x3d"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0442\u0438\u043f\u0430"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"stringFormulaType" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"stringFormulaTypeText"\x3e "\u0441\u0442\u0440\u043e\u043a\u0430" \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"numberFormulaType" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"numberFormulaTypeText"\x3e "\u0447\u0438\u0441\u043b\u043e" \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateFormulaType" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"dateFormulaTypeText"\x3e "\u0434\u0430\u0442\u0430" \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput dojoAttachPoint\x3d"disallowRecalculation" dojoType\x3d"dijit.form.RadioButton" name\x3d"recalculation" onClick\x3d"this.dialogObject.recalculationChanged()"\x3e\x3c/input\x3e\x3cb\x3e \u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u044b \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0441\u0432\u043e\u0434\u0430 \x3c/b\x3e\x3cdiv style\x3d"margin-left:10px; margin-top:5px"\x3e\x3cinput dojoAttachPoint\x3d"formIntermediateResults" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"formIntermediateResultsText"\x3e \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0438\u0442\u043e\u0433\u0438 \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432 \u0441\u0432\u043e\u0434\u0430"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"beforeConsolidation" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0414\u043e \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"afterConsolidation" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u043e\u0441\u043b\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:332px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"requsitesPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr style\x3d"display:none"\x3e\x3ctd width\x3d"160px"\x3e \x26#160; \x3c/td\x3e\x3ctd\x3e \x26#160; \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceReportForms\'" dojoAttachPoint\x3d"formCodeEdit" dojotype\x3d"parus.dictEdit" onChange\x3d"this.dialogObject.formChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceReportDates\'" dojoAttachPoint\x3d"reportDateEdit" dojotype\x3d"parus.dictEdit" onGetGridConditions\x3d"{return this.dialogObject.getDatesCondition()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCodeEdit" dojotype\x3d"parus.dictEdit" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.agentsChanged(this)" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNNAME\'" dojoAttachPoint\x3d"agentNameEdit" dojotype\x3d"parus.dictEdit" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.agentsChanged(this)" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u0433\u043e\u043b\u043e\u0432\u043d\u0430\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"agentHeadEdit" dojotype\x3d"dijit.form.TextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" maxLength\x3d"240" rows\x3d"4" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"historySelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u041d\u0435\u0442 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0414\u0430 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"historyLastCheckBox" dojotype\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cbutton dojoAttachPoint\x3d"userCalcsButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.userCalcs()" style\x3d"display:none"\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0435\u0442 \x3c/button\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportDigitalSignaturesDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"signaturesGridHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"signaturesPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.checkSign()"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.signaturesGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.signaturesGrid, this.dialogObject.signaturesPopupMenu, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"signaturesGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" headerMenu\x3d"this.signaturesPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"USERNAME" width\x3d"150px"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"AUTHID" width\x3d"120px"\x3e \u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"SIGN_DATE" width\x3d"120px"\x3e \u0414\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"NOTE" width\x3d"150px"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"SIGN_STATE" width\x3d"120px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \x3c/th\x3e\x3cth field\x3d"STRUCT_STATE" width\x3d"130px"\x3e \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \x3c/th\x3e\x3cth field\x3d"OWNER" width\x3d"150px"\x3e \u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u042d\u0426\u041f \x3c/th\x3e\x3cth field\x3d"TO_NAME" width\x3d"150px"\x3e \u041a\u043e\u043c\u0443 \u0432\u044b\u0434\u0430\u043d \x3c/th\x3e\x3cth field\x3d"CERT_NOTE" width\x3d"150px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"FROM_DATE" width\x3d"120px"\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d \u0441 \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"TO_DATE" width\x3d"120px"\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d \u043f\u043e \x3c/th\x3e\x3cth field\x3d"FROM_NAME" width\x3d"150px"\x3e \u041a\u0435\u043c \u0432\u044b\u0434\u0430\u043d \x3c/th\x3e\x3cth field\x3d"ISSUER" width\x3d"150px"\x3e \u0418\u0437\u0434\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"SUBJECT" width\x3d"150px"\x3e \u0421\u0443\u0431\u044a\u0435\u043a\u0442 \x3c/th\x3e\x3cth field\x3d"THUMBPRINT" width\x3d"150px"\x3e \u041e\u0442\u043f\u0435\u0447\u0430\u0442\u043e\u043a \x3c/th\x3e\x3cth field\x3d"SERIAL" width\x3d"150px"\x3e \u0421\u0435\u0440\u0438\u0439\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \x3c/th\x3e\x3cth field\x3d"SIMPLESIGN" formatter\x3d"parus.parus8.formatBoolean" width\x3d"120px"\x3e \u041f\u042d\u041f \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportRecalculateValuesDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b: \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0430\u0441\u0447\u0451\u0442\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:109px; width:480px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100px"\x3e\x3cb\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceCalcType\'" dojoAttachPoint\x3d"recalculateTypeEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"calculateResultSubReportsCheckBox" dojotype\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportsConditionsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:427px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoAttachPoint\x3d"requsitesPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3cdiv dojoAttachPoint\x3d"commonGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041e\u0431\u0449\u0438\u0435"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr style\x3d"display:none"\x3e\x3ctd width\x3d"150px"\x3e \x26#160; \x3c/td\x3e\x3ctd width\x3d"300px"\x3e \x26#160; \x3c/td\x3e\x3ctd\x3e \x26#160; \x3c/td\x3e\x3ctd width\x3d"300px"\x3e \x26#160; \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'BalanceReportForms\'" dojoAttachPoint\x3d"formCodeEdit" dojotype\x3d"parus.dictEdit" multiselect\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCodeEdit" dojotype\x3d"parus.dictEdit" multiselect\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3cbr/\x3e\x3cspan style\x3d"font-weight:100;font-size:80%"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNNAME\'" dojoAttachPoint\x3d"agentNameEdit" dojotype\x3d"parus.dictEdit" multiselect\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430 \u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateFromEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:150px"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd\x3e\x3cb\x3e \u043f\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"dateToEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:150px"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"statusGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430"\x3e\x3ctable dojoAttachPoint\x3d"statusTable" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"20%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u041d\u043e\u0432\u044b\u0439 \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"20%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"1"\x3e\x3c/input\x3e\x3cb\x3e \u0418\u0437\u043c\u0435\u043d\u0435\u043d \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"20%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"2"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"20%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"3"\x3e\x3c/input\x3e\x3cb\x3e \u0412 \u0441\u0432\u043e\u0434\u0435 \x3c/b\x3e\x3c/td\x3e\x3ctd style\x3d"display:none" width\x3d"0"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"4"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u0432\u0435\u0434\u0435\u043d \u0431\u0435\u0437 \u0438\u0442\u043e\u0433\u043e\u0432 \x3c/b\x3e\x3c/td\x3e\x3ctd style\x3d"display:none" width\x3d"0"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"5"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u0432\u0435\u0434\u0435\u043d \u0441 \u0438\u0442\u043e\u0433\u0430\u043c\u0438 \x3c/b\x3e\x3c/td\x3e\x3ctd style\x3d"display:none" width\x3d"0"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"7"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u0432\u0435\u0434\u0435\u043d \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"20%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"6"\x3e\x3c/input\x3e\x3cb\x3e \u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"checkGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"1"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"50%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u041d\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"sentGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"1"\x3e\x3c/input\x3e\x3cb\x3e \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"50%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u041d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"historyGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0437\u043da\u0447\u0435\u043d\u0438\u0439"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"33%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"1"\x3e\x3c/input\x3e\x3cb\x3e \u0414\u0430 \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"33%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u041d\u0435\u0442 \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"33%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"2"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"historyLastGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"1"\x3e\x3c/input\x3e\x3cb\x3e \u0414\u0430 \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"50%"\x3e\x3cinput checked\x3d"true" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u041d\u0435\u0442 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.clearConditions()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportsExchangeExportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430."\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:365px; width:530px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0412\u0438\u0434 \u043e\u0431\u043c\u0435\u043d\u0430 \u043e\u0442\u0447\u0435\u0442\u0441\u043d\u043e\u0441\u0442\u044c\u044e"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0412\u0438\u0434 \u043e\u0431\u043c\u0435\u043d\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'BalanceReportExchangeKinds\'" dojoAttachPoint\x3d"exchangeKind" dojotype\x3d"parus.dictEdit" onChange\x3d"this.dialogObject.exchangeKindChanged()" required\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"useJournal" dojoType\x3d"dijit.form.CheckBox" onChange\x3d"this.dialogObject.useJournalChanged()"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"useJournalLabel"\x3e\u0427\u0435\u0440\u0435\u0437 \u0436\u0443\u0440\u043d\u0430\u043b \u043e\u0431\u043c\u0435\u043d\u0430\x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" style\x3d"margin-top:10px" title\x3d"\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041d\u043e\u043c\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput constraints\x3d"{fractional:false}" dojoAttachPoint\x3d"versionNumber" dojotype\x3d"dijit.form.NumberTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"periodEdit" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e (\u041d\u0435\u0442) \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041c\u0435\u0441\u044f\u0447\u043d\u0430\u044f \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041a\u0432\u0430\u0440\u0442\u0430\u043b\u044c\u043d\u0430\u044f \x3c/option\x3e\x3coption value\x3d"3"\x3e \u0413\u043e\u0434\u043e\u0432\u0430\u044f \x3c/option\x3e\x3coption value\x3d"4"\x3e \u0420\u0435\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"reportTypeEdit" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u0412\u0441\u0435\u0433\u0434\u0430 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"reportEdit" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u041a\u0440\u0430\u0442\u043a\u0438\u0439 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0410\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"archiveEdit" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u0411\u0435\u0437 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0440\u0445\u0438\u0432\u044b \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041e\u0431\u0449\u0438\u0439 \u0430\u0440\u0445\u0438\u0432 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0418\u043c\u044f \u0430\u0440\u0445\u0438\u0432\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"archiveNameEdit" dojotype\x3d"dijit.form.TextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" style\x3d"margin-top:10px" title\x3d"\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u043e\u0431\u043c\u0435\u043d\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"journalCatalog" dojotype\x3d"parus.catalogDictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true" unitcode\x3d"\'BalanceReportJournal\'"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportsExchangeImportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430."\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainContainter" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:465px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center" style\x3d"overflow-x:hidden"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0412\u0438\u0434 \u043e\u0431\u043c\u0435\u043d\u0430 \u043e\u0442\u0447\u0435\u0442\u0441\u043d\u043e\u0441\u0442\u044c\u044e"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0412\u0438\u0434 \u043e\u0431\u043c\u0435\u043d\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'BalanceReportExchangeKinds\'" dojoAttachPoint\x3d"exchangeKind" dojotype\x3d"parus.dictEdit" onChange\x3d"this.dialogObject.exchangeKindChanged()" required\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"useJournal" dojoType\x3d"dijit.form.CheckBox" onChange\x3d"this.dialogObject.useJournalChanged()"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"useJournalLabel"\x3e\u0427\u0435\u0440\u0435\u0437 \u0436\u0443\u0440\u043d\u0430\u043b \u043e\u0431\u043c\u0435\u043d\u0430\x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"showJournal" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb dojoAttachPoint\x3d"showJournalLabel"\x3e\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b \u043e\u0431\u043c\u0435\u043d\u0430\x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" style\x3d"margin-top:10px" title\x3d"\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"reportDate" dojotype\x3d"dijit.form.DateTextBox"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dictionary\x3d"\'AGNLISTByAGNABBR\'" dojoAttachPoint\x3d"agentCode" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"reportTypeEdit" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u0412\u0441\u0435\u0433\u0434\u0430 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"reportEdit" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true"\x3e\x3coption value\x3d"0"\x3e \u041a\u0440\u0430\u0442\u043a\u0438\u0439 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"canOverWrite" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" name\x3d"canOverWrite"\x3e\x3coption value\x3d"0"\x3e \u041d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0414\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"recalcReports" dojoType\x3d"dijit.form.CheckBox" name\x3d"recalcReports"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"dataGroupBox" dojoType\x3d"parus.groupBox" region\x3d"top" style\x3d"margin-top:10px" title\x3d"\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438"\x3e\x3ctable cellspacing\x3d"5" dojoAttachPoint\x3d"dataGroupBoxTable" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u043e\u0442\u0447\u0435\u0442\u043e\u0432: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"reportsCatalog" dojotype\x3d"parus.catalogDictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true" unitcode\x3d"\'BalanceReports\'"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u043e\u0431\u043c\u0435\u043d\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"journalCatalog" dojotype\x3d"parus.catalogDictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true" unitcode\x3d"\'BalanceReportJournal\'"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0424\u0430\u0439\u043b\u044b \u043e\u0431\u043c\u0435\u043d\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"fileData" onchange\x3d"dijit.getEnclosingWidget(this).dialogObject.fileDataChanged()" size\x3d"32" style\x3d"font-weight:bold" multiple\x3d"1" type\x3d"file"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr dojoAttachPoint\x3d"dataGroupBoxTableButtonRow"\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cbutton dojoAttachPoint\x3d"oneMoreFileButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.oneMoreFile()"\x3e \u041f\u0440\u0438\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportsExchangeJournalDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0416\u0443\u0440\u043d\u0430\u043b \u043e\u0431\u043c\u0435\u043d\u0430 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0416\u0443\u0440\u043d\u0430\u043b \u043e\u0431\u043c\u0435\u043d\u0430 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"popupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.grid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.grid, null, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"grid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" style\x3d"height:300px"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"JUR_PERS_CODE" width\x3d"161px"\x3e \u041f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"REC_DATE" width\x3d"161px"\x3e \u0414\u0430\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"LAST_CHANGE" width\x3d"161px"\x3e \u0414\u0430\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth field\x3d"REC_STATUS" width\x3d"161px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441 \x3c/th\x3e\x3cth field\x3d"AGNABBR" width\x3d"161px"\x3e \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \x3c/th\x3e\x3cth field\x3d"DOC_FORM" width\x3d"161px"\x3e \u041a\u043e\u0434 \u0444\u043e\u0440\u043c\u044b \x3c/th\x3e\x3cth field\x3d"DOC_PERIOD" width\x3d"161px"\x3e \u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c \x3c/th\x3e\x3cth dataType\x3d"2" field\x3d"DOC_DATE" width\x3d"161px"\x3e \u041e\u0442\u0447\u0435\u0442\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"DOC_KIND" formatter\x3d"parus.balance.formatReportKind" width\x3d"161px"\x3e \u0422\u0438\u043f \u043e\u0442\u0447\u0435\u0442\u0430 \x3c/th\x3e\x3cth field\x3d"FILENAME" width\x3d"161px"\x3e \u0418\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \x3c/th\x3e\x3cth field\x3d"DESCRIPTION" width\x3d"161px"\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"NOTE" width\x3d"161px"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"FLOWID" width\x3d"161px"\x3e \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0431\u043e\u0440\u043e\u0442\u0430 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportsFileExportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0432 \u0444\u0430\u0439\u043b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:88px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"200"\x3e\x3cb\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'UserProcedures\'" dojoAttachPoint\x3d"userProcEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceReportsFileImportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:140px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cform dojoAttachPoint\x3d"postForm"\x3e\x3cinput dojoAttachPoint\x3d"impparams" name\x3d"impparams" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput dojoAttachPoint\x3d"unitcode" name\x3d"unitcode" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput dojoAttachPoint\x3d"userprocValue" name\x3d"userproc" type\x3d"hidden"\x3e\x3c/input\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"200"\x3e\x3cb\x3e \u0424\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"fileData" multiple\x3d"1" name\x3d"fileData" size\x3d"32" style\x3d"font-weight:bold" type\x3d"file"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'UserProcedures\'" dojoAttachPoint\x3d"userProcEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"binaryDataCheckBox" dojoType\x3d"dijit.form.CheckBox" name\x3d"mode"\x3e\x3c/input\x3e\x3cb\x3e \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/form\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoAttachPoint\x3d"OKButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.performLoad()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"CancelButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceRowCountDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0441\u0442\u0440\u043e\u043a"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:88px; width:340px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"120px"\x3e\x3cb\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:1, max:1000, fractional:false}" dojoAttachPoint\x3d"rowCountEdit" dojotype\x3d"dijit.form.NumberTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceStatusesDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0431\u043e\u0440 \u0441\u0442\u0430\u0442\u0443\u0441\u0430"\x3e\x3cdiv dojoAttachPoint\x3d"mainConainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:470px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable dojoAttachPoint\x3d"statusesGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" selectionMode\x3d"single" style\x3d"height:300px" width\x3d"100%"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"CODE" width\x3d"572px"\x3e \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044b \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceSubReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:193px; width:440px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"requsitesPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100"\x3e\x3cb\x3e \u0420\u0430\u0437\u0440\u0435\u0437: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"sectionCodeEdit" dojotype\x3d"parus.dictEdit" onDictButtonClick\x3d"{return this.dialogObject.selectSection()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" maxLength\x3d"240" rows\x3d"4" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceTemplateGridExtraDictionaryDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:700px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoAttachPoint\x3d"headerPaneText" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e\x3cspan class\x3d"filterIndicator" dojoAttachPoint\x3d"filterIndicator" onclick\x3d"dijit.getEnclosingWidget(this).dialogObject.executeConditions()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043e\u0442\u0431\u043e\u0440."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" style\x3d"margin:0; overflow:hidden; width:100%; height:100%"\x3e\x3cdiv class\x3d"balanceGrid" dojoAttachPoint\x3d"grid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"this.dialogObject.gridFilterChanged(arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" onSelected\x3d"this.dialogObject.gridChanged()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoAttachPoint\x3d"OKButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"cancelButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"cloneTable" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb class\x3d"balanceReadOnlyHeader" dojoAttachPoint\x3d"cloneTableLabel"\x3e \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceTemplatesDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0431\u043e\u0440 \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u0430"\x3e\x3cdiv dojoAttachPoint\x3d"mainConainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:470px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable dojoAttachPoint\x3d"templatesGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" selectionMode\x3d"single" style\x3d"height:300px" width\x3d"100%"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"NAME" width\x3d"570px"\x3e \u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"CancelButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceUnitsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0431\u043e\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u0430"\x3e\x3cdiv dojoAttachPoint\x3d"mainConainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:470px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable canSort\x3d"return false" dojoAttachPoint\x3d"unitsGrid" dojoType\x3d"dojox.grid.DataGrid" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" selectionMode\x3d"single" style\x3d"height:300px" width\x3d"100%"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"NAME" width\x3d"570px"/\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceUserCalcsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430"\x3e\x3cdiv dojoAttachPoint\x3d"mainConainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:470px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable dojoAttachPoint\x3d"calcsGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" selectionMode\x3d"single" style\x3d"height:300px" width\x3d"100%"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"NAME" width\x3d"570px"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u044b \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceUserProcParamsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:370px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"overflow-y:scroll"\x3e\x3ctable cellspacing\x3d"5" dojoAttachPoint\x3d"paramsTable" width\x3d"100%"\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceUserProcsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b"\x3e\x3cdiv dojoAttachPoint\x3d"mainConainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:470px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable canSort\x3d"return false" dojoAttachPoint\x3d"userProcsGrid" dojoType\x3d"dojox.grid.DataGrid" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.apply()" selectionMode\x3d"single" style\x3d"height:300px" width\x3d"100%"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"NAME" width\x3d"570px"/\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceUserReportParamsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:370px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"overflow-y:scroll"\x3e\x3ctable cellspacing\x3d"5" dojoAttachPoint\x3d"paramsTable" width\x3d"100%"\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"menu" dojoType\x3d"dijit.Menu" style\x3d"display: none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"PCxlsCustomIcon" onClick\x3d"this.dialogObject.downloadExcel()"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442 \u0432 Excel \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.downloadPDF()"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.downloadHTML()"\x3e \u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML \x3c/li\x3e\x3c/ul\x3e\x3cbutton dojoAttachPoint\x3d"QueueButton" dojoType\x3d"dijit.form.Button" style\x3d"left:5px;position:absolute" onClick\x3d"this.dialogObject.enqueue()"\x3e\x3cb\x3e \u0412 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"OKButton" dojoType\x3d"dijit.form.ComboButton" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceValuesHistoryDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:214px; width:540px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100"\x3e\x3cb\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"userEdit" dojoType\x3d"dijit.form.ValidationTextBox" readonly\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0430\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateEdit" dojoType\x3d"dijit.form.ValidationTextBox" readonly\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" maxLength\x3d"240" rows\x3d"4" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","balanceZoomDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041c\u0430\u0441\u0448\u0442\u0430\u0431"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:88px; width:340px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"120px"\x3e\x3cb\x3e \u041c\u0430\u0441\u0448\u0442\u0430\u0431, %: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:10, max:1000, fractional:false}" dojoAttachPoint\x3d"zoomEdit" dojotype\x3d"dijit.form.NumberTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","catalogNameDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:88px; width:540px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"170px"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"catalogNameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","changePasswordDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:112px; width:440px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"180px"\x3e\x3cb\x3e \u041d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"passwordEdit" dojotype\x3d"dijit.form.ValidationTextBox" missingMessage\x3d"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f" required\x3d"true" style\x3d"width:100%" trim\x3d"true" type\x3d"password"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"passwordEditCopy" dojotype\x3d"dijit.form.ValidationTextBox" missingMessage\x3d"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f" required\x3d"true" style\x3d"width:100%" trim\x3d"true" type\x3d"password"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","confirmationDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435"\x3e\x3cdiv class\x3d"balanceConfirmationDialog"\x3e\x3cdiv style\x3d"padding:10px"\x3e\x3ctable\x3e\x3ctr\x3e\x3ctd width\x3d"16px"\x3e\x3cdiv class\x3d"dijitIconError" dojoAttachPoint\x3d"icon"\x3e \x26#160; \x3c/div\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv style\x3d"margin:10px"\x3e\x3cspan class\x3d"balanceConfirmationText" dojoAttachPoint\x3d"messageText"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cdiv align\x3d"center" dojoAttachPoint\x3d"buttonRow" style\x3d"width:100%"\x3e\x3cbutton dojoAttachPoint\x3d"yesButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e \u0414\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"noButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041d\u0435\u0442 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"cancelButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()" style\x3d"display:none"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designer.html",'\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.formsCatalogTreeHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.formsCatalogTreePopupMenu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.CheckedMenuItem" onClick\x3d"parus.catalogActions.listCatalogTree(parus.balance.formsCatalogTree)"\x3e \u0412\u0441\u0435 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.checkChildren(parus.balance.formsCatalogTree)"\x3e \u0421\u043f\u0438\u0441\u043e\u043a \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.formsCatalogTree.uncheckAll()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.expandCatalogTree(parus.balance.formsCatalogTree)"\x3e \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"CATALOG_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.insertCatalog(parus.balance.formsCatalogTree)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.updateCatalog(parus.balance.formsCatalogTree)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_MOVE" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.moveCatalog(parus.balance.formsCatalogTree)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"CATALOG_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.catalogActions.deleteCatalog(parus.balance.formsCatalogTree)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.catalogActions.refreshCatalogTree(parus.balance.formsCatalogTree)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, parus.balance.formsCatalogTreePopupMenu, \'parus.balance.formsCatalogTree\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv allowChecks\x3d"true" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" jsid\x3d"parus.balance.formsCatalogTree" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"parus.balance.catalogTreeChange(parus.balance.formsCatalogTree, null, parus.balance.formsMasterGrid, \'parus.balance.formsMasterGrid\', parus.balance.formsCatalogTreePopupMenu)" onClose\x3d"parus.balance.catalogTreeChange(parus.balance.formsCatalogTree, null, parus.balance.formsMasterGrid, \'parus.balance.formsMasterGrid\', parus.balance.formsCatalogTreePopupMenu)" onOpen\x3d"parus.balance.catalogTreeChange(parus.balance.formsCatalogTree, null, parus.balance.formsMasterGrid, \'parus.balance.formsMasterGrid\', parus.balance.formsCatalogTreePopupMenu)" persist\x3d"false" style\x3d"overflow:auto"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.formsMasterGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0424\u043e\u0440\u043c\u044b \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.formsMasterGridPopupMenu" style\x3d"display: none"\x3e\x3cli actionCode\x3d"BLREPFORM_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.createForm(parus.balance.formsCatalogTree, parus.balance.formsMasterGrid)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPFORM_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.duplicateForm(parus.balance.formsCatalogTree, parus.balance.formsMasterGrid)"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPFORM_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.editForm(parus.balance.formsMasterGrid)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPFORM_MOVE_OUT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.moveForm(parus.balance.formsMasterGrid)"\x3e \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPFORM_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.deleteForm(parus.balance.formsMasterGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.formsMasterGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.formsMasterGrid, \'BalanceReportForms\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.formsMasterGrid, \'BalanceReportForms\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.formsMasterGrid, \'BalanceReportForms\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.formsMasterGrid, parus.balance.formsDetailGrid, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.formsMasterGrid, parus.balance.formsMasterGridPopupMenu, \'parus.balance.formsMasterGrid\', parus.balance.formsCatalogTree, null, \'BalanceReportForms\', \'BalanceReportForms\', \'BalanceReportForms\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.formsMasterGrid" headerMenu\x3d"parus.balance.formsMasterGridPopupMenu" jsid\x3d"parus.balance.formsMasterGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.formsMasterGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editForm(parus.balance.formsMasterGrid)" onSelected\x3d"parus.balance.formsMasterGridChange(\'parus.balance.formsDetailGrid\', \'parus.balance.formsMasterGrid\', \'parus.balance.formsCatalogTree\')" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.formsMasterGridStore(parus.balance.formsCatalogTree, \'parus.balance.formsMasterGrid\')"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"CODE" sortField\x3d"M.CODE" width\x3d"121px"\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434 \x3c/th\x3e\x3cth field\x3d"NAME" sortField\x3d"M.NAME" width\x3d"200px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"SSTATUS_MODEL" sortField\x3d"SM.CODE" width\x3d"161px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u0447\u0435\u0442\u0430 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043c\u043d\u0435\u043c\u043e\u043a\u043e\u0434)\x3c/span\x3e\x3c/th\x3e\x3cth field\x3d"SSTATUS_MODEL_NAME" sortField\x3d"SM.NAME" width\x3d"161px"\x3e \u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u0447\u0435\u0442\u0430 \x3cbr/\x3e\x3cspan style\x3d"font-size:80%;"\x3e(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435)\x3c/span\x3e\x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.balance.formsDetailGridPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.balance.formsDetailGridHeaderPane" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0420\u0435\u0434\u0430\u043a\u0446\u0438\u0438 \u0444\u043e\u0440\u043c \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu" jsid\x3d"parus.balance.formsDetailGridPopupMenu" style\x3d"display: none"\x3e\x3cli actionCode\x3d"BLREPFORMED_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.createEdition(parus.balance.formsDetailGrid)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPFORMED_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.duplicateEdition(parus.balance.formsDetailGrid)"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPFORMED_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.editEdition(parus.balance.formsDetailGrid)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLREPFORMED_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.deleteEdition(parus.balance.formsDetailGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(parus.balance.formsDetailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.editionSections(parus.balance.formsDetailGrid)"\x3e \u0420\u0430\u0437\u0440\u0435\u0437\u044b \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.editionIndexes(parus.balance.formsDetailGrid)"\x3e \u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.editionTables(parus.balance.formsDetailGrid)"\x3e \u0422\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.editionLinks(parus.balance.formsDetailGrid)"\x3e \u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.editionCheckLists(parus.balance.formsDetailGrid)"\x3e \u041f\u0435\u0440\u0435\u0447\u043d\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.editionFormulas(parus.balance.formsDetailGrid)"\x3e \u0424\u043e\u0440\u043c\u0443\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli actionCode\x3d"BLREPFORMED_SPLIT" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"parus.balance.editionSplit(parus.balance.formsDetailGrid)"\x3e \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" default\x3d"true" onClick\x3d"parus.balance.editionTemplates(parus.balance.formsDetailGrid)"\x3e \u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.editionCheckTemplates(parus.balance.formsDetailGrid)"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u043e\u0432... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(parus.balance.formsDetailGrid, \'BalanceReportFormsEditions\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(parus.balance.formsDetailGrid, \'BalanceReportFormsEditions\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(parus.balance.formsDetailGrid, \'BalanceReportFormsEditions\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(parus.balance.formsDetailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(parus.balance.formsDetailGrid, parus.balance.formsDetailGridPopupMenu, \'parus.balance.formsDetailGrid\', null, null, \'BalanceReportFormsEditions\', \'BalanceReportFormsEditions\', \'BalanceReportFormsEditions\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" gridid\x3d"parus.balance.formsDetailGrid" headerMenu\x3d"parus.balance.formsDetailGridPopupMenu" jsid\x3d"parus.balance.formsDetailGrid" onFilterChanged\x3d"parus.balance.gridFilterChanged(\'parus.balance.formsDetailGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"parus.balance.editionTemplates(parus.balance.formsDetailGrid)" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}" store\x3d"parus.balance.formsDetailGridStore(parus.balance.formsCatalogTree, parus.balance.formsMasterGrid, \'parus.balance.formsDetailGrid\')"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"BEGDATE" width\x3d"121px"\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441 \x3c/th\x3e\x3cth field\x3d"ENDDATE" width\x3d"121px"\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e \x3c/th\x3e\x3cth field\x3d"PERIOD_CODE" sortField\x3d"P.CODE" width\x3d"121px"\x3e \u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c \x3c/th\x3e\x3cth field\x3d"AUTOCALC" formatter\x3d"parus.parus8.formatBoolean" width\x3d"121px"\x3e \u0410\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442 \x3c/th\x3e\x3cth field\x3d"NOTES" width\x3d"200px"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"RESULTS" formatter\x3d"parus.parus8.formatBoolean" width\x3d"200px"\x3e \u0420\u0430\u0441\u0447\u0451\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \x3c/th\x3e\x3cth field\x3d"CALC_CODE" sortField\x3d"TR1.CODE" width\x3d"200px"\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \x3c/th\x3e\x3cth field\x3d"IGNORE_WARNINGS" formatter\x3d"parus.parus8.formatBoolean" width\x3d"200px"\x3e \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \u0441 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerCheckDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:170px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0443\u043b\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'UserProceduresWithDetails\'" dojoAttachPoint\x3d"userProcEdit" dojotype\x3d"parus.dictEdit" onChange\x3d"this.dialogObject.userProcChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%" readonly\x3d"true" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0441\u0442\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"levelSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u041e\u0448\u0438\u0431\u043a\u0430 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerCheckListDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:170px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerEditionSplitDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u0438"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:110px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u0414\u0430\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateEdit" dojoType\x3d"dijit.form.DateTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerIndexDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:260px; width:450px"\x3e\x3cdiv class\x3d"balanceInternalPages" dojoAttachPoint\x3d"tabContainer" dojoType\x3d"dijit.layout.TabContainer" region\x3d"center"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"columnsSettingsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\x26lt;/br\x26gt;\x26#160;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"dataTypeSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.dataTypeChanged()" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u0421\u0442\u0440\u043e\u043a\u0430 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0427\u0438\u0441\u043b\u043e \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0414\u0430\u0442\u0430 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"valuePane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435\x26lt;/br\x26gt;\x26#160;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"parus.groupBox" dojoAttachPoint\x3d"strValuePane" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"200px"\x3e\x3cb\x3e \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:0, fractional:false}" dojoAttachPoint\x3d"strLenEdit" dojotype\x3d"dijit.form.NumberTextBox" onChange\x3d"this.dialogObject.strLenChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"begStrValueEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%; height:3em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0428\u0430\u0431\u043b\u043e\u043d \u0432\u0432\u043e\u0434\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'DesignerBalanceIndexesInputPatterns\'" dojoAttachPoint\x3d"patternEdit" dojotype\x3d"parus.editableDictEdit" editDialogClass\x3d"parus.designerIndexInputPatternDialog" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"trimStrCheckBox" dojoType\x3d"dijit.form.CheckBox" checked\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" dojoAttachPoint\x3d"numValuePane" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"200px"\x3e\x3cb\x3e \u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:1, max:15, fractional:false}" dojoAttachPoint\x3d"intPartEdit" dojotype\x3d"dijit.form.NumberTextBox" onChange\x3d"this.dialogObject.intPartChanged()" required\x3d"true" style\x3d"width:70px" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd align\x3d"left"\x3e,\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput constraints\x3d"{min:0, max:14, fractional:false}" dojoAttachPoint\x3d"fracPartEdit" dojotype\x3d"dijit.form.NumberTextBox" onChange\x3d"this.dialogObject.fracPartChanged()" required\x3d"true" style\x3d"width:70px" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"3"\x3e\x3cinput dojoAttachPoint\x3d"begNumValueEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"3"\x3e\x3cinput dojoAttachPoint\x3d"minNumValueEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd colspan\x3d"3"\x3e\x3cinput dojoAttachPoint\x3d"maxNumValueEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" dojoAttachPoint\x3d"dateValuePane" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"200px"\x3e\x3cb\x3e \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"begDateValueEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"minDateValueEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"maxDateValueEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerIndexFormulaDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:150px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'BalanceCalcTypeEditable\'" dojoAttachPoint\x3d"recalculateTypeEdit" dojotype\x3d"parus.editableDictEdit" editDialogClass\x3d"parus.designerRecalculateTypeDialog" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0443\u043b\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'UserProceduresWithDetails\'" dojoAttachPoint\x3d"userProcEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateFromEdit" dojotype\x3d"dijit.form.DateTextBox" required\x3d"true" style\x3d"width:100px"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd\x3e\x3cb\x3e \u043f\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"dateToEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100px"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerIndexGroupDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0413\u0440\u0443\u043f\u043f\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:180px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerIndexGroupPartDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0433\u0440\u0443\u043f\u043f\u044b: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:110px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"200px"\x3e\x3cb\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0433\u0440\u0443\u043f\u043f\u044b: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"indexEdit" dictionary\x3d"\'DesignerBalanceIndexesWithDetails\'" editDialogClass\x3d"parus.designerIndexDialog" editDetailDialogClass\x3d"parus.designerIndexFormulaDialog" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerIndexInputPatternDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0428\u0430\u0431\u043b\u043e\u043d\u044b \u0432\u0432\u043e\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:310px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u0422\u0435\u043a\u0441\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u0430: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"patternEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerRecalculateTypeDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:170px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportCheckListDialog.html",'\x3cdiv\x3e\r\n  \x3cdiv dojoType\x3d"dijit.Dialog"\r\n       title\x3d"\u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0444\u043e\u0440\u043c\u044b: "\x3e\r\n    \x3cdiv design\x3d"headline"\r\n         dojoAttachPoint\x3d"mainBorderContainer"\r\n         dojoType\x3d"dijit.layout.BorderContainer"\r\n         gutters\x3d"true"\r\n         style\x3d"height:150px;\r\n                width:400px"\x3e\r\n      \x3cdiv class\x3d"dialogContentPane"\r\n           design\x3d"headline"\r\n           dojoType\x3d"dijit.layout.BorderContainer"\r\n           gutters\x3d"false"\r\n           region\x3d"center"\x3e\r\n        \x3cdiv dojoType\x3d"parus.groupBox"\r\n             region\x3d"top"\x3e\r\n          \x3ctable cellspacing\x3d"5"\r\n                 width\x3d"100%"\x3e\r\n            \x3ctr\x3e\r\n              \x3ctd width\x3d"150px"\x3e\r\n                \x3cb\x3e \u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a: \x3c/b\x3e\r\n              \x3c/td\x3e\r\n              \x3ctd align\x3d"right" colspan\x3d"3"\x3e\r\n                \x3cinput dojotype\x3d"parus.editableDictEdit"\r\n                       dojoAttachPoint\x3d"checkListEdit"\r\n                       dictionary\x3d"\'BalanceCheckListsWithDetails\'"\r\n                       editDialogClass\x3d"parus.designerCheckListDialog"\r\n                       editDetailDialogClass\x3d"parus.designerCheckDialog"\r\n                       required\x3d"true"\r\n                       style\x3d"width:100%"\r\n                       trim\x3d"true"\x3e\r\n                \x3c/input\x3e\r\n              \x3c/td\x3e\r\n            \x3c/tr\x3e\r\n            \x3ctr\x3e\r\n              \x3ctd width\x3d"150px"\x3e\r\n                \x3cb\x3e \u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c: \x3c/b\x3e\r\n              \x3c/td\x3e\r\n              \x3ctd align\x3d"right" colspan\x3d"3"\x3e\r\n                \x3cinput dojotype\x3d"parus.editableDictEdit"\r\n                       dojoAttachPoint\x3d"periodEdit"\r\n                       dictionary\x3d"\'DesignerBalanceReportPeriods\'"\r\n                       editDialogClass\x3d"parus.designerReportPeriodDialog"\r\n                       editDetailDialogClass\x3d"parus.designerReportPeriodDateDialog"\r\n                       style\x3d"width:100%"\r\n                       trim\x3d"true"\x3e\r\n                \x3c/input\x3e\r\n              \x3c/td\x3e\r\n            \x3c/tr\x3e\r\n            \x3ctr\x3e\r\n              \x3ctd colspan\x3d"2"\x3e\r\n                \x3cinput dojoAttachPoint\x3d"mainCheckBox"\r\n                       dojotype\x3d"dijit.form.CheckBox"\x3e\r\n                \x3c/input\x3e\r\n                \x3cb\x3e \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \x3c/b\x3e\r\n              \x3c/td\x3e\r\n            \x3c/tr\x3e\r\n          \x3c/table\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv align\x3d"right"\r\n           class\x3d"dialogContentPane"\r\n           dojoType\x3d"dijit.layout.ContentPane"\r\n           minSize\x3d"30"\r\n           region\x3d"bottom"\x3e\r\n        \x3cbutton dojoType\x3d"dijit.form.Button"\r\n                onClick\x3d"this.dialogObject.apply()"\x3e\r\n          \x3cb\x3e OK \x3c/b\x3e\r\n        \x3c/button\x3e\r\n        \x3cbutton dojoType\x3d"dijit.form.Button"\r\n                onClick\x3d"this.dialogObject.close()"\x3e\r\n          \u041e\u0442\u043c\u0435\u043d\u0430\r\n        \x3c/button\x3e\r\n        \x3cbutton dojoAttachPoint\x3d"HelpButton"\r\n                dojoType\x3d"dijit.form.Button"\r\n                onClick\x3d"this.dialogObject.helpButtonClick()"\x3e\r\n          \u0421\u043f\u0440\u0430\u0432\u043a\u0430\r\n        \x3c/button\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e');
b.cache("parus","designerReportDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u043e\u0432: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:200px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceReportStatusModels\'" dojoAttachPoint\x3d"statusModelEdit" dojotype\x3d"parus.dictEdit" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportEditionDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u044b \u043e\u0442\u0447\u0435\u0442\u0430: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:405px; width:450px"\x3e\x3cdiv class\x3d"balanceInternalPages" dojoAttachPoint\x3d"tabContainer" dojoType\x3d"dijit.layout.TabContainer" region\x3d"center"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"columnsSettingsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u0438 \u0444\u043e\u0440\u043c\u044b \u043e\u0442\u0447\u0435\u0442\u0430\x26lt;/br\x26gt;\x26#160;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041f\u0435\u0440\u0438\u043e\u0434 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateFromEdit" dojotype\x3d"dijit.form.DateTextBox" required\x3d"true" style\x3d"width:150px"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd\x3e\x3cb\x3e \u043f\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"dateToEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:150px"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0430\u0441\u0447\u0435\u0442\u0430"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'BalanceCalcTypeEditable\'" dojoAttachPoint\x3d"recalculateTypeEdit" dojotype\x3d"parus.editableDictEdit" editDialogClass\x3d"parus.designerRecalculateTypeDialog" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"calculateResultSubReportsCheckBox" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0441\u0447\u0435\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"periodEdit" dictionary\x3d"\'DesignerBalanceReportPeriods\'" editDialogClass\x3d"parus.designerReportPeriodDialog" editDetailDialogClass\x3d"parus.designerReportPeriodDateDialog" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"autoRecalculateCheckBox" dojoType\x3d"dijit.form.CheckBox" checked\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0410\u0432\u0442\u043e\u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"ignoreWarningsCheckBox" dojoType\x3d"dijit.form.CheckBox" checked\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u0430 \u0441 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" intermediateChanges\x3d"true" maxLength\x3d"2000" rows\x3d"3" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"columnsSettingsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438\x26lt;/br\x26gt;\x26#160;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"uploadWithSubReportsCheckBox" dojoType\x3d"dijit.form.CheckBox" checked\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430\u043c\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041f\u043e\u0434\u043f\u0438\u0441\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0434\u043b\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"subscriptToTextEdit" dojotype\x3d"dijit.form.SimpleTextarea" intermediateChanges\x3d"true" maxLength\x3d"2000" rows\x3d"14" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportFormulaDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:170px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'BalanceCalcTypeEditable\'" dojoAttachPoint\x3d"recalculateTypeEdit" dojotype\x3d"parus.editableDictEdit" editDialogClass\x3d"parus.designerRecalculateTypeDialog" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0443\u043b\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'UserProceduresWithDetails\'" dojoAttachPoint\x3d"userProcEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateFromEdit" dojotype\x3d"dijit.form.DateTextBox" required\x3d"true" style\x3d"width:100px"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd\x3e\x3cb\x3e \u043f\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"dateToEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100px"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportIndexDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:240px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"indexEdit" dictionary\x3d"\'DesignerBalanceIndexesWithDetails\'" editDialogClass\x3d"parus.designerIndexDialog" editDetailDialogClass\x3d"parus.designerIndexFormulaDialog" onChange\x3d"this.dialogObject.indexChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0421\u043b\u043e\u0432\u0430\u0440\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.dictEdit" dojoAttachPoint\x3d"dictionaryEdit" dictionary\x3d"\'ExtraDictionariesWithDetails\'" onChange\x3d"this.dialogObject.dictionaryChanged()" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:1, fractional:false}" dojoAttachPoint\x3d"priorityEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"agrFuncSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" disabled\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u0421\u0443\u043c\u043c\u0430 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \x3c/option\x3e\x3coption value\x3d"3"\x3e \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"nullableCheckBox" dojotype\x3d"dijit.form.CheckBox" checked\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"dictCheckCheckBox" dojotype\x3d"dijit.form.CheckBox" disabled\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044e \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"dictValNoteCheckBox" dojotype\x3d"dijit.form.CheckBox" disabled\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0412\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportLinkDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:110px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"reportEdit" dictionary\x3d"\'BalanceReportFormsWithDetails\'" editDialogClass\x3d"parus.designerReportDialog" editDetailDialogClass\x3d"parus.designerReportEditionDialog" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportPeriodDateDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0414\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:110px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u0414\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateEdit" dojoType\x3d"dijit.form.DateTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportPeriodDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:170px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportSectionDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0430\u0437\u0440\u0435\u0437 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0444\u043e\u0440\u043c\u044b: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:110px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0420\u0430\u0437\u0440\u0435\u0437 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"sectionEdit" dictionary\x3d"\'DesignerBalanceSections\'" editDialogClass\x3d"parus.designerSectionDialog" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportTableConstraintAttributeDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0410\u0442\u0440\u0438\u0431\u0443\u0442: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:135px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput constraints\x3d"{min:1, fractional:false}" dojoAttachPoint\x3d"numbEdit" dojotype\x3d"dijit.form.NumberTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"indexEdit" dictionary\x3d"\'DesignerBalanceTableIndexesWithUnits\'" editDialogClass\x3d"parus.designerReportTableIndexDialog" onGetGridConditions\x3d"{return this.dialogObject.getIndexCondition()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportTableConstraintDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:420px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"3"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3cinput dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:3em"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0438\u043f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"2"\x3e\x3cselect dojoAttachPoint\x3d"constrTypeEdit" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" onChange\x3d"this.dialogObject.constrTypeEditChanged()"\x3e\x3coption value\x3d"0"\x3e \u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \x3c/option\x3e\x3coption value\x3d"1"\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"3"\x3e\x3cb\x3e \u0422\u0435\u043a\u0441\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \x3c/b\x3e\x3cbr/\x3e\x3cinput dojoAttachPoint\x3d"textEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" disabled\x3d"true" style\x3d"width:100%; height:7em"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"3"\x3e\x3cb\x3e \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0438: \x3c/b\x3e\x3cbr/\x3e\x3cinput dojoAttachPoint\x3d"messageEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:7em"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"templateEdit" dictionary\x3d"\'BalanceReportFormsTemplates\'" onGetGridConditions\x3d"{return this.dialogObject.getTemplatesCondition()}" editDialogClass\x3d"parus.designerTemplateDialog" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"activeCheckBox" dojotype\x3d"dijit.form.CheckBox" checked\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportTableDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0444\u043e\u0440\u043c\u044b: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:280px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0420\u0435\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%" height\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"tableEdit" dictionary\x3d"\'DesignerBalanceTableModelsWithIndexes\'" dialogClass\x3d"parus.designerTableModelsDictionaryDialog" editDialogClass\x3d"parus.designerTableModelDialog" editDetailDialogClass\x3d"parus.designerTableModelIndexDialog" onChange\x3d"this.dialogObject.tableChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%; height:3em" trim\x3d"true" readonly\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:1, fractional:false}" dojoAttachPoint\x3d"priorityEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"signTotalsCheckBox" dojoType\x3d"dijit.form.CheckBox" style\x3d"margin-top:5px" checked\x3d"true" onChange\x3d"this.dialogObject.signTotalsChanged()"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u0442\u043e\u0433\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u043d\u0435\u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u0441\u0442\u0440\u043e\u043a"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"sourceToResultCheckBox" dojoType\x3d"dijit.form.CheckBox" onChange\x3d"this.dialogObject.sourceToResultChanged()"\x3e\x3c/input\x3e\x3cb\x3e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432/\u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u043e\u0432\x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"sourceToUnionCheckBox" dojoType\x3d"dijit.form.CheckBox" disabled\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f\x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerReportTableIndexDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:240px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"indexEdit" dictionary\x3d"\'DesignerBalanceTablesNotIncludedIndexes\'" dialogClass\x3d"parus.designerReportTableNotIncludedIndexesDictionaryDialog" editDialogClass\x3d"parus.designerTableModelIndexDialog" onGetGridConditions\x3d"{return this.dialogObject.getIndexCondition()}" onChange\x3d"this.dialogObject.indexChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0421\u043b\u043e\u0432\u0430\u0440\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.dictEdit" dojoAttachPoint\x3d"dictionaryEdit" dictionary\x3d"\'ExtraDictionariesWithDetails\'" onChange\x3d"this.dialogObject.dictionaryChanged()" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:1, fractional:false}" dojoAttachPoint\x3d"priorityEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"agrFuncSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" disabled\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u0421\u0443\u043c\u043c\u0430 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \x3c/option\x3e\x3coption value\x3d"3"\x3e \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"nullableCheckBox" dojotype\x3d"dijit.form.CheckBox" checked\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"dictCheckCheckBox" dojotype\x3d"dijit.form.CheckBox" disabled\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044e \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"dictValNoteCheckBox" dojotype\x3d"dijit.form.CheckBox" disabled\x3d"true"\x3e\x3c/input\x3e\x3cb\x3e \u0412\u044b\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerSectionDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0424\u043e\u0440\u043c\u0430 \u043e\u0442\u0447\u0435\u0442\u043e\u0432: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:180px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTableIndexChangePriorityDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0430"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:110px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput constraints\x3d"{min: 1, fractional:false}" dojoAttachPoint\x3d"priorityEdit" dojotype\x3d"dijit.form.NumberTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTableModelDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:200px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041c\u043d\u0435\u043c\u043e\u043a\u043e\u0434: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"codeEdit" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTableModelFormulaDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:150px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'BalanceCalcTypeEditable\'" dojoAttachPoint\x3d"recalculateTypeEdit" dojotype\x3d"parus.editableDictEdit" editDialogClass\x3d"parus.designerRecalculateTypeDialog" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0443\u043b\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dictionary\x3d"\'UserProceduresWithDetails\'" dojoAttachPoint\x3d"userProcEdit" dojotype\x3d"parus.dictEdit" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"dateFromEdit" dojotype\x3d"dijit.form.DateTextBox" required\x3d"true" style\x3d"width:100px"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd\x3e\x3cb\x3e \u043f\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"dateToEdit" dojotype\x3d"dijit.form.DateTextBox" style\x3d"width:100px"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTableModelIndexDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:150px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"indexEdit" dictionary\x3d"\'DesignerBalanceIndexesWithDetails\'" editDialogClass\x3d"parus.designerIndexDialog" editDetailDialogClass\x3d"parus.designerIndexFormulaDialog" onChange\x3d"this.dialogObject.indexChanged()" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput constraints\x3d"{min:1, fractional:false}" dojoAttachPoint\x3d"priorityEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0410\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"agrFuncSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" disabled\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u0421\u0443\u043c\u043c\u0430 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \x3c/option\x3e\x3coption value\x3d"3"\x3e \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTableModelTotalDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0418\u0442\u043e\u0433: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:280px; width:400px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0412\u0438\u0434"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"33%"\x3e\x3cinput dojoAttachPoint\x3d"intermediateKindRadio" dojoType\x3d"dijit.form.RadioButton" name\x3d"kind" checked\x3d"true" onClick\x3d"this.dialogObject.kindChanged(false)"\x3e\x3c/input\x3e \u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \x3c/td\x3e\x3ctd width\x3d"33%"\x3e\x3cinput dojoAttachPoint\x3d"totalKindRadio" dojoType\x3d"dijit.form.RadioButton" name\x3d"kind" onClick\x3d"this.dialogObject.kindChanged(true)"\x3e\x3c/input\x3e \u041e\u0431\u0449\u0438\u0439 \x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"190px"\x3e\x3cb\x3e \u0423\u0440\u043e\u0432\u0435\u043d\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right" colspan\x3d"3"\x3e\x3cinput constraints\x3d"{min:1, fractional:false}" dojoAttachPoint\x3d"priorityEdit" dojotype\x3d"dijit.form.NumberTextBox" style\x3d"width:100%" disabled\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojotype\x3d"parus.editableDictEdit" dojoAttachPoint\x3d"indexEdit" dictionary\x3d"\'DesignerBalanceTableModelIndexes\'" dialogClass\x3d"parus.designerTableModelIndexesDictionaryDialog" editDialogClass\x3d"parus.designerTableModelIndexDialog" onGetGridConditions\x3d"{return this.dialogObject.getIndexCondition()}" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0444\u043e\u0440\u043c\u0443\u043b\u044b: \x3c/b\x3e\x3cbr/\x3e\x3cinput dojoAttachPoint\x3d"formulaEdit" dojoType\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top" title\x3d"\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"33%"\x3e\x3cinput dojoAttachPoint\x3d"underDataRadio" dojoType\x3d"dijit.form.RadioButton" name\x3d"location" checked\x3d"true"\x3e\x3c/input\x3e \u041f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \x3c/td\x3e\x3ctd width\x3d"33%"\x3e\x3cinput dojoAttachPoint\x3d"overDataRadio" dojoType\x3d"dijit.form.RadioButton" name\x3d"location"\x3e\x3c/input\x3e \u041d\u0430\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTemplateDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u044b - \u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:260px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"nameEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%; height:4em" trim\x3d"true"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"usageSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u0414\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0432\u043e\u0434\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"directionSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%"\x3e\x3coption value\x3d"0"\x3e \u0412\u043d\u0438\u0437 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0412\u043f\u0440\u0430\u0432\u043e \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432 Excel: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"exportToExcelSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%" value\x3d"1"\x3e\x3coption value\x3d"0"\x3e \u041d\u0435\u0442 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0414\u0430 \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0414\u0430 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"defaultCheckBox" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTemplateRoleAndUserAssignDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u044b - \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u044f\u043c \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c: "\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:135px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u0420\u043e\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojotype\x3d"parus.dictEdit" dojoAttachPoint\x3d"roleEdit" dictionary\x3d"\'DesignerTemplateRoles\'" onChange\x3d"this.dialogObject.roleChanged()" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"160px"\x3e\x3cb\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dictionary\x3d"\'DesignerTemplateUsers\'" dojoAttachPoint\x3d"userEdit" dojotype\x3d"parus.dictEdit" onChange\x3d"this.dialogObject.userChanged()" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTemplatesCheckDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u043e\u0432: \u0443\u0441\u043b\u043e\u0432\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"mainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:130px; width:450px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"autoInsertCheckBox" dojotype\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"autoDeleteCheckBox" dojotype\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.clear()"\x3e \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","designerTemplatesDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" style\x3d"height:90%; width:90%" title\x3d"\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"top" style\x3d"height:33%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"templatesPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli actionCode\x3d"BLRPFRMTEMPLATES_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.createTemplate(this.dialogObject.templatesGrid)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLRPFRMTEMPLATES_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.duplicateTemplate(this.dialogObject.templatesGrid)"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLRPFRMTEMPLATES_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.editTemplate(this.dialogObject.templatesGrid)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLRPFRMTEMPLATES_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.deleteTemplate(this.dialogObject.templatesGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.dialogObject.templatesGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.showEditor(this.dialogObject.templatesGrid)"\x3e \u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userApplications(this.dialogObject.templatesGrid, \'BalanceReportFormsTemplates\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userProcedures(this.dialogObject.templatesGrid, \'BalanceReportFormsTemplates\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.userReports(this.dialogObject.templatesGrid, \'BalanceReportFormsTemplates\')"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0435\u0442\u044b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.PopupMenuItem"\x3e\x3cspan\x3e\u041e\u0431\u043c\u0435\u043d\x3c/span\x3e\x3cul class\x3d"balanceMenu" dojoType\x3d"dijit.Menu"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.templatesGrid, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3c/ul\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.templatesGrid, this.dialogObject.templatesPopupMenu, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"templatesGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" headerMenu\x3d"this.templatesPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass, arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.showEditor(this.dialogObject.templatesGrid)" onSelected\x3d"this.dialogObject.gridChanged()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"NAME" sortField\x3d"1" width\x3d"200px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"USAGE" formatter\x3d"parus.designerTemplatesDialog.formatUsage" width\x3d"121px"\x3e \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"EDIT_DEFAULT" formatter\x3d"parus.parus8.formatBoolean" width\x3d"200px"\x3e \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \x3c/th\x3e\x3cth field\x3d"DIRECT_TABLE" formatter\x3d"parus.designerTemplatesDialog.formatDirection" width\x3d"161px"\x3e \u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \x3c/th\x3e\x3cth field\x3d"TO_EXCEL_SIGN" formatter\x3d"parus.parus8.formatBoolean" width\x3d"200px"\x3e \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432 Excel \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoAttachPoint\x3d"detailGridPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" splitter\x3d"true"\x3e\x3cdiv class\x3d"balanceInternalPages" dojoAttachPoint\x3d"detailPages" dojoType\x3d"dijit.layout.TabContainer" style\x3d"width:100%; height:100%"\x3e\x3cdiv class\x3d"balanceTemplateContentPane" dojoAttachPoint\x3d"indexesPage" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"indexesGridHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"indexesGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.dialogObject.indexesGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.indexesGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.indexesGrid, this.dialogObject.indexesGridPopupMenu, this.dialogObject.declaredClass + \'-indexesGrid\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"indexesGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" headerMenu\x3d"this.indexesGridPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass + \'-indexesGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"CODE" width\x3d"121px"\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"COL" width\x3d"81px" formatter\x3d"parus.designerTemplatesDialog.formatTableColNumber"\x3e \u0421\u0442\u043e\u043b\u0431\u0435\u0446 \x3c/th\x3e\x3cth field\x3d"ROWN" width\x3d"81px" formatter\x3d"parus.designerTemplatesDialog.formatTableRowNumber"\x3e \u0421\u0442\u0440\u043e\u043a\u0430 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceTemplateContentPane" dojoAttachPoint\x3d"tablesPage" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u0422\u0430\u0431\u043b\u0438\u0446\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"tablesGridHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0422\u0430\u0431\u043b\u0438\u0446\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"tablesGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.tableIndexes(this.dialogObject.tablesGrid)"\x3e \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.tableTotals(this.dialogObject.tablesGrid)"\x3e \u0418\u0442\u043e\u0433\u0438... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.dialogObject.tablesGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.tablesGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.tablesGrid, this.dialogObject.tablesGridPopupMenu, this.dialogObject.declaredClass + \'-tablesGrid\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"tablesGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" headerMenu\x3d"this.tablesGridPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass + \'-tablesGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"NAME" width\x3d"250px"\x3e \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \x3c/th\x3e\x3cth field\x3d"COL" width\x3d"81px" formatter\x3d"parus.designerTemplatesDialog.formatTableColNumber"\x3e \u0421\u0442\u043e\u043b\u0431\u0435\u0446 \x3c/th\x3e\x3cth field\x3d"ROWN" width\x3d"81px" formatter\x3d"parus.designerTemplatesDialog.formatTableRowNumber"\x3e \u0421\u0442\u0440\u043e\u043a\u0430 \x3c/th\x3e\x3cth field\x3d"COL_CNT" width\x3d"131px"\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u043e\u0431\u0446\u043e\u0432 \x3c/th\x3e\x3cth field\x3d"ROWN_CNT" width\x3d"131px"\x3e \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceTemplateContentPane" dojoAttachPoint\x3d"usersPage" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u044f\u043c \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"usersGridHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u044f\u043c \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"usersGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli actionCode\x3d"BLTPLPRIVS_INSERT" defaultIcon\x3d"PCHardwareadaltCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.insertUser(this.dialogObject.usersGrid)"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLTPLPRIVS_INSERT" defaultIcon\x3d"PCcopyCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.duplicateUser(this.dialogObject.usersGrid)"\x3e \u0420\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLTPLPRIVS_UPDATE" defaultIcon\x3d"PCdocumentCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.editUser(this.dialogObject.usersGrid)"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli actionCode\x3d"BLTPLPRIVS_DELETE" defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.deleteUser(this.dialogObject.usersGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.dialogObject.usersGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.usersGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.usersGrid, this.dialogObject.usersGridPopupMenu, \'this.dialogObject.usersGrid\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"usersGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" headerMenu\x3d"this.usersGridPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass + \'-usersGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"ROLENAME" width\x3d"121px"\x3e \u0420\u043e\u043b\u044c \x3c/th\x3e\x3cth field\x3d"NAME" width\x3d"121px"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceTemplateContentPane" dojoAttachPoint\x3d"historyPage" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u0418\u0441\u0442\u043e\u0440\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"historyGridHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u0430 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"historyGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.rollbackHistory(this.dialogObject.historyGrid)"\x3e \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0432\u0435\u0440\u0441\u0438\u044e... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCreduceCustomIcon" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.deleteHistory(this.dialogObject.historyGrid)"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli defaultIcon\x3d"PCisyncCustomIcon" dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.dialogObject.historyGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.historyGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.historyGrid, this.dialogObject.historyGridPopupMenu, \'this.dialogObject.historyGrid\')"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"historyGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"false" headerMenu\x3d"this.historyGridPopupMenu" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass + \'-historyGrid\', arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"STAMP" dataType\x3d"2" width\x3d"121px"\x3e \u0420\u043e\u043b\u044c \x3c/th\x3e\x3cth field\x3d"NAME" width\x3d"121px"\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","dictionaryDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" style\x3d"display:none"\x3e\x3cdiv design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" dojoAttachPoint\x3d"dialogContentPane" gutters\x3d"true" style\x3d"height:400px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoAttachPoint\x3d"catalogPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"left" splitter\x3d"true" style\x3d"width:25%"\x3e\x3cdiv allowChecks\x3d"true" dojoAttachPoint\x3d"catalogTree" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"this.dialogObject.catalogTreeChange()" onClose\x3d"this.dialogObject.catalogTreeChange()" onOpen\x3d"this.dialogObject.catalogTreeChange()" openOnClick\x3d"true" persist\x3d"false"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoAttachPoint\x3d"headerPaneText" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e\x3cspan class\x3d"filterIndicator" dojoAttachPoint\x3d"filterIndicator" onclick\x3d"dijit.getEnclosingWidget(this).dialogObject.executeConditions()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043e\u0442\u0431\u043e\u0440."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" style\x3d"margin:0; overflow:hidden; width:100%; height:100%"\x3e\x3cdiv class\x3d"balanceGrid" dojoAttachPoint\x3d"grid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"this.dialogObject.gridFilterChanged(arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.gridDoubleClick()" onSelected\x3d"this.dialogObject.gridChange()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoAttachPoint\x3d"OKButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"cancelButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" dojoAttachPoint\x3d"detailPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:35%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"detailHeaderPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoAttachPoint\x3d"detailHeaderPaneText" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e\x3cspan class\x3d"filterIndicator" dojoAttachPoint\x3d"detailFilterIndicator" onclick\x3d"dijit.getEnclosingWidget(this).dialogObject.detailExecuteConditions()" style\x3d"display:none;cursor:pointer" title\x3d"\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043e\u0442\u0431\u043e\u0440."\x3e \x26#160;\x26#160;\x26#160; \x3c/span\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceGrid" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" minSize\x3d"30" style\x3d"margin:0; overflow:hidden; width:100%; height:100%"\x3e\x3cdiv class\x3d"balanceGrid" dojoAttachPoint\x3d"detailGrid" dojoType\x3d"dojox.grid.EnhancedGrid" onFilterChanged\x3d"this.dialogObject.detailGridFilterChanged(arguments[0], arguments[1])" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.detailGridDoubleClick()" onSelected\x3d"this.dialogObject.detailGridChange()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","embeddedApplication.html",'\x3cdiv class\x3d"windowContainer" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.WindowContainer" region\x3d"center" style\x3d"overflow:hidden; width:100%; height:100%; opacity:0; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.notificationsContainer" region\x3d"top" style\x3d"overflow:hidden; display:none"\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","errorMessageDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041e\u0448\u0438\u0431\u043a\u0430"\x3e\x3cdiv class\x3d"balanceErrorDialog"\x3e\x3cdiv style\x3d"padding:10px"\x3e\x3ctable\x3e\x3ctr\x3e\x3ctd width\x3d"16px"\x3e\x3cdiv class\x3d"dijitIconDelete" dojoAttachPoint\x3d"icon"\x3e \x26#160; \x3c/div\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv style\x3d"margin:10px"\x3e\x3cspan class\x3d"balanceErrorText" dojoAttachPoint\x3d"messageText"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cdiv align\x3d"center" dojoAttachPoint\x3d"buttonRow" style\x3d"width:100%"\x3e\x3cbutton dojoAttachPoint\x3d"closeButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","excelColorModeDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:190px; width:420px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr dojoAttachPoint\x3d"typeEditRow" style\x3d"display:none"\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u0420\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u043d\u0430 \u043b\u0438\u0441\u0442\u0430\u0445: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"typeEdit" dojotype\x3d"dijit.form.Select" style\x3d"width:100%" value\x3d"byTemplate"\x3e\x3coption value\x3d"byTemplate"\x3e \u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \x3c/option\x3e\x3coption value\x3d"bySubreport"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u0420\u0435\u0436\u0438\u043c \u0446\u0432\u0435\u0442\u043d\u043e\u0441\u0442\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"colorModeEdit" dojotype\x3d"dijit.form.Select" style\x3d"width:100%" value\x3d"2"\x3e\x3coption value\x3d"0"\x3e \u0412 \u0446\u0432\u0435\u0442\u0435 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0412 \u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f\u0445 \u0441\u0435\u0440\u043e\u0433\u043e \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0412 \u0447\u0435\u0440\u043d\u043e-\u0431\u0435\u043b\u043e\u043c \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr dojoAttachPoint\x3d"otherSheetsCheckBoxRow"\x3e\x3ctd colspan\x3d"2" width\x3d"100%"\x3e\x3cinput dojoAttachPoint\x3d"otherSheetsCheckBox" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u0441\u0442\u044b \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr dojoAttachPoint\x3d"showSaveCheckBoxRow" style\x3d"display:none"\x3e\x3ctd colspan\x3d"2" width\x3d"100%"\x3e\x3cinput dojoAttachPoint\x3d"saveCheckBox" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0432 \u0411\u0414 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e \u041e\u041a \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","excelFileFormatDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:190px; width:420px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr dojoAttachPoint\x3d"showFileFormatRow" style\x3d"display:none"\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430\u0442 \u0444\u0430\u0439\u043b\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043a\u043d\u0438\u0433\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"formatEdit" dojotype\x3d"dijit.form.Select" style\x3d"width:100%" value\x3d"xslx"\x3e\x3coption value\x3d"xlsx"\x3e \u0420\u0430\u0431\u043e\u0447\u0430\u044f \u043a\u043d\u0438\u0433\u0430 Excel \x3c/option\x3e\x3coption value\x3d"xls"\x3e \u0420\u0430\u0431\u043e\u0447\u0430\u044f \u043a\u043d\u0438\u0433\u0430 Excel 97-2003 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr dojoAttachPoint\x3d"typeEditRow" style\x3d"display:none"\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u0420\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u043d\u0430 \u043b\u0438\u0441\u0442\u0430\u0445: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"typeEdit" dojotype\x3d"dijit.form.Select" style\x3d"width:100%" value\x3d"byTemplate"\x3e\x3coption value\x3d"byTemplate"\x3e \u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442\u044b \x3c/option\x3e\x3coption value\x3d"bySubreport"\x3e \u041f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u044b \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr dojoAttachPoint\x3d"otherSheetsCheckBoxRow"\x3e\x3ctd colspan\x3d"2" width\x3d"100%"\x3e\x3cinput dojoAttachPoint\x3d"otherSheetsCheckBox" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u0412\u044b\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u0441\u0442\u044b \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr dojoAttachPoint\x3d"showSaveCheckBoxRow" style\x3d"display:none"\x3e\x3ctd colspan\x3d"2" width\x3d"100%"\x3e\x3cinput dojoAttachPoint\x3d"saveCheckBox" dojoType\x3d"dijit.form.CheckBox" numericValue\x3d"0"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0432 \u0411\u0414 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e \u041e\u041a \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","exportGridDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:150px; width:420px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"dataEdit" dojotype\x3d"dijit.form.Select" style\x3d"width:100%" value\x3d"0"\x3e\x3coption value\x3d"0"\x3e \u0412\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u0424\u043e\u0440\u043c\u0430\u0442 \u0444\u0430\u0439\u043b\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043a\u043d\u0438\u0433\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"formatEdit" dojotype\x3d"dijit.form.Select" style\x3d"width:100%" value\x3d"xlsx"\x3e\x3coption value\x3d"xlsx"\x3e \u0420\u0430\u0431\u043e\u0447\u0430\u044f \u043a\u043d\u0438\u0433\u0430 Excel \x3c/option\x3e\x3coption value\x3d"xls"\x3e \u0420\u0430\u0431\u043e\u0447\u0430\u044f \u043a\u043d\u0438\u0433\u0430 Excel 97-2003 \x3c/option\x3e\x3coption value\x3d"pdf"\x3e PDF-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \x3c/option\x3e\x3coption value\x3d"html"\x3e HTML-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd width\x3d"50%"\x3e\x3cb\x3e \u0420\u0435\u0436\u0438\u043c \u0446\u0432\u0435\u0442\u043d\u043e\u0441\u0442\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"colorModeEdit" dojotype\x3d"dijit.form.Select" style\x3d"width:100%" value\x3d"2"\x3e\x3coption value\x3d"0"\x3e \u0412 \u0446\u0432\u0435\u0442\u0435 \x3c/option\x3e\x3coption value\x3d"1"\x3e \u0412 \u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f\u0445 \u0441\u0435\u0440\u043e\u0433\u043e \x3c/option\x3e\x3coption value\x3d"2"\x3e \u0412 \u0447\u0435\u0440\u043d\u043e-\u0431\u0435\u043b\u043e\u043c \x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e \u041e\u041a \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","gridFormatConditionDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:346px; width:540px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"80"\x3e\x3cb\x3e \u041a\u043e\u043b\u043e\u043d\u043a\u0430: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"fieldSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" required\x3d"true" style\x3d"width:100%"/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u0426\u0432\u0435\u0442: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"colorSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" required\x3d"true" style\x3d"width:100%"/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cinput dojoAttachPoint\x3d"applyToRowCheckBox" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput checked\x3d"true" dojoAttachPoint\x3d"useMask" dojoType\x3d"dijit.form.RadioButton" onClick\x3d"this.dialogObject.modeChanged()"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u0446\u0443 \x3c/b\x3e\x3cdiv style\x3d"margin-left:10px; margin-top:5px"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"80"\x3e\x3cb dojoAttachPoint\x3d"maskLabel"\x3e \u041e\u0431\u0440\u0430\u0437\u0435\u0446: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"maskEdit" dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3ci class\x3d"infoTipMessage"\x3e \u041d\u0430\u0431\u043e\u0440 \u043e\u0431\u0440\u0430\u0437\u0446\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c \u0442\u043e\u0447\u043a\u043e\u0439 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439. \u0417\u0432\u0435\u0437\u0434\u043e\u0447\u043a\u0430 (*) \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u044e\u0431\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043b\u044e\u0431\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0432\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u043d\u0430\u043a (?) - \u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f - "*", \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0443\u0441\u0442\u043e\u0442\u044b - "!*", \u0432\u043e\u0441\u043a\u043b\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u043d\u0430\u043a (!) \u043f\u0435\u0440\u0435\u0434 \u043e\u0431\u0440\u0430\u0437\u0446\u043e\u043c - \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435. \x3c/i\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3cinput dojoAttachPoint\x3d"useRange" dojoType\x3d"dijit.form.RadioButton" onClick\x3d"this.dialogObject.modeChanged()"\x3e\x3c/input\x3e\x3cb\x3e \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0430 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \x3c/b\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"10%"\x3e\x3cb class\x3d"balanceReadOnlyHeader" dojoAttachPoint\x3d"fromLabel"\x3e \u0421: \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"40%"\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"fromEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3ctd align\x3d"center" width\x3d"10%"\x3e\x3cb class\x3d"balanceReadOnlyHeader" dojoAttachPoint\x3d"toLabel"\x3e \u043f\u043e: \x3c/b\x3e\x3c/td\x3e\x3ctd width\x3d"40%"\x3e\x3cinput disabled\x3d"true" dojoAttachPoint\x3d"toEdit" dojotype\x3d"dijit.form.ValidationTextBox" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","gridSettingsDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:500px; width:740px"\x3e\x3cdiv class\x3d"balanceInternalPages" dojoAttachPoint\x3d"tabContainer" dojoType\x3d"dijit.layout.TabContainer" region\x3d"center"\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"columnsSettingsPane" dojoType\x3d"dijit.layout.ContentPane" title\x3d"\u041a\u043e\u043b\u043e\u043d\u043a\u0438\x26lt;/br\x26gt;\x26#160;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\x3c/i\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable canSort\x3d"return false" clientSort\x3d"false" dojoAttachPoint\x3d"columnsGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" keepRows\x3d"100" onRowContextMenu\x3d"(function(){})();" rowsPerPage\x3d"100" selectionMode\x3d"single"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth cellType\x3d"dojox.grid.cells.gridSettingsDialogPositionEditor" editable\x3d"true" field\x3d"position" formatter\x3d"dojox.grid.cells.gridSettingsDialogPositionEditor.formatPosition" widgetClass\x3d"parus.gridSettingsDialogPositionEditor" width\x3d"80px"\x3e \u041f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \x3c/th\x3e\x3cth field\x3d"name" formatter\x3d"parus.gridSettingsDialog.formatEditableText" width\x3d"385px"\x3e \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \x3c/th\x3e\x3cth cellType\x3d"dojox.grid.cells._Widget" constraint\x3d"{min:0, max:1000, fractional:false}" editable\x3d"true" field\x3d"width" widgetClass\x3d"dijit.form.NumberTextBox" width\x3d"126px"\x3e \u0428\u0438\u0440\u0438\u043d\u0430 \x3cbr/\x3e\x3csmall\x3e(\u041f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043d\u043e\u043b\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0440\u044b\u0442\u044c \u043a\u043e\u043b\u043e\u043d\u043a\u0443)\x3c/small\x3e\x3c/th\x3e\x3cth field\x3d"nowrap" formatter\x3d"parus.gridSettingsDialog.formatWrapCheck" width\x3d"75px"\x3e \u041d\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u043c \x3c/th\x3e\x3cth field\x3d"inabonent" formatter\x3d"parus.gridSettingsDialog.formatAbonentCheck" hidden\x3d"true" width\x3d"80px"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432 "\u041a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 \u0410\u0431\u043e\u043d\u0435\u043d\u0442\u0430" \x3c/th\x3e\x3cth cellType\x3d"parus.gridSettingsDialogAggregateEditor" editable\x3d"true" field\x3d"aggregate" formatter\x3d"parus.gridSettingsDialog.formatAggregate" widgetClass\x3d"dijit.form.Select" width\x3d"121px"\x3e \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0430\u0433\u0440\u0435\u0433\u0430\u0442 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"colorConditionsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435\x26lt;/br\x26gt;\x26#160;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e\x3c/i\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"colorConditionsGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.addColorCondition()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.editColorCondition()"\x3e \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.deleteColorCondition()"\x3e \u0423\u0434\u0430\u043b\u0438\u0442\u044c... \x3c/li\x3e\x3c/ul\x3e\x3ctable canSort\x3d"return false" clientSort\x3d"false" dojoAttachPoint\x3d"colorConditionsGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" keepRows\x3d"100" onRowContextMenu\x3d"(function(){})();" onRowDblClick\x3d"this.dialogObject.editColorCondition()" onSelected\x3d"this.dialogObject.colorConditionsGridSelected()" rowsPerPage\x3d"100" selectionMode\x3d"single"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth editable\x3d"false" field\x3d"fieldTitle" width\x3d"150px"\x3e \u041f\u043e\u043b\u0435 \x3c/th\x3e\x3cth editable\x3d"false" field\x3d"title" width\x3d"260px"\x3e \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"color" formatter\x3d"parus.parus8.formatColor" width\x3d"150px"\x3e \u0426\u0432\u0435\u0442 \x3c/th\x3e\x3cth field\x3d"applyToRow" formatter\x3d"parus.parus8.formatBoolean" width\x3d"100px"\x3e \u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"actionsSettingsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f\x26lt;/br\x26gt;\x26#160;"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\x3c/i\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable canSort\x3d"return false" clientSort\x3d"false" dojoAttachPoint\x3d"actionsGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" keepRows\x3d"100" onRowContextMenu\x3d"(function(){})();" rowsPerPage\x3d"100" selectionMode\x3d"single"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth editable\x3d"false" field\x3d"name" width\x3d"348px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \x3cbr/\x3e\x3csmall\x3e(\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f)\x3c/small\x3e\x3c/th\x3e\x3cth field\x3d"enabled" formatter\x3d"parus.gridSettingsDialog.formatCheck" width\x3d"161px"\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \x3c/th\x3e\x3cth cellType\x3d"dojox.grid.cells.gridSettingsDialogIconEditor" editable\x3d"true" field\x3d"icon" formatter\x3d"parus.gridSettingsDialog.formatIcon" widgetClass\x3d"parus.gridSettingsDialogIconEditor" width\x3d"161px"\x3e \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435-\u0438\u043a\u043e\u043d\u043a\u0430 \x3cbutton dojoType\x3d"dijit.form.Button" label\x3d"\x26lt;span style\x3d\'width:120px;font-weight:100;font-size:90%;display:block\'\x26gt;\u0423\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u043a\u043e\u043d\u043a\u0438\x26lt;/span\x26gt;" onClick\x3d"this.dialogObject.clearAllIcons()" style\x3d"width:120px"\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" label\x3d"\x26lt;span style\x3d\'width:120px;font-weight:100;font-size:90%;display:block\'\x26gt;\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\x26lt;/span\x26gt;" onClick\x3d"this.dialogObject.defaultAllIcons()" style\x3d"width:120px"\x3e\x3c/button\x3e\x3c/th\x3e\x3cth field\x3d"inabonent" formatter\x3d"parus.gridSettingsDialog.formatAbonentActionCheck" hidden\x3d"true" width\x3d"80px"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432 "\u041a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 \u0410\u0431\u043e\u043d\u0435\u043d\u0442\u0430" \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"userAppsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435\x26lt;/br\x26gt;\x26#160;\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\x3c/i\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable canSort\x3d"return false" clientSort\x3d"false" dojoAttachPoint\x3d"userAppsGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" keepRows\x3d"100" onRowContextMenu\x3d"(function(){})();" rowsPerPage\x3d"100" selectionMode\x3d"single"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth editable\x3d"false" field\x3d"name" width\x3d"510px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \x3cbr/\x3e\x3csmall\x3e(\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f)\x3c/small\x3e\x3c/th\x3e\x3cth field\x3d"inmenu" formatter\x3d"parus.gridSettingsDialog.formatUserAppsCheck" width\x3d"161px"\x3e \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043c\u0435\u043d\u044e \x3c/th\x3e\x3cth field\x3d"inabonent" formatter\x3d"parus.gridSettingsDialog.formatAbonentUserAppCheck" hidden\x3d"true" width\x3d"80px"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432 "\u041a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 \u0410\u0431\u043e\u043d\u0435\u043d\u0442\u0430" \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"userProcsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435\x26lt;/br\x26gt;\x26#160;\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\x3c/i\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable canSort\x3d"return false" clientSort\x3d"false" dojoAttachPoint\x3d"userProcsGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" keepRows\x3d"100" onRowContextMenu\x3d"(function(){})();" rowsPerPage\x3d"100" selectionMode\x3d"single"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth editable\x3d"false" field\x3d"name" width\x3d"510px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \x3cbr/\x3e\x3csmall\x3e(\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f)\x3c/small\x3e\x3c/th\x3e\x3cth field\x3d"inmenu" formatter\x3d"parus.gridSettingsDialog.formatUserProcsCheck" width\x3d"161px"\x3e \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043c\u0435\u043d\u044e \x3c/th\x3e\x3cth field\x3d"inabonent" formatter\x3d"parus.gridSettingsDialog.formatAbonentUserProcCheck" hidden\x3d"true" width\x3d"80px"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432 "\u041a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 \u0410\u0431\u043e\u043d\u0435\u043d\u0442\u0430" \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"userReportsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435\x26lt;/br\x26gt;\x26#160;\u043e\u0442\u0447\u0435\u0442\u044b"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\x3c/i\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable canSort\x3d"return false" clientSort\x3d"false" dojoAttachPoint\x3d"userReportsGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" keepRows\x3d"100" onRowContextMenu\x3d"(function(){})();" rowsPerPage\x3d"100" selectionMode\x3d"single"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth editable\x3d"false" field\x3d"name" width\x3d"510px"\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \x3cbr/\x3e\x3csmall\x3e(\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f)\x3c/small\x3e\x3c/th\x3e\x3cth field\x3d"inmenu" formatter\x3d"parus.gridSettingsDialog.formatUserReportsCheck" width\x3d"161px"\x3e \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043c\u0435\u043d\u044e \x3c/th\x3e\x3cth field\x3d"inabonent" formatter\x3d"parus.gridSettingsDialog.formatAbonentUserReportCheck" hidden\x3d"true" width\x3d"80px"\x3e \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432 "\u041a\u0430\u0431\u0438\u043d\u0435\u0442\u0435 \u0410\u0431\u043e\u043d\u0435\u043d\u0442\u0430" \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoAttachPoint\x3d"pluginsSettingsPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" title\x3d"\u041f\u0440\u043e\u0447\u0438\u0435\x26lt;/br\x26gt;\x26#160;"\x3e\x3ctable cellspacing\x3d"5" dojoAttachPoint\x3d"additionsTable" width\x3d"100%"\x3e\x3ctr dojoAttachPoint\x3d"showFilterBarRow" style\x3d"display:none"\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"showFilterBarCheckBox" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043e\u0442\u0431\u043e\u0440 \u043f\u043e \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr dojoAttachPoint\x3d"hideCatalogTreeRow" style\x3d"display:none"\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"hideCatalogTree" dojoType\x3d"dijit.form.CheckBox"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u043a\u0440\u044b\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.clearUserData()"\x3e \u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"spreadButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.spread()" style\x3d"display:none"\x3e \u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c \u043c\u043e\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \x3c/button\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","loginDialog.html",'\x3cdiv\x3e\x3cdiv autofocus\x3d"false" dojoType\x3d"dijit.Dialog" title\x3d"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u0435\u0430\u043d\u0441"\x3e\x3cdiv design\x3d"headline" dojoAttachPoint\x3d"MainBorderContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"width:510px; height:240px; overflow-y:auto; overflow-x:none"\x3e\x3cdiv dojoAttachPoint\x3d"headingPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"height:59px; background:#2947DB url(../parusjs/loginDialogHeader.png) no-repeat top left;"\x3e\x3cdiv align\x3d"center" dojoAttachPoint\x3d"headingDiv" style\x3d"padding-left:75px; padding-top:20px; font:bold 18px Tahoma, Verdana, sans-serif; color: #F0F0F0"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" style\x3d"padding-right:7px; font:bold 12px Tahoma, Verdana, sans-serif; color: #9598F5"\x3e OnLine! \x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"height:2px; background-image:url(../parusjs/loginDialogHeaderEx.png);"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"overflow:hidden; padding-left:10px; padding-right:10px"\x3e\x3cform autocomplete\x3d"off"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150px"\x3e\x3cb\x3e \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cselect dojoAttachPoint\x3d"databaseSelect" dojotype\x3d"dijit.form.Select" intermediatechanges\x3d"true" style\x3d"width:100%"/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"loginEdit" dojotype\x3d"dijit.form.ValidationTextBox" missingMessage\x3d"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \x26lt;br/\x26gt; \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \x26quot;\u043b\u043e\u0433\u0438\u043d\x26quot;)" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041f\u0430\u0440\u043e\u043b\u044c: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"passwordEdit" dojotype\x3d"dijit.form.ValidationTextBox" missingMessage\x3d"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f" required\x3d"true" style\x3d"width:100%" trim\x3d"true" type\x3d"password"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/form\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"overflow:hidden; padding-left:10px; padding-right:10px"\x3e\x3chr class\x3d"spacer"/\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"storePassword" dojotype\x3d"dijit.form.CheckBox" onClick\x3d"this.dialogObject.storePasswordClick()"\x3e\x3c/input\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3ca href\x3d"javascript:parus.loginDialog.instance.changePassword()"\x3e \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3chr class\x3d"spacer"/\x3e\x3c/div\x3e\x3cdiv design\x3d"sidebar" dojoAttachPoint\x3d"sidebarDiv" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"bottom" style\x3d"height:70px; overflow:hidden; padding:10px"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"overflow:hidden"\x3e\x3cdiv\x3e\x3cbutton dojoAttachPoint\x3d"registerOpenIDButton" dojoType\x3d"dijit.form.Button" label\x3d"\x26lt;span style\x3d\'display:block;width:225px;\'\x26gt;\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c OpenID-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\x26lt;/span\x26gt;" onClick\x3d"this.dialogObject.registerOpenID()" style\x3d"display:none"\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv\x3e\x3cbutton dojoAttachPoint\x3d"registerNegotiateButton" dojoType\x3d"dijit.form.Button" label\x3d"\x26lt;span style\x3d\'display:block;width:225px;\'\x26gt;\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430\x26lt;/span\x26gt;" onClick\x3d"this.dialogObject.registerNegotiate()" style\x3d"display:none"\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv style\x3d"height:25px"\x3e\x3cbutton dojoAttachPoint\x3d"remoteAccessButton" dojoType\x3d"dijit.form.Button" label\x3d"\x26lt;span style\x3d\'display:block;width:225px;\'\x26gt;\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043b\u044f Windows\x26lt;/span\x26gt;" onClick\x3d"this.dialogObject.remoteAccess()" style\x3d"display:none"\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv style\x3d"position:absolute; bottom:0px"\x3e\x3ca href\x3d"../.system/diag.html#hidelicense" target\x3d"_blank"\x3e \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"right" style\x3d"width:245px"\x3e\x3cdiv align\x3d"right" dojoAttachPoint\x3d"CustomAuthDiv" dojoType\x3d"dijit.layout.ContentPane" region\x3d"top" style\x3d"height:20px"\x3e\x3cdiv align\x3d"right" dojoAttachPoint\x3d"EnterOpenIDDiv" style\x3d"display:none; margin-bottom:8px"\x3e\x3ca href\x3d"javascript:parus.loginDialog.enterOpenID()"\x3e \u0412\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 OpenID \x3c/a\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoAttachPoint\x3d"EnterNegotiateDiv" style\x3d"display:none; margin-bottom:8px"\x3e\x3cinput dojoAttachPoint\x3d"negotiateAuth" dojotype\x3d"dijit.form.CheckBox" onClick\x3d"this.dialogObject.passwordLessAuthClick()"\x3e\x3c/input\x3e\x3cb\x3e \u0412\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u043c\u0435\u043d Windows \x3c/b\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoAttachPoint\x3d"EnterSSLCertDiv" style\x3d"display:none; margin-bottom:8px"\x3e\x3cinput dojoAttachPoint\x3d"sslCertAuth" dojotype\x3d"dijit.form.CheckBox" onClick\x3d"this.dialogObject.passwordLessAuthClick()"\x3e\x3c/input\x3e\x3cb\x3e \u0412\u043e\u0439\u0442\u0438 \u0441 SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c \x26#160;\x3c/b\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cbutton dojoAttachPoint\x3d"OKButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e \u041e\u041a \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","negotiateRegistrationDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430 Windows"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:135px; width:440px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"120px"\x3e\x3cb\x3e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u043c\u0435\u043d\u0430 Windows: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"accountEdit" dojotype\x3d"dijit.form.ValidationTextBox" readonly\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"descriptionEdit" dojotype\x3d"dijit.form.ValidationTextBox" missingMessage\x3d"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3cspan\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u043c\u0435\u043d\u0430 Windows\x3c/i\x3e\x3c/span\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","notificationDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f"\x3e\x3cdiv class\x3d"balanceNotificationDialog"\x3e\x3cdiv style\x3d"padding:10px"\x3e\x3ctable\x3e\x3ctr\x3e\x3ctd width\x3d"16px"\x3e\x3cdiv class\x3d"dijitIconFunction" dojoAttachPoint\x3d"icon"\x3e \x26#160; \x3c/div\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv style\x3d"margin:10px"\x3e\x3cspan class\x3d"balanceNotificationText" dojoAttachPoint\x3d"messageText"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cdiv align\x3d"center" dojoAttachPoint\x3d"buttonRow" style\x3d"width:100%"\x3e\x3cbutton dojoAttachPoint\x3d"closeButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","openIDLoginDialog.html",'\x3cdiv\x3e\x3cdiv\x3e OpenID:\x26#160;\x26#160;\x26#160; \x3cinput dojotype\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:400px" trim\x3d"true"\x3e\x3c/input\x3e\x3cbr/\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, username.id.mail.ru\x3c/i\x3e\x3c/div\x3e\x3cdiv align\x3d"right" style\x3d"margin-top:5px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode).perform()"\x3e\x3cb\x3e \u041e\u041a \x3c/b\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","openIDRegistrationDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f OpenID"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:135px; width:440px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"100px"\x3e\x3cb\x3e OpenID: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"accountEdit" dojotype\x3d"dijit.form.ValidationTextBox" missingMessage\x3d"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c OpenID-\u0430\u043a\u043a\u0430\u0443\u043d\u0442" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3cspan\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, username.id.mail.ru\x3c/i\x3e\x3c/span\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cb\x3e \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"descriptionEdit" dojotype\x3d"dijit.form.ValidationTextBox" missingMessage\x3d"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3cspan\x3e\x3ci class\x3d"infoTipMessage"\x3e\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 OpenID \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\x3c/i\x3e\x3c/span\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","parusLoginDialogHelp.html",'\x3chtml lang\x3d"ru"\x3e\x3chead\x3e\x3cmeta name\x3d"robots" content\x3d"noindex, nofollow"\x3e\x3c/meta\x3e\x3clink href\x3d"../dojo/dojo/resources/dojo.css" rel\x3d"stylesheet" type\x3d"text/css"\x3e\x3c/link\x3e\x3clink href\x3d"../dojo/dijit/themes/dijit.css" rel\x3d"stylesheet" type\x3d"text/css"\x3e\x3c/link\x3e\x3clink rel\x3d"stylesheet" type\x3d"text/css" href\x3d"../milljs/theme/mill.css"\x3e\x3c/link\x3e\x3clink href\x3d"../parusjs/theme/themes.css" rel\x3d"stylesheet" type\x3d"text/css"\x3e\x3c/link\x3e\x3ctitle\x3e \u041a\u0430\u043a \u0432\u043e\u0439\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443? \x3c/title\x3e\x3c/head\x3e\x3cbody\x3e\x3cp\x3e \u041f\u0440\u0438\x26#160;\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0421\u0435\u0440\u0432\u0438\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043e\u043a\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f: \x3c/p\x3e\x3cp\x3e\x3cimg src\x3d"ParusLogin.png" style\x3d"border:1px solid black"/\x3e\x3c/p\x3e\x3cp\x3e \u0412 \u043e\u043a\u043d\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e: \x3c/p\x3e\x3cp\x3e \u0412\x26#160;\u043f\u043e\u043b\u0435 \x3cb\x3e"\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f"\x3c/b\x3e - \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438. \u0412\u044b\u0431\u043e\u0440 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0439. \x3c/p\x3e\x3cp\x3e \u0412 \u043f\u043e\u043b\u0435 \x3cb\x3e"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c"\x26#160;\x3c/b\x3e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \x3c/p\x3e\x3cp\x3e \u0412 \u043f\u043e\u043b\u0435 \x3cb\x3e"\u041f\u0430\u0440\u043e\u043b\u044c"\x3c/b\x3e \x26#160;\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u043e\u043b\u044c, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \x3c/p\x3e\x3cp\x3e \u0412 \u043f\u043e\u043b\u0435 \x3cb\x3e"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c"\x3c/b\x3e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442\x26#160;\u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u043b\u0438 \u0421\u0435\u0440\u0432\u0438\u0441 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0430\u0437\u044b\x26#160;\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \x3c/p\x3e\x3cp\x3e\x3cb\x3e\u0412\u0430\u0436\u043d\u043e:\x3c/b\x3e \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0438\u0441\u043a \u043f\u043e\u0442\u0435\u0440\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043d\u0435\u043c. \x3c/p\x3e\x3cp\x3e \u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430 "\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c" \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435: \x3c/p\x3e\x3cp\x3e\x3cimg src\x3d"LoginWarning.png" style\x3d"border:1px solid black"/\x3e\x3c/p\x3e\x3cp\x3e \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 "\u041e\u041a" \u043f\u0430\u0440\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d. \x3c/p\x3e\x3cp\x3e \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 "\u041e\u0442\u043c\u0435\u043d\u0430" \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043a \u043e\u043a\u043d\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \x3c/p\x3e\x3chr/\x3e\x3cp\x3e \u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e OpenID, \u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0430 \x3cb\x3e "\u0412\u043e\u0439\u0442\u0438 \u043f\u043e OpenID" \x3c/b\x3e. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u044d\u0442\u0443 \u0441\u0441\u044b\u043b\u043a\u0443, \u0432\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0439 OpenID-\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0432\u0445\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 OpenID. \x3cbr/\x3e\x3cb\x3e\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!\x3c/b\x3e \u0412\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041f\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0432\u0430\u0448\u0438\u043c OpenID-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0439\u0442\u0435\u0441\u044c \u0432 \u0435\u0433\u043e \u0441\u043b\u0443\u0436\u0431\u0443 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438. \x3c/p\x3e\x3cp\x3e \u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c OpenID-\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \x3cb\x3e"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c OpenID-\u0430\u043a\u043a\u0430\u0443\u043d\u0442"\x3c/b\x3e. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f, \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 "\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c OpenID-\u0430\u043a\u043a\u0430\u0443\u043d\u0442", \u0438 \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 OpenID \u0441 \u0442\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u0432\u0432\u043e\u0434\u0438\u043b\u0438. \x3c/p\x3e\x3cp\x3e \u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 Windows, \u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043d \u0447\u0435\u043a\u0431\u043e\u043a\u0441 \x3cb\x3e "\u0412\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u043c\u0435\u043d Windows" \x3c/b\x3e. \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u044d\u0442\u043e\u0433\u043e \u0447\u0435\u043a\u0431\u043e\u043a\u0441\u0430, \u043f\u043e\u043b\u044f \x3cb\x3e\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\x3c/b\x3e \u0438 \x3cb\x3e\u041f\u0430\u0440\u043e\u043b\u044c\x3c/b\x3e \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430, \u0438 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 "\u041e\u041a" \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u0430 Windows, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0443\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u041e\u0421. \x3cbr/\x3e\x3cb\x3e\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!\x3c/b\x3e \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u041f\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438\u043b\u0438 \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443. \x3c/p\x3e\x3cp\x3e \u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043e\u043c\u0435\u043d\u0430, \u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \x3cb\x3e"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430"\x3c/b\x3e. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f, \u043d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 "\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430", \u0438 \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 Windows \u0441 \u0442\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u0432\u0432\u043e\u0434\u0438\u043b\u0438. \x3c/p\x3e\x3cp\x3e \u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c Windows, \u0442\u043e \u0443 \u0432\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \x3cb\x3e"\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043b\u044f Windows"\x3c/b\x3e. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u044d\u0442\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. \x3c/p\x3e\x3c/body\x3e\x3c/html\x3e');
b.cache("parus","progressDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435"\x3e\x3cdiv class\x3d"balanceNotificationDialog"\x3e\x3cdiv style\x3d"padding:10px"\x3e\x3cdiv dojoAttachPoint\x3d"bar" dojoType\x3d"dijit.ProgressBar" indeterminate\x3d"true" style\x3d"width:100%"\x3e\x3c/div\x3e\x3ctable\x3e\x3ctr\x3e\x3ctd\x3e\x3cdiv style\x3d"margin:10px"\x3e\x3cspan class\x3d"balanceNotificationText" dojoAttachPoint\x3d"messageText"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","richEditDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:900px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cdiv dojoAttachPoint\x3d"editor" dojoType\x3d"dijit.Editor" extraPlugins\x3d"[\'removeFormat\', \'foreColor\',\'hiliteColor\', \'fontName\', \'fontSize\', \'viewsource\']" style\x3d"width:100%; height:100%; background:white"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","signDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:400px; width:600px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" splitter\x3d"true"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"popupMenu" dojoType\x3d"dijit.Menu" style\x3d"display: none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.certificateGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.certificateGrid, null, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"certificateGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" onRowContextMenu\x3d"(function(){})();"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"ISSUEDTO" width\x3d"170px"\x3e \u041a\u043e\u043c\u0443 \u0432\u044b\u0434\u0430\u043d \x3c/th\x3e\x3cth field\x3d"ISSUER" width\x3d"150px"\x3e \u041a\u0435\u043c \u0432\u044b\u0434\u0430\u043d \x3c/th\x3e\x3cth field\x3d"VALIDFROMDATE" formatter\x3d"parus.parus8.formatCertDate" width\x3d"100px"\x3e \u041d\u0430\u0447\u0430\u043b\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \x3c/th\x3e\x3cth field\x3d"VALIDTODATE" formatter\x3d"parus.parus8.formatCertDate" width\x3d"100px"\x3e \u041e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"simpleSignPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"bottom"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e\x3cinput checked\x3d"false" dojoAttachPoint\x3d"simpleSign" dojoType\x3d"dijit.form.CheckBox" onClick\x3d"this.dialogObject.onSimpleSignCheckBoxClicked()"\x3e\x3c/input\x3e \u041f\u0440\u043e\u0441\u0442\u0430\u044f \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoAttachPoint\x3d"notePanel" dojoType\x3d"dijit.layout.ContentPane" region\x3d"bottom" splitter\x3d"true" style\x3d"height:100px"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"margin:1px"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"overflow:hidden"\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" maxLength\x3d"480" style\x3d"margin:0; height: 100%; width: 100%"\x3e\x3c/textarea\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","statusModelCoWorkingDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:600px; width:800px"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" splitter\x3d"true"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" dojoAttachPoint\x3d"headerPaneCaption" region\x3d"left" style\x3d"margin:5px"\x3e \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"popupMasterMenu" dojoType\x3d"dijit.Menu" style\x3d"display: none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.dialogObject.masterGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoAttachPoint\x3d"setMarkMenuItem" itemAction\x3d"true" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.setMark()"\x3e \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoAttachPoint\x3d"removeMarkMenuItem" itemAction\x3d"true" dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.removeMark()"\x3e \u0421\u043d\u044f\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.masterGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.masterGrid, null, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"masterGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" onRowContextMenu\x3d"(function(){})();" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass + \'-masterGrid\', arguments[0], arguments[1])" onSelected\x3d"this.dialogObject.masterGridChange()" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"SEND" width\x3d"200px"\x3e \u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c \x3c/th\x3e\x3cth field\x3d"RESPONSIBLE" formatter\x3d"parus.parus8.formatBoolean" width\x3d"150px"\x3e \u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \x3c/th\x3e\x3cth field\x3d"PERF_MARK_CODE" width\x3d"200px"\x3e \u041e\u0442\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom" splitter\x3d"true" style\x3d"height:50%"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"margin:1px"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"popupDetailMenu" dojoType\x3d"dijit.Menu" style\x3d"display: none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.balanceReportsRefresh(this.dialogObject.detailGrid)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.exportGrid(this.dialogObject.detailGrid, null, null)"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(this.dialogObject.detailGrid, null, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3ctable class\x3d"balanceGrid" dojoAttachPoint\x3d"detailGrid" dojoType\x3d"dojox.grid.DataGrid" escapeHTMLInData\x3d"false" onRowContextMenu\x3d"(function(){})();" onFilterChanged\x3d"parus.balance.gridFilterChanged(this.dialogObject.declaredClass + \'-detailGrid\', arguments[0], arguments[1])" plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth dataType\x3d"2" field\x3d"CHANGE_DATE" width\x3d"150px"\x3e \u0414\u0430\u0442\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \x3c/th\x3e\x3cth field\x3d"ACTION_NAME" width\x3d"220px"\x3e \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \x3c/th\x3e\x3cth field\x3d"AUTHNAME" width\x3d"150px"\x3e \u0410\u0432\u0442\u043e\u0440 \x3c/th\x3e\x3cth field\x3d"PERF_MARK_CODE" width\x3d"200px"\x3e \u041e\u0442\u043c\u0435\u0442\u043a\u0430 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","statusModelNoteDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:193px; width:440px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center"\x3e\x3ctable cellspacing\x3d"5" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"120px"\x3e\x3cb\x3e \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f: \x3c/b\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"noteHeaderEdit" dojotype\x3d"dijit.form.FilteringSelect" intermediateChanges\x3d"true" labelAttr\x3d"NAME" searchAttr\x3d"NAME" required\x3d"true" style\x3d"width:100%" trim\x3d"true"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435: \x3c/b\x3e\x3cbr/\x3e\x3ctextarea dojoAttachPoint\x3d"noteEdit" dojotype\x3d"dijit.form.SimpleTextarea" intermediateChanges\x3d"true" required\x3d"true" maxLength\x3d"2000" onChange\x3d"this.dialogObject.noteEditChange()" rows\x3d"4" style\x3d"width:100%"\x3e\x3c/textarea\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","statusModelRouteDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" style\x3d"height:90%; width:90%" title\x3d"\u0421\u0442\u0430\u0442\u0443\u0441\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true"\x3e\x3cdiv class\x3d"balanceFormContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"height:100%; width:100%"\x3e\x3cdiv class\x3d"balanceHeadingPane" design\x3d"sidebar" dojoAttachPoint\x3d"headerPane" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top"\x3e\x3cdiv class\x3d"balanceHeadingPaneTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"left" style\x3d"margin:5px"\x3e \u041c\u0430\u0440\u0448\u0440\u0443\u0442 \x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3c/div\x3e\x3cdiv align\x3d"right" dojoType\x3d"dijit.layout.ContentPane" region\x3d"center" style\x3d"margin:1px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"statusModelGraphBackground" dojoAttachPoint\x3d"statusModelGraphContentPane" dojoType\x3d"dijit.layout.ContentPane" onmousedown\x3d"this.dialogObject.onMouseDown" region\x3d"center"\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"popupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoAttachPoint\x3d"passMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.pass()"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438... \x3c/li\x3e\x3cli dojoAttachPoint\x3d"sendMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.send()"\x3e \u041d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoAttachPoint\x3d"addNoteMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.addNote()"\x3e \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoAttachPoint\x3d"setMarkMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.setMark()"\x3e \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoAttachPoint\x3d"removeMarkMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.removeMark()"\x3e \u0421\u043d\u044f\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" features\x3d"StatusModel" onClick\x3d"this.dialogObject.history()"\x3e \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432... \x3c/li\x3e\x3cli dojoAttachPoint\x3d"notesMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.notes()"\x3e \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoAttachPoint\x3d"executorsMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.executors()"\x3e \u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u0438... \x3c/li\x3e\x3cli dojoAttachPoint\x3d"\u0441oWorkingMenuItem" dojoType\x3d"dijit.MenuItem" itemAction\x3d"true" onClick\x3d"this.dialogObject.\u0441oWorking()"\x3e \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"this.dialogObject.refresh(true)"\x3e \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c... \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoType\x3d"dijit.MenuItem" onClick\x3d"parus.balance.executeSettings(null, this.dialogObject.popupMenu, this.dialogObject.declaredClass)"\x3e \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... \x3c/li\x3e\x3c/ul\x3e\x3cdiv role\x3d"graph"\x3e\x3ccanvas\x3e\x3c/canvas\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e\x3cb\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","statusModelRoutePoint.html",'\x3cdiv class\x3d"statusModelPoint"\x3e\x3cdiv class\x3d"statusModelPointLevel1"\x3e\x3cdiv class\x3d"statusModelPointLevel2"\x3e\x3cspan class\x3d"pointText"\x3e\x26#160;\x3c/span\x3e\x3cbr class\x3d"pointSubText"/\x3e\x3cspan class\x3d"pointSubText"\x3e\x26#160;\x3c/span\x3e\x3cdiv class\x3d"statusModelPointPointerImage"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"statusModelPointSecond"\x3e\x3cdiv class\x3d"statusModelPointLevel1"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"statusModelPointThird"\x3e\x3cdiv class\x3d"statusModelPointLevel1"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","templateDesignColumns.html",'\x3cdiv\x3e\r\n  \x3cdiv dojoType\x3d"dijit.Dialog"\r\n       title\x3d"\u0421\u0442\u043e\u043b\u0431\u0446\u044b"\x3e\r\n    \x3cdiv design\x3d"headline"\r\n         dojoType\x3d"dijit.layout.BorderContainer"\r\n         gutters\x3d"true"\r\n         style\x3d"height:400px;\r\n                width:750px"\x3e\r\n      \x3cdiv class\x3d"balanceFormContentPane"\r\n           dojoType\x3d"dijit.layout.ContentPane"\r\n           region\x3d"center"\r\n           splitter\x3d"true"\x3e\r\n        \x3cdiv design\x3d"headline"\r\n             dojoType\x3d"dijit.layout.BorderContainer"\r\n             gutters\x3d"false"\r\n             style\x3d"height:100%;\r\n                    width:100%"\x3e\r\n          \x3cdiv class\x3d"balanceHeadingPane"\r\n               design\x3d"sidebar"\r\n               dojoAttachPoint\x3d"headerPane"\r\n               dojoType\x3d"dijit.layout.BorderContainer"\r\n               gutters\x3d"false"\r\n               region\x3d"top"\x3e\r\n            \x3cdiv class\x3d"balanceHeadingPaneTitle"\r\n                 dojoType\x3d"dijit.layout.ContentPane"\r\n                 region\x3d"left"\r\n                 style\x3d"margin:5px"\x3e\r\n              \u0428\u0430\u0431\u043b\u043e\u043d\u044b\r\n            \x3c/div\x3e\r\n            \x3cdiv dojoType\x3d"dijit.layout.ContentPane"\r\n                 region\x3d"right"\x3e\r\n            \x3c/div\x3e\r\n            \x3cdiv align\x3d"right"\r\n                 dojoType\x3d"dijit.layout.ContentPane"\r\n                 region\x3d"center"\r\n                 style\x3d"margin:1px;\r\n                        overflow:hidden"\x3e\r\n            \x3c/div\x3e\r\n          \x3c/div\x3e\r\n          \x3cdiv class\x3d"balanceGrid"\r\n               dojoType\x3d"dijit.layout.ContentPane"\r\n               region\x3d"center"\x3e\r\n            \x3cul class\x3d"balanceMenu"\r\n                dojoAttachPoint\x3d"gridPopupMenu"\r\n                dojoType\x3d"dijit.Menu"\r\n                style\x3d"display: none"\x3e\r\n              \x3cli defaultIcon\x3d"PCreduceCustomIcon"\r\n                  dojoAttachPoint\x3d"deleteMenuItem"\r\n                  dojoType\x3d"dijit.MenuItem"\r\n                  itemAction\x3d"true"\r\n                  onClick\x3d"this.dialogObject.delete()"\x3e\r\n                \u0423\u0434\u0430\u043b\u0438\u0442\u044c\r\n              \x3c/li\x3e\r\n              \x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\r\n              \x3cli dojoType\x3d"dijit.MenuItem"\r\n                  onClick\x3d"parus.balance.exportGrid(this.dialogObject.templatesGrid, null, null)"\x3e\r\n                \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b...\r\n              \x3c/li\x3e\r\n              \x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\r\n              \x3cli dojoType\x3d"dijit.MenuItem"\r\n                  onClick\x3d"this.dialogObject.settings()"\x3e\r\n                \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438....\r\n              \x3c/li\x3e\r\n            \x3c/ul\x3e\r\n            \x3ctable canSort\x3d"return false"\r\n                   class\x3d"balanceGrid"\r\n                   dojoAttachPoint\x3d"grid"\r\n                   dojoType\x3d"dojox.grid.EnhancedGrid"\r\n                   escapeHTMLInData\x3d"false"\r\n                   onFilterChanged\x3d"this.dialogObject.gridFilterChanged(this.dialogObject.grid, arguments[0], arguments[1])"\r\n                   onRowContextMenu\x3d"(function(){})();"\r\n                   onSelected\x3d"this.dialogObject._selected()"\r\n                   plugins\x3d"{status: {visible: false}, columnsFilter: {visible: false}, indirectSelection: {headerSelector:true}, selector:{row:true, col:false, cell:false}}"\x3e\r\n              \x3cthead\x3e\r\n                \x3ctr\x3e\r\n                  \x3cth field\x3d"num"\r\n                      width\x3d"221px"\x3e\r\n                    \u041d\u043e\u043c\u0435\u0440\r\n                  \x3c/th\x3e\r\n                  \x3cth field\x3d"abbr"\r\n                      width\x3d"221px"\x3e\r\n                    \u0410\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u0430\r\n                  \x3c/th\x3e\r\n                  \x3cth field\x3d"width" cellType\x3d"dojox.grid.cells._Widget"\r\n\r\n\r\n                        constraint\x3d"{min:0, max:1000, fractional:false}"\r\n                        editable\x3d"true"\r\n                        widgetClass\x3d"dijit.form.NumberTextBox"\r\n\r\n\r\n                      width\x3d"121px"\x3e\r\n                    \u0428\u0438\u0440\u0438\u043d\u0430\r\n                  \x3c/th\x3e\r\n                  \x3cth field\x3d"hidden"\r\n\r\n                        formatter\x3d"parus.gridSettingsDialog.formatWrapCheck"\r\n\r\n                      width\x3d"121px"\x3e\r\n                    \u0421\u043a\u0440\u044b\u0442\r\n                  \x3c/th\x3e\r\n                \x3c/tr\x3e\r\n              \x3c/thead\x3e\r\n            \x3c/table\x3e\r\n          \x3c/div\x3e\r\n        \x3c/div\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv align\x3d"right"\r\n           class\x3d"dialogContentPane"\r\n           dojoType\x3d"dijit.layout.ContentPane"\r\n           minSize\x3d"30"\r\n           region\x3d"bottom"\x3e\r\n        \x3cbutton dojoType\x3d"dijit.form.Button"\r\n                onClick\x3d"this.dialogObject.close()"\x3e\r\n          \u0417\u0430\u043a\u0440\u044b\u0442\u044c\r\n        \x3c/button\x3e\r\n        \x3cbutton dojoAttachPoint\x3d"HelpButton"\r\n                dojoType\x3d"dijit.form.Button"\r\n                onClick\x3d"this.dialogObject.helpButtonClick()"\x3e\r\n          \u0421\u043f\u0440\u0430\u0432\u043a\u0430\r\n        \x3c/button\x3e\r\n      \x3c/div\x3e\r\n    \x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e');
b.cache("parus","templateDesignPane.html",'\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"width:100%; height:100%"\x3e\x3cdiv class\x3d"dijitBorderContainer templateDesignFormulaPane" dojoType\x3d"dijit.layout.ContentPane" region\x3d"top"\x3e\x3cdiv dojoType\x3d"dijit.Toolbar" style\x3d"height:23px"\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" onClick\x3d"this.templateDesignPane.showFormulasClick()" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarSeparator" dojoType\x3d"dijit.ToolbarSeparator"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" showLabel\x3d"false"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceToolBarButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"PShowFormulasSheetIcon" label\x3d"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u044b" showLabel\x3d"false"\x3e\x3c/div\x3e\x3c/div\x3e\x3ctable style\x3d"width:100%"\x3e\x3ctr\x3e\x3cth style\x3d"width:1px"\x3e\x3cspan style\x3d"text-wrap:nowrap" templateDesignRole\x3d"textCaptionNode"\x3e\x3c/span\x3e\x3c/th\x3e\x3ctd\x3e\x3cspan dojoType\x3d"dijit.form.Textarea" rows\x3d"1" intermediateChanges\x3d"true" onChange\x3d"this.templateDesignPane.textAreaChanged()" onInput\x3d"this.templateDesignPane.textAreaChanged()" templateDesignRole\x3d"textArea" style\x3d"width:100%;margin-right:3px"\x3e\x3c/span\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.TabContainer" region\x3d"center" tabPosition\x3d"bottom"\x3e\x3cdiv class\x3d"balanceTemplateContentPaneContentOpaque" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u0422\u0440\u0430\u0444\u0430\u0440\u0435\u0442"\x3e\x3cdiv role\x3d"sheet"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceTemplateContentPaneContentOpaque" dojoType\x3d"dijit.layout.ContentPane" style\x3d"padding:0" title\x3d"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f"\x3e\x3cdiv role\x3d"sheet"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","templateGridPaneSaveLog.html",'\x3cdiv style\x3d"width:100%; height:100%; overflow:hidden"\x3e\x3ctable canSort\x3d"return false" dojoAttachPoint\x3d"logGrid" dojoType\x3d"dojox.grid.EnhancedGrid" escapeHTMLInData\x3d"true" onRowContextMenu\x3d"(function(){})();" plugins\x3d"{status: {visible: false}}" selectionMode\x3d"single" style\x3d"width:100%" width\x3d"100%"\x3e\x3cthead\x3e\x3ctr\x3e\x3cth field\x3d"NUMBER" formatter\x3d"parus.parus8.formatRowNumber" width\x3d"90px"\x3e \x26#8470; \x3c/th\x3e\x3cth field\x3d"MESSAGE" formatter\x3d"parus.templateGridPane.formatLogMessage" width\x3d"500px"\x3e \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \x3c/th\x3e\x3c/tr\x3e\x3c/thead\x3e\x3c/table\x3e\x3cul class\x3d"balanceMenu" dojoAttachPoint\x3d"logGridPopupMenu" dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoAttachPoint\x3d"followLogGridMenuItem" dojoType\x3d"dijit.MenuItem"\x3e \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \x3c/li\x3e\x3cli dojoAttachPoint\x3d"closeLogGridMenuItem" dojoType\x3d"dijit.MenuItem"\x3e \u0417\u0430\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuSeparator"/\x3e\x3cli dojoAttachPoint\x3d"excelLogGridMenuItem" dojoType\x3d"dijit.MenuItem"\x3e \u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b... \x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e');
b.cache("parus","templateGridPaneSaveLogConfirmation.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439"\x3e\x3cdiv class\x3d"balanceConfirmationDialog"\x3e\x3cdiv style\x3d"padding:10px"\x3e\x3ctable\x3e\x3ctr\x3e\x3ctd width\x3d"16px"\x3e\x3cdiv class\x3d"dijitIconFunction" dojoAttachPoint\x3d"icon"\x3e \x26#160; \x3c/div\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv style\x3d"margin:10px"\x3e\x3cspan class\x3d"balanceConfirmationText" dojoAttachPoint\x3d"messageText"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cdiv align\x3d"center" dojoAttachPoint\x3d"buttonRow" style\x3d"width:100%"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.doContinueEditing()" style\x3d"width:100%"\x3e\x3cdiv style\x3d"width:300px"\x3e\x3cb\x3e \u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \x3c/b\x3e\x3c/div\x3e\x3c/button\x3e\x3cdiv dojoAttachPoint\x3d"ignoreWarningsDiv"\x3e\x3cbr/\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.doIgnoreWarnings()" dojoAttachPoint\x3d"ignoreWarningsButton" style\x3d"width:100%"\x3e\x3cdiv style\x3d"width:300px"\x3e\x3cb\x3e \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \x3c/b\x3e\x3c/div\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","templateUploadDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog" title\x3d"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043a\u043d\u0438\u0433\u0438"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:162px; width:520px"\x3e\x3cdiv class\x3d"dialogContentPane" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"center"\x3e\x3cform dojoAttachPoint\x3d"postForm" enctype\x3d"multipart/form-data" method\x3d"POST"\x3e\x3cinput dojoAttachPoint\x3d"template" name\x3d"template" type\x3d"hidden"\x3e\x3c/input\x3e\x3cinput dojoAttachPoint\x3d"oldInfo" name\x3d"oldInfo" type\x3d"hidden"\x3e\x3c/input\x3e\x3cdiv dojoType\x3d"parus.groupBox" region\x3d"top"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd width\x3d"150"\x3e\x3cb\x3e \u0424\u0430\u0439\u043b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438: \x3c/b\x3e\x3c/td\x3e\x3ctd align\x3d"right"\x3e\x3cinput dojoAttachPoint\x3d"fileData" name\x3d"fileData" size\x3d"32" style\x3d"font-weight:bold" type\x3d"file"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e\x3cb\x3e \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \x3cbr/\x3e \u0422\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043a\u043d\u0438\u0433\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442 \u0441\u0432\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/form\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","treeDialog.html",'\x3cdiv\x3e\x3cdiv dojoType\x3d"dijit.Dialog"\x3e\x3cdiv design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"true" style\x3d"height:470px; width:600px"\x3e\x3cdiv class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"center" style\x3d"overflow:hidden"\x3e\x3cdiv dojoAttachPoint\x3d"catalogTree" dojoType\x3d"dijit.Tree" getIconClass\x3d"parus.parus8.catalogTreeGetIconClass" getLabelClass\x3d"parus.parus8.catalogTreeGetLabelClass" model\x3d"parus.parus8.emptyTreeModel()" onClick\x3d"this.dialogObject.treeChange()" onClose\x3d"this.dialogObject.treeChange()" onOpen\x3d"this.dialogObject.treeChange()" openOnClick\x3d"true" persist\x3d"false"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"dialogContentPane" dojoType\x3d"dijit.layout.ContentPane" minSize\x3d"30" region\x3d"bottom"\x3e\x3cbutton dojoAttachPoint\x3d"OKButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.apply()"\x3e\x3cb\x3e OK \x3c/b\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.close()"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/button\x3e\x3cbutton dojoAttachPoint\x3d"HelpButton" dojoType\x3d"dijit.form.Button" onClick\x3d"this.dialogObject.helpButtonClick()"\x3e \u0421\u043f\u0440\u0430\u0432\u043a\u0430 \x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');
b.cache("parus","verticalGutterTreeNode.html",'\x3cdiv\x3e\x3cdiv class\x3d"dijitInline dijitTreeExpando dijitTreeExpandoOpened" dojoAttachEvent\x3d"onclick:_onTreeNodeClick" dojoAttachPoint\x3d"treeNode" style\x3d"position:absolute; width:18px; height:18px; left:0px; top:0px"\x3e\x3c/div\x3e\x3cdiv class\x3d"dijitInline dijitTreeNode" dojoAttachPoint\x3d"fillerNode" style\x3d"position:absolute; width:18px; left:0px; bottom:9px; top:14px"\x3e\x3c/div\x3e\x3cdiv class\x3d"dijitInline dijitTreeExpando dijitTreeExpandoLeaf" dojoAttachPoint\x3d"cornerNode" style\x3d"position:absolute; width:18px; height:18px; left:0px; bottom:0px"\x3e\x3c/div\x3e\x3c/div\x3e')})},
"parus/abonentSpecialActions":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.abonentSpecialActions");b.require("parus.abonent");parus||(parus={});parus.abonent||b.mixin(parus,{abonent:{}});b.mixin(parus.abonent,{_selectedReports:function(){var a=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(c){(c=t.byNode(c))&&c.checked&&a.push(c.reportRN)});return a},_selectedReport:function(){return this._selectedReports()[0]},balanceReportsClearValues:function(){var a=
parus.abonent._selectedReports();a.length&&(new parus.confirmationDialog({message:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439?",onApply:b.hitch(this,function(){b.forEach(a,function(c){parus.database.execute("clearReportValues",{RN:c})});parus.abonent.refresh();return!0})})).show()},balanceCheckReportProtocol:function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var a=b.moduleUrl("parus","checkreport.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([0,0,0,parus.abonent._selectedReports().join(";"),""]);window.open(a,"_blank");parus.parus8.registerAction()}},balanceReportSetReportAccepted:function(){b.forEach(parus.abonent._selectedReports(),function(a){parus.database.execute("acceptReport",{RN:a,ACCEPT:1})});parus.abonent.refresh()},balanceReportSetReportUnaccepted:function(){b.forEach(parus.abonent._selectedReports(),
function(a){parus.database.execute("acceptReport",{RN:a,ACCEPT:2})});parus.abonent.refresh()},balanceReportChangeStatus:function(){var a=[],c=null,e=!1;b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(f){(f=t.byNode(f))&&f.checked&&(c=c||f.reportStatus||"null",(f.reportStatus||"null")!=(c||"null")&&(e=!0),a.push(f.reportRN))});a.length&&(e?parus.parus8.errorMessage("\u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c."):
parus.database.query("BalanceReportStatuses",{REPORT:a.join(";")},b.hitch(this,function(f){f=parus.parus8.rowNodes(f);if(0==f.length)parus.parus8.errorMessage("\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0442\u0430\u0442\u0443\u0441\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043e\u0442\u0447\u0435\u0442\u0430.");
else{var g=new parus.balanceStatusesDialog({statuses:f,onApply:b.hitch(this,function(){parus.database.execute("reportSetStatus",{REPORT:a.join(";"),STATUS:g.statusesGrid.store.getValue(g.statusesGrid.selection.getFirstSelected(),"RN","")});parus.abonent.refresh();return!0})});g.show()}})))},balanceStatesHistory:function(){var a=parus.dictionaries.BalanceReportsStatesHistory;b.mixin(a,{dictionary:a,unitCode:a.unitCode,hideCancel:!0,gridConditions:{PRN:parus.abonent._selectedReport()},onApply:b.hitch(this,
function(c){return!0})});(new parus.dictionaryDialog(a)).show()},balanceStatusesHistory:function(){var a=parus.dictionaries.BalanceReportsStatusesHistory;b.mixin(a,{dictionary:a,unitCode:a.unitCode,hideCancel:!0,gridConditions:{PRN:parus.abonent._selectedReport()},onApply:b.hitch(this,function(c){return!0})});(new parus.dictionaryDialog(a)).show()},balanceValuesHistory:function(){var a=parus.dictionaries.BalanceReportsValuesHistory,c={};b.mixin(c,{PRN:parus.abonent._selectedReport()});var e=new t.Menu({"class":"balanceMenu"});
e.addChild(new t.MenuItem({label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",itemAction:!0,defaultIcon:"PCdocumentCustomIcon",onClick:b.hitch(this,function(){var h=new parus.balanceValuesHistoryDialog({onShow:function(){var l=g.grid.store,m=g.grid.selection.getFirstSelected();h.userEdit.attr("value",l.getValue(m,"USERNAME"));h.dateEdit.attr("value",l.getValue(m,"REPORT_DATE"));h.noteEdit.attr("value",l.getValue(m,"NOTE"))},onApply:function(){var l=g.grid.store,m=g.grid.selection.getFirstSelected();
parus.database.execute("updateValuesHistory",{RN:l.getValue(m,"RN"),NOTE:h.noteEdit.value});parus.balance.refreshGrid(g.grid);return!0}});h.show()})}));e.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c...",defaultIcon:"PCreduceCustomIcon",itemAction:!0,onClick:b.hitch(this,function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var h=
g.grid.store,l=g.grid.selection.getFirstSelected(),m=0;m<g.grid.selection.getSelectedCount();m++)parus.database.execute("deleteValuesHistory",{RN:h.getValue(l,"RN")}),l=g.grid.selection.getNextSelected(l);parus.balance.refreshGrid(g.grid);return!0})})).show()})}));e.addChild(new t.MenuSeparator);var f=function(h,l){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var m=document.createElement("form");m.method="GET";m.action=parus.database.getHistoryUrl(h);"html"==h&&(m.target="_blank");var p=document.createElement("input");p.type="hidden";p.name="rn";p.value=g.getValue();m.appendChild(p);void 0!=l&&(p=document.createElement("input"),p.type="hidden",p.name="colormode",p.value=l,m.appendChild(p));document.body.appendChild(m);m.submit();document.body.removeChild(m)}};e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 Excel...",
defaultIcon:"PCxlsCustomIcon",itemAction:!0,onClick:b.hitch(this,function(){f("xls")})}));e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF...",itemAction:!0,onClick:b.hitch(this,function(){(new parus.excelColorModeDialog({onApply:function(){f("pdf",this.colorModeEdit.value);return!0}})).show()})}));e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML...",
itemAction:!0,onClick:b.hitch(this,function(){(new parus.excelColorModeDialog({onApply:function(){f("html",this.colorModeEdit.value);return!0}})).show()})}));e.startup();b.mixin(a,{dictionary:a,unitCode:a.unitCode,hideCancel:!0,gridConditions:c,onApply:b.hitch(this,function(h){return!0}),menu:e});var g=new parus.dictionaryDialog(a);g.show()},balanceShowReportContents:function(){parus.balance.doShowReportContents(parus.abonent._selectedReports(),!1)},balanceCheckAbsentReports:function(){var a=new parus.balanceCheckAbsentReportsDialog({kind:0,
onApply:function(){(new parus.balanceAbsentReportsDialog({kind:0,date:b.date.locale.format(a.reportDate.value,{selector:"date",datePattern:"dd.MM.yyyy"}),agentGroup:a.agentsGroupEdit.value,onClose:b.hitch(this,function(c){parus.abonent.refresh()})})).show();return!0}});a.show()},balanceReportsLoadReports:function(){(new parus.balanceLoadReportsDialog({kind:0,onApply:b.hitch(this,function(){parus.abonent.refresh();return!0})})).show()},downloadReport:function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var a=parus.abonent._selectedReports();a.length&&(parus.database._xhr("report.xml",null,{REPORTS:a.join(";")})&&(a=document.createElement("form"),a.method="GET",a.action=parus.database.getReportXmlDataUrl(),a.target="_blank",document.body.appendChild(a),a.submit(),document.body.removeChild(a)),parus.abonent.refresh())}},balanceReportsCustomFormatDownloadReports:function(){(new parus.balanceCustomDownloadReportsDialog({kind:0})).show()},balanceReportsUndoExport:function(){(new parus.confirmationDialog({message:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430 \u0443\u0447\u0435\u0442\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432?",
onApply:b.hitch(this,function(){b.forEach(parus.abonent._selectedReports(),function(a){parus.database.execute("undoReportExport",{RN:a})});parus.abonent.refresh();return!0})})).show()},downloadExcelReportPDF:function(){var a=[],c=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(e){(e=t.byNode(e))&&e.checked&&(a.push(e.reportRN),-1==b.indexOf(c,e.editionRN)&&c.push(e.editionRN))});a.length&&(1==a.length?parus.balance.downloadExcelWorkBook("BalanceReports",a[0],null,null,"pdf"):
parus.balance.downloadExcelWorkBook("BalanceReports",a,"*",1<c.length?"*":null,"pdf"))},downloadExcelReportHTML:function(){var a=[],c=[];b.query("*[widgetId]",parus.abonent.listView.domNode).forEach(function(e){(e=t.byNode(e))&&e.checked&&(a.push(e.reportRN),-1==b.indexOf(c,e.editionRN)&&c.push(e.editionRN))});a.length&&(1==a.length?parus.balance.downloadExcelWorkBook("BalanceReports",a[0],null,null,"html"):parus.balance.downloadExcelWorkBook("BalanceReports",a,"*",1<c.length?"*":null,"html"))},balanceReportsExchangeExport:function(){var a=
new parus.balanceReportsExchangeExportDialog({onApply:b.hitch(this,function(){var c=parus.abonent._selectedReports();c=parus.database.execute("BalanceReportExchangeExport",{RN:c.join(";"),CODE:a.exchangeKind.value,JRNL_SIGN:a.useJournal.attr("checked")?"1":"0",VERSIONNUMBER:a.versionNumber.value||"",PERIOD:a.periodEdit.value||"",LOGGING:a.reportTypeEdit.attr("value"),LOG_KIND:a.reportEdit.value||"",ARCH_KIND:a.archiveEdit.value||"",ARCH_NAME:a.archiveNameEdit.value||"",JOURNAL_CATALOG:a.journalCatalog.value||
""});if(!c)return!1;c=parus.parus8.rowNodes(c)[0];var e=[parus.parus8.nodeField(c,"MESSAGE"),"\x3cbr/\x3e"],f=(parus.parus8.nodeField(c,"clobFILES")||"").split(";")||[],g=parus.parus8.nodeField(c,"IDENT"),h=!1;b.forEach(f,function(l){parus.parus8._themeEditorMode?alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e."):
l&&(h||(e.push("\x3cbr/\x3e\u0424\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f:\x3cbr/\x3e"),h=!0),l=l.split("|"),e.push('\x3ca target\x3d"_blank" href\x3d"'+parus.database.getBufferUrl(l[0])+'"\x3e'+l[1]+"\x3c/a\x3e\x3cbr/\x3e"))});setTimeout(function(){parus.parus8.notificationMessage(e.join(""),function(){parus.database.execute("clearFileBuffer",{IDENT:g})})},100);return!0})});a.show()},balanceReportsExchangeImport:function(){var a=function(e,
f,g){b.mixin(e,{RN:f,IDENT:g});if(e=parus.database._xhr("exchangeimport.xml",null,e)){var h=parus.parus8.rowNodes(e)[0];setTimeout(function(){var l=[parus.parus8.nodeField(h,"MESSAGE")];"1"==parus.parus8.nodeField(h,"HASLOG")&&(l.push("\x3cbr/\x3e"),l.push("\x3cbr/\x3e"),l.push('\x3ca href\x3d"'+parus.database.getExchangeImportLogUrl()+'"\x3e\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438\x3c/a\x3e'));parus.parus8.notificationMessage(l.join(""));
parus.abonent.refresh()},100)}};var c=new parus.balanceReportsExchangeImportDialog({onShow:function(){c.restoreFormLastValues();setTimeout(function(){t.hideTooltip(c.fileData)},10)},onApply:b.hitch(this,function(){var e={CODE:c.exchangeKind.value,JRNL_SIGN:c.useJournal.attr("checked")?"1":"0",REPORTS_CATALOG:c.reportsCatalog.value,KIND:consolidated,BDATE:c.reportDate.attr("value")?b.date.locale.format(c.reportDate.attr("value"),{selector:"date",datePattern:"dd.MM.yyyy"}):"",AGENT:c.agentCode.attr("value"),
LOGGING:c.reportTypeEdit.attr("value"),LOG_KIND:c.reportEdit.value||"",RELOAD:c.canOverWrite.attr("value")||"2",RECALC:c.recalcReports.checked?"1":"0",JRNL_SHOW:c.showJournal.checked?"1":"0",JOURNAL_CATALOG:c.journalCatalog.value||""},f=c.showJournal.checked,g=new parus.progressDialog({message:"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430."}),h=function(r){g.close();g.destroyRecursive();if(f){var w=
new parus.balanceReportsExchangeJournalDialog({applyProgressLabel:"\u041e\u0431\u043c\u0435\u043d \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430.",kind:consolidated,catalog_name:c.journalCatalog.value||"*",onApply:function(){for(var x=w.grid.store,A=w.grid.selection.getFirstSelected(),B=[],D=0;D<w.grid.selection.getSelectedCount();D++)B.push(x.getValue(A,"RN")),A=w.grid.selection.getNextSelected(A);a(e,B.join(";")||"!*",r);return!0}});
w.show()}else a(e,"!*",r)},l=b.filter(c._files,function(r){return!!r.value});g.show();if(l.length){var m=l.length-1,p=null;parus.database.toBuffer(l[m],"clob",p,function(r){p=p||r;m--;0<=m?parus.database.toBuffer(l[m],"clob",p,arguments.callee):h(p)})}else h(null);return!0})});c.show()},_userApplication:function(a,c,e,f){var g=new parus.balanceUserProcParamsDialog({userproc:e,queryid:"userAppParams",title:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",
onApply:function(){f?parus.balance.executeUserApplication(e,a.join(";"),c,g.paramValues(),null,null,null,function(){parus.abonent.refresh()}):a.length?b.forEach(a,function(h,l){parus.balance.executeUserApplication(e,h,c,g.paramValues(),null,null,null,l==a.length-1?function(){parus.abonent.refresh()}:null)}):parus.balance.executeUserApplication(e,null,c,g.paramValues(),null,null,null,function(){parus.abonent.refresh()});return!0}});g.show()},userApplications:function(){var a=new parus.balanceUserProcsDialog({unitcode:"BalanceReports",
queryid:"userApps",title:"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",onApply:function(){var c,e=!1;b.forEach(a.userProcsGrid.selection.getSelected(),function(f){c=a.userProcsGrid.store.getValue(f,"RN","");e="0"!=a.userProcsGrid.store.getValue(f,"GROUP_RECORDS","")});if(!c)return!1;parus.abonent._userApplication(parus.abonent._selectedReports(),a.unitcode,
c,e);return!0}});a.show()},_userProcedure:function(a,c,e,f,g,h){var l=b.hitch(this,function(){var m=new parus.balanceUserProcParamsDialog({useSavedValues:"0"!=parus.parus8.optionValue("StoreUserProcsParams"),userproc:e,onApply:b.hitch(this,function(){if(h)parus.balance.executeUserProc(e,a.join(";"),c,m.paramValues());else if(g){if(!a.length)return parus.parus8.errorMessage("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d."),
!0;b.forEach(a,function(p){parus.balance.executeUserProc(e,p,c,m.paramValues())})}else parus.balance.executeUserProc(e,null,c,m.paramValues());parus.abonent.refresh();return!0})});m.show()});f?(new parus.confirmationDialog({message:f,onApply:function(){l();return!0}})).show():l()},userProcedures:function(){var a=new parus.balanceUserProcsDialog({unitcode:"BalanceReports",onApply:b.hitch(this,function(){var c,e="",f=!1,g=!1;b.forEach(a.userProcsGrid.selection.getSelected(),function(h){c=a.userProcsGrid.store.getValue(h,
"RN","");e=a.userProcsGrid.store.getValue(h,"CONFIRM_TEXT","");f="0"!=a.userProcsGrid.store.getValue(h,"PERRECORD","");g="0"!=a.userProcsGrid.store.getValue(h,"PERSELECTION","")});if(!c)return!1;parus.abonent._userProcedure(parus.abonent._selectedReports(),"BalanceReports",c,e,f,g);return!0})});a.show()},_userReport:function(a,c,e,f,g){var h=new parus.balanceUserReportParamsDialog({userproc:e,unitcode:c,userreporttype:g,rns:a.join(";"),onApply:b.hitch(this,function(){"4"==g?parus.balance.downloadUserReport(e,
a.join(";"),c,b.clone(h.paramValues()),f):parus.balance.executeUserReport(e,a.join(";"),c,b.clone(h.paramValues()),f);return!0})});h.show()},userReports:function(){var a=new parus.balanceUserProcsDialog({unitcode:"BalanceReports",queryid:"userReports",title:"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430",onApply:function(){var c,e="",f="1";b.forEach(a.userProcsGrid.selection.getSelected(),
function(g){c=a.userProcsGrid.store.getValue(g,"RN","");e=a.userProcsGrid.store.getValue(g,"NAME","");f=a.userProcsGrid.store.getValue(g,"REPORT_TYPE","1")});if(!c)return!1;parus.abonent._userReport(parus.abonent._selectedReports(),"BalanceReports",c,e,f);return!0}});a.show()},userExternalAccounts:function(){parus.balance.userExternalAccounts()},balanceReportsDigitalSignatures:function(){(new parus.balanceReportDigitalSignaturesDialog({rn:parus.abonent._selectedReport(),unitCode:"BalanceReports"})).show()},
balanceReportsSign:function(){var a=parus.abonent._selectedReports();if(a.length){var c=new parus.signDialog({rn:a,unitCode:"BalanceReports",onApply:function(){var e=c.getIsSimpleSign(),f=c.getNote(),g=c.getIssuedBy(),h=c.getIssuedTo(),l=c.getValidFrom(),m=c.getValidTo(),p=c.getSerialNumber(),r=c.getThumbprint(),w=c.isUserCertificatesUsed?r:null,x=[];b.forEach(a,function(B){var D=e?null:parus.database.execute("GetSignData",{RN:B,UNITCODE:"BalanceReports"});(D||e)&&x.push({rn:B,data:e?null:parus.parus8.nodeField(parus.parus8.rowNodes(D)[0],
"clobDOC_DATA"),signedData:null})});var A=function(){b.forEach(x,function(B){(B.signedData||e)&&parus.database.execute("SaveSign",{RN:B.rn,UNITCODE:"BalanceReports",SIMPLESIGN:e?"1":"0",clobSIGN:B.signedData,NOTE:f,ISSUER:g,OWNER:h,VALID_FROM:l,VALID_TO:m,SERIALNUMBER:p,THUMBPRINT:r,THUMBPRINT_TO_SAVE:w})});parus.abonent.refresh()};e?A():parus.digitalSignature.signData(x,r).then(A,function(B){parus.parus8.errorMessage(B)});return!0}});c.show()}},balanceReportsRemoveSign:function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c (\u043f\u043e\u0434\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){b.forEach(parus.abonent._selectedReports(),function(a){parus.database.execute("DeleteSign",{RN:a,UNITCODE:"BalanceReports"})});parus.abonent.refresh();return!0})})).show()},exportToFile:function(){var a=parus.abonent._selectedReports();if(a.length){var c=new parus.balanceReportsFileExportDialog({onApply:function(){if(parus.parus8._themeEditorMode)return alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e."),
!0;var e=parus.database.execute("FindUserProcedure",{CODE:c.userProcEdit.value});if(!e)return!1;var f=new parus.balanceUserProcParamsDialog({useSavedValues:"0"!=parus.parus8.optionValue("StoreUserProcsParams"),userproc:parus.parus8.nodeField(parus.parus8.rowNodes(e)[0],"NRN"),onApply:b.hitch(this,function(){parus.database._xhr("fileexport.xml",null,{RN:a.join(";"),USERPROC:f.userproc,UNITCODE:"BalanceReports",PARAMS:parus.xml.toXml({PARAMS:{PARAMS:f.paramValues()}})},function(g){"error"!=g.documentElement.nodeName&&
setTimeout(function(){var h=document.createElement("form");h.method="GET";h.action=parus.database.getCustomDownloadDataUrl();h.target="_blank";document.body.appendChild(h);h.submit();document.body.removeChild(h)},1E3)});return!0})});f.show();return!0}});c.show()}},importFromFile:function(){(new parus.balanceReportsFileImportDialog({onApply:b.hitch(this,function(){parus.abonent.refresh();return!0})})).show()},exportToSignedFile:function(){var a=parus.abonent._selectedReports();if(a.length){var c=new parus.balanceReportsFileExportDialog({onApply:function(){var e=
parus.database.execute("FindUserProcedure",{CODE:c.userProcEdit.value});if(!e)return!1;var f=new parus.balanceUserProcParamsDialog({useSavedValues:"0"!=parus.parus8.optionValue("StoreUserProcsParams"),userproc:parus.parus8.nodeField(parus.parus8.rowNodes(e)[0],"NRN"),onApply:b.hitch(this,function(){var g=parus.xml.toXml({PARAMS:{PARAMS:f.paramValues()}}),h=new parus.signDialog({showNote:!1,allowSimpleSign:!1,checkPluginVersion:!0,requiredVersion:{major:1,minor:5,build:1500},rn:a,unitCode:unitCode,
onApply:b.hitch(this,function(){var l=[],m,p=parus.parus8.getXMLReportSignTemplateName(h.getGOSTVersion(),h.getGOSTKeySize());if(0==p.length)return parus.parus8.errorMessage("\u041d\u0435\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0413\u041e\u0421\u0422 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0435: "+
h.getGOSTVersion()+" ("+h.getGOSTKeySize()+")"),!0;b.xhrGet({sync:!0,handleAs:"xml",url:"../parusjs/"+p,load:b.hitch(this,function(w){return m=w})});var r;b.forEach(a,function(w){"error"!=parus.database._xhr("fileexport.xml",null,{RN:w,USERPROC:f.userproc,UNITCODE:"BalanceReports",PARAMS:g}).documentElement.nodeName&&b.xhrGet({sync:!0,handleAs:"xml",url:parus.database.getCustomDownloadDataUrl(),load:b.hitch(this,function(x,A){var B="";b.forEach(A.xhr.getResponseHeader("Content-Disposition").split(";"),
function(I){0<=I.indexOf("filename\x3d")&&(B=b.string.trim(I.split("\x3d")[1]),B=B.substr(1,B.length-2))});x.documentElement.appendChild(m.documentElement);var D=9>=b.isIE?x.xml:(new XMLSerializer).serializeToString(x);D=b.trim(D.replace(/>\s+</g,function(I){return I.replace(/\s+/g,"")}));l.push({rn:w,fileName:B,data:D});return x}),error:function(x){r||(r="\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \x3cbr/\x3e\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u043b \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0431\u043e\u0439, \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0442\u0430\u043b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \x3cbr/\x3e\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0439\u0442\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.");
return x}})});if(r)return parus.parus8.errorMessage(r),!0;parus.digitalSignature.signXMLData(l,h.getThumbprint(),!0).then(b.hitch(this,function(){b.forEach(l,function(w){if(w.signedData)if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var x=document.createElement("form");x.method="POST";x.action=parus.database.getDownloadSignedReportPackageUrl();x.target="_blank";var A=function(B,D){var I=document.createElement("input");I.type="hidden";I.name=B;I.value=D;x.appendChild(I)};A("unitcode","BalanceReports");A("reports",w.rn);A("fileName",w.fileName);A("fileData",w.signedData);A("params",g);document.body.appendChild(x);x.submit();document.body.removeChild(x)}})}),function(w){parus.parus8.errorMessage(w)});return!0})});h.show();
return!0})});f.show();return!0}});c.show()}},_selectedSubReports:function(){var a=[];b.query("*[widgetId]",parus.abonent.subreportsPopup.dataContainer.containerNode).forEach(function(c){(c=t.byNode(c))&&c.subreportRN&&c.checked&&a.push(c.subreportRN)});return a},_selectedSubReport:function(){return parus.abonent._selectedSubReports()[0]},_selectedSubReportReport:function(){return parus.abonent.subreportsPopup.tile.reportRN},balanceSubReportsClearValues:function(){parus.abonent.subreportsPopup.inDialog=
!0;(new parus.confirmationDialog({message:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439?",onApply:b.hitch(this,function(){b.forEach(parus.abonent._selectedSubReports(),function(a){parus.database.execute("clearSubReportValues",{RN:a})});parus.abonent.subreportsPopup._loadSubreports();return!0}),onClose:function(){parus.abonent.subreportsPopup.inDialog=!1}})).show()},balanceCheckSubReportProtocol:function(){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var a=b.moduleUrl("parus","checkreport.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([0,1,0,parus.abonent._selectedSubReports().join(";"),""]);window.open(a,"_blank");parus.parus8.registerAction()}},balanceSubReportChangeStatus:function(){var a=[],c=null,e=!1;b.query("*[widgetId]",parus.abonent.subreportsPopup.dataContainer.containerNode).forEach(function(f){(f=t.byNode(f))&&f.checked&&(c=c||f.reportStatus||"null",(f.reportStatus||"null")!=
(c||"null")&&(e=!0),a.push(f.subreportRN))});a.length&&(e?(parus.abonent.subreportsPopup.inDialog=!0,parus.parus8.errorMessage("\u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c.",function(){parus.abonent.subreportsPopup.inDialog=!1})):a.length&&parus.database.query("BalanceSubReportStatuses",
{SUBREPORT:a.join(";")},b.hitch(this,function(f){f=parus.parus8.rowNodes(f);if(0==f.length)parus.abonent.subreportsPopup.inDialog=!0,parus.parus8.errorMessage("\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0442\u0430\u0442\u0443\u0441\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043f\u043e\u0434\u043e\u0442\u0447\u0435\u0442\u0430.",
function(){parus.abonent.subreportsPopup.inDialog=!1});else{parus.abonent.subreportsPopup.inDialog=!0;var g=new parus.balanceStatusesDialog({statuses:f,onApply:b.hitch(this,function(){parus.database.execute("subreportSetStatus",{SUBREPORT:a.join(";"),STATUS:g.statusesGrid.store.getValue(g.statusesGrid.selection.getFirstSelected(),"RN","")});parus.abonent.subreportsPopup._loadSubreports();return!0}),onClose:function(){parus.abonent.subreportsPopup.inDialog=!1}});g.show()}})))},balanceSubReportValuesHistory:function(){var a=
parus.dictionaries.BalanceReportsValuesHistory,c={};b.mixin(c,{PRN:parus.abonent._selectedSubReportReport(),BLSUBREPORT:parus.abonent._selectedSubReport()});var e=new t.Menu({"class":"balanceMenu"});e.addChild(new t.MenuItem({label:"\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c...",itemAction:!0,defaultIcon:"PCdocumentCustomIcon",onClick:b.hitch(this,function(){var h=new parus.balanceValuesHistoryDialog({onShow:function(){var l=g.grid.store,m=g.grid.selection.getFirstSelected();h.userEdit.attr("value",
l.getValue(m,"USERNAME"));h.dateEdit.attr("value",l.getValue(m,"REPORT_DATE"));h.noteEdit.attr("value",l.getValue(m,"NOTE"))},onApply:function(){var l=g.grid.store,m=g.grid.selection.getFirstSelected();parus.database.execute("updateValuesHistory",{RN:l.getValue(m,"RN"),NOTE:h.noteEdit.value});parus.balance.refreshGrid(g.grid);return!0}});h.show()})}));e.addChild(new t.MenuItem({label:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c...",defaultIcon:"PCreduceCustomIcon",itemAction:!0,onClick:b.hitch(this,
function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var h=g.grid.store,l=g.grid.selection.getFirstSelected(),m=0;m<g.grid.selection.getSelectedCount();m++)parus.database.execute("deleteValuesHistory",{RN:h.getValue(l,"RN")}),l=g.grid.selection.getNextSelected(l);parus.balance.refreshGrid(g.grid);return!0})})).show()})}));e.addChild(new t.MenuSeparator);
var f=function(h,l){if(parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");else{var m=document.createElement("form");m.method="GET";m.action=parus.database.getHistoryUrl(h);"html"==h&&(m.target="_blank");var p=document.createElement("input");
p.type="hidden";p.name="rn";p.value=g.getValue();m.appendChild(p);void 0!=l&&(p=document.createElement("input"),p.type="hidden",p.name="colormode",p.value=l,m.appendChild(p));document.body.appendChild(m);m.submit();document.body.removeChild(m)}};e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 Excel...",defaultIcon:"PCxlsCustomIcon",itemAction:!0,onClick:b.hitch(this,function(){f("xls")})}));e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PDF...",
itemAction:!0,onClick:b.hitch(this,function(){(new parus.excelColorModeDialog({onApply:function(){f("pdf",this.colorModeEdit.value);return!0}})).show()})}));e.addChild(new t.MenuItem({label:"\u0412\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 HTML...",itemAction:!0,onClick:b.hitch(this,function(){(new parus.excelColorModeDialog({onApply:function(){f("html",this.colorModeEdit.value);return!0}})).show()})}));e.startup();b.mixin(a,{dictionary:a,unitCode:a.unitCode,
hideCancel:!0,gridConditions:c,onApply:function(h){return!0},onClose:function(){parus.abonent.subreportsPopup.inDialog=!1},menu:e});parus.abonent.subreportsPopup.inDialog=!0;var g=new parus.dictionaryDialog(a);g.show()},balanceSubReportStatusesHistory:function(){var a=parus.dictionaries.BalanceSubReportsStatusesHistory;parus.abonent.subreportsPopup.inDialog=!0;b.mixin(a,{dictionary:a,unitCode:a.unitCode,hideCancel:!0,gridConditions:{PRN:parus.abonent._selectedSubReport()},onApply:function(c){return!0},
onClose:function(){parus.abonent.subreportsPopup.inDialog=!1}});(new parus.dictionaryDialog(a)).show()},downloadExcelSubReportPDF:function(){var a=parus.abonent._selectedSubReports();if(1==a.length)parus.balance.downloadExcelWorkBook("BalanceSubReports",parus.abonent._selectedSubReportReport(),a,null,"pdf");else if(1<a.length){a=[];for(var c="",e=grid.selection.getFirstSelected(),f=0;f<grid.selection.getSelectedCount();f++)c||(c=store.getValue(e,"PRN")),a.push(store.getValue(e,"RN")),e=grid.selection.getNextSelected(e);
parus.balance.downloadExcelWorkBook("BalanceSubReports",parus.abonent._selectedSubReportReport(),a,null,"pdf")}},downloadExcelSubReportHTML:function(){var a=parus.abonent._selectedSubReports();if(1==a.length)parus.balance.downloadExcelWorkBook("BalanceSubReports",parus.abonent._selectedSubReportReport(),a,null,"html");else if(1<a.length){a=[];for(var c="",e=grid.selection.getFirstSelected(),f=0;f<grid.selection.getSelectedCount();f++)c||(c=store.getValue(e,"PRN")),a.push(store.getValue(e,"RN")),e=
grid.selection.getNextSelected(e);parus.balance.downloadExcelWorkBook("BalanceSubReports",parus.abonent._selectedSubReportReport(),a,null,"html")}},userApplicationsSubReport:function(){var a=new parus.balanceUserProcsDialog({unitcode:"BalanceSubReports",queryid:"userApps",title:"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",onApply:function(){var c,
e=!1;b.forEach(a.userProcsGrid.selection.getSelected(),function(f){c=a.userProcsGrid.store.getValue(f,"RN","");e="0"!=a.userProcsGrid.store.getValue(f,"GROUP_RECORDS","")});if(!c)return!1;parus.abonent._userApplication(parus.abonent._selectedSubReports(),a.unitcode,c,e);return!0}});a.show()},userProceduresSubReport:function(){var a=new parus.balanceUserProcsDialog({unitcode:"BalanceSubReports",onApply:b.hitch(this,function(){var c,e="",f=!1,g=!1;b.forEach(a.userProcsGrid.selection.getSelected(),function(h){c=
a.userProcsGrid.store.getValue(h,"RN","");e=a.userProcsGrid.store.getValue(h,"CONFIRM_TEXT","");f="0"!=a.userProcsGrid.store.getValue(h,"PERRECORD","");g="0"!=a.userProcsGrid.store.getValue(h,"PERSELECTION","")});if(!c)return!1;parus.abonent._userProcedure(parus.abonent._selectedSubReports(),"BalanceSubReports",c,e,f,g);return!0})});a.show()},userReportsSubReport:function(){var a=new parus.balanceUserProcsDialog({unitcode:"BalanceSubReports",queryid:"userReports",title:"\u0412\u044b\u0431\u043e\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430",
onApply:function(){var c,e="",f="1";b.forEach(a.userProcsGrid.selection.getSelected(),function(g){c=a.userProcsGrid.store.getValue(g,"RN","");e=a.userProcsGrid.store.getValue(g,"NAME","");f=a.userProcsGrid.store.getValue(g,"REPORT_TYPE","1")});if(!c)return!1;parus.abonent._userReport(parus.abonent._selectedSubReports(),"BalanceSubReports",c,e,f);return!0}});a.show()},balanceSubReportsDigitalSignatures:function(){(new parus.balanceReportDigitalSignaturesDialog({rn:parus.abonent._selectedSubReport(),
unitCode:"BalanceSubReports"})).show()},balanceSubReportsSign:function(){var a=parus.abonent._selectedSubReports();if(a.length){var c=new parus.signDialog({rn:a,unitCode:"BalanceSubReports",onApply:function(){var e=[];b.forEach(a,function(x){var A=parus.database.execute("GetSignData",{RN:x,UNITCODE:"BalanceSubReports"});A&&e.push({rn:x,data:parus.parus8.nodeField(parus.parus8.rowNodes(A)[0],"clobDOC_DATA")})});var f=c.getNote(),g=c.getIssuedBy(),h=c.getIssuedTo(),l=c.getValidFrom(),m=c.getValidTo(),
p=c.getSerialNumber(),r=c.getThumbprint(),w=c.isUserCertificatesUsed?r:null;parus.digitalSignature.signData(e,r).then(b.hitch(this,function(){b.forEach(e,function(x){x.signedData&&parus.database.execute("SaveSign",{RN:x.rn,UNITCODE:"BalanceSubReports",clobSIGN:x.signedData,NOTE:f,ISSUER:g,OWNER:h,VALID_FROM:l,VALID_TO:m,SERIALNUMBER:p,THUMBPRINT:r,THUMBPRINT_TO_SAVE:w})});parus.abonent.refresh()}),function(x){parus.parus8.errorMessage(x)});return!0}});c.show()}},balanceSubReportsRemoveSign:function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c (\u043f\u043e\u0434\u043f\u0438\u0441\u0438)?",
onApply:b.hitch(this,function(){b.forEach(parus.abonent._selectedSubReports(),function(a){parus.database.execute("DeleteSign",{RN:a,UNITCODE:"BalanceSubReports"})});parus.abonent.refresh();return!0})})).show()}})})},"parus/templateGridPaneMixins":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.templateGridPaneMixins");b.require("parus.templateGridPane");b.require("parus.excelFormulas");b.require("parus.designerEdit");b.require("parus.balanceUnitsDialog");b.declare("parus.templateGridPaneInplaceEditor",
b.Stateful,{id:null,pane:null,balanceIndex:null,value:null,dataType:null,strLen:null,intPart:null,fracPart:null,regExp:null,nullable:null,dictCheck:null,dictNote:null,dicts:null,col:null,row:null,dictionary:null,connection:null,valueNode:null,editWidget:null,node:null,modified:!1,canEdit:!0,valueChanged:null,_onPasteConnection:null,cancelValue:function(){this.editWidget&&(t.hideTooltip(this.editWidget.domNode),this._onPasteConnection&&b.disconnect(this._onPasteConnection),setTimeout(b.hitch(this.editWidget,
this.editWidget.destroyRecursive),100),this.editWidget=null,this.connection=b.connect(this.node,"onclick",b.hitch(this,this.clickHandler)),this.pane.editing=null,this.pane.selectCell(this.node),this.pane.focusTemplate())},postValue:function(){if(!this.editWidget)return!0;t.hideTooltip(this.editWidget.domNode);if(this.editWidget.validate&&!this.editWidget.validate())return t.focus(this.editWidget.focusNode||this.editWidget.domNode),!1;var c=this.pane.setCellText(this.node,this.valueNode,this.editWidget.value);
this.modified=!0;this._onPasteConnection&&b.disconnect(this._onPasteConnection);setTimeout(b.hitch(this.editWidget,this.editWidget.destroyRecursive),100);this.editWidget=null;this.connection=b.connect(this.node,"onclick",b.hitch(this,this.clickHandler));this.pane.editing=null;this.pane.modified=!0;this.pane.onModified();c&&this.valueChanged&&this.valueChanged(this.id);this.pane.selectCell(this.node);this.pane.focusTemplate();return!0},clickHandler:function(c){c=c||event;parus.parus8.registerAction();
this.pane.selectCell(this.node,!!c.shiftKey||!!c.altKey||!!c.ctrlKey);if(!(c.shiftKey||c.altKey||c.ctrlKey||this.pane.editing&&!this.pane.editing.postValue())&&this.valueNode){b.disconnect(this.connection);c=function(){return null};var e=this.node.className.split(" ");e.unshift("templateGridInplaceEdit");b.query("[class]",this.node).forEach(function(p){e=e.concat(p.className.split(" "))});e=b.filter(e,function(p){return"templateGridActiveCellBorder"!=p&&"templateGridActiveCellBk"!=p});var f={intermediateChanges:!0,
selectOnClick:!0,value:parus.parus8.externalStringToValue(parus.parus8.getTextContent(this.valueNode),this.dataType),onBlur:b.hitch(this,function(){this.editWidget&&(this.editWidget.showingDictionary||this.editWidget.showingDialog||this.postValue())}),"class":e.join(" "),required:!this.nullable,onKeyDown:b.hitch(this,function(p){if(13==p.keyCode||9==p.keyCode){var r=13==p.keyCode?this.pane.moveAfterReturnDirection:p.shiftKey?37:39;this.postValue()&&this.pane.keyDown({keyCode:r,shiftKey:!1,cancelBubble:!1});
p.preventDefault&&p.preventDefault();p.stopPropagation&&p.stopPropagation();p.cancelBubble=!0;p.keyCode=0;return!1}27==p.keyCode&&this.cancelValue()})};if(this.dicts)c=function(){return parus.templateGridDesignerEdit},b.mixin(f,{dicts:this.dicts,subreport:this.pane.subreport,onApplyDictionary:b.hitch(this,function(p){this.postValue()})});else if(this.dictionary){c=function(){return parus.extraDictEdit};var g=this.dictNote?"NOTE":"VALUE";b.mixin(f,{extraDictionaryCode:this.dictionary,agent:this.pane.agent,
section:this.pane.section,arbitrary:!this.dictCheck,searchAttr:g});this.node.getAttribute("tid")&&b.mixin(f,{dialogClass:parus.balanceTemplateGridExtraDictionaryDialog,multiselect:!0,onApplyDictionary:b.hitch(this,function(p){if(p.cloneTable.checked){var r=p.grid.selection.getFirstSelected();this.editWidget.setValue(p.grid.store.getValue(r,g));r=p.grid.selection.getNextSelected(r);for(var w=this.pane._tables.byKey[this.node.getAttribute("tid")];r;){var x=w.placeClone();b.forEach(x._staticValues,b.hitch(this,
function(A){A.id==this.id&&this.pane.setCellText(A.node,A.valueNode,p.grid.store.getValue(r,g))}));r=p.grid.selection.getNextSelected(r)}}else(r=p.grid.selection.getFirstSelected())&&this.editWidget.setValue(p.grid.store.getValue(r,g));this.postValue()})})}else if("1"==this.dataType){c=function(){return parus.templateGridPaneNumberEdit};for(var h="",l=0;l<this.intPart;l++)h+="#";if(this.fracPart)for(h+=".",l=0;l<this.fracPart;l++)h+="#";b.mixin(f,{constraints:{min:this.minVal?b.number.parse(this.minVal.toString().split(".").join(",")):
-1E16,max:this.maxVal?b.number.parse(this.maxVal.toString().split(".").join(",")):1E16,pattern:h},editOptions:{pattern:h},onKeyPress:b.hitch(this,function(p){if(46==p.charCode){var r=p.target.value,w=t.getSelectionRange(p.target),x=w.start,A=w.end;r=r.substring(0,x)+","+r.substring(A,r.length);this.editWidget&&this.editWidget.attr("value",r);setTimeout(b.hitch(this,function(){t.selectInputText(p.target,x+1,A+1)}),0);p.preventDefault&&p.preventDefault();p.stopPropagation&&p.stopPropagation();p.cancelBubble=
!0;return!1}})})}else"2"==this.dataType?c=function(){return t.form.DateTextBox}:this.node.getAttribute("wt")?(c=function(){return t.form.SimpleTextarea},b.mixin(f,{rows:"",cols:""})):(c=function(){return t.form.ValidationTextBox},b.mixin(f,{maxLength:this.strLen||255,trim:"1"==this.trim,regExp:this.regExp||".*"}));this.editWidget=new (c())(f,this.node.appendChild(document.createElement("div")));this.pane.editing=this;if(this.editWidget){"dijit.form.SimpleTextarea"==this.editWidget.declaredClass?this.editWidget.domNode.removeAttribute("cols"):
this._onPasteConnection=b.connect(this.editWidget.focusNode,"onpaste",this,"_onPaste");if((c=this.editWidget.focusNode)&&c.focus)try{if(b.isFF){var m=this.pane.containerNode.scrollTop;c.focus({preventScroll:!0});this.pane.containerNode.scrollTop=m}else c.focus({preventScroll:!0})}catch(p){}this.editWidget&&this.editWidget.textbox&&t.selectInputText(this.editWidget.textbox)}}},_onPaste:function(c){if(c=c||event){var e=c.clipboardData||clipboardData;e&&(e=b.filter(b.map(e.getData("text").split("\n")||
[],function(f){return f?f.split(String.fromCharCode(9)):[]}),function(f){return!!f.length}),0==e.length||1==e.length&&2>e[0].length||(this.cancelValue(),b.stopEvent(c),c=this.pane,c._doPasteTexts(this.node,e),c.selectCell(this.node),c.focusTemplate()))}}});b.declare("parus.templateGridPaneFormulasMixin",[parus.excelFormulas],{__currentFormatCondition:function(c,e){return{value:this.__fromReference(c,e,null),node:this.getCell("R"+c+"C"+e)}},__applyFormatCondition:function(c,e){var f=function(g){for(var h=
g.className.split(" ")||[""],l=[h[0]],m=0;m<h.length;m++)"templateGridActiveCellBorder"!=h[m]&&"uninitializedTable"!=h[m]&&"templateGridActiveCellBk"!=h[m]||l.push(h[m]);e&&l.push(e);g.className=l.join(" ")};f(c);b.query("[class]",c).forEach(f)},tossDependencies:function(c,e){var f=0;do{var g=!1;f++;for(var h in c){var l=b.indexOf(e,h);-1!==l&&b.forEach(c[h],function(m){m=b.indexOf(e,m);if(-1!==m&&m<l){var p=e[l];e[l]=e[m];e[m]=p;g=!0}})}}while(g&&10>f);b.forEach(c["*"],function(m){if(m){var p=b.indexOf(e,
m);-1!==p&&(e.splice(p,1),e.push(m))}});return e},__calcAndSet:function(c,e){return b.hitch(this,function(){this.pane.setCellText(c,null,b.hitch(this,e)())})},calcAll:function(c){var e=[],f;for(f in this)f.match(/^R\d+C\d+$/)&&e.push(f);e=this.tossDependencies(c,e);b.forEach(e,b.hitch(this,function(g){if(g){var h=this.cells?this.cells.byId[g]:this.getCell(g);(g=this[g])&&h&&this.pane.setCellText(h,null,b.hitch(this,g)())}}))}});b.declare("parus.templateGridPaneCloneMixin",[],{getCell:function(c){var e=
this.cells.byId[c];e||(e=this.table.pane.getCell(c));return e},getCellValue:function(c,e,f,g){if(c&&e){c=this.getCell("R"+c+"C"+e);var h=this.getValueNode(c)}else f&&(c=this.resolveCellIdent(f))&&(h=c.valueNode,c=c.node);h=parus.parus8.getTextContent(h);return g?h:b.number.parse(h)||0},getCellNode:function(c,e,f){if(c&&e)var g=this.getCell("R"+c+"C"+e);else f&&(c=this.resolveCellIdent(f))&&(g=c.node);return g},resolveCellIdent:function(c){var e=null;b.forEach(this._staticValues,b.hitch(this,function(f){"TID_"+
f.balanceIndex==c&&(e=f)}));e||(e=this.table.pane.resolveCellIdent(c));return e},calcAll:function(){this.formulas.calcAll(this.dependencies);for(var c in this.formatConditions)b.hitch(this.formulas,this.formatConditions[c])()}});b.declare("parus.balanceTemplateGridExtraDictionaryDialog",[parus.dictionaryDialog],{gridChanged:function(){this.gridChange();1>=this.grid.selection.getSelectedCount()?(this.cloneTable.attr("disabled",!0),this.cloneTable.attr("checked",!1),b.addClass(this.cloneTableLabel,
"balanceReadOnlyHeader")):(this.cloneTable.attr("disabled",!1),b.removeClass(this.cloneTableLabel,"balanceReadOnlyHeader"))}});b.declare("parus.templateGridPaneNumberEdit",[t.form.NumberTextBox],{_getDisplayedValueAttr:function(){return this.textbox?this.inherited(arguments):null},_getValueAttr:function(){return this.textbox?this.inherited(arguments):null}});var a=parus.designerDictEdit.prototype.dictButtonClick;b.declare("parus.templateGridDesignerEdit",[parus.designerDictEdit],{dicts:null,showingDialog:!1,
subreport:null,autoComplete:!0,onGetGridConditions:function(){var c=this.inherited(arguments)||{};b.mixin(c,{IN_SUBREPORT:this.subreport});return c},_setInfo:function(c,e,f,g){this.unitCode=c;this.methodCode=e;this.inCode=f;this.outCode=g;this.dictionaryInfoText=null;this.autoComplete&&this._checkInfo()},postMixInProperties:function(){this.inherited(arguments);if(this.autoComplete&&1==this.dicts.length){var c=this.dicts[0].split("#");this._setInfo(c[0],c[1],c[2],c[3])}},dictButtonClick:function(){if(!this.showingDialog&&
!this.showingDictionary){var c=b.hitch(this,function(){a.apply(this,arguments)});if(1==this.dicts.length){var e=this.dicts[0].split("#");this._setInfo(e[0],e[1],e[2],e[3]);c()}else{var f=new parus.balanceUnitsDialog({unitcodes:b.map(this.dicts,function(g){return g.split("#")[0]}),onApply:b.hitch(this,function(){var g,h;b.forEach(f.unitsGrid.selection.getSelected(),function(m){g=f.unitsGrid.store.getValue(m,"UNITCODE","")});g&&b.forEach(this.dicts,function(m){m.split("#")[0]==g&&(h=m)});if(h){var l=
h.split("#");this._setInfo(l[0],l[1],l[2],l[3]);setTimeout(c,100)}return!0}),onClose:b.hitch(this,function(){this.showingDialog=!1})});this.showingDialog=!0;setTimeout(function(){f.show()},100)}}}})})},"parus/abonentMoveReportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.abonentMoveReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");
b.declare("parus.abonentMoveReportDialog",[parus.Dialog],{formCode:null,getDatesCondition:function(){return{FORM_CODE:this.formCode}}})})},"parus/balanceIndexConsComparationTemplate":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsComparationTemplate");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.TextBox");b.require("dijit.form.ValidationTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.balanceIndexConsComparation");
b.declare("parus.balanceIndexConsComparationTemplate",[parus.Dialog],{postCreate:function(){this.inherited(arguments);this.nameEdit.attr("store",new parus.gridData({persistent:!0,_data:parus.balanceIndexConsComparation.getTemplates(null,null)}));this.nameEdit.onChange=b.hitch(this,this.validate)}})})},"parus/balanceIndexConsComparationItem":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsComparationItem");b.require("dijit.Dialog");b.require("dijit.form.Button");
b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceIndexConsComparationItem",[parus.Dialog],{})})},"parus/gridExtraRow":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.gridExtraRow");b.require("dojox.grid.cells.dijit");b.require("dojox.grid.enhanced._Plugin");b.require("dojox.grid.EnhancedGrid");b.declare("dojox.grid.enhanced.plugins.extraRow",H.grid.enhanced._Plugin,{name:"extraRow",visible:!0,rowCount:1,_oldCreateView:null,_afterRowConnect:null,
_table:null,_barRows:null,values:null,constructor:function(a,c){this.inherited(arguments);b.mixin(this,c);this._barRows=[];var e=this,f=this.grid,g=this._oldCreateView=b.hitch(this.grid,this.grid.createView);this.grid.createView=function(){e._cleanUp();var h=g.apply(f,arguments);e._afterRowConnect=b.connect(h,"onAfterRow",e,"_afterRow");return h};b.mixin(f,{showExtraRowBar:b.hitch(e,this.show),hideExtraRowBar:b.hitch(e,this.hide),getExtraRowVisible:b.hitch(e,function(){return this.visible}),extraRowObject:e,
onExtraRowValue:function(h,l){return""}})},show:function(){this.visible=!0;this._render();this.grid.setQuery(this.grid.query||{})},hide:function(){this.visible=!1;this._cleanUpBar();this.grid.setQuery(this.grid.query||{})},_afterRow:function(a,c,e){-1==a&&b.query("table",e).forEach(b.hitch(this,function(f){this._cleanUpBar();this._table=f;this.visible&&this._render()}))},_cleanUpEvent:function(){this._table=null;this._afterRowConnect&&(b.disconnect(this._afterRowConnect),this._afterRowConnect=null)},
_cleanUpBar:function(){this._barRows&&b.forEach(this._barRows,function(a){a.parentNode&&a.parentNode.removeChild(a)});this._barRows=[]},_cleanUp:function(){this._cleanUpEvent();this._cleanUpBar()},_render:function(){if(this._table)for(var a=0;a<this.rowCount;a++){var c=this._table.insertRow(-1);this._barRows.push(c);b.addClass(c,"dojoxGridStatusBarRow");b.forEach(this._table.rows[0].cells,b.hitch(this,function(f){var g=c.insertCell(-1);g.style.padding="2px 5px 2px 0px";g.style.textAlign=f.style.textAlign;
b.addClass(g,"dojoxGridCell")}));var e=-1;b.forEach(this.grid.views.views[0].structure.cells[0],b.hitch(this,function(f){f.field&&!f.hidden&&(-1==e?e=f.index:e++,c.cells[e].innerHTML=this.grid.onExtraRowValue(f,a))}))}},destroy:function(){this._cleanUp();this.grid.createView=this._oldCreateView;this.inherited(arguments)}});H.grid.EnhancedGrid.registerPlugin(H.grid.enhanced.plugins.extraRow)})},"parus/templateUploadDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.templateUploadDialog");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.templateUploadDialog",[parus.Dialog],{_lastValues:null,onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},saveFormLastValues:function(){this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=
parus.userdata.get(this.declaredClass)||{};this.userSize=this._lastValues.userSize||null}})})},"parus/gridColumnsFilter":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.gridColumnsFilter");b.require("parus.parus8");b.require("dijit.form.ComboBox");b.require("dojox.grid.enhanced._Plugin");b.require("dojox.grid.EnhancedGrid");b.declare("dojox.grid.enhanced.plugins.columnsFilter",H.grid.enhanced._Plugin,{name:"columnsFilter",visible:!0,_oldCreateView:null,_afterRowConnect:null,
_table:null,_filterBarRow:null,_items:null,values:null,constructor:function(a,c){this.inherited(arguments);b.mixin(this,c);this.values={};var e=this,f=this.grid,g=this._oldCreateView=b.hitch(this.grid,this.grid.createView);this.grid.createView=function(){e._cleanUp();var h=g.apply(f,arguments);e._afterRowConnect=b.connect(h,"onAfterRow",e,"_afterRow");return h};this._connects.push(b.connect(f,"_onFetchBegin",e,"_fetchBegin"));b.mixin(f,{showFilterBar:b.hitch(e,this.show),hideFilterBar:b.hitch(e,this.hide),
getFilterBarVisible:b.hitch(e,function(){return this.visible}),columnsFilterObject:e})},show:function(){this.visible=!0;this._render();this.grid.setQuery(this.grid.query||{})},hide:function(){this.visible=!1;this._cleanUpBar();this.grid.setQuery(this.grid.query||{})},valuesChanged:function(){if(this._items)for(key in this.values)this._items.byKey[key]&&(this._items.byKey[key].value=this.values[key])},_afterRow:function(a,c,e){-1==a&&b.query("table",e).forEach(b.hitch(this,function(f){this._cleanUpBar();
this._table=f;this.visible&&this._render()}))},_cleanUpEvent:function(){this._table=null;this._afterRowConnect&&(b.disconnect(this._afterRowConnect),this._afterRowConnect=null)},_cleanUpBar:function(){this._filterBarRow&&(this._filterBarRow.parentNode&&this._filterBarRow.parentNode.removeChild(this._filterBarRow),this._filterBarRow=null,this._items&&b.forEach(this._items,function(a){a.widget.destroyRecursive()}))},_cleanUp:function(){this._cleanUpEvent();this._cleanUpBar()},_filterChanged:function(a,
c){this.visible&&(this.values[a.column.field]=c,b.hitch(this.grid,this.grid.onFilterChanged)(this.values,this.grid.sortInfo),b.mixin(a,{value:c}),this.grid.setQuery(this.grid.query||{}))},_fetchFilter:function(a){if(!this.visible)return a;var c=[];b.forEach(this._items,function(e){e.value&&c.push(b.hitch(e,function(f,g){var h=!1,l="";if(this.column._props.propRN)l=parus._docPropsValueForGrid(parus.parus8.docPropValue(f,this.column._props.propRN),this.column._props.dataType,this.column._props.dataSubType)||
"";else if(this.column._props.attrRN)l=parus._docPropsValueForGrid(parus.parus8.docAttrValue(f,this.column._props.attrRN),this.column._props.dataType,this.column._props.dataSubType)||"";else if("ST$"==this.column.field.substr(0,3)){var m=parus.parus8.rowNodes(parus.parus8.nodeField(f,"XML_STATUSMODEL"));m&&m.length&&(l=parus.parus8.nodeField(m[0],this.column.field.substr(3)))}else l=this.column.grid.store.getValue(f,this.column.field)||"",this.column.formatter&&(l=this.column.formatter(l,g,this.column._props)||
""),this.column.grid.escapeHTMLInData&&(m=document.createElement("div"),m.innerHTML=l,l=parus.parus8.getTextContent(m));m=this.value.split(";");var p=!0;b.forEach(m,function(r){"!"!=r.substring(0,1)&&(p=!1)});p&&(h=!0);b.forEach(m,b.hitch(this,function(r){"!"==r.substring(0,1)?(r="!*"==r?/^.+$/m:b.data.util.filter.patternToRegExp(r.substring(1,r.length),!1),p?h&&l.match(r)&&(h=!1):(h=!0,l.match(r)&&(h=!1))):(r="*"==r?/^.+$/m:b.data.util.filter.patternToRegExp(r,!1),l.match(r)&&(h=!0))}));return h}))});
return c.length?b.filter(a,function(e,f){for(var g=0;g<c.length;g++)if(!c[g](e,f))return!1;return!0}):a},_fetchBegin:function(a,c){b.forEach(this._items,function(e){b.mixin(e,{_storeItems:[]})});this.grid.store.forEach&&this.grid.store.forEach(b.hitch(this,function(e,f,g){b.forEach(this._items,function(h){var l=null;if(h.column._props.propRN)l=parus._docPropsValueForGrid(parus.parus8.docPropValue(f,h.column._props.propRN),h.column._props.dataType,h.column._props.dataSubType);else if(h.column._props.attrRN)l=
parus._docPropsValueForGrid(parus.parus8.docAttrValue(f,h.column._props.attrRN),h.column._props.dataType,h.column._props.dataSubType);else if("ST$"==h.column.field.substr(0,3)){var m=parus.parus8.rowNodes(parus.parus8.nodeField(f,"XML_STATUSMODEL"));m&&m.length&&(l=parus.parus8.nodeField(m[0],h.column.field.substr(3)))}else(l=e.getValue(f,h.column.field)||null)&&h.column.formatter&&(l=h.column.formatter(l,g,h.column._props)),h.column.grid.escapeHTMLInData&&(m=document.createElement("div"),m.innerHTML=
l,l=parus.parus8.getTextContent(m));l&&-1==b.indexOf(h._storeItems,l)&&h._storeItems.push(l)})}),!0);b.forEach(this._items,function(e){e._storeItems.sort(parus.parus8.compareUntypedValues);var f=!1;b.forEach(e.column.grid.getSortProps(),function(h){e.column.field==h.field&&(h.descending&&e._storeItems.reverse(),f=!0)});f||2!=e.column.dataType||e._storeItems.reverse();var g=[];g.push({name:"",label:"(\u0412\u0441\u0435)"});g.push({name:"*",label:"(\u041d\u0435 \u043f\u0443\u0441\u0442\u043e)"});g.push({name:"!*",
label:"(\u041f\u0443\u0441\u0442\u043e)"});b.forEach(e._storeItems,function(h){g.push({name:h,label:h})});e.store=new b.data.ItemFileReadStore({data:{items:g}});e.widget.attr("store",e.store)})},_render:function(){this._filterBarRow=this._table.insertRow(-1);b.addClass(this._filterBarRow,"dojoxGridStatusBarRow");b.forEach(this._table.rows[0].cells,b.hitch(this,function(){this._filterBarRow.insertCell(-1).style.padding="2px 5px 2px 0px"}));var a=this._items?this._items.byKey:{};this._items=[];b.mixin(this._items,
{byKey:a});var c=-1;b.forEach(this.grid.views.views[0].structure.cells[0],b.hitch(this,function(e){if(e.field&&!e.hidden){-1==c?c=e.index:c++;var f=this._filterBarRow.cells[c],g=document.createElement("input");f.appendChild(g);var h=a[e.field]||{};b.mixin(h,{value:this.values[e.field],widget:new H.grid.enhanced.columnsFilterCombobox({style:"width:100%",labelAttr:"label",grid:this.grid,value:this.values[e.field],store:h.store,onChange:b.hitch(this,function(){this._filterChanged(h,h.widget.attr("value"))})},
g),column:e});this._items.push(h);this._items.byKey[e.field]=h}}));b.mixin(this.grid.store,{fetchFilter:b.hitch(this,this._fetchFilter)})},destroy:function(){this._cleanUp();this.grid.createView=this._oldCreateView;this.inherited(arguments)}});H.grid.EnhancedGrid.registerPlugin(H.grid.enhanced.plugins.columnsFilter);b.extend(H.grid.EnhancedGrid,{onFilterChanged:function(a,c){},setSortInfo:function(a){if(this.canSort(a)&&(this.sortInfo=a,this.sort(),this.update(),this.columnsFilterObject))this.onFilterChanged(this.columnsFilterObject.values,
a)}});b.declare("dojox.grid.enhanced.columnsFilterCombobox",t.form.ComboBox,{grid:null,dropDownClass:"dojox.grid.enhanced.columnsFilterDropDown",_selectOption:function(a){var c="",e=this.dropDown.items[a.getAttribute("item")];e.dropDown&&b.forEach(e.dropDown._checkboxes,function(f){f.attr("checked")&&(c=c+(c?";":"")+f.item.name[0])});this.inherited(arguments);c&&this.attr("value",c)}});b.declare("dojox.grid.enhanced.columnsFilterDropDown",t.form._ComboBoxMenu,{_onMouseUp:function(a){if("option"==
a.target.getAttribute("role"))return this.inherited(arguments)},_checkboxes:null,_comboBox:null,postMixInProperties:function(){this.inherited(arguments);var a=this.id;a=a.substring(0,a.length-6);this._comboBox=t.byId(a)},_createOption:function(a,c){var e=this.inherited(arguments),f=(this._comboBox.value||"").split(";");a.name[0]&&"*"!=a.name[0]&&"!*"!=a.name[0]&&(node=document.createElement("input"),e.insertBefore(node,e.firstChild),f=new H.grid.enhanced.columnsFilterCheckBox({item:a,checked:-1!=
b.indexOf(f,a.name[0]),dropDown:this},node),this._checkboxes||(this._checkboxes=[]),b.mixin(a,{dropDown:this}),this._checkboxes.push(f));return e}});b.declare("dojox.grid.enhanced.columnsFilterCheckBox",t.form.CheckBox,{item:null,dropDown:null,_onClick:function(a){this.inherited(arguments);a.stopPropagation();a.preventDefault();return!1}})})},"parus/balanceCustomLoadReportsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceCustomLoadReportsDialog");b.require("dojo.io.iframe");
b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.balanceCustomLoadReportsDialog",[parus.Dialog],{catalogTree:null,kind:null,_lastValues:null,onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},performLoad:function(){if(this.validate()&&this.fileData.value){var a=this.catalogTree;(new parus.treeDialog({model:parus.balance.catalogTreeStoreModel(),
key:"BalanceReports",onDefaultNeeded:function(){var c=parus.database.execute("findAvailableCatalog",{UNITCODE:"BalanceReports"});return c?parus.parus8.nodeField(parus.parus8.rowNodes(c)[0],"PATH"):null},onSingle:function(){if(a.hiddenMode)return parus.parus8.nodeField(parus.parus8.rowNodes(parus.database.execute("singleCatalog",{UNITCODE:"BalanceReports",ACTION_CODE:"BLREPORTS_CUSTOM_IMPORT"}))[0],"CATALOG");var c=a.path;return a.model.getIdentity(c[c.length-1])},onPerform:b.hitch(this,function(c){this._performLoad(c);
return!0})})).show()}},_performLoad:function(a){var c=new parus.progressDialog({message:"\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043e\u0442\u0447\u0435\u0442\u044b \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435..."});c.show();this.catalogInput.value=a;this.kindInput.value=this.kind;this.postForm.action=parus.database.getLoadReportsUrl();this.postForm.method="POST";this.postForm.encoding=
"multipart/form-data";this.postForm.canOverWrite.value=this.canOverWrite.attr("value");this.postForm.recalcReports.value=this.recalcReports.checked?"on":"off";this.postForm.logKind.value="2"==this.showReport.value?1:0;b.io.iframe.send({method:"POST",form:this.postForm,handleAs:"html",handle:b.hitch(this,function(e,f){if("0"!=this.showReport.value)if(parus.parus8._embeddedMode){var g="T"+ +new Date;mill.session.setValue(g,e.body.innerHTML,!1);g=b.moduleUrl("parus","embeddedContent.html")+"?loggedUserHandler\x3d"+
parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([g,"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435","1",""]);parus.embeddedMode.openTab(+new Date,"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435",
g)}else{g=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",style:"height:100%;width:100%;padding:0"});var h=parus.balance._createHeadingPane("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435");g.addChild(h);var l=new t.layout.ContentPane({region:"center",
content:e.body.innerHTML});g.addChild(l);h=new t.layout.ContentPane({title:parus.balance.formatPageTitle("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432\x3cbr/\x3e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435"),closable:!0,"class":"balanceTemplateContentPane",onClose:b.hitch(this,function(){parus.balance.TabContainer.selectChild(this.kind?
parus.balance.consolidatedPage:parus.balance.primaryPage);return!0})});l.parentPane=h;h.setContent(g);parus.balance.TabContainer.addChild(h);parus.balance.TabContainer.selectChild(h)}else parus.parus8.notificationMessage("\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430.");this.apply();c.close();c.destroyRecursive()})})},saveFormLastValues:function(){this._lastValues.encodingType=this.encodingType.value;this._lastValues.reportDate=b.date.locale.format(this.reportDate.value,
{selector:"date",datePattern:"dd.MM.yyyy"});this._lastValues.agentCode=this.agentCode.value;this._lastValues.formatCode=this.formatCode.value;this._lastValues.canOverWrite=this.canOverWrite.attr("value");this._lastValues.recalcReports=this.recalcReports.checked;this._lastValues.showReport=this.showReport.value;this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};
this.encodingType.attr("value",this._lastValues.encodingType);this.reportDate.attr("value",this._lastValues.reportDate?b.date.locale.parse(this._lastValues.reportDate,{datePattern:"dd.MM.yyyy",selector:"date"}):null);this.agentCode.attr("value",this._lastValues.agentCode);this.formatCode.attr("value",this._lastValues.formatCode);this.canOverWrite.attr("value",this._lastValues.canOverWrite);this.recalcReports.attr("checked",this._lastValues.recalcReports);this.showReport.attr("value",this._lastValues.showReport);
this.userSize=this._lastValues.userSize||null}})})},"parus/templateDesignColumns":function(){define(["dijit","dojo","dojox","dojo/require!dijit/Dialog,dijit/form/Button,parus/parus8,parus/dialog"],function(t,b,H){b.provide("parus.templateDesignColumns");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.templateDesignColumns",[parus.Dialog],{postCreate:function(){this.inherited(arguments);this.grid.setStore(this._getStore());
this.grid.setQuery({});this.grid.selection.select(0);this.gridPopupMenu.bindDomNode(this.grid.viewsNode);parus.balance._createActionsButton(this.gridPopupMenu,this.headerPane);var a=parus.userdata.get(this.declaredClass);a&&(parus.gridSettingsDialog.mergeMenuSettings(this.gridPopupMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.grid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.grid,a.colorConditions),
parus.gridSettingsDialog.mergeFilterBar(this.grid,a.showFilterBar,a.filterValues,a.sortInfo));setTimeout(b.hitch(this,function(){this._selected()}),100)},_getStore:function(){return new parus.gridData({persistent:!0,_data:[{num:1,width:50},{num:2,width:60}]})},_selected:function(){var a=this.grid.getItem(this.grid.selection.getSelectedIndex());b.forEach(this.gridPopupMenu.getChildren(),b.hitch(this,function(c){var e=a?!1:!0;c.itemAction||(e=!1);"dijit.MenuSeparator"!=c.declaredClass&&c.attr("disabled",
e)}));parus.parus8.checkMenuSeparators(this.gridPopupMenu)},"delete":function(){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var a=this.grid.selection.getFirstSelected(),c=0;c<this.grid.selection.getSelectedCount();c++)a=this.grid.selection.getNextSelected(a);this.grid.attr("store",this._getStore());this.grid.setQuery({});this.grid.selection.select(0);
return!0})})).show()},settings:function(){parus.balance.executeSettings(this.grid,this.gridPopupMenu,this.declaredClass)},destroy:function(){this.store=null;this.inherited(arguments)},gridFilterChanged:function(a,c){parus.balance.gridFilterChanged(this.declaredClass,a,c)}})})},"parus/balanceRowCountDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceRowCountDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.NumberTextBox");
b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceRowCountDialog",[parus.Dialog],{})})},"parus/designerSectionDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerSectionDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.editDictionaryDialog");
b.declare("parus.designerSectionDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);this.crn||(this.crn=a.catalogRN);if("-1"==this.crn||"-1;0"==this.crn)this.crn=null;a&&c&&(this.codeEdit.attr("value",a.getValue(c,"CODE")),this.nameEdit.attr("value",a.getValue(c,"NAME")))},executeInsert:function(){var a=parus.database.execute("designer.BalanceSections.Insert",{PRN:this.crn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],
"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceSections.Update",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceSections.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/confirmationDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.confirmationDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");
b.require("parus.dialog");b.declare("parus.confirmationDialog",[parus.messageDialog],{})})},"parus/designerIndexGroupDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerIndexGroupDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editableDictionaryDialog");
b.require("parus.editDictionaryDialog");b.declare("parus.designerIndexGroupDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",a.getValue(c,"CODE")),this.nameEdit.attr("value",a.getValue(c,"NAME")))},executeInsert:function(){var a=parus.database.execute("designer.BalanceIndexes.Groups.Insert",{CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")});if(a)return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],
"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceIndexes.Groups.Update",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceIndexes.Groups.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/groupBox":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.groupBox");b.require("dijit.layout.ContentPane");b.require("parus.parus8");b.declare("parus.groupBox",
[t.layout.ContentPane],{titleNode:null,_setupTitle:function(){setTimeout(b.hitch(this,function(){this.showTitle&&this.title?this.titleNode||(this.titleNode=document.createElement("div"),this.titleNode.appendChild(document.createTextNode(String.fromCharCode(160)+this.title+String.fromCharCode(160))),b.addClass(this.titleNode,"groupBoxTitle"),this.domNode.parentNode.insertBefore(this.titleNode,this.domNode)):this.titleNode&&(this.titleNode.parentNode.removeChild(this.titleNode),this.titleNode=null);
this.titleNode&&b.style(this.titleNode,{position:"absolute",left:"15px",zIndex:5,top:this.domNode.offsetTop-7+"px",display:this.domNode.style.display})}),1)},startup:function(){this.inherited(arguments);b.addClass(this.domNode,"groupBoxBorder");this._setupTitle()},resize:function(a,c){var e=this.inherited(arguments);this._setupTitle();return e},destroy:function(){this.titleNode&&(this.titleNode.parentNode.removeChild(this.titleNode),this.titleNode=null);this.inherited(arguments)},widgets:function(){var a=
[];b.query("*[widgetId]",this.domNode).forEach(function(c){a.push(t.byId(c.getAttribute("widgetId")))});return a}})})},"parus/designerEditionSplitDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerEditionSplitDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.DateTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.formats");b.declare("parus.designerEditionSplitDialog",[parus.Dialog],{rn:null,split:function(){return!!parus.database.execute("designer.BalanceReportFormEdition.Split",
{RN:this.rn,SPLIT_DATE:parus.formats.dateToString(this.dateEdit.attr("value"))})}})})},"parus/designerReportSectionDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportSectionDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.editDictionaryDialog");
b.declare("parus.designerReportSectionDialog",[parus.editDictionaryDialog],{postCreate:function(){this.inherited(arguments);b.mixin(this.sectionEdit,{allowEditCatalog:!1,allowMoveCatalog:!0,moveCatalogQueryID:"designer.BalanceSections.Catalog.Move"})},executeInsert:function(){return parus.database.execute("designer.BalanceReportForm.Sections.Insert",{PRN:this.prn,SECTION:this.sectionEdit.attr("value")})}})})},"parus/designerTableModelDialog":function(){define(["dijit","dojo","dojox"],function(t,b,
H){b.provide("parus.designerTableModelDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.editDictionaryDialog");b.declare("parus.designerTableModelDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);a&&c&&(this.codeEdit.attr("value",a.getValue(c,"CODE")),this.nameEdit.attr("value",
a.getValue(c,"NAME")))},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceTableModels.Insert",{RN:a?this.rn:null,CRN:this.crn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTableModels.Update",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")})},executeDelete:function(a,c){return!!parus.database.execute("designer.BalanceTableModels.Delete",
{RN:a.getValue(c,"RN")})}})})},"parus/balanceUnitsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceUnitsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceUnitsDialog",[parus.Dialog],{unitcodes:null,queryid:"selectableUnits",postCreate:function(){var a=this.title||b.query("[dojoType\x3d'dijit.Dialog']",this.domNode)[0].getAttribute("title");b.query("TH",this.domNode).forEach(function(c){c.innerHTML=
a});this.inherited(arguments);this.unitsGrid.attr("store",new parus.gridData({queryid:this.queryid,onGetConditions:b.hitch(this,function(c){return{UNITCODE:this.unitcodes.join(";")}})}));this.unitsGrid.setQuery({})}})})},"parus/gridActions":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.gridActions");b.require("parus.parus8");parus||(parus={});parus.gridActions||b.mixin(parus,{gridActions:{}});b.mixin(parus.gridActions,{checkPopupMenuDefaultAction:function(a){var c=!1;
a&&b.forEach(a.getChildren(),function(e){if(e["default"]&&(c=!0,"dijit.MenuSeparator"!=e.declaredClass&&!e.attr("disabled")))e.onClick()});return c},checkPopupMenuItemAction:function(a,c){if(a){var e=0==c.selection.getSelectedCount();b.forEach(a.getChildren(),function(f){f.itemAction?f.attr("disabled",e):f.detailAction&&f.attr("disabled",null==c.store.parentRN);f.toolBarButton&&f.toolBarButton.attr("disabled",f.disabled)})}},autoSelectRow:function(a){a.selection.select(0);a.updateRow(0);a.scrollToRow(0);
a.autoSelected=!0},deleteSelected:function(a,c){(new parus.confirmationDialog({message:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c (\u0437\u0430\u043f\u0438\u0441\u0438)?",onApply:b.hitch(this,function(){for(var e=a.store,f=a.selection.getFirstSelected(),g=0;g<a.selection.getSelectedCount();g++)c&&c(e,f),f=a.selection.getNextSelected(f);a.selection.deselectAll();parus.balance.refreshGrid(a);return!0})})).show()},moveDocumentToCatalog:function(a,c,e,f){var g=a.store,
h=a.selection.getFirstSelected(),l=[];b.forEach(c.path,function(m){l.push(c.model.getIdentity(m))});(new parus.treeDialog({model:new (b.getObject(c.model.declaredClass,!1))({queryid:c.model.queryid,onGetConditions:c.model.onGetConditions}),restoreSelected:!1,value:l.join(";"),key:e+"-moveDocument",onDefaultNeeded:function(){var m=parus.database.execute("findAvailableCatalog",{UNITCODE:e});return m?parus.parus8.nodeField(parus.parus8.rowNodes(m)[0],"PATH"):null},onPerform:function(m){for(var p=0;p<
a.selection.getSelectedCount();p++)parus.database.execute(f,{RN:g.getValue(h,"RN"),CRN:m}),h=a.selection.getNextSelected(h);a.selection.deselectAll();parus.balance.refreshGrid(a);return!0}})).show()}})})},"parus/designerReportTableConstraintDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.designerReportTableConstraintDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.ValidationTextBox");b.require("dijit.form.SimpleTextarea");
b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.require("parus.formats");b.require("parus.controlActions");b.require("parus.editableDictionaryDialog");b.require("parus.editDictionaryDialog");b.require("parus.designerTemplateDialog");b.declare("parus.designerReportTableConstraintDialog",[parus.editDictionaryDialog],{editionRN:null,onLoadParams:function(a,c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));this.parentDialog&&this.parentDialog.isInstanceOf(parus.editableDictionaryDialog)&&
(this.editionRN=this.parentDialog.getParentDialogCondition("PRN"));a&&c&&(this.nameEdit.attr("value",a.getValue(c,"NAME")),this.constrTypeEdit.attr("value",a.getValue(c,"CONSTR_TYPE")),this.textEdit.attr("value",a.getValue(c,"TEXT")),this.messageEdit.attr("value",a.getValue(c,"MESSAGE")),this.templateEdit.attr("value",a.getValue(c,"TEMPLATE")),this.activeCheckBox.attr("checked","1"==a.getValue(c,"ACTIVE_SIGN")));this.constrTypeEditChanged()},constrTypeEditChanged:function(){var a="0"==this.constrTypeEdit.attr("value");
parus.controlActions.setDisabled(this.textEdit,a);this.messageEdit.attr("required",!a)},getTemplatesCondition:function(){return{PRN:this.editionRN?this.editionRN:parus.parus8.CLASS_EmptyData}},executeInsert:function(a){if(a=parus.database.execute("designer.BalanceTables.Constraints.Insert",{RN:a?this.rn:null,PRN:this.prn,NAME:this.nameEdit.attr("value"),CONSTR_TYPE:this.constrTypeEdit.attr("value"),TEXT:this.textEdit.attr("value"),MESSAGE:this.messageEdit.attr("value"),TEMPLATE:this.templateEdit.attr("value"),
ACTIVE_SIGN:this.activeCheckBox.attr("checked")?"1":"0"}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("designer.BalanceTables.Constraints.Update",{RN:this.rn,NAME:this.nameEdit.attr("value"),CONSTR_TYPE:this.constrTypeEdit.attr("value"),TEXT:this.textEdit.attr("value"),MESSAGE:this.messageEdit.attr("value"),TEMPLATE:this.templateEdit.attr("value"),ACTIVE_SIGN:this.activeCheckBox.attr("checked")?"1":"0"})},executeDelete:function(a,
c){return!!parus.database.execute("designer.BalanceTables.Constraints.Delete",{RN:a.getValue(c,"RN")})}})})},"parus/dictionaryDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.dictionaryDialog");b.require("dijit._Widget");b.require("dijit._Templated");b.require("dijit.Dialog");b.require("dijit.form.ComboBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.gridActions");b.declare("parus.dictionaryDialog",[parus.Dialog],{dictionary:null,columns:null,
value:null,label:null,multiselect:!1,_refreshGridTimeoutID:null,_refreshDetailGridTimeoutID:null,catalogsQueryID:null,labelField:null,keyField:null,pathQueryID:null,queryID:null,catalogLinkFieldName:null,unitCode:null,gridConditions:null,gridPersistent:null,gridOnComplete:null,hideCancel:!1,catalogMenu:null,menu:null,allowRefresh:!0,detailMenu:null,detailAllowRefresh:!0,_attrDescriptors:null,userDataSection:null,catalogConditions:null,queryParams:null,detailQueryID:null,detailColumns:null,detailTitle:null,
close:function(){if(this.catalogTree){var a=[];b.forEach(this.catalogTree.path,b.hitch(this,function(e){a.push(this.catalogTree.model.getIdentity(e))}));var c=[];1<this.catalogTree.checked.length&&b.forEach(this.catalogTree.checked,b.hitch(this,function(e){c.push(b.map(e.getTreePath(e),b.hitch(this,function(f){return this.catalogTree.model.getIdentity(f)})).join("/"))}));0!=a.length&&parus.userdata.set(this.userDataSection+"selectedCatalog",{selectedCatalog:a.join(";"),checks:c.join(";")},!0)}parus.userdata.set(this.userDataSection,
{userSize:this.userSize||null},!0);this._refreshGridTimeoutID&&clearTimeout(this._refreshGridTimeoutID);this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID);this._onQueryComplete=this._refreshDetailGridTimeoutID=this._refreshGridTimeoutID=null;return this.inherited(arguments)},catalogTreeStoreModel:function(){return new parus.catalogTreeModel({queryid:this.catalogsQueryID,onGetConditions:b.hitch(this,function(a,c){if(this.catalogTree.hiddenMode)return{CRN:parus.parus8.CLASS_EmptyData};
var e={UNITCODE:this.unitCode};this.catalogConditions&&b.mixin(e,this.catalogConditions);this.catalogLinkFieldName&&(e[this.catalogLinkFieldName]=c?a.getIdentity(c):"!*");e.CRN=c?a.getIdentity(c):"!*";return e})})},__getCatalogTreeRN:function(){return!this.catalogTree||this.catalogTree.listMode?null:this.catalogTree.selectedItem&&this.catalogTree.model.isValid(this.catalogTree.selectedItem)?this.catalogTree.model.getIdentity(this.catalogTree.selectedItem):parus.parus8.CLASS_EmptyData},gridStore:function(){this.gridPersistent||
(this.gridPersistent=new parus.gridData({queryid:this.queryID,onGetConditions:b.hitch(this,function(a){var c={};b.mixin(c,this.gridConditions||{});if(this.queryParams)for(var e in this.queryParams)b.isFunction(this.queryParams[e])?c[e]=this.queryParams[e].apply(this):c[e]=this.queryParams[e];if(this.catalogTree){if(this.catalogTree.selectedItem||!this._alreadySet&&(this.value||this.label))if(this.catalogTree.checked.length){var f=[];b.forEach(this.catalogTree.checked,b.hitch(this,function(g){f.push(this.catalogTree.model.getIdentity(g.item))}));
c[this.catalogLinkFieldName]=this.catalogTree.listMode?null:f.join(";")}else c[this.catalogLinkFieldName]=this.catalogTree.listMode?null:this.catalogTree.selectedItem&&this.catalogTree.model.isValid(this.catalogTree.selectedItem)?this.catalogTree.model.getIdentity(this.catalogTree.selectedItem):parus.parus8.CLASS_EmptyData;else this.catalogTree.model.getRoot(b.hitch(this,function(g){var h=[],l=parus.userdata.get(this.userDataSection+"selectedCatalog");l.selectedCatalog&&(h=l.selectedCatalog.split(";"));
if(0==h.length||""==h[0]){var m=parus.database.execute("findAvailableCatalog",{UNITCODE:this.unitCode});m&&(m=parus.parus8.nodeField(parus.parus8.rowNodes(m)[0],"PATH"))&&(h=m.split(";"))}if(0==h.length||""==h[0])h=[g];l.checks&&this.catalogTree.setCheckedPaths(b.map(l.checks.split(";"),function(r){return r.split("/")}));this.catalogTree.attr("path",h);if(this.catalogTree.checked.length){var p=[];b.forEach(this.catalogTree.checked,b.hitch(this,function(r){p.push(this.catalogTree.model.getIdentity(r.item))}));
c[this.catalogLinkFieldName]=this.catalogTree.listMode?null:p.join(";")}else c[this.catalogLinkFieldName]=this.catalogTree.listMode?null:this.catalogTree.selectedItem&&this.catalogTree.model.isValid(this.catalogTree.selectedItem)?this.catalogTree.model.getIdentity(this.catalogTree.selectedItem):parus.parus8.CLASS_EmptyData})),c[this.catalogLinkFieldName]=this.catalogTree.listMode?null:parus.parus8.CLASS_EmptyData;"-1"==c[this.catalogLinkFieldName]&&(c[this.catalogLinkFieldName]="-1;0");c.CRN=c[this.catalogLinkFieldName];
a.catalogRN=c[this.catalogLinkFieldName]}return c})}));b.mixin(this.gridPersistent,{onComplete:b.hitch(this,function(a,c){this.grid&&(0<c.length&&!this.grid.selection.getSelectedCount()&&!this.multiselect&&(this.grid.selection.select(0),this.grid.updateRow(0),this.grid.scrollToRow(0),this.grid.autoSelected=!0),this._checkGridPopupMenu(),this.gridOnComplete&&this.gridOnComplete.call(this,a,c))})});return this.gridPersistent},detailGridStore:function(){return new parus.gridData({queryid:this.detailQueryID,
onGetConditions:b.hitch(this,function(a){var c=this.grid.store,e=this.grid.selection.getSelectedIndex();e=0<=e?this.grid.getItem(e):null;a.parentRN=c.getValue(e,"RN");return{PRN:a.parentRN||parus.parus8.CLASS_EmptyData}}),onComplete:b.hitch(this,function(a,c,e){if(0<c.length&&!this.detailGrid.selection.getSelectedCount()&&!e.start)parus.gridActions.autoSelectRow(this.detailGrid);else this.detailGrid.onSelected();this._checkDetailGridPopupMenu()})})},postCreate:function(){if(!this.multiselect){var a=
b.query("[dojoAttachPoint\x3d'grid']",this.domNode)[0];a.setAttribute("selectionMode","single");a.setAttribute("plugins","{status: {visible: false}, columnsFilter: {visible: false}}")}this.catalogsQueryID||(b.query("[dojoAttachPoint\x3d'catalogPane']",this.domNode).forEach(function(e){e.parentNode.removeChild(e)}),b.query("[design\x3d'sidebar']",this.domNode).forEach(function(e){e.setAttribute("design","headline")}),b.mixin(this,{catalogPane:null,catalogTree:null,catalogMenu:null}));this.detailQueryID?
(this.userSizeDataSection=this.declaredClass+"-withDetails-userSize",this.defaultUserSize||(this.defaultUserSize={width:"800px",height:"700px"})):(b.query("[dojoAttachPoint\x3d'detailPane']",this.domNode).forEach(function(e){e.parentNode.removeChild(e)}),b.mixin(this,{detailPane:null,detailGrid:null,detailMenu:null}));this.defaultUserSize&&b.query("[dojoAttachPoint\x3d'dialogContentPane']",this.domNode).forEach(b.hitch(this,function(e){b.style(e,this.defaultUserSize)}));this.inherited(arguments);
this.onCreateMenu();this.userDataSection=this.userDataSection||this.declaredClass+"-"+(this.dictionary?this.dictionary.code:"nodictionary");this.dialog.titleNode.innerHTML=this.title;this.dialog.title=this.title;this.headerPaneText.domNode.appendChild(document.createTextNode(this.title));this.dialog.containerNode.style.padding="0";b.addClass(this.dialog.containerNode,"dijitBorderContainer");(a=parus.userdata.get(this.userDataSection))&&this.catalogTree&&parus.gridSettingsDialog.setCatalogTreeVisible(this.catalogTree,
!a.hideCatalogTree);this._attrDescriptors=this.unitCode&&this.dictionary.hasAttributes?parus.parus8._attrDescriptors?parus.parus8.rowNodes(parus.database.execute("attrDescriptors",{UNITCODE:this.unitCode}).documentElement.childNodes[0].childNodes[0].childNodes[0])||[]:[]:[];this.columns.attrLinked||(b.forEach(this._attrDescriptors,b.hitch(this,function(e){this.columns.push({colSpan:1,attrRN:parus.parus8.nodeField(e,"RN"),dataType:parus.parus8.nodeField(e,"DATATYPE"),dataSubType:0,field:"attr"+parus.parus8.nodeField(e,
"RN"),name:parus.parus8.nodeField(e,"NAME"),formatter:parus.balance.formatAttrValue,width:"1"==parus.parus8.nodeField(e,"ACTIVE")?"121px":"0px",hidden:"1"!=parus.parus8.nodeField(e,"ACTIVE"),styles:"text-align:"+(0==parus.parus8.nodeField(e,"DATATYPE")?"left":"right")+";",sortField:"2"==parus.parus8.nodeField(e,"PARAMCOUNT")?parus.parus8.nodeField(e,"STOREDPROC")+"(T.COMPANY, T.RN)":parus.parus8.nodeField(e,"STOREDPROC")+"(T.RN)"})})),this.columns.attrLinked=!0);if(this.catalogTree){this.catalogTree.model=
this.catalogTreeStoreModel();if(this.catalogTree.dndController&&!b.isString(this.catalogTree.dndController)){var c=this.catalogTree.dndController.declaredClass;this.catalogTree.dndController.destroy();this.catalogTree.tree.dndController=c}this.catalogTree.postMixInProperties();this.catalogTree.postCreate();this.catalogMenu=this._createCatalogMenu(this.catalogMenu,this.catalogTree);this.catalogMenu.bindDomNode(this.catalogTree.domNode)}this.grid.attr("structure",this.columns);this.grid.attr("store",
this.gridStore());this.detailGrid&&(this.detailGrid.attr("structure",this.detailColumns),this.detailGrid.attr("store",this.detailGridStore()),this.detailGrid.setQuery(this.detailGrid.query||{}));this.hideCancel&&(this.cancelButton.destroyRecursive(),this.cancelButton=null,this.OKButton.set("label","\x3cb\x3e\u0417\u0430\u043a\u0440\u044b\u0442\u044c\x3c/b\x3e"));this.menu=this._createMenu(this.menu,this.grid,this.allowRefresh,this.userDataSection);parus.balance._createActionsButton(this.menu,this.headerPane);
this.menu.bindDomNode(this.grid.viewsNode);a&&(parus.gridSettingsDialog.mergeMenuSettings(this.menu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.grid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.grid,a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.grid,a.showFilterBar,a.filterValues,a.sortInfo),this.userSize=a.userSize);if(this.detailGrid){this.detailMenu=this._createMenu(this.detailMenu,
this.detailGrid,this.detailAllowRefresh,this.userDataSection+"-detailGrid");parus.balance._createActionsButton(this.detailMenu,this.detailHeaderPane);this.detailMenu.bindDomNode(this.detailGrid.viewsNode);if(a=parus.userdata.get(this.userDataSection+"-detailGrid"))parus.gridSettingsDialog.mergeMenuSettings(this.detailMenu,a.actionSettings,a.userProcsActions,a.userReportsActions,a.userAppsActions),parus.gridSettingsDialog.mergeGridSettings(this.detailGrid,a.gridSettings),parus.gridSettingsDialog.mergeColorConditions(this.detailGrid,
a.colorConditions),parus.gridSettingsDialog.mergeFilterBar(this.detailGrid,a.showFilterBar,a.filterValues,a.sortInfo);this.detailTitle&&this.detailHeaderPaneText.domNode.appendChild(document.createTextNode(this.detailTitle))}this.label?this.setLabel(this.label):this.value?this.setValue(this.value):this.grid.setQuery(this.gridConditions||{})},onCreateMenu:function(){},_createCatalogMenu:function(a,c){var e=!!a;e||(a=new t.Menu({"class":"balanceMenu"}));var f=0;a.addChild(new t.CheckedMenuItem({label:"\u0412\u0441\u0435",
onClick:b.hitch(this,function(){parus.catalogActions.listCatalogTree(c)})}),f++);a.addChild(new t.MenuItem({label:"\u0421\u043f\u0438\u0441\u043e\u043a",onClick:b.hitch(this,function(){parus.catalogActions.checkChildren(c)})}),f++);a.addChild(new t.MenuItem({label:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440",onClick:b.hitch(this,function(){c.uncheckAll()})}),f++);a.addChild(new t.MenuItem({label:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",onClick:b.hitch(this,
function(){parus.catalogActions.expandCatalogTree(c)})}),f++);a.addChild(new t.MenuSeparator,f++);e&&a.addChild(new t.MenuSeparator);a.addChild(new t.MenuItem({label:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",defaultIcon:"PCisyncCustomIcon",onClick:b.hitch(this,function(){parus.catalogActions.refreshCatalogTree(c)})}));e&&(a.addChild(new t.MenuSeparator),a.addChild(new t.MenuItem({label:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438...",onClick:b.hitch(this,function(){parus.balance.executeSettings(null,
a,this.userDataSection+"-catalogTree")})})));a.dialogObject=this;a.startup();return a},_createMenu:function(a,c,e,f){var g=!!a;g||(a=new t.Menu({"class":"balanceMenu"}));g&&a.addChild(new t.MenuSeparator);e&&(a.addChild(new t.MenuItem({label:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",defaultIcon:"PCisyncCustomIcon",onClick:b.hitch(this,function(){parus.balance.refreshGrid(c)})})),a.addChild(new t.MenuSeparator));a.addChild(new t.MenuItem({label:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0444\u0430\u0439\u043b...",
onClick:b.hitch(this,function(){parus.balance.exportGrid(c,null,null)})}));a.addChild(new t.MenuItem({label:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438...",onClick:b.hitch(this,function(){this._alreadySet=!0;parus.balance.executeSettings(c,g?a:null,f,this.catalogTree,null,null,null,null)})}));a.dialogObject=this;a.startup();return a},_catalogChangeBuffer:null,catalogTreeChange:function(){var a=null;if(this.catalogTree.checked.length){var c=[];b.forEach(this.catalogTree.checked,b.hitch(this,
function(e){c.push(this.catalogTree.model.getIdentity(e.item))}));a=this.catalogTree.listMode?null:c.join(";")}else a=this.catalogTree.listMode?null:this.catalogTree.selectedItem&&this.catalogTree.model.isValid(this.catalogTree.selectedItem)?this.catalogTree.model.getIdentity(this.catalogTree.selectedItem):parus.parus8.CLASS_EmptyData;this._catalogChangeBuffer!=(a||"")&&(this._catalogChangeBuffer=a||"",this._refreshGridTimeoutID&&clearTimeout(this._refreshGridTimeoutID),this._refreshGridTimeoutID=
setTimeout(b.hitch(this,this._refreshGrid),300),this.detailGrid&&this.gridChange())},_onQueryComplete:null,show:function(){(new b.DeferredList([this.inherited(arguments)])).addCallback(b.hitch(this,function(a){this.grid.focus.focusGrid();this.grid.focus.setFocusIndex(this.grid.getItemIndex(this.grid.selection.getFirstSelected()),0);return a}))},_refreshGrid:function(){this._refreshGridTimeoutID&&clearTimeout(this._refreshGridTimeoutID);this._refreshGridTimeoutID=null;this.catalogTree&&(!this._alreadySet&&
(this.value||this.label)||this.catalogTree.selectedItem||this.catalogTree.attr("path",[this.catalogTree.rootNode.item]));var a=this.grid.query||{};b.mixin(a,{onComplete:this._onQueryComplete});this.grid.setQuery(a)},_getGridItem:function(a){var c=[];b.forEach(this.grid.selection.getSelected(),b.hitch(this,function(e){c.push(this.gridStore().getValue(e,a,""))}));return this.multiselect?c.join(";"):c[0]},getValue:function(){return this._getGridItem(this.keyField)},getLabel:function(){return this._getGridItem(this.labelField)},
getFieldValue:function(a){return this._getGridItem(a)},_alreadySet:null,_setGridItem:function(a,c){if(a&&c)if(this._alreadySet=!1,this.catalogTree){if(!this.catalogTree.hiddenMode){var e={};b.mixin(e,this.gridConditions||{});if(this.queryParams)for(var f in this.queryParams)b.isFunction(this.queryParams[f])||(e[f]=this.queryParams[f]);b.mixin(e,{UNITCODE:this.unitCode,LABEL:a});e[c]=a;parus.database.query(this.pathQueryID,e,b.hitch(this,function(g){var h=[];b.forEach(parus.parus8.rowNodes(g),b.hitch(this,
function(l){(l=parus.parus8.nodeField(l,this.keyField))&&h.push(l)}));h.length?(this.catalogTree.attr("path",h).then(b.hitch(this,this._refreshGrid)),this._onQueryComplete=b.hitch(this,function(l){if(!this._alreadySet&&(l=l.findIndex(c,a),0<=l)){this.grid.scrollToRow(l);this.grid.selection.select(l);this.grid.updateRow(l);var m=this.grid.scroller.findScrollTop(l);if(this._alreadySet=this.grid.views.setScrollTop(m)==m)this.grid.focus.focusGrid(),this.grid.focus.setFocusIndex(l,0),this._onQueryComplete=
null}})):(this._alreadySet=!0,this.catalogTree.model.getRoot(b.hitch(this,function(l){this.catalogTree.attr("path",[l])})))}))}}else this._onQueryComplete=b.hitch(this,function(g,h,l){if(!this._alreadySet){var m=g.findIndex(c,a);0<=m&&setTimeout(b.hitch(this,function(){if(this._onQueryComplete){this._onQueryComplete=null;this.grid.scrollToRow(m);this.grid.selection.select(m);this.grid.updateRow(m);var p=this.grid.scroller.findScrollTop(m);if(this._alreadySet=this.grid.views.setScrollTop(p)==p)this.grid.focus.focusGrid(),
this.grid.focus.setFocusIndex(m,0)}}),100)}}),this.grid._requestsPending(0)?setTimeout(b.hitch(this,function(){this._setGridItem(a,c)}),100):(e=this.grid.query||{},b.mixin(e,{onComplete:this._onQueryComplete}),this.grid.setQuery(e))},setValue:function(a){this._setGridItem(a,this.keyField)},setLabel:function(a){this._setGridItem(a,this.labelField)},executeConditions:function(){},detailExecuteConditions:function(){},gridDoubleClick:function(){parus.gridActions.checkPopupMenuDefaultAction(this.menu)||
this.apply()},detailGridDoubleClick:function(){parus.gridActions.checkPopupMenuDefaultAction(this.detailMenu)},gridFilterChanged:function(a,c){parus.balance.gridFilterChanged(this.userDataSection,a,c)},detailGridFilterChanged:function(a,c){parus.balance.gridFilterChanged(this.userDataSection+"-detailGrid",a,c)},_masterChangeBuffer:null,gridChange:function(){this._checkGridPopupMenu();this.detailGrid&&(this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID),this._refreshDetailGridTimeoutID=
setTimeout(b.hitch(this,function(){this._refreshDetailGridTimeoutID&&clearTimeout(this._refreshDetailGridTimeoutID);this._refreshDetailGridTimeoutID=null;parus.balance.refreshGrid(this.detailGrid)}),300))},detailGridChange:function(){this._checkDetailGridPopupMenu()},_checkGridPopupMenu:function(){parus.gridActions.checkPopupMenuItemAction(this.menu,this.grid);this.checkGridPopupMenu&&this.checkGridPopupMenu.call(this,this,this.menu,this.grid)},_checkDetailGridPopupMenu:function(){parus.gridActions.checkPopupMenuItemAction(this.detailMenu,
this.detailGrid);this.checkDetailGridPopupMenu&&this.checkDetailGridPopupMenu.call(this,this,this.detailMenu,this.detailGrid)},checkGridPopupMenu:null,checkDetailGridPopupMenu:null})})},"parus/balanceSubReportDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceSubReportDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.declare("parus.balanceSubReportDialog",[parus.Dialog],{formCode:null,edition:null,
_docprops:null,postCreate:function(){this.inherited(arguments);this.noteEdit.attr("value",null);this._docprops={};if(parus.balance._detailDocprops.length){this.requsitesPane.domNode.style.margin="0";var a=new t.layout.TabContainer({region:"center","class":"balanceInternalPages"});a.addChild(this.requsitesPane);var c=new t.layout.ContentPane({title:"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430","class":"dialogContentPane",style:"overflow-y:scroll"}),e=document.createElement("table");e.cellSpacing=
"5";e.width="100%";b.forEach(parus.balance._detailDocprops,b.hitch(this,function(f){var g=e.insertRow(-1);g.insertCell(-1).appendChild(document.createElement("b")).appendChild(document.createTextNode(parus.parus8.nodeField(f,"PROMPT")+":"));g=g.insertCell(-1);g.align="right";var h=parus.customEditProperties(parus.parus8.nodeField(f,"DICTIONARY"),"3"==parus.parus8.nodeField(f,"DATATYPE")?"4":parus.parus8.nodeField(f,"DATATYPE"),parus.parus8.nodeField(f,"SUBTYPE"),"1"==parus.parus8.nodeField(f,"REQUIRE"),
parus.parus8.nodeField(f,"STRLEN"),parus.parus8.nodeField(f,"INTPART"),parus.parus8.nodeField(f,"FRACPART"));b.mixin(h.params,{disabled:"1"==parus.parus8.nodeField(f,"READONLY")});g=new (h.constructor())(h.params,g.appendChild(document.createElement("div")));this._docprops[parus.parus8.nodeField(f,"RN")]=g}));c.containerNode.appendChild(e);a.addChild(c);this.mainContainer.addChild(a);b.style(this.mainContainer.domNode,{height:parus.parus8.styleSize(this.mainContainer.domNode.style.height)+30+"px"})}},
selectSection:function(){var a=[];if(this.sectionCodeEdit.value){var c={UNITCODE:this.formCode+this.edition};c.CODE=this.sectionCodeEdit.value;c=parus.database.query("BalanceReportFormsSectionsHierPath",c);b.forEach(parus.parus8.rowNodes(c),function(f){a.push(parus.parus8.nodeField(f,"RN"))})}var e=new parus.treeDialog({title:"\u0420\u0430\u0437\u0440\u0435\u0437\u044b \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438",value:a.length?a.join(";"):null,validate:function(){return e.catalogTree.model.isValid(e.catalogTree.selectedItem)&&
-1!=e.catalogTree.model.getIdentity(e.catalogTree.selectedItem)},key:"BalanceReportFormsSections",model:new parus.catalogTreeModel({queryid:"BalanceReportFormsSectionsHier",onGetConditions:b.hitch(this,function(f,g){var h={UNITCODE:this.formCode+this.edition};h.CRN=g?f.getIdentity(g):"!*";return h})}),onPerform:b.hitch(this,function(f,g){this.sectionCodeEdit.attr("value",g);return!0})});e.show();return!0},propValues:function(){var a={},c;for(c in this._docprops)a["P"+c]=parus._docPropsValueValueFromWidget(this._docprops[c]);
return{DOCPROPS:a}}})})},"parus/balanceCustomDownloadReportsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceCustomDownloadReportsDialog");b.require("dojo.io.iframe");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.balanceCustomDownloadReportsDialog",[parus.Dialog],{kind:null,_lastValues:null,applyProgressLabel:"\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435...",
onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},formatCodeChanged:function(){var a=parus.database.execute("customDownloadFileNames",{BDATE:b.date.locale.format(this.reportDate.value,{selector:"date",datePattern:"dd.MM.yyyy"}),FORMAT:this.formatCode.value,CHARSET:this.encodingType.value});if(!a)return!1;a=parus.parus8.rowNodes(a)[0];this.fileNameEdit.attr("value",parus.parus8.nodeField(a,"FILENAME"));this.archiveNameEdit.attr("value",parus.parus8.nodeField(a,
"ARCHNAME"))},onApply:function(){var a=this.showReport.value,c=parus.database._xhr("customdownload.xml",null,{KIND:this.kind,BDATE:b.date.locale.format(this.reportDate.value,{selector:"date",datePattern:"dd.MM.yyyy"}),FORMAT:this.formatCode.value,CHARSET:this.encodingType.value,AGENT:this.agentCode.value,LOG_KIND:"2"==a?1:0,FILENAME:this.fileNameEdit.value,ARCHNAME:this.archiveNameEdit.value});if(c){var e=parus.parus8.rowNodes(c)[0],f=parus.parus8.nodeField(e,"RESULT"),g=parus.parus8.nodeField(e,
"DATASIZE"),h=function(){if("0"!=g)if("0"==f&&parus.parus8.errorMessage("\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0441 \u043d\u0430\u043b\u0438\u0447\u0438\u0435\u043c \u043e\u0448\u0438\u0431\u043e\u043a."),parus.parus8._themeEditorMode)alert("\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.");
else{var m=document.createElement("form");m.method="GET";m.action=parus.database.getCustomDownloadDataUrl();document.body.appendChild(m);m.submit();document.body.removeChild(m)}else parus.parus8.errorMessage("\u0424\u0430\u0439\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d.\x3cbr/\x3e\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0441 \u043d\u0430\u043b\u0438\u0447\u0438\u0435\u043c \u043e\u0448\u0438\u0431\u043e\u043a.")};
e=parus.parus8.rowNodes(c)[0];if("0"!=a)if(parus.parus8._embeddedMode)a="T"+ +new Date,mill.session.setValue(a,parus.parus8.nodeField(e,"clobLOG"),!1),e=b.moduleUrl("parus","embeddedContent.html")+"?loggedUserHandler\x3d"+parus.database.connected+"\x26params\x3d"+parus.parus8.hexEncodeParams([a,"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435",
f,""]),parus.embeddedMode.openTab(+new Date,"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435",e),h();else{a=new t.layout.BorderContainer({design:"headline",gutters:!1,"class":"balanceTemplateContentPane",style:"height:100%;width:100%;padding:0"});c=parus.balance._createHeadingPane("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435");
a.addChild(c);e=new t.layout.ContentPane({region:"center",content:parus.parus8.nodeField(e,"clobLOG"),onShow:function(){l.controlButton&&("0"==f?b.query("*",l.controlButton.containerNode).addClass("balanceModifiedHeader"):b.query("*",l.controlButton.containerNode).removeClass("balanceModifiedHeader"));h()}});a.addChild(e);var l=new t.layout.ContentPane({title:parus.balance.formatPageTitle("\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \x3cbr/\x3e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435"),
closable:!0,"class":"balanceTemplateContentPane"+("0"==f?" balanceModifiedHeader":""),onClose:b.hitch(this,function(){parus.balance.TabContainer.selectChild(this.kind?parus.balance.consolidatedPage:parus.balance.primaryPage);return!0})});e.parentPane=l;l.setContent(a);parus.balance.TabContainer.addChild(l);parus.balance.TabContainer.selectChild(l)}else h();return!0}},saveFormLastValues:function(){this._lastValues.encodingType=this.encodingType.value;this._lastValues.reportDate=b.date.locale.format(this.reportDate.value,
{selector:"date",datePattern:"dd.MM.yyyy"});this._lastValues.agentCode=this.agentCode.value;this._lastValues.formatCode=this.formatCode.value;this._lastValues.showReport=this.showReport.value;this._lastValues.fileNameEdit=this.fileNameEdit.value;this._lastValues.archiveNameEdit=this.archiveNameEdit.value;this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.encodingType.attr("value",
this._lastValues.encodingType);this.reportDate.attr("value",this._lastValues.reportDate?b.date.locale.parse(this._lastValues.reportDate,{datePattern:"dd.MM.yyyy",selector:"date"}):null);this.agentCode.attr("value",this._lastValues.agentCode);this.formatCode.attr("value",this._lastValues.formatCode);this.showReport.attr("value",this._lastValues.showReport);this.fileNameEdit.attr("value",this._lastValues.fileNameEdit);this.archiveNameEdit.attr("value",this._lastValues.archiveNameEdit);this.userSize=
this._lastValues.userSize||null}})})},"parus/abonentCustomLoadReportsDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.abonentCustomLoadReportsDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.RadioButton");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.dictEdit");b.declare("parus.abonentCustomLoadReportsDialog",[parus.Dialog],{_lastValues:null,onShow:function(){this.restoreFormLastValues()},onClose:function(){this.saveFormLastValues()},
saveFormLastValues:function(){this._lastValues.formatCode=this.formatCode.value;this._lastValues.userSize=this.userSize;parus.userdata.set(this.declaredClass,this._lastValues)},restoreFormLastValues:function(){this._lastValues=parus.userdata.get(this.declaredClass)||{};this.formatCode.attr("value",this._lastValues.formatCode);this.userSize=this._lastValues.userSize||null}})})},"parus/gridStatus":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.gridStatus");b.require("parus.parus8");
b.require("dojox.grid.enhanced._Plugin");b.require("dojox.grid.EnhancedGrid");b.declare("dojox.grid.enhanced.plugins.Status",H.grid.enhanced._Plugin,{name:"status",visible:!0,_oldCreateView:null,_afterRowConnect:null,_table:null,_statusBarRow:null,_items:null,constructor:function(a,c){this.inherited(arguments);b.mixin(this,c);var e=this,f=this.grid,g=this._oldCreateView=b.hitch(this.grid,this.grid.createView);this.grid.createView=function(){e._cleanUp();var h=g.apply(f,arguments);e._afterRowConnect=
b.connect(h,"onAfterRow",e,"_afterRow");e.visible=!1;b.forEach(f.structure[0].cells?f.structure[0].cells[0]:f.structure,b.hitch(this,function(l){l.aggregate&&(e.visible=!0)}));e._items=null;return h};this._connects.push(b.connect(f,"_onFetchBegin",e,"_fetchBegin"));this._connects.push(b.connect(f.selection,"onSelected",this,"_selected"));this._connects.push(b.connect(f.selection,"onDeselected",this,"_selected"))},_afterRow:function(a,c,e){-1==a&&b.query("table",e).forEach(b.hitch(this,function(f){this._cleanUpBar();
this._table=f;this.visible&&this._render()}))},_cleanUpEvent:function(){this._table=null;this._afterRowConnect&&(b.disconnect(this._afterRowConnect),this._afterRowConnect=null)},_cleanUpBar:function(){this._statusBarRow&&(this._statusBarRow.parentNode&&this._statusBarRow.parentNode.removeChild(this._statusBarRow),this._statusBarRow=null)},_cleanUp:function(){this._cleanUpEvent();this._cleanUpBar()},__formatAggregateText:function(a,c,e){var f=[];if(c||e||"0"==c||"0"==e){f.push('\x3cdiv style\x3d"height:18px;white-space: nowrap;overflow:hidden"\x3e');
f.push('\x3cdiv align\x3d"left" class\x3d"dojoxGridStatusBarLabel"\x3e');f.push(a);f.push(": ");f.push("\x3c/div\x3e");f.push('\x3cdiv align\x3d"right" class\x3d"dojoxGridStatusBarValue" style\x3d"position:relative;top:-18px"\x3e');if(c||"0"==c)f.push(parus.parus8.valueToExternalString(c)),(e||"0"==e)&&f.push(String.fromCharCode(160)+"/"+String.fromCharCode(160));(e||"0"==e)&&f.push(parus.parus8.valueToExternalString(e));f.push("\x3c/div\x3e");f.push("\x3c/div\x3e")}return f.join("")},__valueToFrac:function(a,
c){for(var e=["1"],f=0;f<c;f++)e.push("0");return Math.round(a*parseInt(e.join("")))/parseInt(e.join(""))},_selected:function(a){var c=this;b.forEach(this._items,function(e){if(e.column.aggregate){var f=null,g=null,h=null,l=null,m=null,p=c.grid.selection.getFirstSelected();if(p)for(var r=0;r<c.grid.selection.getSelectedCount();r++){var w=c.__extractValue(p,e,c.grid.store,0);if(w||"0"==w){"0"==w&&(w=0);f=(f||0)+1;if("number"==typeof w){g=(g||0)+w;var x=w.toString(),A=x.indexOf(".");x=0>A?0:x.length-
A-1;(m||x)<=x&&(m=x)}(l||w)<=w&&(l=w);(h||w)>=w&&(h=w)}p=c.grid.selection.getNextSelected(p)}(m||e.frac)<=e.frac&&(m=e.frac);1==e.column.aggregate?e.cell.innerHTML=c.__formatAggregateText("\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e",f,e.count):2==e.column.aggregate?e.cell.innerHTML=c.__formatAggregateText("\u0421\u0443\u043c\u043c\u0430",f?b.hitch(e.column,parus.parus8.formatFloatIntFrac)(c.__valueToFrac(g,m)):null,b.hitch(e.column,parus.parus8.formatFloatIntFrac)(c.__valueToFrac(e.sum,
m))):3==e.column.aggregate?e.cell.innerHTML=c.__formatAggregateText("\u041c\u0438\u043d\u0438\u043c\u0443\u043c",f?b.hitch(e.column,parus.parus8.formatFloatIntFrac)(h):null,b.hitch(e.column,parus.parus8.formatFloatIntFrac)(e.min)):4==e.column.aggregate?e.cell.innerHTML=c.__formatAggregateText("\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c",f?b.hitch(e.column,parus.parus8.formatFloatIntFrac)(l):null,b.hitch(e.column,parus.parus8.formatFloatIntFrac)(e.max)):5==e.column.aggregate&&(e.cell.innerHTML=
c.__formatAggregateText("\u0421\u0440\u0435\u0434\u043d\u0435\u0435",f?c.__valueToFrac(g/f,m):null,e.count?c.__valueToFrac(e.sum/e.count,m):null))}else e.cell.innerHTML=""})},__extractValue:function(a,c,e,f){var g=null;a&&(c.column._props.propRN?g=parus._docPropsValueForGrid(parus.parus8.docPropValue(a,c.column._props.propRN),c.column._props.dataType,c.column._props.dataSubType):c.column._props.attrRN?g=parus._docPropsValueForGrid(parus.parus8.docAttrValue(a,c.column._props.attrRN),c.column._props.dataType,
c.column._props.dataSubType):((g=e.getValue(a,c.column.field)||null)&&c.column.formatter&&(g=c.column.formatter(g,f,c.column._props)),c.column.grid.escapeHTMLInData&&(a=document.createElement("div"),a.innerHTML=g,g=parus.parus8.getTextContent(a))),g&&(c.column.dataType?g=parus.parus8.externalStringToValue(g,c.column.dataType):(c=b.number.parse(g))?g=c:(c=b.date.locale.parse(g,{selector:"date",datePattern:"dd.MM.yyyy"}))&&(g=c)));return g},_fetchBegin:function(a,c){var e=this;b.forEach(this._items,
function(f){b.mixin(f,{count:null,sum:null,min:null,max:null,frac:null})});this.grid.store.forEach&&this.grid.store.forEach(b.hitch(this,function(f,g,h){b.forEach(this._items,function(l){if(l.column.aggregate){var m=e.__extractValue(g,l,f,h);if(m||"0"==m){"0"==m&&(m=0);l.count=(l.count||0)+1;if("number"==typeof m){l.sum=(l.sum||0)+m;var p=m.toString(),r=p.indexOf(".");p=0>r?0:p.length-r-1;(l.frac||p)<=p&&(l.frac=p)}(l.max||m)<=m&&(l.max=m);(l.min||m)>=m&&(l.min=m)}}})}),!1);this._selected()},_render:function(){if(this.visible){this._statusBarRow=
this._table.insertRow(-1);b.addClass(this._statusBarRow,"dojoxGridStatusBarRow");b.addClass(this._statusBarRow,"dojoxGridStatusBarTable");b.forEach(this._table.rows[0].cells,b.hitch(this,function(){this._statusBarRow.insertCell(-1).style.padding="2px 5px 2px 0px"}));var a=-1;if(this._items)b.forEach(this.grid.views.views[0].structure.cells[0],b.hitch(this,function(e){e.field&&!e.hidden&&(-1==a?a=e.index:a++,this._items.byKey[e.field].cell=this._statusBarRow.cells[a])}));else{var c=this._items?this._items.byKey:
{};this._items=[];b.mixin(this._items,{byKey:c});b.forEach(this.grid.views.views[0].structure.cells[0],b.hitch(this,function(e){if(e.field&&!e.hidden){-1==a?a=e.index:a++;var f=c[e.field]||{};b.mixin(f,{column:e,cell:this._statusBarRow.cells[a],count:null,min:null,max:null,sum:null});this._items.push(f);this._items.byKey[e.field]=f}}))}this._selected();setTimeout(b.hitch(this,function(){this.grid.adaptHeight()}),150)}},destroy:function(){this._cleanUp();this.grid.createView=this._oldCreateView;this.inherited(arguments)}});
H.grid.EnhancedGrid.registerPlugin(H.grid.enhanced.plugins.Status)})},"parus/balanceIndexConsComparationPrint":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceIndexConsComparationPrint");b.require("parus.parus8");b.require("parus.database");b.require("parus.balanceIndexConsComparation");b.mixin(parus,{balanceIndexConsComparationPrint:{print:function(){var a,c;b.xhrGet({url:"../.system/session.xml",handleAs:"xml",sync:!0,preventCache:!0,load:function(f){b.isIE||f.normalize();
for(var g=f.documentElement.getElementsByTagName("*"),h=0;h!=g.length;h++)"querydata"==g[h].nodeName?a=g[h].childNodes.item(0).nodeValue:"handler"==g[h].nodeName?c=g[h].childNodes.item(0).nodeValue:"htmldata"==g[h].nodeName&&(e=g[h].childNodes.item(0).nodeValue);return f}});if(a){parus.database.connected=c;var e=parus.balanceIndexConsComparation.printRender(b.fromJson(a),!1)}e&&document.body.insertAdjacentHTML("afterBegin",e)}}})})},"parus/designerTemplateDialog":function(){define(["dijit","dojo",
"dojox"],function(t,b,H){b.provide("parus.designerTemplateDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.form.DateTextBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.formats");b.require("parus.editDictionaryDialog");b.declare("parus.designerTemplateDialog",[parus.editDictionaryDialog],{onLoadParams:function(a,c,e){this.inherited(arguments);this.prn||(this.prn=this.getParentDialogCondition("PRN"));a&&c&&(this.nameEdit.attr("value",a.getValue(c,
"NAME")),this.usageSelect.attr("value",a.getValue(c,"USAGE")),this.directionSelect.attr("value",a.getValue(c,"DIRECT_TABLE")),this.exportToExcelSelect.attr("value",a.getValue(c,"TO_EXCEL_SIGN")),this.defaultCheckBox.attr("checked","1"==a.getValue(c,"EDIT_DEFAULT")),this.editMode&&this.directionSelect.attr("disabled",!0))},executeInsert:function(a){if(a=parus.database.execute(a?"duplicateDesignerTemplate":"insertDesignerTemplate",{RN:a?this.rn:null,PRN:this.prn,NAME:this.nameEdit.attr("value"),USAGE:this.usageSelect.attr("value"),
DIRECT_TABLE:this.directionSelect.attr("value"),TO_EXCEL_SIGN:this.exportToExcelSelect.attr("value"),EDIT_DEFAULT:this.defaultCheckBox.attr("checked")?"1":"0"}))return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")},executeUpdate:function(){return!!parus.database.execute("updateDesignerTemplate",{RN:this.rn,NAME:this.nameEdit.attr("value"),USAGE:this.usageSelect.attr("value"),TO_EXCEL_SIGN:this.exportToExcelSelect.attr("value"),EDIT_DEFAULT:this.defaultCheckBox.attr("checked")?"1":"0"})},
executeDelete:function(a,c){return!!parus.database.execute("deleteDesignerTemplate",{RN:a.getValue(c,"RN")})}})})},"parus/balanceAdvReportSelectDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.balanceAdvReportSelectDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("dijit.TitlePane");b.require("dijit.form.DateTextBox");b.require("dijit.form.CheckBox");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.database");b.require("parus.groupBox");
b.require("parus.dictEdit");b.require("parus.balanceAdvReportCompareDialog");b.declare("parus.balanceAdvReportSelectDialog",[parus.Dialog],{_lastValues:null,_canCheckCriteria:!0,protocol:"",applyProgressLabel:"\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0431\u043e\u0440 \u0441\u0442\u0440\u043e\u043a...",postCreate:function(){this.inherited(arguments);this.criteriaTreeView._createTreeNode=function(a){return new parus.balanceAdvReportCompareCriteriaTreeNode(a)};
this.criteriaTreeView.model=new parus.catalogTreeModel({queryid:"BalanceCompareReportRuleCriteriaHier",onGetConditions:b.hitch(this,function(a,c){return{RULE_CODE:this._lastValues.rule,CRN:c?a.getIdentity(c)||"-1":"!*"}})})},onShow:function(){parus.catalogActions.refreshCatalogTree(this.criteriaTreeView);this.restoreFormLastValues()},saveFormLastValues:function(){this._lastValues={};this._lastValues.groups=this.groupsEdit.attr("value");this._lastValues.params=this.buildParams();this._lastValues.userSize=
this.userSize;parus.userdata.set(this.declaredClass+this.protocol,this._lastValues)},restoreFormLastValues:function(){var a=parus.userdata.get(this.declaredClass+this.protocol)||{};b.mixin(this._lastValues,a);this.userSize=this._lastValues.userSize||null;setTimeout(b.hitch(this,function(){this.groupsEdit.attr("value",this._lastValues.groups||null)}),300);this.criteriaTreeView.model.fetchAll(b.hitch(this,function(){var c=this._lastValues.params;c&&(c=c.Conditions);c&&(c=c.Criteria);if(c&&c.length){var e=
[];b.forEach(c,function(f){for(key in f)e.push(f[key])});setTimeout(b.hitch(this,function(){(function(f){f&&(f._checkBox.attr("checked",-1!=b.indexOf(e,parus.parus8.nodeField(f.item,"ID"))),b.forEach(f.getChildren()||[],arguments.callee))})(this.criteriaTreeView.rootNode)}),300)}}))},onApply:function(){this.saveFormLastValues();return!0},getSectionGroupsCondition:function(){return{RULE_CODE:this._lastValues.rule||parus.parus8.CLASS_EmptyData}},buildParams:function(){var a=[];this.criteriaTreeView.model.fetchAll();
(function(c){c&&(c._checkBox.checked&&a.push({"\u0421riterion":parus.parus8.nodeField(c.item,"ID")}),b.forEach(c.getChildren()||[],arguments.callee))})(this.criteriaTreeView.rootNode);if(!a.length)throw parus.parus8.errorMessage("\u041d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f."),Error("Dialog element is not defined for class "+this.declaredClass+".");return{Conditions:{SectionGroups:this.groupsEdit.value||
"",Criteria:a}}}})})},"parus/abonentSelectFormDialog":function(){define(["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.abonentSelectFormDialog");b.require("dijit.Dialog");b.require("dijit.form.Button");b.require("parus.parus8");b.require("parus.dialog");b.require("parus.abonent");b.declare("parus.abonentSelectFormDialog",[parus.Dialog],{})})}}});
define("parus/parus8",["dijit","dojo","dojox"],function(t,b,H){b.provide("parus.parus8");b.require("dojo.DeferredList");b.require("dojo.colors");b.require("dojo.data.ItemFileReadStore");b.require("dojo.dom");b.require("dojo.mouse");b.require("dijit.place");b.require("dijit.Viewport");b.require("dijit._Templated");b.require("dijit.MenuItem");b.require("dijit.Tree");b.require("dijit.Editor");b.require("dijit._editor.range");b.require("dijit._editor.plugins.FontChoice");b.require("dijit._editor._Plugin");
b.require("dijit._editor.plugins.AlwaysShowToolbar");b.require("dijit._editor.plugins.FontChoice");b.require("dijit._editor.plugins.TextColor");b.require("dijit._editor.plugins.LinkDialog");b.require("dijit._editor.plugins.ViewSource");b.require("dojox.grid.DataGrid");b.require("dojox.grid.EnhancedGrid");b.require("dojox.grid.Selection");b.require("dojox.grid._Grid");b.require("dojox.grid._Builder");b.require("dojox.grid.cells.dijit");b.require("dojox.grid.enhanced.plugins.IndirectSelection");b.require("parus.database");
b.require("parus.loginDialog");b.require("parus.errorMessageDialog");b.require("parus.notificationDialog");b.require("parus.embeddedMode");b.require("parus.parusBrowserValidator");parus||(parus={});parus.parus8||b.mixin(parus,{parus8:{}});b.mixin(parus.parus8,{CLASS_ParusBalanceContentHandler:"{8B137980-B315-46EE-8553-7E08C991ECDB}",CLASS_PPCBalanceContentHandler:"{E9E27219-4C6D-4EC7-B272-718858A9E258}",CLASS_FolderContentHandler:"{3EE433E6-8FE9-4471-A972-561725956DCC}",CLASS_OCIProxyParusBalanceContentHandler:"{62F90CA0-67AA-41BC-8954-052FAE60056A}",
CLASS_PPCProxyBalanceContentHandler:"{B49A47C4-1FE1-4678-BBD2-F2EA86F4B514}",CLASS_InstantMessageHandler:"{95DB70D3-9FC4-4721-8FD8-8B7EF0CB9E28}",parusClientLauncherFileName:"ParusClient.exe",CLASS_EmptyData:"{27BC9534-FD41-4DF5-89B5-DEC3AC0D28C0}",version:{major:0,minor:0,patch:0,flag:".0",revision:"develop",toString:function(){var u=parus.parus8.version;return u.major+"."+u.minor+"."+u.patch+u.flag+" ("+u.revision+")"}},_hasInstantMessagesHandler:null,_SSLCertAuthSubDomain:null,_colorNames:{},_sessionUsed:!1,
_login_url:null,_themeEditorMode:!1,_embeddedMode:!1,_clientSessionTimeout:0,_clientSessionTimeoutID:null,_sysColors:{"-2147483648":[212,208,200],"-2147483647":[0,78,152],"-2147483646":[0,84,227],"-2147483645":[122,150,223],"-2147483644":[255,255,255],"-2147483643":[255,255,255],"-2147483642":[0,0,0],"-2147483641":[0,0,0],"-2147483640":[0,0,0],"-2147483639":[255,255,255],"-2147483638":[212,208,200],"-2147483637":[212,208,200],"-2147483636":[128,128,128],"-2147483635":[49,106,197],"-2147483634":[255,
255,255],"-2147483633":[236,233,216],"-2147483632":[172,168,153],"-2147483631":[172,168,153],"-2147483630":[0,0,0],"-2147483629":[216,228,248],"-2147483628":[255,255,255],"-2147483627":[113,111,100],"-2147483626":[241,239,226],"-2147483625":[0,0,0],"-2147483624":[255,255,225],"-2147483622":[0,0,128],"-2147483621":[61,149,255],"-2147483620":[157,185,235],"-2147483619":[49,106,197],"-2147483618":[236,233,216]},_themes:null,_intfs:null,startup:function(u,y,z){var G=b.cookie("bs"),E=b.cookie("bc");if(!parus.parus8._themes){parus.parus8._themes=
[];var J=!1;this._themeEditorMode||b.xhrGet({url:b.moduleUrl("parus","theme/themes.xml").toString(),handleAs:"xml",sync:!0,preventCache:!0,load:function(W){b.isIE||W.normalize();parus.parus8._themes=[];for(var S=W.documentElement.getElementsByTagName("theme"),N=0;N!=S.length;N++)parus.parus8._themes.push(S[N]),S[N].getAttribute("id")==(E||"").split(" ")[0]&&(J=!0);return W}});J||(E=null);for(var K=0;K<parus.parus8._themes.length;K++)"1"!=parus.parus8._themes[K].getAttribute("loaded")&&b.place('\x3clink type\x3d"text/css" rel\x3d"stylesheet" href\x3d"../parusjs/theme/'+
parus.parus8._themes[K].getAttribute("id")+'/theme.css" \x3e\x3c/link\x3e',document.getElementsByTagName("head")[0],"last")}parus.parus8._intfs||(parus.parus8._intfs=[],J=!1,b.xhrGet({url:b.moduleUrl("parus","intf.xml").toString(),handleAs:"xml",sync:!0,preventCache:!1,load:function(W){b.isIE||W.normalize();parus.parus8._intfs=[];for(var S=W.documentElement.getElementsByTagName("schema"),N=0;N!=S.length;N++)parus.parus8._intfs.push({id:S[N].getAttribute("id"),title:S[N].getAttribute("title")}),S[N].getAttribute("id")==
G&&(J=!0);return W}}),J||(G=null));parus.parus8._SSLCertAuthSubDomain&&parus.parus8._hasInstantMessagesHandler||b.xhrGet({handleAs:"xml",sync:!0,headers:{"Disable-Basic-Auth":"yes"},preventCache:!0,url:"../.system/contents.xml",load:b.hitch(this,function(W){for(var S=0;S<W.documentElement.childNodes.length;S++){var N=W.documentElement.childNodes[S];"1"!=(N.getAttribute("disabled")||0).toString()&&(N.getAttribute("class").toString()==parus.parus8.CLASS_InstantMessageHandler.toString()?parus.parus8._hasInstantMessagesHandler=
N.getAttribute("ID"):N.getAttribute("class").toString()!=parus.parus8.CLASS_ParusBalanceContentHandler.toString()&&N.getAttribute("class").toString()!=parus.parus8.CLASS_PPCBalanceContentHandler.toString()||!N.getAttribute("SSLCertAuthSubDomain")||(N=N.getAttribute("SSLCertAuthSubDomain"),N.startsWith("https://")||(N="https://"+N),N.endsWith("/")&&(N=N.substring(0,N.length-1)),parus.parus8._SSLCertAuthSubDomain=N))}return W})});document.body.className=E||document.body.className;z||(y=parus[G]||y);
b.isTrident&&b.addClass(b.body(),"ie11");this._colorNames=b.i18n.getLocalization("dojo","colors")||this._colorNames;var F=null,L=null,O=null,Q=null,M=null,P=null,T=!1,U=!1,X=!1,V=null,Y=!1,Z={};(function(){b.xhrGet({handleAs:"xml",sync:!0,preventCache:!0,content:{jsversion:(b.version?b.version.toString():"")||""},url:"../.system/session.xml",load:function(W){for(var S=W.documentElement.getElementsByTagName("*"),N=0;N!=S.length;N++)Z[S[N].nodeName]=S[N].childNodes.item(0).nodeValue,"SessionWasAuthorized"==
S[N].nodeName?F=S[N].childNodes.item(0).nodeValue:"loggedUserName"==S[N].nodeName?(L=S[N].childNodes.item(0).nodeValue,T="3"!=S[N].getAttribute("Source")):"loggedUserHandler"==S[N].nodeName?(O=S[N].childNodes.item(0).nodeValue,U="3"!=S[N].getAttribute("Source")):"loggedUserPassword"==S[N].nodeName?(Q=S[N].childNodes.item(0).nodeValue,X="3"!=S[N].getAttribute("Source")):"loggedAsNegotiate-c"==S[N].nodeName?(M=S[N].childNodes.item(0).nodeValue,S[N].getAttribute("Source")):"loggedAsSSLCert-c"==S[N].nodeName?
(P=S[N].childNodes.item(0).nodeValue,S[N].getAttribute("Source")):"openid.mode"!=S[N].nodeName&&"login_url"==S[N].nodeName&&(V=S[N].childNodes.item(0).nodeValue),"embeddedMode"==S[N].nodeName&&(Y=!0);return W}})})();this._sessionUsed="1"==F||!!(U&&T&&X);this._login_url=V;L=L||b.cookie("loggedUserName-c");O=O||b.cookie("loggedUserHandler-c");Q=Q||b.cookie("loggedUserPassword-c");M=M||b.cookie("loggedAsNegotiate-c");P=P||b.cookie("loggedAsSSLCert-c");var aa=b.hitch(this,function(){setTimeout(b.hitch(this,
function(){if(!E&&!parus.parus8._themeEditorMode){var W=parus.parus8._themes[parus.database.attributes.defaultSchema%parus.parus8._themes.length].getAttribute("id")||"parus8",S="1"==parus.database.attributes.defaultZoom?"z125":"2"==parus.database.attributes.defaultZoom?"z150":"z100";if(b.isEdge||b.isIE)S="z100";document.body.className=[W,S].join(" ")}z||G||(y=parus[b.map(parus.parus8._intfs,function(N){return N.id})[Math.floor(parus.database.attributes.defaultSchema/parus.parus8._themes.length)]]||
y);Y&&parus.embeddedMode.startup(Z);parus.userdata.load();y.startup(Z);"1"==parus.database.attributes["auth-userCanRecieveMessages"]&&parus.parus8._hasInstantMessagesHandler&&(new mill.InstantMessages({handler:parus.parus8._hasInstantMessagesHandler,pollTimeout:1E3*b.number.parse(parus.parus8.optionValue("InstantMessagePoolingIntervalWeb"))},b.place("\x3cdiv\x3e\x3c/div\x3e",b.body(),"last"))).startup();W=parseInt(parus.database.attributes.parusSessionTimeOut);if(void 0===W||isNaN(W))W=0;0<W&&this.keepAliveSession(W);
parus.parus8._themeEditorMode||Y||(this._clientSessionTimeout=parseInt(parus.parus8.optionValue("BalanceOnlineClientTimeout"))||0,this.registerAction())}),500)});K=parseInt(b.cookie("justClosed"));if(O&&(z||"1"==F&&!K)&&parus.database.connect(O,null,null))aa();else if(O&&L&&Q&&!K&&parus.database.connect(O,L,Q))aa();else{var ba=function(){b.cookie("justClosed","");setTimeout(function(){var W=new parus.loginDialog({task:u,sessionUserName:L,sessionUserHandler:O,sessionPassword:Q,sessionNegotiate:M,sessionSSLCert:P,
onApply:function(){loadingDiv.style.display="";aa();return!0}});loadingDiv.style.display="none";W.show()},100)};parus.parus8._messageWindow?parus.parus8._messageWindow.onClose=function(){parus.parus8._messageWindow=null;ba()}:ba()}},unimplemented:function(u,y,z){throw Error("Unimplemented API: "+(u.declaredClass||"parus.parus8")+"."+y);},rowNodes:function(u){if(b.isArray(u))return u;if(!u)return[];u=u.documentElement?u.documentElement.childNodes:u.childNodes;for(var y=[],z=0,G=u.length;z<G;z++)u[z]&&
1==u[z].nodeType&&"SCRIPT"!=u[z].nodeName.toUpperCase()&&y.push(u[z]);return y},_mapFields:function(u){if(u&&!b.isIE)var y=u._fieldsMap;if(y)return y;y={};if(u){var z=u.childNodes;if(z){for(var G=0,E=z.length;G<E;G++){var J=z[G].firstChild;J&&J.nodeType&&(3==J.nodeType?J=J.nodeValue:1==J.nodeType&&(J=this.rowNodes(J)));y[z[G].nodeName]=J}b.isIE||b.mixin(u,{_fieldsMap:y})}else y=u}return y},nodeField:function(u,y){return u?u.nodeType?this._mapFields(u)[y]:u[y]:u},catalogTreeGetLabelClass:function(u,
y){if("1"!=parus.parus8.nodeField(u,"ISVALID")&&("\u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d"==parus.parus8.nodeField(u,"NAME")||"\u041f\u0430\u043f\u043a\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430"==parus.parus8.nodeField(u,"NAME")))return"dijitHiddenItem";if(this.listMode)return"dijitListedItem"},catalogTreeGetIconClass:function(u,y){return this.listMode?"dijitFolderListed":"1"!=parus.parus8.nodeField(u,"ISVALID")?
"dijitFolderDisabled":y?"dijitFolderOpened":"dijitFolderClosed"},folderTreeGetIconClass:function(u,y){return"1"!=parus.parus8.nodeField(u,"ISVALID")?"dijitYellowFolderDisabled":"2"!=parus.parus8.nodeField(u,"SOURCE")?"dijitYellowFolderDisabled":y?"dijitYellowFolderOpened":"dijitYellowFolderClosed"},compareNodes:function(u,y){return b.isIE?u.sourceIndex==y.sourceIndex:0==u.compareDocumentPosition(y)},monthNames:function(){return"\u042f\u043d\u0432\u0430\u0440\u044c \u0424\u0435\u0432\u0440\u0430\u043b\u044c \u041c\u0430\u0440\u0442 \u0410\u043f\u0440\u0435\u043b\u044c \u041c\u0430\u0439 \u0418\u044e\u043d\u044c \u0418\u044e\u043b\u044c \u0410\u0432\u0433\u0443\u0441\u0442 \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c \u041e\u043a\u0442\u044f\u0431\u0440\u044c \u041d\u043e\u044f\u0431\u0440\u044c \u0414\u0435\u043a\u0430\u0431\u0440\u044c".split(" ")},
internalLogout:function(){this._keepAliveSessionTimeout&&(clearTimeout(this._keepAliveSessionTimeout),this._keepAliveSessionTimeout=null);this._clientSessionTimeoutID&&(clearTimeout(this._clientSessionTimeoutID),this._clientSessionTimeoutID=null);this._notificationTimeout&&(clearTimeout(this._notificationTimeout),this._notificationTimeout=null);parus.database.clearSessionIdent();!this._sessionUsed&&document.referrer&&document.referrer==document.location.pathname||b.cookie("justClosed","1");parus.database.connected=
null;parus.database.attributes=null;parus.database.login=null;parus.database.authException=null;parus.database.companyName=null;window.open(this._login_url?this._login_url:this._sessionUsed?document.location.pathname:document.referrer||document.location.pathname,"_self")},logout:function(){parus.parus8._embeddedMode?parus.embeddedMode.closeTab():(b.xhrGet({url:parus.database.getLogoutUrl(),handleAs:"xml",sync:!0,preventCache:!0}),parus.parus8.internalLogout())},_keepAliveSessionTimeout:null,_keepAliveSessionDisabled:!1,
keepAliveSession:function(u){this._keepAliveSessionTimeout&&(clearTimeout(this._keepAliveSessionTimeout),this._keepAliveSessionTimeout=null);var y=b.hitch(this,function(z){z=0<z-60?z-60:60;this._keepAliveSessionTimeout=setTimeout(b.hitch(this,this.keepAliveSession),1E3*z)});u?y(u):parus.database.query("keepAliveSessionQuery",{},b.hitch(this,function(z){if(!this._keepAliveSessionDisabled){z=parseInt(parus.parus8.nodeField(parus.parus8.rowNodes(z)[0],"TIME_LEFT"));if(void 0===z||isNaN(z))z=60;y(z)}}),
b.hitch(this,function(z){403===z.status?this._keepAliveSessionDisabled=!0:y(60)}),!0)},registerAction:function(){this._clientSessionTimeoutID&&clearTimeout(this._clientSessionTimeoutID);this._clientSessionTimeoutID=null;this._clientSessionTimeout&&(this._clientSessionTimeoutID=setTimeout(b.hitch(this,this.logout),1E3*this._clientSessionTimeout))},formatBoolean:function(u,y,z){return["\u041d\u0435\u0442","\u0414\u0430"][u]},formatFloat:function(u,y,z){return u?(y=b.number.parse(u.toString().split(".").join(",")),
isNaN(y)?u:b.number.format(y,{pattern:"#,##0.########################################"})):u},formatFloatIntFrac:function(u){return this.fracPart?u?parus.parus8.formatIndexConsValue(u.toString().split(".").join(","),this.intPart,this.fracPart):u:parus.parus8.formatFloat(u)},formatWrappedText:function(u,y,z){return u.split("\n").join("\x3cbr/\x3e")},formatAuthType:function(u){return"Explicit"==u?"\u041b\u043e\u0433\u0438\u043d/\u041f\u0430\u0440\u043e\u043b\u044c":"OpenID"==u?"OpenID":"Negotiate"==
u||"NTLM"==u?"\u0414\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f Windows":"SSLCert"==u?"\u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u043e SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0443":u},formatCertDate:function(u,y,z){return b.date.locale.format(u,{datePattern:"dd.MM.yyyy",timePattern:"HH:mm:ss"})},getXMLReportSignTemplateName:function(u,y){if(2001==
u)return"reportSignTemplate.xml";if(2012==u){if(256==y)return"reportSignTemplate_2012_256.xml";if(512==y)return"reportSignTemplate_2012_512.xml"}return""},_messageWindow:null,errorMessage:function(u,y){parus.parus8._messageWindow=new parus.errorMessageDialog({message:u.replace(/\n/g,"\x3cbr/\x3e"),onClose:function(){parus.parus8._messageWindow=null;y&&y()}});parus.parus8._messageWindow.show()},notificationMessage:function(u,y){parus.parus8._messageWindow=new parus.notificationDialog({message:u.replace(/\n/g,
"\x3cbr/\x3e"),onClose:function(){parus.parus8._messageWindow=null;y&&y()}});parus.parus8._messageWindow.show()},denote:function(u,y){var z;b.forEach(u.split("."),function(G){z=(z||y||b.global)[G]});return z},compareObjects:function(u,y){if(b.isArray(u)&&1==u.length)return parus.parus8.compareObjects(u[0],y);if(b.isArray(y)&&1==y.length)return parus.parus8.compareObjects(u,y[0]);if(b.isObject(u)&&b.isObject(y)){if(u.constructor==RegExp||y.constructor==RegExp)return u.toString()==y.toString();var z=
[],G;for(G in u)z.push(G);for(G in y)z.push(G);var E=!0;b.every(z,function(J){return parus.parus8.compareObjects(u[J],y[J])?!0:E=!1});return E}return u==y},getTextContent:function(u){return u?b.query("[rv]",u).length?b.query("[rv]",u)[0].getAttribute("rv"):b.query("[rid\x3d'b']",u).length?(u=u.innerHTML,u=u.split('\x3cbr rid\x3d"b"\x3e').join("\n"),u=u.split('\x3cbr rid\x3d"b"/\x3e').join("\n"),u=u.split('\x3cbr rid\x3d"b"\x3e\x3c/br\x3e').join("\n"),u=u.split('\x3cBR rid\x3d"b"\x3e').join("\n"),
u=u.split('\x3cBR rid\x3d"b"/\x3e').join("\n"),u=u.split('\x3cBR rid\x3d"b"\x3e\x3c/BR\x3e').join("\n")):!b.isIE||10<=b.isIE?u.textContent:u.innerText:""},styleSize:function(u){u=u.toString();u=u.substr(0,u.length-2);return Number(u)},docAttrValue:function(u,y){var z=parus.parus8.rowNodes(parus.parus8.nodeField(u,"XML_ATTRIBUTES"));return z&&z.length?parus.parus8.nodeField(z[0],"S"+y):null},docPropValue:function(u,y){if(9>=b.isIE)return parus.parus8.nodeField(u.selectSingleNode("XMLPROPERTIES/ROWSET/ROW[RN\x3d'"+
y+"']"),"VALUE");for(var z=u.firstElementChild;z;){if("XMLPROPERTIES"==z.nodeName)for(var G=z.firstElementChild?z.firstElementChild.firstElementChild:null;G;){for(var E=G.firstElementChild;E;){if("RN"==E.nodeName&&E.firstChild.nodeValue==y)for(var J=G.firstElementChild;J;){if("VALUE"==J.nodeName)return J.firstChild.nodeValue;J=J.nextElementSibling}E=E.nextElementSibling}G=G.nextElementSibling}z=z.nextElementSibling}},optionValue:function(u){u=parus.database.execute("GetOptionValue",{CODE:u});return parus.parus8.nodeField(parus.parus8.rowNodes(u)[0],
"VALUE")},hash:function(u){u=b.trim(u);if(!u)return"";for(var y=result=0;y<u.length;y++)result+=u.charCodeAt(y);return result.toString(16)},colorToCssColor:function(u){u=b.number.parse(u);var y="";if(parus.parus8._sysColors[u])b.forEach(parus.parus8._sysColors[u],function(z){for(z=z.toString(16);2>z.length;)z="0"+z;y+=z});else{for(y=u.toString(16);6>y.length;)y="0"+y;y=y.slice(4,6)+y.slice(2,4)+y.slice(0,2)}return y},formatColor:function(u,y,z){u=parus.parus8.colorToCssColor(u);y=parseInt(u.slice(0,
2),16);z=parseInt(u.slice(2,4),16);var G=parseInt(u.slice(4,6),16),E="",J;for(J in b.Color.named){var K=b.Color.named[J];K[0]==y&&K[1]==z&&K[2]==G&&(E=J)}E&&(E=parus.parus8._colorNames[E]||E);E||(E="#"+u.toUpperCase());return"\x3cspan style\x3d'width:18px;height:18px;border:1px solid black; background-color:"+u+"'\x3e\x26#160;\x26#160;\x26#160;\x26#160;\x26#160;\x26#160;\x3c/span\x3e\x26#160;\x26#160;"+E},colorOptions:function(){var u=[],y;for(y in parus.parus8._colorNames)b.Color.named[y]&&u.push({label:"\x3cdiv style\x3d'padding-top:2px;padding-bottom:2px'\x3e\x3cspan style\x3d'width:12px;height:12px;border:1px solid black; background-color:"+
y+"'\x3e\x26#160;\x26#160;\x26#160;\x26#160;\x26#160;\x26#160;\x3c/span\x3e\x26#160;\x26#160;"+parus.parus8._colorNames[y]+"\x3c/div\x3e",value:(65536*b.Color.named[y][2]+256*b.Color.named[y][1]+b.Color.named[y][0]).toString()});return u},formatRowNumber:function(u,y,z){return y+1},compareUntypedValues:function(u,y){var z=u,G=y,E=b.number.parse(z.toString()),J=b.number.parse(G.toString());if(isNaN(E)||isNaN(J)){var K=!1;b.forEach([{selector:"date",datePattern:"dd.MM.yyyy HH:mm:ss"},{selector:"date",
datePattern:"dd.MM.yyyy HH:mm"},{selector:"date",datePattern:"dd.MM.yyyy"}],function(F){if(!K){var L=b.date.locale.parse(z.toString(),F);F=b.date.locale.parse(G.toString(),F);L&&F&&(z=L,G=F,K=!0)}})}else z=E,G=J;return z>G?1:z<G?-1:0},launcherFileName:"ParusClient.exe",installlerFileName:"ParusClientInstaller.exe",buildParusProxyLaunchersList:function(u,y){b.xhrGet({handleAs:"xml",sync:!0,headers:{"Disable-Basic-Auth":"yes"},url:"../.system/contents.xml",load:b.hitch(this,function(z){for(var G=document.getElementById("launchers"),
E=!1,J=0;J<z.documentElement.childNodes.length;J++){var K=z.documentElement.childNodes[J];if(0<=u.indexOf(K.getAttribute("class").toString())&&"1"!=(K.getAttribute("disabled")||0).toString()){if(!E){var F=G.appendChild(document.createElement("p"));E=F.appendChild(document.createElement("a"));E.style.fontWeight="bold";E.style.fontSize="120%";K=this.launcherFileName.split(".")[0];F=F.appendChild(document.createElement("img"));F.src=y+K+".ico";F.align="middle";F.width=16;F.height=16;E.appendChild(F);
E.appendChild(document.createTextNode(String.fromCharCode(160)+"\u0415\u0434\u0438\u043d\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0439 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439"));E.setAttribute("href",y+this.launcherFileName);F=G.appendChild(document.createElement("p"));E=F.appendChild(document.createElement("a"));
E.style.fontWeight="bold";E.style.fontSize="120%";K=this.launcherFileName.split(".")[0];F=F.appendChild(document.createElement("img"));F.src=y+K+".ico";F.align="middle";F.width=16;F.height=16;E.appendChild(F);E.appendChild(document.createTextNode(String.fromCharCode(160)+"\u0418\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442"));E.setAttribute("href",y+this.installlerFileName);
G.appendChild(document.createElement("hr"))}E=!0}}(E?document.getElementById("noLaunchers"):G).style.display="none";b.fadeIn({node:document.getElementById("remoteAccessInfo")}).play();return z})})},checkMenuSeparators:function(u){var y=function(G){var E=!1,J=!1,K=null;b.forEach(G.getChildren(),function(F){"dijit.MenuSeparator"==F.declaredClass?(F.domNode.style.display=J?"":"none",J&&(K=F),J=!1):(F.popup&&(F.popup.from_item=F,y(F.popup)),"none"!=F.domNode.style.display&&(J=E=!0,K=null));F.toolBarButton&&
(F.toolBarButton.attr("disabled",F.disabled),F.toolBarButton.domNode.style.display=F.domNode.style.display)});K&&!J&&(K.domNode.style.display="none");G.from_item&&(G.from_item.domNode.style.display=E?"":"none")};y(u);if(u.actionsButtonPane){if(u.actionsButtonPane.toolbar){var z=!1;b.forEach(u.actionsButtonPane.toolbar.getChildren(),function(G){"dijit.ToolbarSeparator"==G.declaredClass?(G.domNode.style.display=z?"":"none",z=!1):"none"!=G.domNode.style.display&&(z=!0)})}setTimeout(function(){t.byNode(u.actionsButtonPane.domNode.parentNode).layout();
u.actionsButtonPane.layout()},400)}},getZoom:function(){return b.hasClass(b.body(),"z150")?1.5:b.hasClass(b.body(),"z125")?1.25:1},coords:function(){var u=b.coords.apply(b,arguments),y=parus.parus8.getZoom();u.x/=y;u.y/=y;return u},zoomContainerClass:function(){return b.isFF||b.isOpera||b.isMozilla?"mozZoomContainer":"zoomContainer"},_patternConditionRe:/\[[^\]]*\]/g,formatIndexConsValue:function(u,y,z){if(u){u=b.number.parse(u.toString().split(".").join(","));if(isNaN(u))return"";u&&z&&(u=Math.abs(u)<
Math.pow(10,-1-z)?0:b.number.round(u*Math.pow(10,z))/Math.pow(10,z));u=b.number.format(u,{places:isNaN(parseInt(z))?100:parseInt(z)||0,group:" "});if(isNaN(parseInt(z)))for(;u.match(/.*,\d*0$/)||u.match(/.*,$/);)u=u.substring(0,u.length-1);return u}return u},formatExcelValue:function(u,y,z,G,E){if(null===u)return"";var J=typeof u;if("number"==J){if(isNaN(u))return"";J=null;if(parseInt(G)){J="0";for(var K=1;K<G;K++)J="#"+J;if(parseInt(E))for(J+=".",K=0;K<E;K++)J+="0"}u&&E&&(u=Math.abs(u)<Math.pow(10,
-1-E)?0:b.number.round(u*Math.pow(10,E))/Math.pow(10,E));E=J?b.number.format(u,{pattern:J,group:""}):u.toString().split(".").join(",");G=['rv\x3d"'+E+'"'];if(y){var F=[],L,O=!1;b.forEach(y.split(";"),function(Q){if(!O){var M=Q.match(parus.parus8._patternConditionRe);if(M){var P=!1,T;b.forEach(M,function(U){Q=Q.split(U).join("");U=U.substring(1,U.length-1);var X=U.charAt(0);if("\x3d"==X)U="\x3d"+U;else if("\x3e"!=X&&"\x3c"!=X){T=U;return}P=!0;if(!O){U=U.split(",").join(".");try{O=b.fromJson(-1==U.indexOf("$")?
""+u.toString()+U:U.split("$").join(u.toString()))}catch(V){}}});P?O&&(L={pattern:Q,color:T}):F.push({pattern:Q,color:T})}else F.push({pattern:Q})}});L||(L=0<u?F[0]||"":0>u?F[1]||{pattern:"-"+F[0].pattern,color:F[0].color}:(u=0,F[3]||F[0]||""));if(L){if(-1!=L.pattern.indexOf("@"))E=L.pattern.split("@").join(E);else if(L.pattern.match(b.number._numberPatternRE))if("0"==L.pattern)E=b.number.format(b.number.round(u));else{"0"==L.pattern.charAt(0)?L.pattern="#"+L.pattern:"-"==L.pattern.charAt(0)&&"0"==
L.pattern.charAt(1)&&(L.pattern="-#"+L.pattern.substr(1));y=/[_]./;for(E=y.exec(L.pattern);E;)L.pattern=L.pattern.replace(y,String.fromCharCode(160)),E=y.exec(L.pattern);L.pattern=L.pattern.split(" ").join(String.fromCharCode(160));E=b.number.format(Math.abs(u),{pattern:L.pattern})}else E=L.pattern;L.color&&G.push('style\x3d"color:'+L.color+'"')}}return z?E:"\x3cspan "+G.join(" ")+"\x3e"+E+"\x3c/span\x3e"}if("boolean"==J)return u?"\u0418\u0421\u0422\u0418\u041d\u0410":"\u041b\u041e\u0416\u042c";if(u.getDate)return b.date.locale.format(u,
{selector:"date",datePattern:"dd.MM.yyyy"});E=u.toString();return z?E:E.replace(/\n/g,'\x3cbr rid\x3d"b"/\x3e')},externalStringToValue:function(u,y){return u?"1"==y?b.number.parse(u.split(".").join(",")):"2"==y?b.date.locale.parse(u,{selector:"date",datePattern:"dd.MM.yyyy"}):u:null},valueToExternalString:function(u){if(null===u)return"";var y=typeof u;return"number"==y?isNaN(u)?"":(0>u.toString().indexOf("e")?u.toString():u.toFixed(15)).split(".").join(","):"boolean"==y?u?"\u0418\u0421\u0422\u0418\u041d\u0410":
"\u041b\u041e\u0416\u042c":u.getDate?b.date.locale.format(u,{selector:"date",datePattern:"dd.MM.yyyy"}):u.toString()},aboutBox:function(u){parus.database._xhr("aboutboxinfo.xml",null,null,function(y){var z=[];z.push('\x3cdiv style\x3d"margin-bottom:5px"\x3e');z.push("\u041f\u0440\u043e\u0434\u0443\u043a\u0442: "+y.documentElement.getAttribute("parusproductname"));z.push('\x3cdiv style\x3d"margin-left:5px;font-weight:normal;white-space: nowrap;"\x3e');z.push("\u0412\u0435\u0440\u0441\u0438\u044f: "+
y.documentElement.getAttribute("parusmajor")+"."+y.documentElement.getAttribute("parusminor")+"."+y.documentElement.getAttribute("parusrelease")+"."+y.documentElement.getAttribute("parusbuild")+"\x3cbr/\x3e");z.push("\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f: "+y.documentElement.getAttribute("parusdate")+"\x3cbr/\x3e");z.push("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438: "+
y.documentElement.getAttribute("paruslicensenumber")+"\x3cbr/\x3e");z.push("\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430: "+y.documentElement.getAttribute("parusclientnumber")+"\x3cbr/\x3e");z.push("\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430: "+y.documentElement.getAttribute("parusclientname")+"\x3cbr/\x3e");
z.push("\u0418\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043d\u0430\u043b\u043e\u0433\u043e\u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0430: "+y.documentElement.getAttribute("parusclientid")+"\x3cbr/\x3e");z.push("\u0414\u0430\u0442\u0430 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f: "+
y.documentElement.getAttribute("paruslicenseenddate")+"\x3cbr/\x3e");parus.parus8._themeEditorMode||z.push('\x3ca target\x3d"_blank" href\x3d"/'+parus.database._buildUrl("/license.pdf")+'"\x3e\x3cb\x3e\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u043e\u043d\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435\x3c/b\x3e\x3c/a\x3e');z.push("\x3c/div\x3e");z.push("\x3c/div\x3e");z.push('\x3cdiv style\x3d"margin-bottom:5px"\x3e');z.push("\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445:");
z.push('\x3cdiv style\x3d"margin-left:5px;font-weight:normal;white-space: nowrap;"\x3e');z.push(y.documentElement.getAttribute("rdbms_desc"));z.push("\u0412\u0435\u0440\u0441\u0438\u044f "+("Oracle"==y.documentElement.getAttribute("rdbms")?"OCI":"LIBPQ")+": "+y.documentElement.getAttribute("clientlib_major")+"."+y.documentElement.getAttribute("clientlib_minor")+"."+y.documentElement.getAttribute("clientlib_release")+"."+y.documentElement.getAttribute("clientlib_build")+"\x3cbr/\x3e");z.push("\x3c/div\x3e");
z.push("\x3c/div\x3e");z.push('\x3cdiv style\x3d"margin-bottom:5px"\x3e');z.push("\u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439:");z.push('\x3cdiv style\x3d"margin-left:5px;font-weight:normal;white-space: nowrap;"\x3e');z.push("\u0412\u0435\u0440\u0441\u0438\u044f: "+y.documentElement.getAttribute("major")+"."+y.documentElement.getAttribute("minor")+"."+y.documentElement.getAttribute("release")+"."+y.documentElement.getAttribute("build")+"\x3cbr/\x3e");
z.push("\u0420\u0435\u0434\u0430\u043a\u0446\u0438\u044f: "+y.documentElement.getAttribute("edition")+" (\u0441\u0431\u043e\u0440\u043a\u0430 "+y.documentElement.getAttribute("compiledate")+" "+y.documentElement.getAttribute("compiletime")+")\x3cbr/\x3e");z.push("\u0412\u0435\u0440\u0441\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b: "+y.documentElement.getAttribute("millmajor")+"."+y.documentElement.getAttribute("millminor")+"."+y.documentElement.getAttribute("millrelease")+
"."+y.documentElement.getAttribute("millbuild")+" ("+y.documentElement.getAttribute("millplatform")+")\x3cbr/\x3e");z.push("\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430: "+y.documentElement.getAttribute("Win32Platform")+"."+y.documentElement.getAttribute("Win32MajorVersion")+"."+y.documentElement.getAttribute("Win32MinorVersion")+"."+y.documentElement.getAttribute("Win32BuildNumber")+(y.documentElement.getAttribute("Win32CSDVersion")?
" ["+y.documentElement.getAttribute("Win32CSDVersion")+"]":"")+"\x3cbr/\x3e");z.push("\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435: "+y.documentElement.getAttribute("SysLocaleDefaultLCID")+"\x3cbr/\x3e");z.push("\u042f\u0437\u044b\u043a: "+y.documentElement.getAttribute("SysLocalePriLangID")+"-"+y.documentElement.getAttribute("SysLocaleSubLangID")+"\x3cbr/\x3e");z.push("\u041a\u043e\u0434\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430: "+y.documentElement.getAttribute("DefaultSystemCodePage")+
"-"+y.documentElement.getAttribute("DefaultUnicodeCodePage")+"\x3cbr/\x3e");z.push("\u0412\u0435\u0440\u0441\u0438\u044f Microsoft Office: "+y.documentElement.getAttribute("excel"));z.push("\x3c/div\x3e");z.push("\x3c/div\x3e");z.push('\x3cdiv style\x3d"margin-bottom:5px"\x3e');z.push("\u0411\u0440\u0430\u0443\u0437\u0435\u0440:");z.push('\x3cdiv style\x3d"margin-left:5px;font-weight:normal;white-space: nowrap;"\x3e');b.forEach([{key:"appName",name:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f"},
{key:"language",name:"\u042f\u0437\u044b\u043a"},{key:"oscpu",name:"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430"},{key:"platform",name:"\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430"},{key:"product",name:"\u041f\u0440\u043e\u0434\u0443\u043a\u0442"},{key:"userAgent",name:"UserAgent"}],function(E){try{var J=window.navigator[E.key];J&&(50>J.length?z.push(E.name+": "+J+"\x3cbr/\x3e"):z.push(E.name+': \x3cspan style\x3d"text-overflow: ellipsis;max-width:500px"\x3e'+
J+"\x3c/span\x3e\x3cbr/\x3e"))}catch(K){}});z.push("\u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a: "+b.version.toString()+"\x3cbr/\x3e");z.push("\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: "+parus.parus8.version.toString()+"\x3cbr/\x3e");if(parus.parus8._embeddedMode&&parus.embeddedMode.version){z.push("\u041c\u043e\u0434\u0443\u043b\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438:\x3cbr/\x3e");for(var G in parus.embeddedMode.version)z.push(String.fromCharCode(160)+
String.fromCharCode(160)+"\u043c\u043e\u0434\u0443\u043b\u044c "+G+": "+parus.embeddedMode.version[G].version.toString()+(parus.embeddedMode.version[G].revision?" ("+parus.embeddedMode.version[G].revision.toString()+")":"")+"\x3cbr/\x3e")}z.push("\x3c/div\x3e");z.push("\x3c/div\x3e");z.push('\x3cdiv style\x3d"margin-bottom:5px"\x3e');z.push("\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b:");z.push('\x3cdiv style\x3d"margin-left:5px;font-weight:normal;white-space: nowrap;"\x3e');
z.push("\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440: "+y.documentElement.getAttribute("userid")+"\x3cbr/\x3e");z.push("\u041f\u043e\u043b\u043d\u043e\u0435 \u0438\u043c\u044f: "+y.documentElement.getAttribute("username")+"\x3cbr/\x3e");z.push("\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440: "+y.documentElement.getAttribute("userexternalname")+"\x3cbr/\x3e");z.push("\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438: "+
y.documentElement.getAttribute("userexternalprovider")+"\x3cbr/\x3e");z.push("\u0421\u043f\u043e\u0441\u043e\u0431 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438: "+parus.parus8.formatAuthType(y.documentElement.getAttribute("userauthtype"))+"\x3cbr/\x3e");z.push("\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f: "+y.documentElement.getAttribute("companyname")+"\x3cbr/\x3e");z.push("\u041f\u043e\u043b\u043d\u043e\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438: "+
y.documentElement.getAttribute("companyfullname"));z.push("\x3c/div\x3e");z.push("\x3c/div\x3e");z.push("\x3c/div\x3e");parus.parus8.notificationMessage(z.join(""),u)})},applicationNode:function(){if(!parus.applicationContent)if(parus.parus8._embeddedMode){var u=b.cache("parus","embeddedApplication.html",'\x3cdiv class\x3d"windowContainer" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.WindowContainer" region\x3d"center" style\x3d"overflow:hidden; width:100%; height:100%; opacity:0; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.notificationsContainer" region\x3d"top" style\x3d"overflow:hidden; display:none"\x3e\x3c/div\x3e\x3c/div\x3e');
b.place(u,b.body(),"last");b.parser.parse({rootNode:b.body(),template:!0});parus.applicationContent={domNode:b.place("\x3cdiv\x3e\x3c/div\x3e",parus.WindowContainer.domNode,"last")};parus.embeddedMode.registerOnShowCallback(function(){parus.WindowContainer.resize()})}else{u=b.cache("parus","application.html",'\x3cdiv class\x3d"windowContainer" design\x3d"headline" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" jsid\x3d"parus.WindowContainer" region\x3d"center" style\x3d"overflow:hidden; width:100%; height:100%; opacity:0; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.applicationContent" region\x3d"center" style\x3d"overflow:hidden"\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceApplicationTitle" design\x3d"sidebar" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" region\x3d"top" style\x3d"overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" region\x3d"left"\x3e\x3cdiv class\x3d"balanceApplicationTitleText"\x3e ${title} \x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3cbutton class\x3d"titleButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"balanceApplicationTitleCloseButton" label\x3d"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443" onClick\x3d"parus.balance.logout()" showLabel\x3d"false" style\x3d"margin-left:0px; margin-right:3px"\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right"\x3e\x3cbutton class\x3d"titleButton" dojoType\x3d"dijit.form.Button" iconClass\x3d"balanceApplicationTitleHelpButton" label\x3d"\u0421\u043f\u0440\u0430\u0432\u043a\u0430" onClick\x3d"parus.balance.showHelp(\'parus.balance\')" showLabel\x3d"false" style\x3d"margin-left:0px; margin-right:1px"\x3e\x3c/button\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"padding-right:2px; overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.form.ComboButton" jsid\x3d"schemaSelect" onClick\x3d"this.toggleDropDown()"\x3e\x3cul dojoType\x3d"dijit.Menu" jsid\x3d"schemaSelectMenu" style\x3d"display:none"/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" region\x3d"right" style\x3d"padding-right:2px; padding-top:5px; overflow:hidden"\x3e\x3cspan class\x3d"balanceApplicationTitleLabel"\x3e \x26#160;\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043d\u0430\u044f\x26#160;\u0441\u0445\u0435\u043c\u0430:\x26#160; \x3c/span\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"zoomSelectPanel" region\x3d"right" style\x3d"padding-right:6px; overflow:hidden"\x3e\x3cdiv dojoType\x3d"dijit.form.ComboButton" jsid\x3d"zoomSelect" onClick\x3d"this.toggleDropDown()"\x3e\x3cul dojoType\x3d"dijit.Menu" style\x3d"display:none"\x3e\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon" onClick\x3d"parus.parus8.changeInterfaceSchema([\'z100\', \'z125\', \'z150\'], \'z100\')"\x3e\x3cdiv overclass\x3d"z100"\x3e \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \x3c/div\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon" onClick\x3d"parus.parus8.changeInterfaceSchema([\'z100\', \'z125\', \'z150\'], \'z125\')"\x3e\x3cdiv overclass\x3d"z125"\x3e \u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \x3c/div\x3e\x3c/li\x3e\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon" onClick\x3d"parus.parus8.changeInterfaceSchema([\'z100\', \'z125\', \'z150\'], \'z150\')"\x3e\x3cdiv overclass\x3d"z150"\x3e \u041e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \x3c/div\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv align\x3d"right" class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"zoomLabelPanel" region\x3d"right" style\x3d"padding-right:2px; padding-top:5px; overflow:hidden"\x3e\x3cspan class\x3d"balanceApplicationTitleLabel"\x3e \u041c\u0430\u0441\u0448\u0442\u0430\u0431:\x26#160; \x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"balanceApplicationTitle" dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"versionInfoPanel" region\x3d"left" style\x3d"padding-left:5px; padding-top:6px; overflow:hidden"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoType\x3d"dijit.layout.ContentPane" jsid\x3d"parus.notificationsContainer" region\x3d"top" style\x3d"overflow:hidden; display:none"\x3e\x3c/div\x3e\x3c/div\x3e');
var y="\u041f\u0430\u0440\u0443\u0441"+String.fromCharCode(174)+String.fromCharCode(160)+"\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u0435"+String.fromCharCode(160)+"\u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438";if("0"!=parus.parus8.optionValue("BalanceOnlineShowLicenseTitle")){var z=parus.database.execute("applicationInfo");z&&(y=String.fromCharCode(174)+parus.parus8.nodeField(parus.parus8.rowNodes(z)[0],"HOLDER").split(" ").join(String.fromCharCode(160))+String.fromCharCode(160)+
"-"+String.fromCharCode(160)+parus.parus8.nodeField(parus.parus8.rowNodes(z)[0],"TITLE").split(" ").join(String.fromCharCode(160)))}document.title=y;u=u.split("${title}").join(y);new t.layout.ContentPane({parseOnLoad:!1,content:u,"class":parus.parus8.zoomContainerClass(),style:"overflow:hidden",region:"center"},b.place('\x3cdiv id\x3d"bodyContainer" dojoType\x3d"dijit.layout.BorderContainer" gutters\x3d"false" style\x3d"width:100%;height:100%;border:0 none"\x3e\x3c/div\x3e',b.body(),"last").appendChild(document.createElement("div")));
var G="";for(u=0;u<parus.parus8._themes.length;u++)G&&(G+=","),G=G+"'"+parus.parus8._themes[u].getAttribute("id")+"'";var E=[];b.forEach(parus.parus8._intfs,function(J){if(parus.parus8._themeEditorMode)E.push('\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon"'),E.push(" onClick\x3d\"parus.parus8.changeInterfaceSchema([], 'custom', '"+J.id+"')\"\x3e"),E.push(' \x3cdiv overclass\x3d"custom" schema\x3d"'+J.id+'"\x3e'),E.push("(\u0412 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435) - "+
J.title),E.push("\x3c/div\x3e\x3c/li\x3e");else for(var K=0;K<parus.parus8._themes.length;K++)E.push('\x3cli dojoType\x3d"dijit.MenuItem" iconClass\x3d"noIcon"'),E.push(' onClick\x3d"parus.parus8.changeInterfaceSchema(['+G+"], '"+parus.parus8._themes[K].getAttribute("id")+"', '"+J.id+"')\"\x3e"),E.push(' \x3cdiv overclass\x3d"'+parus.parus8._themes[K].getAttribute("id")+'" schema\x3d"'+J.id+'"\x3e'),E.push(parus.parus8._themes[K].getAttribute("title")+" - "+J.title),E.push("\x3c/div\x3e\x3c/li\x3e")});
b.query("*[jsid\x3d'schemaSelectMenu']",b.byId("bodyContainer"))[0].innerHTML=E.join("");b.parser.parse({rootNode:b.byId("bodyContainer")});u="";if(parus.database.attributes.major||parus.database.attributes.minor||parus.database.attributes.release||parus.database.attributes.build||versionInfoPanel)u+="(\u0412\u0435\u0440\u0441\u0438\u044f "+parus.database.attributes.major+"."+parus.database.attributes.minor+"."+parus.database.attributes.release+"."+parus.database.attributes.build+")",u='\x3ca style\x3d"font-size:80%" class\x3d"balanceApplicationVersionInfo" href\x3d"javascript:parus.parus8.aboutBox()" \x3e'+
u+"\x3c/a\x3e";parus.database.attributes.user&&(u+='\x26#160;\x26#160;\x26#160;\x3cspan class\x3d"balanceApplicationVersionInfo"\x3e\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c:\x26#160;\x3cb\x3e'+parus.database.attributes.user+"\x3c/b\x3e\x3c/span\x3e");parus.database.attributes.company&&(u+='\x26#160;\x26#160;\x26#160;\x3cspan class\x3d"balanceApplicationVersionInfo"\x3e\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f:\x26#160;\x3cb\x3e'+parus.database.attributes.company+
"\x3c/b\x3e\x3c/span\x3e");versionInfoPanel.setContent(u);b.connect(window,"onresize",this,function(){t.byNode(parus.WindowContainer.domNode.parentNode).resize()});b.isEdge&&(zoomSelectPanel.domNode.style.display="none",zoomLabelPanel.domNode.style.display="none");b.isIE&&(zoomSelectPanel.domNode.style.display="none",zoomLabelPanel.domNode.style.display="none")}return b.place("\x3cdiv\x3e\x3c/div\x3e",parus.applicationContent.domNode,"only")},changeInterfaceSchema:function(u,y,z){var G=parus.WindowContainer.domNode.getAttribute("schema");
z=z||G;b.forEach(zoomSelect.dropDown.getChildren(),function(J){J=b.query("[overclass]",J.containerNode)[0];J.getAttribute("overclass")==y&&(J=b.place(J.outerHTML,zoomSelect.containerNode,"only"),J.setAttribute("overclass",""),J.style.fontWeight="bold")});b.forEach(schemaSelect.dropDown.getChildren(),function(J){J=b.query("[overclass]",J.containerNode)[0];J.getAttribute("overclass")==y&&J.getAttribute("schema")==z&&(b.place(J.outerHTML,schemaSelect.containerNode,"only").style.fontWeight="bold")});
var E=document.body.className.split(" ");b.forEach(u,function(J){J=b.indexOf(E,J);0<=J&&(E[J]=y)});if(E.join(" ")!=document.body.className||G!=z)loadingDiv.style.display="",b.fadeOut({node:parus.WindowContainer.domNode,duration:300,onEnd:function(){document.body.className=E.join(" ");b.cookie("bc",document.body.className,{expires:365});b.cookie("bs",z,{expires:365});G==z?t.byNode(parus.WindowContainer.domNode.parentNode).resize():(parus.balance.TabContainer=null,parus[z].startup());b.fadeIn({node:parus.WindowContainer.domNode,
duration:700,onBegin:function(){loadingDiv.style.display="none"}}).play()}}).play()},interfaceSchemaLoaded:function(u){parus.WindowContainer.domNode.setAttribute("schema",u);parus.WindowContainer.layout();var y=document.body.className.split(" ");b.forEach(zoomSelect.dropDown.getChildren(),function(z){z=b.query("[overclass]",z.containerNode)[0];0<=b.indexOf(y,z.getAttribute("overclass"))&&(z=b.place(z.outerHTML,zoomSelect.containerNode,"only"),z.setAttribute("overclass",""),z.style.fontWeight="bold")});
b.forEach(schemaSelect.dropDown.getChildren(),function(z){z=b.query("[overclass]",z.containerNode)[0];0<=b.indexOf(y,z.getAttribute("overclass"))&&z.getAttribute("schema")==u&&(b.place(z.outerHTML,schemaSelect.containerNode,"only").style.fontWeight="bold")})},showApplication:function(u){loadingDiv.style.display="none";(t.byNode(parus.WindowContainer.domNode.parentNode)||parus.WindowContainer).resize();parus.WindowContainer.layout();b.fadeIn({node:parus.WindowContainer.domNode,onEnd:function(){u&&
u()}}).play()},_closedNotifications:null,_shownNotifications:null,_notificationTimeout:null,_notificationCheckDisabled:null,closeNotification:function(u){this._closedNotifications=this._closedNotifications||[];this._closedNotifications.push(u);this.checkNotifications()},checkNotifications:function(){this._notificationTimeout&&(clearTimeout(this._notificationTimeout),this._notificationTimeout=null);if(parus.notificationsContainer){this._closedNotifications=this._closedNotifications||[];var u="";parus.database.query("BalanceNotifications",
{},b.hitch(this,function(y){if(!this._notificationCheckDisabled){y=parus.parus8.rowNodes(y);var z=[];b.forEach(y,b.hitch(this,function(G){-1==b.indexOf(this._closedNotifications,parus.parus8.nodeField(G,"RN"))&&(u=u+";"+parus.parus8.nodeField(G,"RN"),z.push('\x3cdiv jsid\x3d"notification'+parus.parus8.nodeField(G,"RN")+'" class\x3d"balanceNotification" \x3e'),z.push('\x3ctable width\x3d"100%"\x3e'),z.push("\x3ctr\x3e"),z.push("\x3ctd\x3e"),z.push('\x3cdiv class\x3d"balanceNotificationContent"\x3e'),
z.push(parus.parus8.nodeField(G,"NOTIFICATION").replace(/\n/g,"\x3cbr/\x3e")),z.push("\x3c/div\x3e"),z.push("\x3c/td\x3e"),z.push('\x3ctd width\x3d"30" valign\x3d"top"\x3e'),z.push('\x3cbutton class\x3d"titleButton"'),z.push('dojoType\x3d"dijit.form.Button"'),z.push('iconClass\x3d"balanceApplicationCloseNotificationButton"'),z.push('label\x3d"\u0421\u043a\u0440\u044b\u0442\u044c"'),z.push("onClick\x3d\"parus.parus8.closeNotification('"+parus.parus8.nodeField(G,"RN")+"')\""),z.push('showLabel\x3d"false"'),
z.push('style\x3d"margin-left:0px;margin-right:0px;position:absolute;right:2px"\x3e'),z.push("\x3c/button\x3e"),z.push("\x3c/td\x3e"),z.push("\x3c/tr\x3e"),z.push("\x3c/table\x3e"),z.push("\x3c/div\x3e"))}));y=u!=this._shownNotifications;this._shownNotifications=u;z.length?(b.place(z.join(" "),parus.notificationsContainer.containerNode,"only"),b.parser.parse({rootNode:parus.notificationsContainer.containerNode,template:!0}),""!=parus.notificationsContainer.domNode.style.display?(parus.notificationsContainer.domNode.style.display=
"",parus.WindowContainer.layout()):y&&parus.WindowContainer.layout()):parus.notificationsContainer.domNode.style.display?y&&parus.WindowContainer.layout():(parus.notificationsContainer.domNode.style.display="none",parus.WindowContainer.layout());this._notificationTimeout=setTimeout(b.hitch(this,this.checkNotifications),6E4)}}),b.hitch(this,function(y){403===y.status&&(this._notificationCheckDisabled=!0)}),!0)}else this._notificationTimeout=setTimeout(b.hitch(this,this.checkNotifications),1E3)},hexEncodeParams:function(u){var y=
[];b.forEach(u,function(z){if(z){z=z.toString();for(var G=0;G<z.length;G++){for(s=z.charCodeAt(G).toString(16);4>s.length;)s="0"+s;y.push(s)}}y.push("00ff")});return y.join("")},hexDecodeParams:function(u){result=[];if(u){for(var y=[],z=0;z<u.length;z+=4)y.push(+("0x"+u.substr(z,4)));var G="";b.forEach(y,function(E){255==E?(result.push(G),G=""):G+=String.fromCharCode(E)})}return result},enqueuedUserReport:function(u){var y=parus.parus8.optionValue("ReportsPrintQueueUserReportsWaitTime")||60,z=(new Date).getTime(),
G=new parus.progressDialog({message:"\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430..."});G.show();setTimeout(function(){var E=parus.database.execute("enqueuedUserReportStatus",{NQUEUE:u});if(E){var J=parus.parus8.nodeField(parus.parus8.rowNodes(E)[0],"NSTATUS");if("3"==J){G.close();G.destroyRecursive();parus.parus8.errorMessage("\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439.\x3cbr/\x3e"+
(parus.parus8.nodeField(parus.parus8.rowNodes(E)[0],"SERRTEXT")||""));return}if("2"==J){G.close();G.destroyRecursive();E=document.createElement("form");E.method="GET";E.action=parus.database.getEnqueuedReportUrl();J=document.createElement("input");J.type="hidden";J.name="queue";J.value=u;E.appendChild(J);document.body.appendChild(E);E.submit();document.body.removeChild(E);return}if(null==J){G.close();G.destroyRecursive();parus.parus8.errorMessage("\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438.");
return}}((new Date).getTime()-z)/1E3>y?(G.close(),G.destroyRecursive(),parus.parus8.errorMessage('\u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u043e\u0442\u0447\u0435\u0442\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043e\u0442\u0447\u0435\u0442\u0430 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b "\u041e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0435\u0447\u0430\u0442\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432"')):
setTimeout(arguments.callee,1E4)},1E4)},toLetters:function(u){var y="";do{var z=(u-1)%26;y=String.fromCharCode(65+z)+y;u=Math.floor((u-z)/26)}while(0<u);return y},maxGridRecords:null});b.mixin(b,{isRegExp:function(u){return!(!(u&&u.test&&u.exec)||!u.ignoreCase&&!1!==u.ignoreCase)}});b.extend(t.MenuItem,{actionCode:"",itemAction:!1,detailAction:!1,"default":!1,userProcRN:null,userReportRN:null,userAppRN:null,userObjectsGrid:null,customIcon:"",toolBarButton:null,defaultIcon:"",hiddenBySettings:!1,inAbonent:!1,
removeForApplications:"",features:""});b.extend(t.form.Button,{itemsPerAction:0});b.extend(t.Menu,{actionsButtonPane:null,inAbonentUserApps:null,inAbonentUserProcs:null,inAbonentUserReports:null,preAction:null});b.extend(H.grid.EnhancedGrid,{abonentFields:"",abonentFieldsNeeded:!1,gridid:"",autoSelected:!1});b.extend(t.form.CheckBox,{numericValue:-1});if(window.hasOwnProperty&&window.hasOwnProperty("scrollX")){var a=b.window.getBox;b.mixin(b.window,{getBox:function(){var u=a();u.w-=window.scrollX;
u.h-=window.scrollY;return u}})}var c=t.place.at;b.mixin(t.place,{at:function(u,y,z,G,E){var J=u.style.height;u.style.height="auto";var K=u.offsetHeight,F=t.Viewport.getEffectiveBox(u.ownerDocument).h;u.style.height=J;y=c(u,y,z,G,E);y.h<K&&(0<y.y?(K-=y.h,K>y.y&&(K=y.y),y.y-=K):(K-=y.h,K>F-(y.y+y.h)&&(K=F-(y.y+y.h))),y.h+=K);y.y/=parus.parus8.getZoom();y.x/=parus.parus8.getZoom();b.style(u,{top:y.y+"px",left:y.x+"px",height:y.h+"px",overflowY:"auto",overflowX:"hidden"});return y}});b.extend(H.grid.cells.Cell,
{intPart:null,fracPart:null});H.grid.DataGrid.markupFactory=function(u,y,z,G){return H.grid._Grid.markupFactory(u,y,z,b.partial(H.grid.DataGrid.cell_markupFactory,function(E,J){E&&J&&b.mixin(J,{sortField:E.getAttribute("sortField"),dataType:E.getAttribute("dataType"),aggregate:E.getAttribute("aggregate"),intPart:E.getAttribute("intPart"),fracPart:E.getAttribute("fracPart")});G&&G(E,J)}))};H.grid.EnhancedGrid.markupFactory=function(u,y,z,G){return H.grid._Grid.markupFactory(u,y,z,b.partial(H.grid.DataGrid.cell_markupFactory,
function(E,J){E&&J&&b.mixin(J,{sortField:E.getAttribute("sortField"),dataType:E.getAttribute("dataType"),aggregate:E.getAttribute("aggregate"),intPart:E.getAttribute("intPart"),fracPart:E.getAttribute("fracPart")});G&&G(E,J)}))};b.extend(H.grid.DataGrid,{colorConditions:null,getSortProps:function(){var u=this.getCell(this.getSortIndex());if(u){var y=u.sortDesc,z=!(0<this.sortInfo);return[{field:u.field,attribute:u.sortField||u.field,descending:!("undefined"==typeof y?!z:z?y:!y)}]}return this.sortFields?
this.sortFields:null},_clearData:function(){this.selection.clear();this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoading=this._isLoaded=!1}});b.extend(H.grid.enhanced._FocusManager,{_setActiveColHeader:H.grid._FocusManager.prototype._setActiveColHeader});var e=H.grid.enhanced._Events.prototype.onKeyDown,f=H.grid._Events.prototype.onMouseOver;b.extend(H.grid.enhanced._Events,{_focusNeeded:function(){if(0!=t.popup._stack.length)return!1;var u=
t.getFocus(),y=!0;u&&u.node&&(y=(y=t.getEnclosingWidget(u.node))&&"dojox.grid.enhanced.columnsFilterCombobox"==y.declaredClass?!1:"INPUT"!=u.node.nodeName)&&b.dom.isDescendant(u.node,this.domNode)&&(y=!1);return y},onKeyDown:function(u){if(!u.altKey&&!u.metaKey&&this._focusNeeded()){this.focus.findAndFocusGridCell();var y=b.keys;switch(u.keyCode){case y.HOME:this.focus.setFocusIndex(this.focus.rowIndex,0);b.stopEvent(u);break;case y.END:this.focus.setFocusIndex(this.focus.rowIndex,this.layout.cellCount-
1);b.stopEvent(u);break;case y.SPACE:"dojox.grid.cells.MultipleRowSelector"!=this.focus.cell.declaredClass&&((!this.selection.isSelected(this.focus.rowIndex)||1<this.selection.getSelectedCount())&&this.selection.toggleSelect(this.focus.rowIndex),b.stopEvent(u));break;default:e.apply(this,arguments)}}},onMouseOver:function(u){f.apply(this,arguments);b.isChrome||b.isMozilla||this._focusNeeded()&&this.focus.focusGrid()}});var g=H.grid.cells._Base.prototype._defaultFormat;b.extend(H.grid.cells._Base,
{_defaultFormat:function(u,y){var z="",G=g.apply(this,arguments)||"";if(this.field&&this.grid.colorConditions&&this.grid.colorConditions.length){var E=G==this.defaultValue?"":G.toString(),J="",K="",F=function(L,O){L.mask.match(/.*!.*/)&&(K=L.color);if(L.mask)b.forEach(L.mask.split(";"),function(T){"!"==T.substring(0,1)?(T="!*"==T?/^.+$/m:b.data.util.filter.patternToRegExp(T.substring(1,T.length),!1),O.match(T)&&(K="")):(T="*"==T?/^.+$/m:b.data.util.filter.patternToRegExp(T,!1),O.match(T)&&(J=L.color))});
else{var Q=b.number.parse(O),M=b.number.parse(L.fromValue),P=b.number.parse(L.toValue);isNaN(Q)||(!isNaN(M)&&!isNaN(P)&&Q>=M&&Q<=P?J=L.color:!isNaN(M)&&isNaN(P)&&Q>=M?J=L.color:isNaN(M)&&!isNaN(P)&&Q<=P&&(J=L.color));P={selector:"date",datePattern:"dd.MM.yyyy"};Q=b.date.locale.parse(O,P);M=b.date.locale.parse(L.fromValue,P);P=b.date.locale.parse(L.toValue,P);Q&&(M&&P&&Q>=M&&Q<=P?J=L.color:M&&!P&&Q>=M?J=L.color:!M&&P&&Q<=P&&(J=L.color))}};b.forEach(this.grid.colorConditions,b.hitch(this,function(L){J||
K||L.field==this.field&&F(L,E||"")}));b.forEach(this.grid.colorConditions,b.hitch(this,function(L){if(!J&&!K&&L.applyToRow&&L.field!=this.field){var O=this.grid._by_idx[y[1]];if(O){var Q=this.grid.store.getValue(O.item,L.field);b.forEach(this.grid.layout.cells,function(M){M&&M.field==L.field&&(Q=g.apply(M,[Q,[Q,y[1],M]]))});F(L,Q||"")}}}));J&&!K?z="background-color:"+parus.parus8.colorToCssColor(J):K&&!J&&(z="background-color:"+parus.parus8.colorToCssColor(K))}z&&this.customStyles.push(z);return G}});
b.extend(H.grid.Selection,{onChanged:function(){for(var u in this.selected){var y=this.grid.getRowNode(u);y&&this.grid.styleRowNode(u,y)}}});b.extend(H.grid.DataSelection,{getSelectedIndex:function(){var u=H.grid.Selection.prototype.getFirstSelected.call(this);0>u&&0<this.grid.rowCount&&(this.selectRange(0,0),u=0);return u},getSelected:function(){for(var u=[],y=this.getFirstSelected(),z=0;z<this.getSelectedCount();z++)u.push(y),y=this.getNextSelected(y);return u},getNextSelected:function(u){u=this.grid.getItemIndex(u);
u=H.grid.Selection.prototype.getNextSelected.call(this,u);if(-1==u)return null;var y=this.grid.getItem(u);y||(this.grid.store.sync=!0,this.grid._fetch(u,!1),y=this.grid.getItem(u));return this.grid.getItem(u)}});var h=H.grid.cells.MultipleRowSelector.prototype._nativeSelect;b.extend(H.grid.cells.MultipleRowSelector,{_nativeSelect:function(u,y){this.grid.autoSelected&&u&&this.grid.selection.deselect(0);this.grid.autoSelected=!1;return h.apply(this,arguments)}});b.extend(H.grid.cells._Widget,{getValue:function(u){return this.widget.validate?
this.widget.validate()?this.widget.get("value"):this.grid.store.getValue(this.grid.getItem(u),this.field):this.widget.get("value")}});b.declare("parus.gridInplaceEditor",[t.Editor],{_sCall:function(u,y){if(!b.isFF||this.editNode.ownerDocument.defaultView)return b.withGlobal(this.window,u,t._editor.selection,y)}});b.extend(H.grid.cells.Editor,{formatNode:function(u,y,z){this.content=y;this.inherited("formatNode",arguments)},createWidget:function(u,y,z){u=new this.widgetClass(this.getWidgetProps(y),
u);b.connect(u,"onLoad",b.hitch(this,"populateEditor"));u.set("value",this.content);return u}});b.extend(t._editor.plugins._FontDropDown,{templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${selectId}'\x3e${label}\x3c/label\x3e\x3cinput style\x3d'width: 100px' dojoType\x3d'dijit.form.FilteringSelect' required\x3d'false' labelType\x3d'html' labelAttr\x3d'label' searchAttr\x3d'name' tabIndex\x3d'-1' id\x3d'${selectId}' dojoAttachPoint\x3d'select' value\x3d''/\x3e\x3c/span\x3e"});
if(9==b.isIE){var l=function(u,y){try{return u.filters.item("DXImageTransform.Microsoft.Alpha")}catch(z){return y?{}:null}};b.mixin(b,{_getOpacity:function(u){try{return l(u).Opacity/100}catch(y){return 1}},_setOpacity:function(u,y){var z=100*y,G=1==y;u.style.zoom=G?"":1;if(l(u))l(u,1).Opacity=z;else{if(G)return y;u.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+z+")"}l(u,1).Enabled=!G;"tr"==u.nodeName.toLowerCase()&&d.query("\x3e td",u).forEach(function(E){d._setOpacity(E,y)});
return y}})}if(10<=b.isIE){b._getIeDispatcher=function(){return new Function("return "+b._scopeName+"._ieDispatcher(arguments, this)")};b._ieDispatcher=function(u,y){var z=Array.prototype,G=b._ie_listener.handlers,E=u.callee,J=E[b._ieListenersName];E=(E=G[E.target])&&E.apply(y,u);J=[].concat(J);for(var K in J){var F=G[J[K]];K in z||!F||(E=F.apply(y,u))}return E};var m=t.form.TextBox.prototype.postCreate;b.extend(t.form.TextBox,{postCreate:function(){m.apply(this,arguments);this.connect(this.textbox,
"oninput","_onInput")}});b.extend(t.form._DateTimeTextBox,{intermediateChanges:!0});var p=t.Menu.prototype.bindDomNode;b.extend(t.Menu,{bindDomNode:function(){var u=this,y=p.apply(u,arguments);b.forEach(this._bindings,function(z){z&&z.connects&&b.forEach(z.connects,function(G){G&&G.length&&"oncontextmenu"==G[1]&&b.connect(G[0],G[1],u,function(E){u._scheduleOpen(E.target,G[0],{x:E.pageX,y:E.pageY});return!1})})});return y}});var r=H.grid._HeaderBuilder.prototype.overLeftResizeArea,w=H.grid._HeaderBuilder.prototype.overRightResizeArea;
H.grid._HeaderBuilder=b.extend(H.grid._HeaderBuilder,{overLeftResizeArea:function(u){var y=r.apply(this,arguments);y&&b.hasClass(u.target,"dijitCheckBox")&&(y=!1);return y},overRightResizeArea:function(u){var y=w.apply(this,arguments);y&&b.hasClass(u.target,"dijitCheckBox")&&(y=!1);return y}})}if(b.isMozilla){var x=H.grid.EnhancedGrid.prototype.createView;b.extend(H.grid.EnhancedGrid,{createView:function(){var u=x.apply(this,arguments),y=u.header.getCellX;u.header.getCellX=function(z){var G=y.apply(this,
arguments),E=function(J,K){for(var F=J;F&&K(F);F=F.parentNode);return F}(z.target,function(J){var K=J.toUpperCase();return function(F){return F.tagName!=K}}("th"));E&&E!==z.target&&b.dom.isDescendant(z.target,E)&&(G-=E.firstChild.offsetLeft);return G};u.scrollboxNode.style.overflow="scroll";return u}})}b.isIE&&(b.getComputedStyle=function(u){return u?1==u.nodeType?u.currentStyle:{}:{}});if(13<=b.isFF){var A=H.grid._View.prototype.doscroll;b.extend(H.grid._View,{_nativeScroll:!1,doscroll:function(u){this._nativeScroll=
!0;A.apply(this,arguments);this._nativeScroll=!1},setScrollTop:function(u){this.lastTop=u;this._nativeScroll||(this.scrollboxNode.scrollTop=u);return this.scrollboxNode.scrollTop}})}b.extend(t.Tree,{listMode:!1,hiddenMode:!1,allowChecks:!1,checked:null,_unselected:null,_createTreeNode:function(u){return new parus.checkTreeNode(u)},dndController:"parus.dndSelector",uncheckAll:function(){for(;0<this.checked.length;)this.checked[0].setChecked(!1);this.selectedNode.setChecked(!0);this.onClick()},setCheckedPaths:function(u){var y=
this,z=function(G,E,J){var K=G.shift(),F=b.filter(E,function(L){return L.getIdentity()==K})[0];F?G.length?y._expandNode(F).then(function(){z(G,F.getChildren(),J)}):J.callback(F):J.errback({log:!1})};return(new b.DeferredList(b.map(u,function(G){var E=new b.Deferred;G.length?y._loadDeferred&&y._loadDeferred.then(function(){z(G,[y.rootNode],E)}):E.errback({log:!1});return E}))).addCallback(function(G){b.forEach(G,function(E){E[0]&&E[1].setChecked(!0)})})},_initState:function(){this.checked=[];if(this.persist){var u=
b.cookie(this.cookieName);this._openedItemIds={};u&&b.forEach(u.split(","),function(y){this._openedItemIds[y]=!0},this)}},forAllChildren:function(u,y){var z=this,G=function(E){y&&y(E);z._expandNode(E).then(function(){b.forEach(E.getChildren(),G)})};G(u)}});b.declare("parus.dndSelector",[t.tree._dndSelector],{onClickPress:function(u){if("pointerdown"!=u.type||b.mouse.isLeft(u))return this.tree.allowChecks&&!this.listMode&&this.current&&b.isDescendant(u.target,this.current.checkNode)?(this.current.setChecked(!this.current.getChecked()),
u.stopPropagation(),u.preventDefault(),!1):this.inherited(arguments);u.stopPropagation();u.preventDefault();return!1},setSelection:function(u){if(u.length&&this.tree.selectedNode&&u[0].getChecked&&!u[0].getChecked()&&this.tree.checked.length)for(;0<this.tree.checked.length;)this.tree.checked[0].setChecked(!1);this.inherited(arguments);u&&this.tree.allowChecks&&b.forEach(u,function(y){y.setChecked(!0)})}});b.declare("parus.checkTreeNode",t._TreeNode,{getParent:function(){return this.domNode?this.inherited(arguments):
null},getChecked:function(){return-1!=b.indexOf(this.tree.checked,this)},setChecked:function(u){var y=b.indexOf(this.tree.checked,this);this.checkNode&&(u?-1==y&&(this.tree.checked.push(this),b.addClass(this.checkNode,"dijitCheckBoxChecked")):-1!=y&&(this.tree.checked.splice(y,1),b.removeClass(this.checkNode,"dijitCheckBoxChecked")))},checkNode:null,buildRendering:function(){this.inherited(arguments);if(this.tree.allowChecks&&!this.tree.listMode){var u='\x3cimg style\x3d"margin-left:3px" src\x3d"'+
(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString()+'" class\x3d"dijitCheckBox dijitCheckBoxIcon"\x3e';b.isIE?(b.place(u,this.labelNode,"before"),this.checkNode=this.labelNode.previousSibling):this.checkNode=b.place(u+"\x3c/img\x3e",this.labelNode,"before")}},setSelected:function(u){this.inherited(arguments);if(u){var y=this.tree.rootNode.domNode.parentNode.offsetTop,z=this.rowNode.offsetTop;(y+this.tree.domNode.clientHeight<z-this.tree.domNode.scrollTop||y>z)&&this.rowNode.scrollIntoView(!1)}}});
var B=t.layout.ScrollingTabController.prototype.onAddChild;b.extend(t.layout.ScrollingTabController,{onAddChild:function(u,y){var z=b.style(this.containerNode,"width");B.apply(this,arguments);b.style(this.containerNode,"width",(z||5E4)+200+"px")}});var D={_onDropDownMouseUp:function(u){u&&this._docHandler&&this.disconnect(this._docHandler);this._opened&&this.dropDown.focus&&!1!==this.dropDown.autoFocus&&setTimeout(b.hitch(this.dropDown,"focus"),1)}};b.isIE&&b.extend(t.form.DropDownButton,{_fillContent:function(){var u=
this.srcNodeRef,y=this.containerNode;if(u&&y)for(;u.hasChildNodes();){var z=u.firstChild;b.hasAttr(z,"data-dojo-type")||b.hasAttr(z,"dojoType")||b.hasAttr(z,"data-"+b._scopeName+"-type")||b.hasAttr(z,b._scopeName+"Type")?(this.dropDownContainer=this.ownerDocument.createElement("div"),this.dropDownContainer.appendChild(z)):y.appendChild(z)}}});b.extend(t._HasDropDown,D);b.extend(t.form.DropDownButton,D);b.extend(t.form.ComboBoxMixin,D);b.extend(t.form.ComboBox,D);b.extend(t.form.FilteringSelect,D);
b.extend(t.form.Select,D);b.extend(t.form._DateTimeTextBox,D);b.extend(t.layout._ScrollingTabControllerMenuButton,D);var I=t.layout.TabContainer.prototype.layout;b.extend(t.layout.TabContainer,{_lastLayoutChildren:null,layout:function(){var u=I.apply(this,arguments);if("left"==this.tablist.layoutAlign){var y=this.getChildren().length;y==this._lastLayoutChildren&&this.tablist.domNode.style.width||(this.tablist.domNode.style.width=b.position(this.tablistSpacer).x-1+"px");this._lastLayoutChildren=y}return u}});
b.isEdge=0<=navigator.userAgent.indexOf("Edge");b.isTrident=0<=navigator.userAgent.indexOf("Trident");b.isYandex=0<=navigator.userAgent.indexOf("YaBrowser");b.isChromiumEdge=0<=navigator.userAgent.indexOf("Edg/");b.isChromiumOpera=0<=navigator.userAgent.indexOf("OPR/");b.connect(window,"onresize",function(){b.forEach(t.Dialog._dialogStack,function(u){u.dialog&&u.dialog._position()})});8>=b.isIE&&b.connect(t.layout.StackContainer.prototype,"selectChild",function(u){var y=b.query("\x3e*",u.containerNode);
y.orphan();this.resize&&this.resize();y.forEach(function(z){u.containerNode.appendChild(z)});this.resize&&this.resize()});b.extend(t.form._DateTimeTextBox,{autoWidth:!1});parus.parus8.version.major=5;parus.parus8.version.minor=6;parus.parus8.version.patch=98;parus.parus8.version.flag=".175";parus.parus8.version.revision="parus8.5.6.1-2026.06  26.07.2026  3:32:47,45"});
//# sourceMappingURL=parus8.js.map