/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:37:46.89
*/
gx.evt.autoSkip=!1;gx.define("hlsetor",!1,function(){var n,t;this.ServerClass="hlsetor";this.PackageName="";this.setObjectType("web");this.anyGridBaseTable=!0;this.hasEnterEvent=!0;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.AV23StrCod=gx.fn.getIntegerValue("vSTRCOD",".")};this.e12o72_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e14o71_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,28,29,30,31,32];this.GXLastCtrlId=32;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",27,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hlsetor",[],!1,1,!1,!0,15,!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.Grid1Container;t.addSingleLineEdit(299,28,"STRCOD","Setor","","StrCod","int",0,"px",5,5,"right",null,[],299,"StrCod",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit(1110,29,"STRNOM","Nome setor","","StrNom","char",0,"px",50,50,"left",null,[],1110,"StrNom",!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:"e14o71_client"};n[14]={id:14,fld:"CABECALHOPOPUP_HELP",grid:0};n[16]={id:16,fld:"CABECALHOPOPUP_REFRESH",grid:0,evt:"e15o71_client"};n[19]={id:19,fld:"",grid:0};n[20]={id:20,fld:"",grid:0};n[21]={id:21,fld:"",grid:0};n[22]={id:22,fld:"",grid:0};n[23]={id:23,fld:"",grid:0};n[24]={id:24,fld:"TABLE4",grid:0};n[25]={id:25,fld:"",grid:0};n[26]={id:26,fld:"",grid:0};n[28]={id:28,lvl:2,type:"int",len:5,dec:0,sign:!1,pic:"ZZZZ9",ro:1,isacc:0,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"STRCOD",gxz:"Z299StrCod",gxold:"O299StrCod",gxvar:"A299StrCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"number",v2v:function(n){n!==undefined&&(gx.O.A299StrCod=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z299StrCod=gx.num.intval(n))},v2c:function(n){gx.fn.setGridControlValue("STRCOD",n||gx.fn.currentGridRowImpl(27),gx.O.A299StrCod,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A299StrCod=gx.num.intval(this.val(n)))},val:function(n){return gx.fn.getGridIntegerValue("STRCOD",n||gx.fn.currentGridRowImpl(27),".")},nac:gx.falseFn};n[29]={id:29,lvl:2,type:"char",len:50,dec:0,sign:!1,ro:1,isacc:0,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"STRNOM",gxz:"Z1110StrNom",gxold:"O1110StrNom",gxvar:"A1110StrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A1110StrNom=n)},v2z:function(n){n!==undefined&&(gx.O.Z1110StrNom=n)},v2c:function(n){gx.fn.setGridControlValue("STRNOM",n||gx.fn.currentGridRowImpl(27),gx.O.A1110StrNom,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A1110StrNom=this.val(n))},val:function(n){return gx.fn.getGridControlValue("STRNOM",n||gx.fn.currentGridRowImpl(27))},nac:gx.falseFn};n[30]={id:30,fld:"",grid:0};n[31]={id:31,fld:"",grid:0};n[32]={id:32,fld:"TEXTBLOCK1",format:0,grid:0};this.Z299StrCod=0;this.O299StrCod=0;this.Z1110StrNom="";this.O1110StrNom="";this.AV23StrCod=0;this.A299StrCod=0;this.A1110StrNom="";this.Events={e12o72_client:["ENTER",!0],e14o71_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{ctrl:"GRID1",prop:"Rows"}],[]];this.EvtParms.START=[[],[]];this.EvtParms.ENTER=[[{av:"A299StrCod",fld:"STRCOD",pic:"ZZZZ9"}],[{av:"AV23StrCod",fld:"vSTRCOD",pic:"ZZZZ9"}]];this.EvtParms.GRID1_FIRSTPAGE=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{ctrl:"GRID1",prop:"Rows"}],[]];this.EvtParms.GRID1_PREVPAGE=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{ctrl:"GRID1",prop:"Rows"}],[]];this.EvtParms.GRID1_NEXTPAGE=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{ctrl:"GRID1",prop:"Rows"}],[]];this.EvtParms.GRID1_LASTPAGE=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{ctrl:"GRID1",prop:"Rows"}],[]];this.setVCMap("AV23StrCod","vSTRCOD",0,"int",5,0);this.Initialize()});gx.setParentObj(new hlsetor)