dojo.provide("parus.designerReportCheckListDialog");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.designerCheckListDialog");dojo.require("parus.designerCheckDialog");dojo.require("parus.designerReportPeriodDialog");dojo.require("parus.designerReportPeriodDateDialog");dojo.declare("parus.designerReportCheckListDialog",[parus.editDictionaryDialog],{onLoadParams:function(c,b,a){this.inherited(arguments);if(!this.prn){this.prn=this.getParentDialogCondition("PRN")}if(c&&b){this.checkListEdit.attr("value",c.getValue(b,"CODE"));this.periodEdit.attr("value",c.getValue(b,"PERIOD"));this.mainCheckBox.attr("checked",c.getValue(b,"MAIN")=="1")}},executeInsert:function(b){var a=parus.database.execute("designer.BalanceReportForm.CheckList.Insert",{PRN:this.prn,CHECKLIST:this.checkListEdit.attr("value"),PERIOD:this.periodEdit.attr("value"),MAIN:this.mainCheckBox.attr("checked")?"1":"0"});if(a){return parus.parus8.nodeField(parus.parus8.rowNodes(a)[0],"NRN")}},executeUpdate:function(){var a=parus.database.execute("designer.BalanceReportForm.CheckList.Update",{RN:this.rn,CHECKLIST:this.checkListEdit.attr("value"),PERIOD:this.periodEdit.attr("value"),MAIN:this.mainCheckBox.attr("checked")?"1":"0"});return !!a},executeDelete:function(c,b){var a=parus.database.execute("designer.BalanceReportForm.CheckList.Delete",{RN:c.getValue(b,"RN")});return !!a}});