/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:29:21.1
*/
gx.evt.autoSkip=!1;gx.define("hlcateg",!1,function(){var n,t;this.ServerClass="hlcateg";this.PackageName="";this.setObjectType("web");this.anyGridBaseTable=!0;this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.AV6CgaCod=gx.fn.getControlValue("vCGACOD")};this.e110v2_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e130v1_client=function(){return this.executeServerEvent("CANCEL",!0,null,!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20];this.GXLastCtrlId=20;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",18,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hlcateg",[],!1,1,!1,!0,12,!0,!1,!1,"",0,"px",0,"px","Novo registro",!0,!1,!1,null,null,!1,"",!1,[1,1,1,1],!1,0,!0,!1);t=this.Subfile1Container;t.addSingleLineEdit(196,19,"CGACOD","Categoria","","CgaCod","char",94,"px",12,12,"left",null,[],196,"CgaCod",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit(426,20,"CGADSC","Descrição","","CgaDsc","char",570,"px",100,80,"left",null,[],426,"CgaDsc",!0,0,!1,!1,"Attribute",1,"");this.Subfile1Container.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:"TABLE1",grid:0};n[7]={id:7,fld:"",grid:0};n[8]={id:8,fld:"",grid:0};n[9]={id:9,fld:"BTN_ENTER1",grid:0,evt:"e140v1_client"};n[10]={id:10,fld:"",grid:0};n[11]={id:11,fld:"BUTTON1",grid:0,evt:"e130v1_client"};n[12]={id:12,fld:"",grid:0};n[13]={id:13,fld:"BTN_HELP1",grid:0,evt:"e150v1_client"};n[14]={id:14,fld:"",grid:0};n[15]={id:15,fld:"TEXTBLOCK1",format:0,grid:0};n[16]={id:16,fld:"",grid:0};n[17]={id:17,fld:"",grid:0};n[19]={id:19,lvl:2,type:"char",len:12,dec:0,sign:!1,ro:1,isacc:0,grid:18,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CGACOD",gxz:"Z196CgaCod",gxold:"O196CgaCod",gxvar:"A196CgaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A196CgaCod=n)},v2z:function(n){n!==undefined&&(gx.O.Z196CgaCod=n)},v2c:function(n){gx.fn.setGridControlValue("CGACOD",n||gx.fn.currentGridRowImpl(18),gx.O.A196CgaCod,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A196CgaCod=this.val(n))},val:function(n){return gx.fn.getGridControlValue("CGACOD",n||gx.fn.currentGridRowImpl(18))},nac:gx.falseFn};n[20]={id:20,lvl:2,type:"char",len:100,dec:0,sign:!1,ro:1,isacc:0,grid:18,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CGADSC",gxz:"Z426CgaDsc",gxold:"O426CgaDsc",gxvar:"A426CgaDsc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A426CgaDsc=n)},v2z:function(n){n!==undefined&&(gx.O.Z426CgaDsc=n)},v2c:function(n){gx.fn.setGridControlValue("CGADSC",n||gx.fn.currentGridRowImpl(18),gx.O.A426CgaDsc,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A426CgaDsc=this.val(n))},val:function(n){return gx.fn.getGridControlValue("CGADSC",n||gx.fn.currentGridRowImpl(18))},nac:gx.falseFn};this.Z196CgaCod="";this.O196CgaCod="";this.Z426CgaDsc="";this.O426CgaDsc="";this.AV6CgaCod="";this.A196CgaCod="";this.A426CgaDsc="";this.Events={e110v2_client:["ENTER",!0],e130v1_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"SUBFILE1_nFirstRecordOnPage"},{av:"SUBFILE1_nEOF"},{ctrl:"SUBFILE1",prop:"Rows"}],[]];this.EvtParms.ENTER=[[{av:"A196CgaCod",fld:"CGACOD",pic:""}],[{av:"AV6CgaCod",fld:"vCGACOD",pic:""}]];this.EvtParms.SUBFILE1_FIRSTPAGE=[[{av:"SUBFILE1_nFirstRecordOnPage"},{av:"SUBFILE1_nEOF"},{ctrl:"SUBFILE1",prop:"Rows"}],[]];this.EvtParms.SUBFILE1_PREVPAGE=[[{av:"SUBFILE1_nFirstRecordOnPage"},{av:"SUBFILE1_nEOF"},{ctrl:"SUBFILE1",prop:"Rows"}],[]];this.EvtParms.SUBFILE1_NEXTPAGE=[[{av:"SUBFILE1_nFirstRecordOnPage"},{av:"SUBFILE1_nEOF"},{ctrl:"SUBFILE1",prop:"Rows"}],[]];this.EvtParms.SUBFILE1_LASTPAGE=[[{av:"SUBFILE1_nFirstRecordOnPage"},{av:"SUBFILE1_nEOF"},{ctrl:"SUBFILE1",prop:"Rows"}],[]];this.setVCMap("AV6CgaCod","vCGACOD",0,"char",12,0);this.Initialize()});gx.setParentObj(new hlcateg)