/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:30:53.58
*/
gx.evt.autoSkip=!1;gx.define("himh076",!1,function(){var n,t;this.ServerClass="himh076";this.PackageName="";this.setObjectType("web");this.anyGridBaseTable=!0;this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.AV5CarNro=gx.fn.getIntegerValue("vCARNRO",".")};this.e112n2_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e132n1_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,25,26];this.GXLastCtrlId=26;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",24,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh076",[],!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.Grid1Container;t.addSingleLineEdit(73,25,"CARNRO","Número","","CarNro","int",0,"px",3,3,"right",null,[],73,"CarNro",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit(395,26,"CARNOM","Nome da carta","","CarNom","char",0,"px",30,30,"left",null,[],395,"CarNom",!0,0,!1,!1,"Attribute",1,"");this.Grid1Container.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:"e132n1_client"};n[14]={id:14,fld:"CABECALHOPOPUP_HELP",grid:0,evt:"e142n1_client"};n[16]={id:16,fld:"CABECALHOPOPUP_REFRESH",grid:0,evt:"e152n1_client"};n[19]={id:19,fld:"",grid:0};n[20]={id:20,fld:"",grid:0};n[21]={id:21,fld:"TABLE2",grid:0};n[22]={id:22,fld:"",grid:0};n[23]={id:23,fld:"",grid:0};n[25]={id:25,lvl:2,type:"int",len:3,dec:0,sign:!1,pic:"ZZ9",ro:1,isacc:0,grid:24,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CARNRO",gxz:"Z73CarNro",gxold:"O73CarNro",gxvar:"A73CarNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"number",v2v:function(n){n!==undefined&&(gx.O.A73CarNro=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z73CarNro=gx.num.intval(n))},v2c:function(n){gx.fn.setGridControlValue("CARNRO",n||gx.fn.currentGridRowImpl(24),gx.O.A73CarNro,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A73CarNro=gx.num.intval(this.val(n)))},val:function(n){return gx.fn.getGridIntegerValue("CARNRO",n||gx.fn.currentGridRowImpl(24),".")},nac:gx.falseFn};n[26]={id:26,lvl:2,type:"char",len:30,dec:0,sign:!1,ro:1,isacc:0,grid:24,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CARNOM",gxz:"Z395CarNom",gxold:"O395CarNom",gxvar:"A395CarNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A395CarNom=n)},v2z:function(n){n!==undefined&&(gx.O.Z395CarNom=n)},v2c:function(n){gx.fn.setGridControlValue("CARNOM",n||gx.fn.currentGridRowImpl(24),gx.O.A395CarNom,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A395CarNom=this.val(n))},val:function(n){return gx.fn.getGridControlValue("CARNOM",n||gx.fn.currentGridRowImpl(24))},nac:gx.falseFn};this.Z73CarNro=0;this.O73CarNro=0;this.Z395CarNom="";this.O395CarNom="";this.AV5CarNro=0;this.A73CarNro=0;this.A395CarNom="";this.Events={e112n2_client:["ENTER",!0],e132n1_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"}],[]];this.EvtParms.ENTER=[[{av:"A73CarNro",fld:"CARNRO",pic:"ZZ9"}],[{av:"AV5CarNro",fld:"vCARNRO",pic:"ZZ9"}]];this.setVCMap("AV5CarNro","vCARNRO",0,"int",3,0);this.Initialize()});gx.setParentObj(new himh076)