gx.evt.autoSkip=false;function gx01m0(){this.ServerClass="Gx01M0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV9pCurCod=gx.fn.getIntegerValue("vPCURCOD",".")};this.e13ar2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14ar1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,28,32,33,34,37];this.GXLastCtrlId=37;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx01m0",[],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(169,33,"CURCOD","Curso","","CurCod","int",0,"px",5,5,"right",null,[],169,"CurCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(170,34,"CURNOM","Nome do curso","Selecionar","CurNom","char",0,"px",100,100,"left",null,[],170,"CurNom",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:"TEXTBLOCKCURCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCCURCOD",gxz:"ZV6cCurCod",gxold:"OV6cCurCod",gxvar:"AV6cCurCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cCurCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cCurCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCURCOD",gx.O.AV6cCurCod,0)
},c2v:function(){gx.O.AV6cCurCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCCURCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKCURNOM",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCURNOM",gxz:"ZV7cCurNom",gxold:"OV7cCurNom",gxvar:"AV7cCurNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cCurNom=a},v2z:function(a){gx.O.ZV7cCurNom=a},v2c:function(){gx.fn.setControlValue("vCCURNOM",gx.O.AV7cCurNom,0)
},c2v:function(){gx.O.AV7cCurNom=this.val()},val:function(){return gx.fn.getControlValue("vCCURNOM")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKCURCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCURCAMPO1LIVRE",gxz:"ZV8cCurCampo1Livre",gxold:"OV8cCurCampo1Livre",gxvar:"AV8cCurCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cCurCampo1Livre=a},v2z:function(a){gx.O.ZV8cCurCampo1Livre=a
},v2c:function(){gx.fn.setControlValue("vCCURCAMPO1LIVRE",gx.O.AV8cCurCampo1Livre,0)},c2v:function(){gx.O.AV8cCurCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCCURCAMPO1LIVRE")},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:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,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(31),gx.O.A169CurCod,0)},c2v:function(){gx.O.A169CurCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CURCOD",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,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(31),gx.O.A170CurNom,0)},c2v:function(){gx.O.A170CurNom=this.val()},val:function(){return gx.fn.getGridControlValue("CURNOM",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[37]={fld:"TABLE4",grid:0};this.AV6cCurCod=0;this.ZV6cCurCod=0;this.OV6cCurCod=0;this.AV7cCurNom="";this.ZV7cCurNom="";this.OV7cCurNom="";this.AV8cCurCampo1Livre="";this.ZV8cCurCampo1Livre="";
this.OV8cCurCampo1Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z169CurCod=0;this.O169CurCod=0;this.Z170CurNom="";this.O170CurNom="";this.AV9pCurCod=0;this.A168CurCampo1L="";this.AV5LinkSelection="";this.A169CurCod=0;this.A170CurNom="";this.ServerEvents=["e13ar2_client","e14ar1_client"];this.VarControlMap.AV9pCurCod={id:"vPCURCOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);
this.SetStandaloneVars()}gx01m0.prototype=new gx.GxObject;gx.setParentObj(new gx01m0());