gx.evt.autoSkip=false;function hlcursos(){this.ServerClass="HLCursos";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV8CurCodPar=gx.fn.getIntegerValue("vCURCODPAR",".")};this.Valid_Curnom=function(){try{if(gx.fn.currentGridRowImpl(26)===0){return true}var a=gx.util.balloon.getNew("CURNOM",gx.fn.currentGridRowImpl(26));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e130j2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e150j1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,15,18,21,23,27,28];this.GXLastCtrlId=28;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hlcursos",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(169,27,"CURCOD","Curso","","CurCod","int",0,"px",5,5,"right",null,[],169,"CurCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(170,28,"CURNOM","Nome do curso","","CurNom","char",0,"px",100,100,"left",null,[],170,"CurNom",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[18]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV14NomeContendo",gxold:"OV14NomeContendo",gxvar:"AV14NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14NomeContendo=a
},v2z:function(a){gx.O.ZV14NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV14NomeContendo,0)},c2v:function(){gx.O.AV14NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CURCOD",gxz:"Z169CurCod",gxold:"O169CurCod",gxvar:"A169CurCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A169CurCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z169CurCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CURCOD",gx.fn.currentGridRowImpl(26),gx.O.A169CurCod,0)},c2v:function(){gx.O.A169CurCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CURCOD",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:this.Valid_Curnom,isvalid:null,fld:"CURNOM",gxz:"Z170CurNom",gxold:"O170CurNom",gxvar:"A170CurNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A170CurNom=a
},v2z:function(a){gx.O.Z170CurNom=a},v2c:function(){gx.fn.setGridControlValue("CURNOM",gx.fn.currentGridRowImpl(26),gx.O.A170CurNom,0)},c2v:function(){gx.O.A170CurNom=this.val()},val:function(){return gx.fn.getGridControlValue("CURNOM",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.AV14NomeContendo="";this.ZV14NomeContendo="";this.OV14NomeContendo="";this.Z169CurCod=0;this.O169CurCod=0;this.Z170CurNom="";this.O170CurNom="";this.AV8CurCodPar=0;this.A169CurCod=0;this.A170CurNom="";
this.ServerEvents=["e130j2_client","e150j1_client"];this.VarControlMap.AV8CurCodPar={id:"vCURCODPAR",grid:0,type:"int"};this.VarControlMap.AV15CharDB={id:"vCHARDB",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[23]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV15CharDB"});this.SetStandaloneVars()}hlcursos.prototype=new gx.GxObject;gx.setParentObj(new hlcursos());