/*
 * JSMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://www.smallsharptools.com/Projects/Packer/
*/

// V:\1.1.007\js\form\QE\Ext.ux.Namirial.form.QESezI.js

Ext.ns('Ext.ux');Ext.ns('Ext.ux.Namirial');Ext.ns('Ext.ux.Namirial.form');Ext.ux.Namirial.form.QESezI=Ext.extend(Ext.Panel,{constructor:function(c){c=c||{};this.cfisc=dichiarazione.getCurrentCfisc();this.sum=0;this.parentQuadro=c.parentQuadro;this.titoloPanel='ONERI PER I QUALI E\' RICONOSCIUTA LA DETRAZIONE D\'IMPOSTA DEL 19%';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==3));switch(cardId){case'E1E9':this.E14.validate();this.rigoE14.totalField.validate();panLayout.setActiveItem(nextItem);break;case'E10E18':this.rigoE16Multi.setModifica(false);this.rigoE16Multi.basicForm.reset();panLayout.setActiveItem(nextItem);break;case'E19E21':panLayout.setActiveItem(nextItem);break;case'E19E21_2':panLayout.setActiveItem(nextItem);break;}}
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(-1);},scope:this});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(1);},scope:this});this.label=new Ext.Panel({height:20,bodyStyle:SFONDO_FORM,items:{xtype:'label',html:'Oneri per i quali e\' riconosciuta la detrazione d\'imposta del 19%</b>'}})
this.E1_2_MAX=new Ext.form.TextField({name:'E1_2_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E1_1_MAX=new Ext.form.TextField({name:'E1_1_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E1_2=new Ext.ux.Namirial.form.NumberField({name:'E1_2',dataIndex:'E1_2',width:60,allowDecimals:false,disabled:true,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.totalE1_1_2=new Ext.Button({icon:IMG_TOTRIGO,cls:'x-btn-icon',scope:this,handler:function(){var doc=new Ext.ux.Namirial.form.DettagliQE({totalField:this.E1_2,sqlArray:this.sqlArray});doc.winDettagliQE.on('close',function(){this.somma();this.E1_2_3.validate();},this);doc.apri();}});this.customPanelRigoE1=new Ext.Panel({width:255,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,items:[this.E1_2_MAX]},{width:65,items:[this.E1_2]},{width:40,bodyStyle:IMG_BACKGROUND+"padding-top:1px",items:new Ext.Toolbar({style:SFONDO_TRASPARENTE+"border: 0px;padding:0px",items:[this.totalE1_1_2]})},{width:65,items:[this.E1_1_MAX]},{width:20}]})
this.E2_MAX=new Ext.form.TextField({name:'E2_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E6_2=new Ext.form.TextField({name:'E6_2',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E6_2_2=new Ext.form.TextField({name:'E6_2_2',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E6_2_3=new Ext.form.TextField({name:'E6_2_3',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E1_2_3=new Ext.ux.Namirial.form.Checkbox({name:'E_1_2_3',hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',validateOnBlur:false,validationEvent:'check',validator:controlloE1_2_3.createDelegate(this)})
this.E1_2_3.on('check',function(field){this.somma();this.E1_2_3.validate();},this);this.E11_MAX=new Ext.form.TextField({name:'E11_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E15_MAX=new Ext.form.TextField({name:'E15_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.C24_MAX=new Ext.form.TextField({name:'C24_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.C27_MAX=new Ext.form.TextField({name:'C27_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.C28_MAX=new Ext.form.TextField({name:'C28_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.C29_MAX=new Ext.form.TextField({name:'C29_MAX',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.E14=new Ext.ux.Namirial.form.NumberField({name:'N_E14',width:60,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;',validateOnBlur:false,validationEvent:'change',validator:controlloN_E14.createDelegate(this)})
this.E14.on('change',function(field){this.rigoE14.totalField.validate();},this);this.C36=new Ext.ux.Namirial.form.NumberField({name:'N_C36',width:60,disabled:true,allowDecimals:false,decimalPrecision:0,hideLabel:true,labelSeparator:'',qtip:{title:'N.figli',text:'Indicare il numero dei figli'},fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;'})
this.customPanelRigoE2=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,items:[this.E2_MAX]},{width:20,height:30,style:'padding-bottom: 5px;',items:[this.E1_2_3]}]})
this.E4_2=new Ext.ux.Namirial.form.ComboBox({name:'E4_2',width:60,forceSelection:true,store:Ext.ux.Namirial.QE.ComboRighiPart,tpl:COMBO_WRAP,mode:'local',hideLabel:true,fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;',triggerAction:'all',selectOnFocus:true,listWidth:235,showValue:true});this.E4_2.on('change',function(field){this.rigoE4.totalField.validate();},this);this.E4_2_3=new Ext.ux.Namirial.form.ComboBox({name:'E4_2_3',width:60,forceSelection:true,store:Ext.ux.Namirial.QE.ComboRighiPart,tpl:COMBO_WRAP,mode:'local',hideLabel:true,fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;',triggerAction:'all',selectOnFocus:true,listWidth:235,showValue:true});this.E4_2_3.on('change',function(field){this.rigoE4_2.totalField.validate();},this);this.E5_2=new Ext.ux.Namirial.form.ComboBox({name:'E5_2',width:60,forceSelection:true,store:Ext.ux.Namirial.QE.ComboRighiPart,tpl:COMBO_WRAP,mode:'local',hideLabel:true,fieldClass:'x-input-noborder-rigo',style:'padding-top:3px;padding-left:2px;',triggerAction:'all',selectOnFocus:true,listWidth:235,showValue:true});this.E5_2.on('change',function(field){this.rigoE5.totalField.validate();},this);this.customPanelRigoE4=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E4_2]},{width:20}]})
this.customPanelRigoE4_2=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E4_2_3]},{width:20}]})
this.customPanelRigoE5=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E5_2]},{width:20}]})
this.customPanelRigoE6=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E6_2]},{width:20}]})
this.customPanelRigoE6_2_2=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E6_2_2]},{width:20}]})
this.customPanelRigoE6_2_3=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E6_2_3]},{width:20}]})
this.customPanelRigoE11=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E11_MAX]},{width:20}]})
this.customPanelRigoE14=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E14]},{width:20}]})
this.customPanelRigoC36=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.C36]},{width:20}]})
this.customPanelRigoE15=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.E15_MAX]},{width:20}]})
this.customPanelC24=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.C24_MAX]},{width:20}]})
this.customPanelC27=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.C27_MAX]},{width:20}]})
this.customPanelC28=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.C28_MAX]},{width:20}]})
this.customPanelC29=new Ext.Panel({width:85,layout:'column',defaults:{layout:'form',border:false,bodyStyle:IMG_BACKGROUND},items:[{width:65,bodyStyle:IMG_BACKGROUND,items:[this.C29_MAX]},{width:20}]})
this.rigoE1=new Ext.ux.Namirial.form.RigoQe({textCod:'E1',text:docQe['E1'],nameTotal:'E1_1',codRigo:'E1',textWidth:315,optionPanel:this.customPanelRigoE1})
this.rigoE1.totalField.on('change',function(field){this.somma();this.E1_2_3.validate();},this);this.rigoE2=new Ext.ux.Namirial.form.RigoQe({textCod:'E2',text:docQe['E2'],nameTotal:'E2',codRigo:'E2',textWidth:485,optionPanel:this.customPanelRigoE2})
this.rigoE2.totalField.on('change',function(field){this.somma();this.E1_2_3.validate();},this);this.rigoE3=new Ext.ux.Namirial.form.RigoQe({textCod:'E3',text:docQe['E3'],nameTotal:'E3',codRigo:'E3',textWidth:570})
this.rigoE3.totalField.on('change',function(field){this.somma();this.E1_2_3.validate();},this);this.rigoE4=new Ext.ux.Namirial.form.RigoQe({textCod:'E4',text:docQe['E4_1'],nameTotal:'E4_1',codRigo:'E4',textWidth:485,optionPanel:this.customPanelRigoE4,validatorField:controlloE4_1.createDelegate(this)})
this.rigoE4.totalField.on('change',function(e4){var e4_1=this.rigoE4_1.totalField;this.verificaRigoE4(e4,e4_1);},this);this.rigoE4_1=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E4_1_2'],nameTotal:'E4_1_2',codRigo:'E4_2',textWidth:570})
this.rigoE4_1.totalField.on('change',function(e4_1){var e4=this.rigoE4.totalField;this.verificaRigoE4(e4,e4_1);},this);this.rigoE4_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',text:docQe['E4_1_3'],nameTotal:'E4_1_3',codRigo:'E4_3',textWidth:485,optionPanel:this.customPanelRigoE4_2,validatorField:controlloE4_1_3.createDelegate(this)})
this.rigoE5=new Ext.ux.Namirial.form.RigoQe({textCod:'E5',codRigo:'E5',text:docQe['E5'],nameTotal:'E5_1',disableInput:true,textWidth:485,optionPanel:this.customPanelRigoE5,validatorField:controlloE5_1.createDelegate(this)})
this.rigoE6=new Ext.ux.Namirial.form.RigoQe({textCod:'E6',codRigo:'E6',text:docQe['E6'],nameTotal:'E6_1',disableInput:true,textWidth:485,optionPanel:this.customPanelRigoE6,validatorField:controlloE6_1.createDelegate(this)})
this.rigoE6_1=new Ext.ux.Namirial.form.RigoQe({textCod:'',codRigo:'E6_1',text:docQe['E6_1'],nameTotal:'E6_1_2',disableInput:true,textWidth:485,optionPanel:this.customPanelRigoE6_2_2,validatorField:controlloE6_1_2.createDelegate(this)})
this.rigoE6_2=new Ext.ux.Namirial.form.RigoQe({textCod:'',codRigo:'E6_2',text:docQe['E6_2'],nameTotal:'E6_1_3',disableInput:true,textWidth:485,optionPanel:this.customPanelRigoE6_2_3,validatorField:controlloE6_1_3.createDelegate(this)})
this.rigoE7=new Ext.ux.Namirial.form.RigoQe({textCod:'E7',text:docQe['E7'],nameTotal:'E7',codRigo:'E7',textWidth:570})
this.rigoE7.totalField.on('change',function(field){this.verificaRigoE8();},this);this.rigoE8=new Ext.ux.Namirial.form.RigoQe({textCod:'E8',text:docQe['E8'],nameTotal:'E8',codRigo:'E8',textWidth:570})
this.rigoE9=new Ext.ux.Namirial.form.RigoQe({textCod:'E9',text:docQe['E9'],nameTotal:'E9',codRigo:'E9',textWidth:570,last:true})
this.rigoE10=new Ext.ux.Namirial.form.RigoQe({textCod:'E10',text:docQe['E10'],nameTotal:'E10',codRigo:'E10',textWidth:570})
this.rigoE11=new Ext.ux.Namirial.form.RigoQe({textCod:'E11',text:docQe['E11'],nameTotal:'E11',codRigo:'E11',textWidth:485,optionPanel:this.customPanelRigoE11})
this.rigoE12=new Ext.ux.Namirial.form.RigoQe({textCod:'E12',text:docQe['E12'],nameTotal:'E12',codRigo:'E12',textWidth:570})
this.rigoE13=new Ext.ux.Namirial.form.RigoQe({textCod:'E13',text:docQe['E13'],nameTotal:'E13',codRigo:'E13',textWidth:570})
this.rigoE14=new Ext.ux.Namirial.form.RigoQe({textCod:'E14',text:docQe['E14'],nameTotal:'E14',codRigo:'E14',numIdField:this.E14,disableField:false,textWidth:485,optionPanel:this.customPanelRigoE14,validatorField:controlloE14.createDelegate(this)})
this.rigoE14.totalField.on('change',function(field){this.E14.validate();},this);this.rigoE15=new Ext.ux.Namirial.form.RigoQe({textCod:'E15',text:docQe['E15'],nameTotal:'E15',codRigo:'E15',textWidth:485,optionPanel:this.customPanelRigoE15})
this.expandE16=new Ext.Panel({width:40,items:[{bodyStyle:SFONDO_TRASPARENTE,border:false,height:3},new Ext.ux.ImageButton({imgPath:IMG_EXPAND,imgHeight:16,imgWidth:16,qtip:'Apri gestione E16',handler:function(btn){this.rigoE16Multi.toggleCollapse();if(this.rigoE16Multi.collapsed){btn.changeImage(IMG_COLLAPSE)}else{btn.changeImage(IMG_EXPAND);}},scope:this})]})
this.rigoE16=new Ext.ux.Namirial.form.RigoQe({textCod:'E16',text:docQe['E16'],nameTotal:'E16',codRigo:'E16',textWidth:530,disableInput:true,disableField:true,optionPanel:this.expandE16})
this.rigoE16Multi=new Ext.ux.Namirial.form.QESezIE16(this.rigoE16.totalField);this.rigoE16Multi.on('render',function(){var E16Click=new Ext.util.ClickRepeater(this.rigoE16.getEl(),{listeners:{click:{fn:function(){this.rigoE16Multi.toggleCollapse();},scope:this}}});},this)
this.rigoE17=new Ext.ux.Namirial.form.RigoQe({textCod:'E17',text:docQe['E17'],nameTotal:'E17',codRigo:'E17',textWidth:570})
this.rigoE18=new Ext.ux.Namirial.form.RigoQe({textCod:'E18',text:docQe['E18'],nameTotal:'E18',codRigo:'E18',textWidth:570,last:true})
this.rigoCod19=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.19',text:docQe['COD19'],nameTotal:'C19',codRigo:'C19',textWidth:570})
this.rigoCod20=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.20',text:docQe['COD20'],nameTotal:'C20',codRigo:'C20',textWidth:570})
this.rigoCod21=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.21',text:docQe['COD21'],nameTotal:'C21',codRigo:'C21',textWidth:570})
this.rigoCod22=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.22',text:docQe['COD22'],nameTotal:'C22',codRigo:'C22',textWidth:570})
this.rigoCod23=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.23',text:docQe['COD23'],nameTotal:'C23',codRigo:'C23',textWidth:570})
this.rigoCod24=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.24',text:docQe['COD24'],nameTotal:'C24',codRigo:'C24',textWidth:485,optionPanel:this.customPanelC24})
this.rigoCod25=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.25',text:docQe['COD25'],nameTotal:'C25',codRigo:'C25',textWidth:570})
this.rigoCod26=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.26',text:docQe['COD26'],nameTotal:'C26',codRigo:'C26',textWidth:570})
this.rigoCod27=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.27',text:docQe['COD27'],nameTotal:'C27',codRigo:'C27',textWidth:485,optionPanel:this.customPanelC27})
this.rigoCod28=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.28',text:docQe['COD28'],nameTotal:'C28',codRigo:'C28',textWidth:485,optionPanel:this.customPanelC28})
this.rigoCod29=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.29',text:docQe['COD29'],nameTotal:'C29',codRigo:'C29',textWidth:485,optionPanel:this.customPanelC29,last:true})
this.rigoCod30=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.30',text:docQe['COD30'],nameTotal:'C30',codRigo:'C30',textWidth:570})
this.rigoCod31=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.31',text:docQe['COD31'],nameTotal:'C31',codRigo:'C31',textWidth:570})
this.rigoCod32=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.32',text:docQe['COD32'],nameTotal:'C32',codRigo:'C32',textWidth:570})
this.rigoCod33=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.33',text:docQe['COD33'],nameTotal:'C33',codRigo:'C33',textWidth:570})
this.rigoCod34=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.34',text:docQe['COD34'],nameTotal:'C34',codRigo:'C34',textWidth:570})
this.rigoCod35=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.35',text:docQe['COD35'],nameTotal:'C35',codRigo:'C35',textWidth:570})
this.rigoCod36=new Ext.ux.Namirial.form.RigoQe({textCod:'Cod.36',text:docQe['COD36'],nameTotal:'C36',codRigo:'C36',numIdField:this.C36,textWidth:485,optionPanel:this.customPanelRigoC36,last:true})
this.panelE1E9=new Ext.Panel({id:'E1E9',title:'E1 .. E9 - '+this.titoloPanel,layout:'form',defaults:{border:false},items:[this.rigoE1,this.rigoE2,this.rigoE3,this.rigoE4,this.rigoE4_1,this.rigoE4_2,this.rigoE5,this.rigoE6,this.rigoE6_1,this.rigoE6_2,this.rigoE7,this.rigoE8,this.rigoE9]});this.panelE10E18=new Ext.Panel({id:'E10E18',title:'E10 .. E18 - '+this.titoloPanel,layout:'form',defaults:{border:false},items:[this.rigoE10,this.rigoE11,this.rigoE12,this.rigoE13,this.rigoE14,this.rigoE15,this.rigoE16,this.rigoE16Multi,this.rigoE17,this.rigoE18]});this.panelE19E21=new Ext.Panel({id:'E19E21',title:'E19 .. E21 - '+this.titoloPanel,layout:'form',defaults:{border:false},items:[this.rigoCod19,this.rigoCod20,this.rigoCod21,this.rigoCod22,this.rigoCod23,this.rigoCod24,this.rigoCod25,this.rigoCod26,this.rigoCod27,this.rigoCod28,this.rigoCod29]});this.panelE19E21_2=new Ext.Panel({id:'E19E21_2',title:'E19 .. E21 - '+this.titoloPanel,layout:'form',defaults:{border:false},items:[this.rigoCod30,this.rigoCod31,this.rigoCod32,this.rigoCod33,this.rigoCod34,this.rigoCod35,this.rigoCod36]});BF_QE_SEZI.add(this.rigoE1.totalField);BF_QE_SEZI.add(this.rigoE2.totalField);BF_QE_SEZI.add(this.rigoE3.totalField);BF_QE_SEZI.add(this.rigoE4.totalField);BF_QE_SEZI.add(this.rigoE4_1.totalField);BF_QE_SEZI.add(this.rigoE4_2.totalField);BF_QE_SEZI.add(this.rigoE5.totalField);BF_QE_SEZI.add(this.rigoE6.totalField);BF_QE_SEZI.add(this.rigoE6_1.totalField);BF_QE_SEZI.add(this.rigoE6_2.totalField);BF_QE_SEZI.add(this.rigoE7.totalField);BF_QE_SEZI.add(this.rigoE8.totalField);BF_QE_SEZI.add(this.rigoE9.totalField);BF_QE_SEZI.add(this.rigoE10.totalField);BF_QE_SEZI.add(this.rigoE11.totalField);BF_QE_SEZI.add(this.rigoE12.totalField);BF_QE_SEZI.add(this.rigoE13.totalField);BF_QE_SEZI.add(this.rigoE14.totalField);BF_QE_SEZI.add(this.rigoE15.totalField);BF_QE_SEZI.add(this.rigoE16.totalField);BF_QE_SEZI.add(this.rigoE17.totalField);BF_QE_SEZI.add(this.rigoE18.totalField);BF_QE_SEZI.add(this.rigoCod19.totalField);BF_QE_SEZI.add(this.rigoCod20.totalField);BF_QE_SEZI.add(this.rigoCod21.totalField);BF_QE_SEZI.add(this.rigoCod22.totalField);BF_QE_SEZI.add(this.rigoCod23.totalField);BF_QE_SEZI.add(this.rigoCod24.totalField);BF_QE_SEZI.add(this.rigoCod25.totalField);BF_QE_SEZI.add(this.rigoCod26.totalField);BF_QE_SEZI.add(this.rigoCod27.totalField);BF_QE_SEZI.add(this.rigoCod28.totalField);BF_QE_SEZI.add(this.rigoCod29.totalField);BF_QE_SEZI.add(this.rigoCod30.totalField);BF_QE_SEZI.add(this.rigoCod31.totalField);BF_QE_SEZI.add(this.rigoCod32.totalField);BF_QE_SEZI.add(this.rigoCod33.totalField);BF_QE_SEZI.add(this.rigoCod34.totalField);BF_QE_SEZI.add(this.rigoCod35.totalField);BF_QE_SEZI.add(this.rigoCod36.totalField);BF_QE_SEZI.add(this.E1_1_MAX);BF_QE_SEZI.add(this.E1_2);BF_QE_SEZI.add(this.E1_2_MAX);BF_QE_SEZI.add(this.E11_MAX);BF_QE_SEZI.add(this.E14);BF_QE_SEZI.add(this.E15_MAX);BF_QE_SEZI.add(this.E15_MAX);BF_QE_SEZI.add(this.E1_2_3);BF_QE_SEZI.add(this.E2_MAX);BF_QE_SEZI.add(this.E4_2);BF_QE_SEZI.add(this.E4_2_3);BF_QE_SEZI.add(this.E5_2);BF_QE_SEZI.add(this.E6_2);BF_QE_SEZI.add(this.E6_2_2);BF_QE_SEZI.add(this.E6_2_3);BF_QE_SEZI.add(this.C24_MAX);BF_QE_SEZI.add(this.C27_MAX);BF_QE_SEZI.add(this.C28_MAX);BF_QE_SEZI.add(this.C29_MAX);BF_QE_SEZI.add(this.C36);Ext.ux.Namirial.form.QESezI.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.panelE1E9,this.panelE10E18,this.panelE19E21,this.panelE19E21_2]})},somma:function(){var val=convertiStrNum(this.E1_2.getValue());var val1=convertiStrNum(this.rigoE1.totalField.getValue());var val2=convertiStrNum(this.rigoE2.totalField.getValue());var val3=convertiStrNum(this.rigoE3.totalField.getValue());this.sum=val+val1+val2+val3;},verificaRigoE4:function(e4Field,e4_1Field){var val=convertiStrNum(e4Field.getValue());var val1=convertiStrNum(e4_1Field.getValue());max_e4_2=E4_MAX-val;if(max_e4_2<0){max_e4_2=0;}
if(tot_quote_e4_2<max_e4_2){e4_1Field.setValue(tot_quote_e4_2);}
else{e4_1Field.setValue(max_e4_2);}},verificaRigoE8:function(field,field1){var field=this.rigoE7.totalField;var field1=this.rigoE8.totalField;e7_val=convertiStrNum(field.getValue());if(e7_val>0){if(e7_val<E8_MAX)
max_e8=E8_MAX-e7_val;else
max_e8=0;}
else{max_e8=E8_MAX;}
if(e8_val_tot>max_e8)
field1.setValue(max_e8);else
field1.setValue(e8_val_tot);}})

