gx.evt.autoSkip=false;function himh310(){this.ServerClass="Himh310";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.autoRefresh=true;this.SetStandaloneVars=function(){this.A679PlrDes=gx.fn.getControlValue("PLRDES")};this.e12kz2_client=function(){this.executeServerEvent("'COMPARAR'",false)};this.e13kz2_client=function(){this.executeServerEvent("'SEMELHANTES'",false)};this.e16kz2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e17kz2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[2,9,11,17,20,22,24,26,29,31,33,35,47,48,49];this.GXLastCtrlId=49;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh310",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addComboBox("Grdtiptermo",47,"vGRDTIPTERMO","Tipo","GrdTipTermo","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Grddsctermo",48,"vGRDDSCTERMO","Descrição","","GrdDscTermo","char",0,"px",40,40,"left",null,[],"Grddsctermo","GrdDscTermo",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdpctsemelhanca",49,"vGRDPCTSEMELHANCA","%","","GrdPctSemelhanca","decimal",0,"px",8,8,"right",null,[],"Grdpctsemelhanca","GrdPctSemelhanca",true,3,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[9]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[11]={fld:"TABLE2",grid:0};this.GXValidFnc[17]={fld:"TABLE6",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[22]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRVALTERMO1",gxz:"ZV8ScrValTermo1",gxold:"OV8ScrValTermo1",gxvar:"AV8ScrValTermo1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8ScrValTermo1=a
},v2z:function(a){gx.O.ZV8ScrValTermo1=a},v2c:function(){gx.fn.setControlValue("vSCRVALTERMO1",gx.O.AV8ScrValTermo1,0)},c2v:function(){gx.O.AV8ScrValTermo1=this.val()},val:function(){return gx.fn.getControlValue("vSCRVALTERMO1")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRVALTERMO2",gxz:"ZV9ScrValTermo2",gxold:"OV9ScrValTermo2",gxvar:"AV9ScrValTermo2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9ScrValTermo2=a
},v2z:function(a){gx.O.ZV9ScrValTermo2=a},v2c:function(){gx.fn.setControlValue("vSCRVALTERMO2",gx.O.AV9ScrValTermo2,0)},c2v:function(){gx.O.AV9ScrValTermo2=this.val()},val:function(){return gx.fn.getControlValue("vSCRVALTERMO2")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"decimal",len:7,dec:3,sign:false,pic:"ZZ9.999",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRPCTSEMELHANCAMINIMO",gxz:"ZV10ScrPctSemelhancaMinimo",gxold:"OV10ScrPctSemelhancaMinimo",gxvar:"AV10ScrPctSemelhancaMinimo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10ScrPctSemelhancaMinimo=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV10ScrPctSemelhancaMinimo=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vSCRPCTSEMELHANCAMINIMO",gx.O.AV10ScrPctSemelhancaMinimo,3,",")},c2v:function(){gx.O.AV10ScrPctSemelhancaMinimo=this.val()},val:function(){return gx.fn.getDecimalValue("vSCRPCTSEMELHANCAMINIMO",".",",")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"decimal",len:8,dec:3,sign:false,pic:"ZZZ9.999",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRPCTSEMELHANCACALCULADO",gxz:"ZV13ScrPctSemelhancaCalculado",gxold:"OV13ScrPctSemelhancaCalculado",gxvar:"AV13ScrPctSemelhancaCalculado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13ScrPctSemelhancaCalculado=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV13ScrPctSemelhancaCalculado=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vSCRPCTSEMELHANCACALCULADO",gx.O.AV13ScrPctSemelhancaCalculado,3,",")},c2v:function(){gx.O.AV13ScrPctSemelhancaCalculado=this.val()},val:function(){return gx.fn.getDecimalValue("vSCRPCTSEMELHANCACALCULADO",".",",")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDTIPTERMO",gxz:"ZV11GrdTipTermo",gxold:"OV11GrdTipTermo",gxvar:"AV11GrdTipTermo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV11GrdTipTermo=a
},v2z:function(a){gx.O.ZV11GrdTipTermo=a},v2c:function(){gx.fn.setGridComboBoxValue("vGRDTIPTERMO",gx.fn.currentGridRowImpl(46),gx.O.AV11GrdTipTermo)},c2v:function(){gx.O.AV11GrdTipTermo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDTIPTERMO",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCTERMO",gxz:"ZV12GrdDscTermo",gxold:"OV12GrdDscTermo",gxvar:"AV12GrdDscTermo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12GrdDscTermo=a
},v2z:function(a){gx.O.ZV12GrdDscTermo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCTERMO",gx.fn.currentGridRowImpl(46),gx.O.AV12GrdDscTermo,0)},c2v:function(){gx.O.AV12GrdDscTermo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCTERMO",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"decimal",len:8,dec:3,sign:false,pic:"ZZZ9.999",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDPCTSEMELHANCA",gxz:"ZV17GrdPctSemelhanca",gxold:"OV17GrdPctSemelhanca",gxvar:"AV17GrdPctSemelhanca",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17GrdPctSemelhanca=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV17GrdPctSemelhanca=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vGRDPCTSEMELHANCA",gx.fn.currentGridRowImpl(46),gx.O.AV17GrdPctSemelhanca,3,",")},c2v:function(){gx.O.AV17GrdPctSemelhanca=this.val()},val:function(){return gx.fn.getGridDecimalValue("vGRDPCTSEMELHANCA",gx.fn.currentGridRowImpl(46),".",",")},nac:function(){return false}};this.AV8ScrValTermo1="";this.ZV8ScrValTermo1="";this.OV8ScrValTermo1="";this.AV9ScrValTermo2="";this.ZV9ScrValTermo2="";
this.OV9ScrValTermo2="";this.AV10ScrPctSemelhancaMinimo=0;this.ZV10ScrPctSemelhancaMinimo=0;this.OV10ScrPctSemelhancaMinimo=0;this.AV13ScrPctSemelhancaCalculado=0;this.ZV13ScrPctSemelhancaCalculado=0;this.OV13ScrPctSemelhancaCalculado=0;this.ZV11GrdTipTermo="";this.OV11GrdTipTermo="";this.ZV12GrdDscTermo="";this.OV12GrdDscTermo="";this.ZV17GrdPctSemelhanca=0;this.OV17GrdPctSemelhanca=0;this.AV11GrdTipTermo="";this.AV12GrdDscTermo="";this.AV17GrdPctSemelhanca=0;this.A679PlrDes="";this.A682PlrTip="";
this.ServerEvents=["e12kz2_client","e13kz2_client","e16kz2_client","e17kz2_client"];this.VarControlMap.A679PlrDes={id:"PLRDES",grid:0,type:"char"};this.SetStandaloneVars()}himh310.prototype=new gx.GxObject;gx.setParentObj(new himh310());