/*
 * JSMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://www.smallsharptools.com/Projects/Packer/
*/

// V:\1.1.007\js\form\QE\Ext.ux.Namirial.form.QESezII.js

Ext.ns('Ext.ux');Ext.ns('Ext.ux.Namirial');Ext.ns('Ext.ux.Namirial.form');Ext.ux.Namirial.form.QESezII=Ext.extend(Ext.Panel,{constructor:function(c){c=c||{};this.parentQuadro=c.parentQuadro;this.sqlArray=new Array();this.titoloPanel='ONERI DEDUCIBILI DAL REDDITO COMPLESSIVO';this.navHandler=function(index){var panLayout=this.getLayout();var activeItem=panLayout.activeItem;var nextItem=this.items.indexOf(activeItem)+index;var cardId=activeItem.id;this.backButton.setDisabled((nextItem==0));this.nextButton.setDisabled((nextItem==2));panLayout.setActiveItem(nextItem);}
this.backButton=new Ext.Button({text:'<table border="0" cellpadding="0" cellspacing="0"><td><img src="'+IMG_PREV+'" height="14"></td><td width="10">&nbsp</td><td valign="top">Indietro</td></table>',scope:this,disabled:true,handler:function(){this.navHandler.call(this,-1);}});this.nextButton=new Ext.Button({text:'<table border="0" cellpadding="0" cellspacing="0"><td valign="top">Avanti</td><td width="10">&nbsp</td><td><img src="'+IMG_NEXT+'" height="14"></td></table>',scope:this,handler:function(){this.navHandler.call(this,1);}});this.E23_CF=new Ext.ux.Namirial.form.TextField({name:'E23_CF',width:130,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;',validateOnBlur:false,validationEvent:'change',validator:controlloE23_CF.createDelegate(this)})
this.E23_CF.on('change',function(field){this.E23_2_CF.validate();},this);this.customPanelE23_CF=new Ext.Panel({width:145,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:130,bodyStyle:IMG_BACKGROUND,items:[this.E23_CF]},{width:10}]})
this.E23_2_CF=new Ext.ux.Namirial.form.TextField({name:'E23_2_CF',width:130,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;',validateOnBlur:false,validationEvent:'change',validator:controlloE23_2_CF.createDelegate(this)})
this.E23_2_CF.on('change',function(field){this.E23_CF.validate();},this);this.customPanelE23_2_CF=new Ext.Panel({width:145,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:130,bodyStyle:IMG_BACKGROUND,items:[this.E23_2_CF]},{width:10}]})
this.E27_2_MAX=new Ext.ux.Namirial.form.TextField({name:'E27_2_MAX',width:60,hideLabel:true,disabled:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelE27_2_MAX=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E27_2_MAX]},{width:20}]})
this.E27_3_MAX=new Ext.ux.Namirial.form.TextField({name:'E27_3_MAX',width:60,hideLabel:true,disabled:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelE27_3_MAX=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E27_3_MAX]},{width:20}]})
this.E28_2_MAX=new Ext.ux.Namirial.form.TextField({name:'E28_2_MAX',width:60,hideLabel:true,disabled:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelE28_2_MAX=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E28_2_MAX]},{width:20}]})
this.E29_2_MAX=new Ext.ux.Namirial.form.TextField({name:'E29_2_MAX',width:60,hideLabel:true,disabled:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelE29_2_MAX=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E29_2_MAX]},{width:20}]})
this.E30_2_MAX=new Ext.ux.Namirial.form.TextField({name:'E30_2_MAX',width:60,hideLabel:true,disabled:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelE30_2_MAX=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E30_2_MAX]},{width:20}]})
this.E31_2_MAX=new Ext.ux.Namirial.form.TextField({name:'E31_2_MAX',width:60,hideLabel:true,disabled:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelE31_2_MAX=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E31_2_MAX]},{width:20}]})
this.E32_3_MAX=new Ext.ux.Namirial.form.TextField({name:'E32_3_MAX',width:60,hideLabel:true,disabled:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelE32_3_MAX=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E32_3_MAX]},{width:20}]})
this.rigoE22=new Ext.ux.Namirial.form.RigoQe({textCod:'E22',text:docQe['E22'],nameTotal:'E22',codRigo:'E22',textWidth:570})
this.rigoE23=new Ext.ux.Namirial.form.RigoQe({textCod:'E23',text:docQe['E23'],nameTotal:'E23',codRigo:'E23',textWidth:425,optionPanel:this.customPanelE23_CF})
this.rigoE23.totalField.on('change',function(field){var E23=convertiStrNum(this.rigoE23.totalField.getValue());if(E23>0){this.E23_CF.blankText='Deduzione non riconoscibile in assenza del Codice fiscale del coniuge';this.E23_CF.setAllowBlank(false);}
else{this.E23_CF.setAllowBlank(true);}
this.E23_CF.validate();this.E23_2_CF.validate();},this);this.rigoE23_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E23_2'],nameTotal:'E23_2',codRigo:'E23_2',textWidth:425,optionPanel:this.customPanelE23_2_CF})
this.rigoE23_2.totalField.on('change',function(field){var E23_2=convertiStrNum(this.rigoE23_2.totalField.getValue());if(E23_2>0){this.E23_2_CF.blankText='Deduzione non riconoscibile in assenza del Codice fiscale del coniuge';this.E23_2_CF.setAllowBlank(false);}
else{this.E23_2_CF.setAllowBlank(true);}
this.E23_CF.validate();this.E23_2_CF.validate();},this);this.rigoE24=new Ext.ux.Namirial.form.RigoQe({textCod:'E24',text:docQe['E24'],nameTotal:'E24',codRigo:'E24',textWidth:570})
this.rigoE25=new Ext.ux.Namirial.form.RigoQe({textCod:'E25',text:docQe['E25'],nameTotal:'E25',codRigo:'E25',textWidth:570})
this.rigoE26=new Ext.ux.Namirial.form.RigoQe({textCod:'E26',text:docQe['E26'],nameTotal:'E26',codRigo:'E26',textWidth:570})
this.rigoE27_1=new Ext.ux.Namirial.form.RigoQe({textCod:'E27-1',codRigo:'E27_1',text:docQe['E27_1'],nameTotal:'E27_1',textWidth:570})
this.rigoE27_2=new Ext.ux.Namirial.form.RigoQe({textCod:'E27-2',codRigo:'E27_2',text:docQe['E27_2'],nameTotal:'E27_2',textWidth:485,optionPanel:this.customPanelE27_2_MAX})
this.rigoE27_3=new Ext.ux.Namirial.form.RigoQe({textCod:'E27-3',codRigo:'E27_3',text:docQe['E27_3'],nameTotal:'E27_3',textWidth:485,optionPanel:this.customPanelE27_3_MAX})
this.rigoE27_4=new Ext.ux.Namirial.form.RigoQe({textCod:'E27-4',codRigo:'E27_4',text:docQe['E27_4'],nameTotal:'E27_4',textWidth:570})
this.rigoE27_5=new Ext.ux.Namirial.form.RigoQe({textCod:'E27-5',text:docQe['E27_5'],nameTotal:'E27_5',codRigo:'E27_5',textWidth:570,last:true})
this.rigoE28=new Ext.ux.Namirial.form.RigoQe({textCod:'E28',text:docQe['E28'],nameTotal:'E28',codRigo:'E28_0',showInput:false})
this.rigoE28_1=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E28_1'],nameTotal:'E28_1',codRigo:'E28_1',textWidth:570,disableInput:true})
this.rigoE28_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E28_2'],nameTotal:'E28_2',codRigo:'E28',textWidth:485,optionPanel:this.customPanelE28_2_MAX,disableInput:false})
this.rigoE29=new Ext.ux.Namirial.form.RigoQe({textCod:'E29',text:docQe['E29'],nameTotal:'E29',codRigo:'E29',showInput:false})
this.rigoE29_1=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E29_1'],nameTotal:'E29_1',codRigo:'E29_1',textWidth:570,disableInput:true})
this.rigoE29_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E29_2'],nameTotal:'E29_2',codRigo:'E29_2',textWidth:485,optionPanel:this.customPanelE29_2_MAX,disableInput:true})
this.rigoE30=new Ext.ux.Namirial.form.RigoQe({textCod:'E30',text:docQe['E30'],nameTotal:'E30',codRigo:'E30',showInput:false})
this.rigoE30_1=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E30_1'],nameTotal:'E30_1',codRigo:'E30_1',textWidth:570,disableInput:true})
this.rigoE30_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E30_2'],nameTotal:'E30_2',codRigo:'E30_2',textWidth:485,optionPanel:this.customPanelE30_2_MAX,disableInput:true})
this.rigoE31=new Ext.ux.Namirial.form.RigoQe({textCod:'E31',text:docQe['E31'],nameTotal:'E31',codRigo:'E31',showInput:false})
this.rigoE31_1=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E31_1'],nameTotal:'E31_1',codRigo:'E31_1',textWidth:570,disableInput:true})
this.rigoE31_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E31_2'],nameTotal:'E31_2',codRigo:'E31_2',textWidth:485,optionPanel:this.customPanelE31_2_MAX,last:true,disableInput:true})
this.rigoE32=new Ext.ux.Namirial.form.RigoQe({textCod:'E32',text:docQe['E32'],nameTotal:'E32',codRigo:'E32 ',showInput:false})
this.rigoE32_1=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E32_1'],nameTotal:'E32_1',codRigo:'E32_1',textWidth:570,disableInput:true})
this.rigoE32_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E32_2'],nameTotal:'E32_2',codRigo:'E32_2',textWidth:570,disableInput:true})
this.rigoE32_3=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E32_3'],nameTotal:'E32_3',codRigo:'E32_3',textWidth:485,optionPanel:this.customPanelE32_3_MAX,last:true,disableInput:true})
this.panelE22E27=new Ext.Panel({id:'E22E27',title:'E22 .. E27 - '+this.titoloPanel,layout:'form',defaults:{border:false},items:[this.rigoE22,this.rigoE23,this.rigoE23_2,this.rigoE24,this.rigoE25,this.rigoE26,this.rigoE27_1,this.rigoE27_2,this.rigoE27_3,this.rigoE27_4,this.rigoE27_5]});this.panelE28E31=new Ext.Panel({id:'E28E31',title:'E28 .. E31 - '+this.titoloPanel,layout:'form',defaults:{border:false},items:[this.rigoE28,this.rigoE28_1,this.rigoE28_2,this.rigoE29,this.rigoE29_1,this.rigoE29_2,this.rigoE30,this.rigoE30_1,this.rigoE30_2,this.rigoE31,this.rigoE31_1,this.rigoE31_2]});this.panelDetE32=new Ext.Panel({bodyStyle:SFONDO_FORM+'padding:5px;font-weight:bolder;',html:detE32});this.panelE32=new Ext.Panel({id:'E32',title:'E32 - '+this.titoloPanel,layout:'form',defaults:{border:false},items:[this.rigoE32,this.rigoE32_1,this.rigoE32_2,this.rigoE32_3,this.panelDetE32]});BF_QE_SEZII.add(this.rigoE22.totalField);BF_QE_SEZII.add(this.rigoE23.totalField);BF_QE_SEZII.add(this.rigoE23_2.totalField);BF_QE_SEZII.add(this.rigoE24.totalField);BF_QE_SEZII.add(this.rigoE25.totalField);BF_QE_SEZII.add(this.rigoE26.totalField);BF_QE_SEZII.add(this.rigoE27_1.totalField);BF_QE_SEZII.add(this.rigoE27_2.totalField);BF_QE_SEZII.add(this.rigoE27_3.totalField);BF_QE_SEZII.add(this.rigoE27_4.totalField);BF_QE_SEZII.add(this.rigoE27_5.totalField);BF_QE_SEZII.add(this.rigoE28_1.totalField);BF_QE_SEZII.add(this.rigoE28_2.totalField);BF_QE_SEZII.add(this.rigoE29_1.totalField);BF_QE_SEZII.add(this.rigoE29_2.totalField);BF_QE_SEZII.add(this.rigoE30_1.totalField);BF_QE_SEZII.add(this.rigoE30_2.totalField);BF_QE_SEZII.add(this.rigoE31_1.totalField);BF_QE_SEZII.add(this.rigoE31_2.totalField);BF_QE_SEZII.add(this.rigoE32_1.totalField);BF_QE_SEZII.add(this.rigoE32_2.totalField);BF_QE_SEZII.add(this.rigoE32_3.totalField);BF_QE_SEZII.add(this.E23_2_CF);BF_QE_SEZII.add(this.E23_CF);BF_QE_SEZII.add(this.E27_2_MAX);BF_QE_SEZII.add(this.E27_3_MAX);BF_QE_SEZII.add(this.E28_2_MAX);BF_QE_SEZII.add(this.E29_2_MAX);BF_QE_SEZII.add(this.E30_2_MAX);BF_QE_SEZII.add(this.E31_2_MAX);BF_QE_SEZII.add(this.E32_3_MAX);Ext.ux.Namirial.form.QESezII.superclass.constructor.call(this,{layout:'card',activeItem:0,height:393,border:false,defaults:{border:false,bodyStyle:SFONDO_FORM+PADDING_5},bbar:[this.backButton,'->',this.nextButton],items:[this.panelE22E27,this.panelE28E31,this.panelE32]})}})

