gx.evt.autoSkip=false;function gx0330(){this.ServerClass="Gx0330";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV9pCctCod=gx.fn.getControlValue("vPCCTCOD")};this.e138x2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e148x1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,28,32,33,34,35,38];this.GXLastCtrlId=38;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0330",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",32,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(97,33,"CCTCOD","Centro de custo","","CctCod","char",0,"px",8,8,"left",null,[],97,"CctCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(98,34,"CCTNOMCENT","Nome","Selecionar","CctNomCent","char",0,"px",35,35,"left",null,[],98,"CctNomCent",true,0,false,false);this.Grid1Container.addSingleLineEdit(15,35,"ARECOD","Área","","AreCod","char",0,"px",8,8,"left",null,[],15,"AreCod",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKCCTCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCCTCOD",gxz:"ZV6cCctCod",gxold:"OV6cCctCod",gxvar:"AV6cCctCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cCctCod=a},v2z:function(a){gx.O.ZV6cCctCod=a
},v2c:function(){gx.fn.setControlValue("vCCCTCOD",gx.O.AV6cCctCod,0)},c2v:function(){gx.O.AV6cCctCod=this.val()},val:function(){return gx.fn.getControlValue("vCCCTCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKCCTNOMCENTROCUSTO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCCTNOMCENTROCUSTO",gxz:"ZV7cCctNomCentroCusto",gxold:"OV7cCctNomCentroCusto",gxvar:"AV7cCctNomCentroCusto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cCctNomCentroCusto=a
},v2z:function(a){gx.O.ZV7cCctNomCentroCusto=a},v2c:function(){gx.fn.setControlValue("vCCCTNOMCENTROCUSTO",gx.O.AV7cCctNomCentroCusto,0)},c2v:function(){gx.O.AV7cCctNomCentroCusto=this.val()},val:function(){return gx.fn.getControlValue("vCCCTNOMCENTROCUSTO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKARECOD",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCARECOD",gxz:"ZV8cAreCod",gxold:"OV8cAreCod",gxvar:"AV8cAreCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cAreCod=a
},v2z:function(a){gx.O.ZV8cAreCod=a},v2c:function(){gx.fn.setControlValue("vCARECOD",gx.O.AV8cAreCod,0)},c2v:function(){gx.O.AV8cAreCod=this.val()},val:function(){return gx.fn.getControlValue("vCARECOD")},nac:function(){return false}};this.GXValidFnc[27]={fld:"GROUP2",grid:0};this.GXValidFnc[28]={fld:"TABLE3",grid:0};this.GXValidFnc[32]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CCTCOD",gxz:"Z97CctCod",gxold:"O97CctCod",gxvar:"A97CctCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A97CctCod=a
},v2z:function(a){gx.O.Z97CctCod=a},v2c:function(){gx.fn.setGridControlValue("CCTCOD",gx.fn.currentGridRowImpl(31),gx.O.A97CctCod,0)},c2v:function(){gx.O.A97CctCod=this.val()},val:function(){return gx.fn.getGridControlValue("CCTCOD",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CCTNOMCENT",gxz:"Z98CctNomCent",gxold:"O98CctNomCent",gxvar:"A98CctNomCent",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A98CctNomCent=a
},v2z:function(a){gx.O.Z98CctNomCent=a},v2c:function(){gx.fn.setGridControlValue("CCTNOMCENT",gx.fn.currentGridRowImpl(31),gx.O.A98CctNomCent,0)},c2v:function(){gx.O.A98CctNomCent=this.val()},val:function(){return gx.fn.getGridControlValue("CCTNOMCENT",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ARECOD",gxz:"Z15AreCod",gxold:"O15AreCod",gxvar:"A15AreCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A15AreCod=a
},v2z:function(a){gx.O.Z15AreCod=a},v2c:function(){gx.fn.setGridControlValue("ARECOD",gx.fn.currentGridRowImpl(31),gx.O.A15AreCod,0)},c2v:function(){gx.O.A15AreCod=this.val()},val:function(){return gx.fn.getGridControlValue("ARECOD",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[38]={fld:"TABLE4",grid:0};this.AV6cCctCod="";this.ZV6cCctCod="";this.OV6cCctCod="";this.AV7cCctNomCentroCusto="";this.ZV7cCctNomCentroCusto="";this.OV7cCctNomCentroCusto="";this.AV8cAreCod="";
this.ZV8cAreCod="";this.OV8cAreCod="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z97CctCod="";this.O97CctCod="";this.Z98CctNomCent="";this.O98CctNomCent="";this.Z15AreCod="";this.O15AreCod="";this.AV9pCctCod="";this.AV5LinkSelection="";this.A97CctCod="";this.A98CctNomCent="";this.A15AreCod="";this.ServerEvents=["e138x2_client","e148x1_client"];this.VarControlMap.AV9pCctCod={id:"vPCCTCOD",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.SetStandaloneVars()}gx0330.prototype=new gx.GxObject;gx.setParentObj(new gx0330());