dojo.provide("parus.designerReportTableTotalDialog");dojo.require("dijit.Dialog");dojo.require("dijit.form.Button");dojo.require("dijit.form.ValidationTextBox");dojo.require("dijit.form.SimpleTextarea");dojo.require("dijit.form.RadioButton");dojo.require("parus.parus8");dojo.require("parus.dialog");dojo.require("parus.dictEdit");dojo.require("parus.controlActions");dojo.require("parus.editableDictionaryDialog");dojo.require("parus.editDictionaryDialog");dojo.require("parus.designerTableModelTotalDialog");dojo.require("parus.designerReportTableIndexDialog");dojo.require("parus.designerReportTableIndexesDictionaryDialog");dojo.declare("parus.designerReportTableTotalDialog",[parus.designerTableModelTotalDialog],{postMixInProperties:function(){this.templateString=dojo.cache(dojo.moduleUrl("parus","designerTableModelTotalDialog.html"));this.inherited(arguments)},postCreate:function(){this.inherited(arguments);dojo.mixin(this.indexEdit,{dictionary:"DesignerBalanceTableIndexesWithUnits",dialogClass:parus.designerReportTableIndexesDictionaryDialog,editDialogClass:parus.designerReportTableIndexDialog})},executeInsert:function(b){var a=parus.database.execute("designer.BalanceTables.Totals.Insert",dojo.mixin(this.getExecParams(),{PRN:this.prn}));if(a){return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")}},executeUpdate:function(){var a=parus.database.execute("designer.BalanceTables.Totals.Update",dojo.mixin(this.getExecParams(),{RN:this.rn}));return !!a},executeDelete:function(c,b){var a=parus.database.execute("designer.BalanceTables.Totals.Delete",{RN:c.getValue(b,"RN")});return !!a},executeChangePriority:function(c,b,a){var d=parus.database.execute("designer.BalanceTables.Totals.ChangePriority",{RN:c.getValue(b,"RN"),DIRECT:a?"-1":"1"});return !!d},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")}}});