dojo.provide("parus.designerIndexGroupDialog");dojo.require("dijit.Dialog");dojo.require("dijit.form.Button");dojo.require("dijit.form.ValidationTextBox");dojo.require("dijit.form.SimpleTextarea");dojo.require("parus.parus8");dojo.require("parus.dialog");dojo.require("parus.dictEdit");dojo.require("parus.formats");dojo.require("parus.editableDictionaryDialog");dojo.require("parus.editDictionaryDialog");dojo.declare("parus.designerIndexGroupDialog",[parus.editDictionaryDialog],{onLoadParams:function(c,b,a){this.inherited(arguments);if(c&&b){this.codeEdit.attr("value",c.getValue(b,"CODE"));this.nameEdit.attr("value",c.getValue(b,"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(){var a=parus.database.execute("designer.BalanceIndexes.Groups.Update",{RN:this.rn,CODE:this.codeEdit.attr("value"),NAME:this.nameEdit.attr("value")});return !!a},executeDelete:function(c,b){var a=parus.database.execute("designer.BalanceIndexes.Groups.Delete",{RN:c.getValue(b,"RN")});return !!a}});