dojo.provide("parus.designerReportLinkDialog");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.editableDictionaryDialog");dojo.require("parus.editDictionaryDialog");dojo.require("parus.designerReportDialog");dojo.declare("parus.designerReportLinkDialog",[parus.editDictionaryDialog],{onLoadParams:function(c,b,a){this.inherited(arguments);if(!this.prn){this.prn=this.getParentDialogCondition("PRN")}if(c&&b){this.reportEdit.attr("value",c.getValue(b,"LINKED_CODE"))}},executeInsert:function(b){var a=parus.database.execute("designer.BalanceReportForm.Links.Insert",{PRN:this.prn,LINKED_CODE:this.reportEdit.attr("value")});if(a){return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")}},executeUpdate:function(){var a=parus.database.execute("designer.BalanceReportForm.Links.Update",{RN:this.rn,LINKED_CODE:this.reportEdit.attr("value")});return !!a},executeDelete:function(c,b){var a=parus.database.execute("designer.BalanceReportForm.Links.Delete",{RN:c.getValue(b,"RN")});return !!a}});