dojo.provide("parus.designerReportPeriodDateDialog");dojo.require("dijit.Dialog");dojo.require("dijit.form.Button");dojo.require("dijit.form.DateTextBox");dojo.require("parus.parus8");dojo.require("parus.dialog");dojo.require("parus.formats");dojo.require("parus.editDictionaryDialog");dojo.declare("parus.designerReportPeriodDateDialog",[parus.editDictionaryDialog],{onLoadParams:function(c,b,a){this.inherited(arguments);if(c&&b){this.dateEdit.attr("value",parus.formats.stringToDate(c.getValue(b,"BDATE")))}},executeInsert:function(b){var a=parus.database.execute("insertDesignerReportPeriodDate",{PRN:this.prn,BDATE:parus.formats.dateToString(this.dateEdit.attr("value"))});if(a){return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")}},executeUpdate:function(){var a=parus.database.execute("updateDesignerReportPeriodDate",{RN:this.rn,BDATE:parus.formats.dateToString(this.dateEdit.attr("value"))});return !!a},executeDelete:function(c,b){var a=parus.database.execute("deleteDesignerReportPeriodDate",{RN:c.getValue(b,"RN")});return !!a}});