/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:34:29.13
*/
gx.evt.autoSkip=!1;gx.define("hmih083",!1,function(){var n,t;this.ServerClass="hmih083";this.PackageName="";this.setObjectType("web");this.anyGridBaseTable=!0;this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.AV7UsbCod=gx.fn.getControlValue("vUSBCOD")};this.Validv_Usbnrocpf=function(){return this.validCliEvt("Validv_Usbnrocpf",0,function(){try{var n=gx.util.balloon.getNew("vUSBNROCPF");this.AnyError=0}catch(t){}try{return n==null?!0:n.show()}catch(t){}return!0})};this.e148o2_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e158o1_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,3,4,5,6,9,12,14,16,19,20,21,22,23,24,25,26,27,28,29,30,31,33];this.GXLastCtrlId=33;this.Grid2Container=new gx.grid.grid(this,2,"WbpLvl2",32,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"hmih083",[],!1,1,!1,!0,0,!1,!1,!1,"",0,"px",0,"px","Novo registro",!1,!1,!1,null,null,!1,"",!1,[1,1,1,1],!1,0,!0,!1);t=this.Grid2Container;t.addSingleLineEdit(52,33,"USBCOD","Leitor","","UsbCod","char",0,"px",14,14,"left",null,[],52,"UsbCod",!0,0,!1,!1,"Attribute",1,"");this.Grid2Container.emptyText="";this.setGrid(t);n[2]={id:2,fld:"",grid:0};n[3]={id:3,fld:"MAINTABLE",grid:0};n[4]={id:4,fld:"",grid:0};n[5]={id:5,fld:"",grid:0};n[6]={id:6,fld:"CABECALHOPOPUP",grid:0};n[9]={id:9,fld:"CABECALHOPOPUP_TABLE1",grid:0};n[12]={id:12,fld:"CABECALHOPOPUP_VOLTAR",grid:0,evt:"e158o1_client"};n[14]={id:14,fld:"CABECALHOPOPUP_HELP",grid:0};n[16]={id:16,fld:"CABECALHOPOPUP_REFRESH",grid:0,evt:"e118o2_client"};n[19]={id:19,fld:"",grid:0};n[20]={id:20,fld:"",grid:0};n[21]={id:21,fld:"TABLE1",grid:0};n[22]={id:22,fld:"",grid:0};n[23]={id:23,fld:"",grid:0};n[24]={id:24,fld:"TEXTBLOCK3",format:0,grid:0};n[25]={id:25,fld:"",grid:0};n[26]={id:26,fld:"",grid:0};n[27]={id:27,fld:"",grid:0};n[28]={id:28,fld:"",grid:0};n[29]={id:29,lvl:0,type:"int",len:15,dec:0,sign:!1,pic:"ZZZZZZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Usbnrocpf,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[this.Grid2Container],fld:"vUSBNROCPF",gxz:"ZV8UsbNroCPF",gxold:"OV8UsbNroCPF",gxvar:"AV8UsbNroCPF",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(n){n!==undefined&&(gx.O.AV8UsbNroCPF=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.ZV8UsbNroCPF=gx.num.intval(n))},v2c:function(){gx.fn.setControlValue("vUSBNROCPF",gx.O.AV8UsbNroCPF,0)},c2v:function(){this.val()!==undefined&&(gx.O.AV8UsbNroCPF=gx.num.intval(this.val()))},val:function(){return gx.fn.getIntegerValue("vUSBNROCPF",".")},nac:gx.falseFn};n[30]={id:30,fld:"",grid:0};n[31]={id:31,fld:"",grid:0};n[33]={id:33,lvl:2,type:"char",len:14,dec:0,sign:!1,pic:"@!",ro:1,isacc:0,grid:32,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"USBCOD",gxz:"Z52UsbCod",gxold:"O52UsbCod",gxvar:"A52UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A52UsbCod=n)},v2z:function(n){n!==undefined&&(gx.O.Z52UsbCod=n)},v2c:function(n){gx.fn.setGridControlValue("USBCOD",n||gx.fn.currentGridRowImpl(32),gx.O.A52UsbCod,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A52UsbCod=this.val(n))},val:function(n){return gx.fn.getGridControlValue("USBCOD",n||gx.fn.currentGridRowImpl(32))},nac:gx.falseFn};this.AV8UsbNroCPF=0;this.ZV8UsbNroCPF=0;this.OV8UsbNroCPF=0;this.Z52UsbCod="";this.O52UsbCod="";this.AV8UsbNroCPF=0;this.AV7UsbCod="";this.A58UsbNroCPF=0;this.A52UsbCod="";this.Events={e148o2_client:["ENTER",!0],e158o1_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID2_nFirstRecordOnPage"},{av:"GRID2_nEOF"},{av:"AV8UsbNroCPF",fld:"vUSBNROCPF",pic:"ZZZZZZZZZZZZZZ9"}],[]];this.EvtParms.LOAD=[[],[]];this.EvtParms.START=[[],[]];this.EvtParms.ENTER=[[{av:"A52UsbCod",fld:"USBCOD",pic:"@!"}],[{av:"AV7UsbCod",fld:"vUSBCOD",pic:"@!"}]];this.EvtParms.VALIDV_USBNROCPF=[[],[]];this.setVCMap("AV7UsbCod","vUSBCOD",0,"char",14,0);t.addRefreshingVar(this.GXValidFnc[29]);t.addRefreshingParm(this.GXValidFnc[29]);this.Initialize()});gx.setParentObj(new hmih083)