text: /**@preserve  GeneXus Java 10_3_12-110051 on December 12, 2020 20:29:55.18
  */
  gx.evt.autoSkip = false;
  gx.define('gx06k0', false, function () {
     this.ServerClass =  "gx06k0" ;
     this.PackageName =  "" ;
     this.setObjectType("web");
     this.setOnAjaxSessionTimeout("Warn");
     this.hasEnterEvent = true;
     this.skipOnEnter = false;
     this.addKeyListener("5", "REFRESH");
     this.addKeyListener("12", "CANCEL");
     this.addKeyListener("1", "HELP");
     this.autoRefresh = true;
     this.SetStandaloneVars=function()
     {
        this.AV13pDepartamentoEmpresaId=gx.fn.getControlValue("vPDEPARTAMENTOEMPRESAID") ;
        this.AV14pDepartamentoCodigo=gx.fn.getControlValue("vPDEPARTAMENTOCODIGO") ;
     };
     this.e131lz2_client=function()
     {
        this.executeServerEvent("ENTER", true, arguments[0], false, false);
     };
     this.e141lz1_client=function()
     {
        this.executeServerEvent("CANCEL", true, null, false, false);
     };
     this.GXValidFnc = [];
     var GXValidFnc = this.GXValidFnc ;
     this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,58,59,62];
     this.GXLastCtrlId =62;
     this.Grid1Container = new gx.grid.grid(this, 2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx06k0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"",false,[1,1,1,1]);
     var Grid1Container = this.Grid1Container;
     Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","","Image","");
     Grid1Container.addSingleLineEdit(2247,53,"DEPARTAMENTOEMPRESAID","Empresa","","DepartamentoEmpresaId","char",0,"px",10,10,"left",null,[],2247,"DepartamentoEmpresaId",true,0,false,false,"Attribute",1,"");
     Grid1Container.addSingleLineEdit(2248,54,"DEPARTAMENTOCODIGO","Código","","DepartamentoCodigo","svchar",0,"px",15,15,"left",null,[],2248,"DepartamentoCodigo",true,0,false,false,"Attribute",1,"");
     Grid1Container.addSingleLineEdit(2249,55,"DEPARTAMENTONOME","Nome","Selecionar","DepartamentoNome","svchar",0,"px",40,40,"left",null,[],2249,"DepartamentoNome",true,0,false,false,"Attribute",1,"");
     Grid1Container.addSingleLineEdit(2250,56,"DEPARTAMENTOUSUARIOALT","Usuário Alteração","","DepartamentoUsuarioAlt","char",0,"px",12,12,"left",null,[],2250,"DepartamentoUsuarioAlt",true,0,false,false,"Attribute",1,"");
     Grid1Container.addSingleLineEdit(2251,57,"DEPARTAMENTODATAHORAALT","Data/Hora Última Alteração","","DepartamentoDataHoraAlt","dtime",0,"px",16,16,"right",null,[],2251,"DepartamentoDataHoraAlt",true,5,false,false,"Attribute",1,"");
     Grid1Container.addSingleLineEdit(2280,58,"RESPONSAVELPATEMPRESAID","Empresa","","ResponsavelPatEmpresaId","char",0,"px",10,10,"left",null,[],2280,"ResponsavelPatEmpresaId",true,0,false,false,"Attribute",1,"");
     Grid1Container.addSingleLineEdit(2281,59,"RESPONSAVELPATID","Código","","ResponsavelPatId","int",0,"px",4,4,"right",null,[],2281,"ResponsavelPatId",true,0,false,false,"Attribute",1,"");
     this.setGrid(Grid1Container);
     GXValidFnc[2]={fld:"TABLE1",grid:0};
     GXValidFnc[8]={fld:"GROUP1",grid:0};
     GXValidFnc[9]={fld:"TABLE2",grid:0};
     GXValidFnc[12]={fld:"TEXTBLOCKDEPARTAMENTOEMPRESAID", format:0,grid:0};
     GXValidFnc[14]={lvl:0,type:"char",len:10,dec:0,sign:false,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDEPARTAMENTOEMPRESAID",gxz:"ZV6cDepartamentoEmpresaId",gxold:"OV6cDepartamentoEmpresaId",gxvar:"AV6cDepartamentoEmpresaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV6cDepartamentoEmpresaId=Value},v2z:function(Value){gx.O.ZV6cDepartamentoEmpresaId=Value},v2c:function(){gx.fn.setControlValue("vCDEPARTAMENTOEMPRESAID",gx.O.AV6cDepartamentoEmpresaId,0)},c2v:function(){gx.O.AV6cDepartamentoEmpresaId=this.val()},val:function(){return gx.fn.getControlValue("vCDEPARTAMENTOEMPRESAID")},nac:gx.falseFn};
     GXValidFnc[17]={fld:"TEXTBLOCKDEPARTAMENTOCODIGO", format:0,grid:0};
     GXValidFnc[19]={lvl:0,type:"svchar",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDEPARTAMENTOCODIGO",gxz:"ZV7cDepartamentoCodigo",gxold:"OV7cDepartamentoCodigo",gxvar:"AV7cDepartamentoCodigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV7cDepartamentoCodigo=Value},v2z:function(Value){gx.O.ZV7cDepartamentoCodigo=Value},v2c:function(){gx.fn.setControlValue("vCDEPARTAMENTOCODIGO",gx.O.AV7cDepartamentoCodigo,0)},c2v:function(){gx.O.AV7cDepartamentoCodigo=this.val()},val:function(){return gx.fn.getControlValue("vCDEPARTAMENTOCODIGO")},nac:gx.falseFn};
     GXValidFnc[22]={fld:"TEXTBLOCKDEPARTAMENTONOME", format:0,grid:0};
     GXValidFnc[24]={lvl:0,type:"svchar",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDEPARTAMENTONOME",gxz:"ZV8cDepartamentoNome",gxold:"OV8cDepartamentoNome",gxvar:"AV8cDepartamentoNome",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV8cDepartamentoNome=Value},v2z:function(Value){gx.O.ZV8cDepartamentoNome=Value},v2c:function(){gx.fn.setControlValue("vCDEPARTAMENTONOME",gx.O.AV8cDepartamentoNome,0)},c2v:function(){gx.O.AV8cDepartamentoNome=this.val()},val:function(){return gx.fn.getControlValue("vCDEPARTAMENTONOME")},nac:gx.falseFn};
     GXValidFnc[27]={fld:"TEXTBLOCKDEPARTAMENTOUSUARIOALT", format:0,grid:0};
     GXValidFnc[29]={lvl:0,type:"char",len:12,dec:0,sign:false,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDEPARTAMENTOUSUARIOALT",gxz:"ZV9cDepartamentoUsuarioAlt",gxold:"OV9cDepartamentoUsuarioAlt",gxvar:"AV9cDepartamentoUsuarioAlt",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV9cDepartamentoUsuarioAlt=Value},v2z:function(Value){gx.O.ZV9cDepartamentoUsuarioAlt=Value},v2c:function(){gx.fn.setControlValue("vCDEPARTAMENTOUSUARIOALT",gx.O.AV9cDepartamentoUsuarioAlt,0)},c2v:function(){gx.O.AV9cDepartamentoUsuarioAlt=this.val()},val:function(){return gx.fn.getControlValue("vCDEPARTAMENTOUSUARIOALT")},nac:gx.falseFn};
     GXValidFnc[32]={fld:"TEXTBLOCKDEPARTAMENTODATAHORAALT", format:0,grid:0};
     GXValidFnc[34]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDEPARTAMENTODATAHORAALT",gxz:"ZV10cDepartamentoDataHoraAlt",gxold:"OV10cDepartamentoDataHoraAlt",gxvar:"AV10cDepartamentoDataHoraAlt",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV10cDepartamentoDataHoraAlt=gx.fn.toDatetimeValue(Value)},v2z:function(Value){gx.O.ZV10cDepartamentoDataHoraAlt=gx.fn.toDatetimeValue(Value)},v2c:function(){gx.fn.setControlValue("vCDEPARTAMENTODATAHORAALT",gx.O.AV10cDepartamentoDataHoraAlt,0)},c2v:function(){gx.O.AV10cDepartamentoDataHoraAlt=gx.fn.toDatetimeValue(this.val())},val:function(){return gx.fn.getDateTimeValue("vCDEPARTAMENTODATAHORAALT")},nac:gx.falseFn};
     GXValidFnc[37]={fld:"TEXTBLOCKRESPONSAVELPATEMPRESAID", format:0,grid:0};
     GXValidFnc[39]={lvl:0,type:"char",len:10,dec:0,sign:false,pic:"@!",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCRESPONSAVELPATEMPRESAID",gxz:"ZV11cResponsavelPatEmpresaId",gxold:"OV11cResponsavelPatEmpresaId",gxvar:"AV11cResponsavelPatEmpresaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV11cResponsavelPatEmpresaId=Value},v2z:function(Value){gx.O.ZV11cResponsavelPatEmpresaId=Value},v2c:function(){gx.fn.setControlValue("vCRESPONSAVELPATEMPRESAID",gx.O.AV11cResponsavelPatEmpresaId,0)},c2v:function(){gx.O.AV11cResponsavelPatEmpresaId=this.val()},val:function(){return gx.fn.getControlValue("vCRESPONSAVELPATEMPRESAID")},nac:gx.falseFn};
     GXValidFnc[42]={fld:"TEXTBLOCKRESPONSAVELPATID", format:0,grid:0};
     GXValidFnc[44]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCRESPONSAVELPATID",gxz:"ZV12cResponsavelPatId",gxold:"OV12cResponsavelPatId",gxvar:"AV12cResponsavelPatId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV12cResponsavelPatId=gx.num.intval(Value)},v2z:function(Value){gx.O.ZV12cResponsavelPatId=gx.num.intval(Value)},v2c:function(){gx.fn.setControlValue("vCRESPONSAVELPATID",gx.O.AV12cResponsavelPatId,0)},c2v:function(){gx.O.AV12cResponsavelPatId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("vCRESPONSAVELPATID",'.')},nac:gx.falseFn};
     GXValidFnc[47]={fld:"GROUP2",grid:0};
     GXValidFnc[48]={fld:"TABLE3",grid:0};
     GXValidFnc[52]={lvl:2,type:"bits",len:1024,dec:0,sign:false,ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',v2v:function(Value){gx.O.AV5LinkSelection=Value},v2z:function(Value){gx.O.ZV5LinkSelection=Value},v2c:function(row){gx.fn.setGridMultimediaValue("vLINKSELECTION",row || gx.fn.currentGridRowImpl(51),gx.O.AV5LinkSelection,gx.O.AV17Linkselection_GXI)},c2v:function(){gx.O.AV17Linkselection_GXI=this.val_GXI();gx.O.AV5LinkSelection=this.val()},val:function(row){return gx.fn.getGridControlValue("vLINKSELECTION",row || gx.fn.currentGridRowImpl(51))},val_GXI:function(row){return gx.fn.getGridControlValue("vLINKSELECTION_GXI",row || gx.fn.currentGridRowImpl(51))}, gxvar_GXI:'AV17Linkselection_GXI',nac:gx.falseFn};
     GXValidFnc[53]={lvl:2,type:"char",len:10,dec:0,sign:false,pic:"@!",ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DEPARTAMENTOEMPRESAID",gxz:"Z2247DepartamentoEmpresaId",gxold:"O2247DepartamentoEmpresaId",gxvar:"A2247DepartamentoEmpresaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){gx.O.A2247DepartamentoEmpresaId=Value},v2z:function(Value){gx.O.Z2247DepartamentoEmpresaId=Value},v2c:function(row){gx.fn.setGridControlValue("DEPARTAMENTOEMPRESAID",row || gx.fn.currentGridRowImpl(51),gx.O.A2247DepartamentoEmpresaId,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){gx.O.A2247DepartamentoEmpresaId=this.val()},val:function(row){return gx.fn.getGridControlValue("DEPARTAMENTOEMPRESAID",row || gx.fn.currentGridRowImpl(51))},nac:gx.falseFn};
     GXValidFnc[54]={lvl:2,type:"svchar",len:15,dec:0,sign:false,ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DEPARTAMENTOCODIGO",gxz:"Z2248DepartamentoCodigo",gxold:"O2248DepartamentoCodigo",gxvar:"A2248DepartamentoCodigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){gx.O.A2248DepartamentoCodigo=Value},v2z:function(Value){gx.O.Z2248DepartamentoCodigo=Value},v2c:function(row){gx.fn.setGridControlValue("DEPARTAMENTOCODIGO",row || gx.fn.currentGridRowImpl(51),gx.O.A2248DepartamentoCodigo,0)},c2v:function(){gx.O.A2248DepartamentoCodigo=this.val()},val:function(row){return gx.fn.getGridControlValue("DEPARTAMENTOCODIGO",row || gx.fn.currentGridRowImpl(51))},nac:gx.falseFn};
     GXValidFnc[55]={lvl:2,type:"svchar",len:40,dec:0,sign:false,ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DEPARTAMENTONOME",gxz:"Z2249DepartamentoNome",gxold:"O2249DepartamentoNome",gxvar:"A2249DepartamentoNome",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){gx.O.A2249DepartamentoNome=Value},v2z:function(Value){gx.O.Z2249DepartamentoNome=Value},v2c:function(row){gx.fn.setGridControlValue("DEPARTAMENTONOME",row || gx.fn.currentGridRowImpl(51),gx.O.A2249DepartamentoNome,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){gx.O.A2249DepartamentoNome=this.val()},val:function(row){return gx.fn.getGridControlValue("DEPARTAMENTONOME",row || gx.fn.currentGridRowImpl(51))},nac:gx.falseFn};
     GXValidFnc[56]={lvl:2,type:"char",len:12,dec:0,sign:false,pic:"@!",ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DEPARTAMENTOUSUARIOALT",gxz:"Z2250DepartamentoUsuarioAlt",gxold:"O2250DepartamentoUsuarioAlt",gxvar:"A2250DepartamentoUsuarioAlt",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){gx.O.A2250DepartamentoUsuarioAlt=Value},v2z:function(Value){gx.O.Z2250DepartamentoUsuarioAlt=Value},v2c:function(row){gx.fn.setGridControlValue("DEPARTAMENTOUSUARIOALT",row || gx.fn.currentGridRowImpl(51),gx.O.A2250DepartamentoUsuarioAlt,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){gx.O.A2250DepartamentoUsuarioAlt=this.val()},val:function(row){return gx.fn.getGridControlValue("DEPARTAMENTOUSUARIOALT",row || gx.fn.currentGridRowImpl(51))},nac:gx.falseFn};
     GXValidFnc[57]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DEPARTAMENTODATAHORAALT",gxz:"Z2251DepartamentoDataHoraAlt",gxold:"O2251DepartamentoDataHoraAlt",gxvar:"A2251DepartamentoDataHoraAlt",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',v2v:function(Value){gx.O.A2251DepartamentoDataHoraAlt=gx.fn.toDatetimeValue(Value)},v2z:function(Value){gx.O.Z2251DepartamentoDataHoraAlt=gx.fn.toDatetimeValue(Value)},v2c:function(row){gx.fn.setGridControlValue("DEPARTAMENTODATAHORAALT",row || gx.fn.currentGridRowImpl(51),gx.O.A2251DepartamentoDataHoraAlt,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){gx.O.A2251DepartamentoDataHoraAlt=gx.fn.toDatetimeValue(this.val())},val:function(row){return gx.fn.getGridDateTimeValue("DEPARTAMENTODATAHORAALT",row || gx.fn.currentGridRowImpl(51))},nac:gx.falseFn};
     GXValidFnc[58]={lvl:2,type:"char",len:10,dec:0,sign:false,pic:"@!",ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RESPONSAVELPATEMPRESAID",gxz:"Z2280ResponsavelPatEmpresaId",gxold:"O2280ResponsavelPatEmpresaId",gxvar:"A2280ResponsavelPatEmpresaId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',autoCorrect:"1",v2v:function(Value){gx.O.A2280ResponsavelPatEmpresaId=Value},v2z:function(Value){gx.O.Z2280ResponsavelPatEmpresaId=Value},v2c:function(row){gx.fn.setGridControlValue("RESPONSAVELPATEMPRESAID",row || gx.fn.currentGridRowImpl(51),gx.O.A2280ResponsavelPatEmpresaId,0);if (typeof(this.dom_hdl) == 'function') this.dom_hdl.call(gx.O);},c2v:function(){gx.O.A2280ResponsavelPatEmpresaId=this.val()},val:function(row){return gx.fn.getGridControlValue("RESPONSAVELPATEMPRESAID",row || gx.fn.currentGridRowImpl(51))},nac:gx.falseFn};
     GXValidFnc[59]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,isacc:0,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RESPONSAVELPATID",gxz:"Z2281ResponsavelPatId",gxold:"O2281ResponsavelPatId",gxvar:"A2281ResponsavelPatId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:'text',v2v:function(Value){gx.O.A2281ResponsavelPatId=gx.num.intval(Value)},v2z:function(Value){gx.O.Z2281ResponsavelPatId=gx.num.intval(Value)},v2c:function(row){gx.fn.setGridControlValue("RESPONSAVELPATID",row || gx.fn.currentGridRowImpl(51),gx.O.A2281ResponsavelPatId,0)},c2v:function(){gx.O.A2281ResponsavelPatId=gx.num.intval(this.val())},val:function(row){return gx.fn.getGridIntegerValue("RESPONSAVELPATID",row || gx.fn.currentGridRowImpl(51),'.')},nac:gx.falseFn};
     GXValidFnc[62]={fld:"TABLE4",grid:0};
     this.AV6cDepartamentoEmpresaId = "" ;
     this.ZV6cDepartamentoEmpresaId = "" ;
     this.OV6cDepartamentoEmpresaId = "" ;
     this.AV7cDepartamentoCodigo = "" ;
     this.ZV7cDepartamentoCodigo = "" ;
     this.OV7cDepartamentoCodigo = "" ;
     this.AV8cDepartamentoNome = "" ;
     this.ZV8cDepartamentoNome = "" ;
     this.OV8cDepartamentoNome = "" ;
     this.AV9cDepartamentoUsuarioAlt = "" ;
     this.ZV9cDepartamentoUsuarioAlt = "" ;
     this.OV9cDepartamentoUsuarioAlt = "" ;
     this.AV10cDepartamentoDataHoraAlt = gx.date.nullDate() ;
     this.ZV10cDepartamentoDataHoraAlt = gx.date.nullDate() ;
     this.OV10cDepartamentoDataHoraAlt = gx.date.nullDate() ;
     this.AV11cResponsavelPatEmpresaId = "" ;
     this.ZV11cResponsavelPatEmpresaId = "" ;
     this.OV11cResponsavelPatEmpresaId = "" ;
     this.AV12cResponsavelPatId = 0 ;
     this.ZV12cResponsavelPatId = 0 ;
     this.OV12cResponsavelPatId = 0 ;
     this.ZV5LinkSelection = "" ;
     this.OV5LinkSelection = "" ;
     this.Z2247DepartamentoEmpresaId = "" ;
     this.O2247DepartamentoEmpresaId = "" ;
     this.Z2248DepartamentoCodigo = "" ;
     this.O2248DepartamentoCodigo = "" ;
     this.Z2249DepartamentoNome = "" ;
     this.O2249DepartamentoNome = "" ;
     this.Z2250DepartamentoUsuarioAlt = "" ;
     this.O2250DepartamentoUsuarioAlt = "" ;
     this.Z2251DepartamentoDataHoraAlt = gx.date.nullDate() ;
     this.O2251DepartamentoDataHoraAlt = gx.date.nullDate() ;
     this.Z2280ResponsavelPatEmpresaId = "" ;
     this.O2280ResponsavelPatEmpresaId = "" ;
     this.Z2281ResponsavelPatId = 0 ;
     this.O2281ResponsavelPatId = 0 ;
     this.AV6cDepartamentoEmpresaId = "" ;
     this.AV7cDepartamentoCodigo = "" ;
     this.AV8cDepartamentoNome = "" ;
     this.AV9cDepartamentoUsuarioAlt = "" ;
     this.AV10cDepartamentoDataHoraAlt = gx.date.nullDate() ;
     this.AV11cResponsavelPatEmpresaId = "" ;
     this.AV12cResponsavelPatId = 0 ;
     this.AV13pDepartamentoEmpresaId = "" ;
     this.AV14pDepartamentoCodigo = "" ;
     this.AV5LinkSelection = "" ;
     this.A2247DepartamentoEmpresaId = "" ;
     this.A2248DepartamentoCodigo = "" ;
     this.A2249DepartamentoNome = "" ;
     this.A2250DepartamentoUsuarioAlt = "" ;
     this.A2251DepartamentoDataHoraAlt = gx.date.nullDate() ;
     this.A2280ResponsavelPatEmpresaId = "" ;
     this.A2281ResponsavelPatId = 0 ;
     this.Events = {"e131lz2_client": ["ENTER", true] ,"e141lz1_client": ["CANCEL", true]};
     this.EvtParms["REFRESH"] = [[{av:'GRID1_nFirstRecordOnPage'},{av:'GRID1_nEOF'},{av:'subGrid1_Rows'},{av:'AV6cDepartamentoEmpresaId',fld:'vCDEPARTAMENTOEMPRESAID'},{av:'AV7cDepartamentoCodigo',fld:'vCDEPARTAMENTOCODIGO'},{av:'AV8cDepartamentoNome',fld:'vCDEPARTAMENTONOME'},{av:'AV9cDepartamentoUsuarioAlt',fld:'vCDEPARTAMENTOUSUARIOALT'},{av:'AV10cDepartamentoDataHoraAlt',fld:'vCDEPARTAMENTODATAHORAALT'},{av:'AV11cResponsavelPatEmpresaId',fld:'vCRESPONSAVELPATEMPRESAID'},{av:'AV12cResponsavelPatId',fld:'vCRESPONSAVELPATID'}],[]];
     this.EvtParms["LOAD"] = [[],[{av:'AV5LinkSelection',fld:'vLINKSELECTION'}]];
     this.EvtParms["ENTER"] = [[{av:'A2247DepartamentoEmpresaId',fld:'DEPARTAMENTOEMPRESAID'},{av:'A2248DepartamentoCodigo',fld:'DEPARTAMENTOCODIGO'}],[{av:'AV13pDepartamentoEmpresaId',fld:'vPDEPARTAMENTOEMPRESAID'},{av:'AV14pDepartamentoCodigo',fld:'vPDEPARTAMENTOCODIGO'}]];
     this.EvtParms["GRID1_FIRSTPAGE"] = [[{av:'GRID1_nFirstRecordOnPage'},{av:'GRID1_nEOF'},{av:'subGrid1_Rows'},{av:'AV6cDepartamentoEmpresaId',fld:'vCDEPARTAMENTOEMPRESAID'},{av:'AV7cDepartamentoCodigo',fld:'vCDEPARTAMENTOCODIGO'},{av:'AV8cDepartamentoNome',fld:'vCDEPARTAMENTONOME'},{av:'AV9cDepartamentoUsuarioAlt',fld:'vCDEPARTAMENTOUSUARIOALT'},{av:'AV10cDepartamentoDataHoraAlt',fld:'vCDEPARTAMENTODATAHORAALT'},{av:'AV11cResponsavelPatEmpresaId',fld:'vCRESPONSAVELPATEMPRESAID'},{av:'AV12cResponsavelPatId',fld:'vCRESPONSAVELPATID'}],[]];
     this.EvtParms["GRID1_PREVPAGE"] = [[{av:'GRID1_nFirstRecordOnPage'},{av:'GRID1_nEOF'},{av:'subGrid1_Rows'},{av:'AV6cDepartamentoEmpresaId',fld:'vCDEPARTAMENTOEMPRESAID'},{av:'AV7cDepartamentoCodigo',fld:'vCDEPARTAMENTOCODIGO'},{av:'AV8cDepartamentoNome',fld:'vCDEPARTAMENTONOME'},{av:'AV9cDepartamentoUsuarioAlt',fld:'vCDEPARTAMENTOUSUARIOALT'},{av:'AV10cDepartamentoDataHoraAlt',fld:'vCDEPARTAMENTODATAHORAALT'},{av:'AV11cResponsavelPatEmpresaId',fld:'vCRESPONSAVELPATEMPRESAID'},{av:'AV12cResponsavelPatId',fld:'vCRESPONSAVELPATID'}],[]];
     this.EvtParms["GRID1_NEXTPAGE"] = [[{av:'GRID1_nFirstRecordOnPage'},{av:'GRID1_nEOF'},{av:'subGrid1_Rows'},{av:'AV6cDepartamentoEmpresaId',fld:'vCDEPARTAMENTOEMPRESAID'},{av:'AV7cDepartamentoCodigo',fld:'vCDEPARTAMENTOCODIGO'},{av:'AV8cDepartamentoNome',fld:'vCDEPARTAMENTONOME'},{av:'AV9cDepartamentoUsuarioAlt',fld:'vCDEPARTAMENTOUSUARIOALT'},{av:'AV10cDepartamentoDataHoraAlt',fld:'vCDEPARTAMENTODATAHORAALT'},{av:'AV11cResponsavelPatEmpresaId',fld:'vCRESPONSAVELPATEMPRESAID'},{av:'AV12cResponsavelPatId',fld:'vCRESPONSAVELPATID'}],[]];
     this.EvtParms["GRID1_LASTPAGE"] = [[{av:'GRID1_nFirstRecordOnPage'},{av:'GRID1_nEOF'},{av:'subGrid1_Rows'},{av:'AV6cDepartamentoEmpresaId',fld:'vCDEPARTAMENTOEMPRESAID'},{av:'AV7cDepartamentoCodigo',fld:'vCDEPARTAMENTOCODIGO'},{av:'AV8cDepartamentoNome',fld:'vCDEPARTAMENTONOME'},{av:'AV9cDepartamentoUsuarioAlt',fld:'vCDEPARTAMENTOUSUARIOALT'},{av:'AV10cDepartamentoDataHoraAlt',fld:'vCDEPARTAMENTODATAHORAALT'},{av:'AV11cResponsavelPatEmpresaId',fld:'vCRESPONSAVELPATEMPRESAID'},{av:'AV12cResponsavelPatId',fld:'vCRESPONSAVELPATID'}],[]];
     this.setVCMap("AV13pDepartamentoEmpresaId", "vPDEPARTAMENTOEMPRESAID", 0, "char");
     this.setVCMap("AV14pDepartamentoCodigo", "vPDEPARTAMENTOCODIGO", 0, "svchar");
     Grid1Container.addRefreshingVar(this.GXValidFnc[14]);
     Grid1Container.addRefreshingVar(this.GXValidFnc[19]);
     Grid1Container.addRefreshingVar(this.GXValidFnc[24]);
     Grid1Container.addRefreshingVar(this.GXValidFnc[29]);
     Grid1Container.addRefreshingVar(this.GXValidFnc[34]);
     Grid1Container.addRefreshingVar(this.GXValidFnc[39]);
     Grid1Container.addRefreshingVar(this.GXValidFnc[44]);
     this.InitStandaloneVars( );
  });
  gx.setParentObj(new gx06k0());
  