gx.evt.autoSkip=false;function selecionaunidade(){this.ServerClass="SelecionaUnidade";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.autoRefresh=true;this.SetStandaloneVars=function(){};this.e13fn2_client=function(){this.executeServerEvent("'NAVEGA'",true,arguments[0])};this.e15fn2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e16fn2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[2,5,8,12,13];
this.GXLastCtrlId=13;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",11,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"selecionaunidade",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Undcod",12,"vUNDCOD","Número","","UndCod","int",0,"px",3,3,"right",null,[],"Undcod","UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit("Nomundep",13,"vNOMUNDEP","Nome","","NomUnDep","char",0,"px",50,50,"left","e13fn2_client",[],"Nomundep","NomUnDep",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE2",grid:0};this.GXValidFnc[5]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={lvl:0,type:"vchar",len:2097152,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRDSCAPRESENTACAOINICIAL",gxz:"ZV24ScrDscApresentacaoInicial",gxold:"OV24ScrDscApresentacaoInicial",gxvar:"AV24ScrDscApresentacaoInicial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV24ScrDscApresentacaoInicial=a},v2z:function(a){gx.O.ZV24ScrDscApresentacaoInicial=a
},v2c:function(){gx.fn.setControlValue("vSCRDSCAPRESENTACAOINICIAL",gx.O.AV24ScrDscApresentacaoInicial,1)},c2v:function(){gx.O.AV24ScrDscApresentacaoInicial=this.val()},val:function(){return gx.fn.getControlValue("vSCRDSCAPRESENTACAOINICIAL")},nac:function(){return false}};this.GXValidFnc[12]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:11,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV19UndCod",gxold:"OV19UndCod",gxvar:"AV19UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV19UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vUNDCOD",gx.fn.currentGridRowImpl(11),gx.O.AV19UndCod,0)},c2v:function(){gx.O.AV19UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("vUNDCOD",gx.fn.currentGridRowImpl(11),".")},nac:function(){return false}};this.GXValidFnc[13]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:0,grid:11,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vNOMUNDEP",gxz:"ZV6NomUnDep",gxold:"OV6NomUnDep",gxvar:"AV6NomUnDep",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6NomUnDep=a
},v2z:function(a){gx.O.ZV6NomUnDep=a},v2c:function(){gx.fn.setGridControlValue("vNOMUNDEP",gx.fn.currentGridRowImpl(11),gx.O.AV6NomUnDep,0)},c2v:function(){gx.O.AV6NomUnDep=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMUNDEP",gx.fn.currentGridRowImpl(11))},nac:function(){return false}};this.AV24ScrDscApresentacaoInicial="";this.ZV24ScrDscApresentacaoInicial="";this.OV24ScrDscApresentacaoInicial="";this.ZV19UndCod=0;this.OV19UndCod=0;this.ZV6NomUnDep="";this.OV6NomUnDep="";this.AV19UndCod=0;
this.AV6NomUnDep="";this.A86CarNro=0;this.A1091CarValText="";this.A926UndNomSigl="";this.A925UndNomComp="";this.A922UndCod=0;this.ServerEvents=["e13fn2_client","e15fn2_client","e16fn2_client"];this.VarControlMap.A925UndNomComp={id:"UNDNOMCOMP",grid:0,type:"char"};this.VarControlMap.A926UndNomSigl={id:"UNDNOMSIGL",grid:0,type:"char"};this.VarControlMap.A922UndCod={id:"UNDCOD",grid:0,type:"int"};this.VarControlMap.AV26ParTipSelecaoUnidade={id:"vPARTIPSELECAOUNIDADE",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"A925UndNomComp"});
this.Grid1Container.addRefreshingVar({rfrVar:"A926UndNomSigl"});this.Grid1Container.addRefreshingVar({rfrVar:"A922UndCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV26ParTipSelecaoUnidade"});this.SetStandaloneVars()}selecionaunidade.prototype=new gx.GxObject;gx.setParentObj(new selecionaunidade());