dojo.provide("parus.editDictionaryDialog");dojo.require("dijit.Dialog");dojo.require("dijit.form.Button");dojo.require("dojox.grid.DataGrid");dojo.require("dojo.data.ItemFileReadStore");dojo.require("parus.parus8");dojo.require("parus.dialog");dojo.require("parus.dictionaryDialog");dojo.declare("parus.editDictionaryDialog",[parus.Dialog],{parentDialog:null,store:null,item:null,rn:null,prn:null,crn:null,editMode:false,titlePostfix:null,postCreate:function(){this.inherited(arguments);if(this.titlePostfix){this.dialog.titleNode.innerHTML+=" "+this.titlePostfix}this.onLoadParams(this.store,this.item,this.editMode)},onLoadParams:function(c,b,a){if(c){if(b){this.rn=c.getValue(b,"RN");this.prn=c.getValue(b,"PRN");this.crn=c.getValue(b,"CRN")}else{if(c.parentRN){this.prn=c.parentRN}if(c.catalogRN){this.crn=c.catalogRN}}}},getParentDialogCondition:function(a){if(this.parentDialog&&this.parentDialog.gridConditions&&this.parentDialog.gridConditions.hasOwnProperty(a)){return this.parentDialog.gridConditions[a]}},getParentDialogMasterGridItem:function(d){if(this.parentDialog&&this.parentDialog.grid){var c=this.parentDialog.grid;var b=c.store;var a=c.selection.getFirstSelected();return b.getValue(a,d)}},getParentDialogDetailGridItem:function(a){if(this.parentDialog&&this.parentDialog.detailGrid){var d=this.parentDialog.detailGrid;var c=d.store;var b=d.selection.getFirstSelected();return c.getValue(b,a)}},executeInsert:function(a){},executeUpdate:function(){},executeDelete:function(a,b){}});