gx.evt.autoSkip=false;function himh242(){this.ServerClass="HImh242";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){};this.Valid_Curnom=function(){try{if(gx.fn.currentGridRowImpl(32)===0){return true}var a=gx.util.balloon.getNew("CURNOM",gx.fn.currentGridRowImpl(32));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e16i32_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("timt010",[this.A169CurCod]),[]);
this.refreshOutputs([])};this.e12i32_client=function(){this.executeServerEvent("'NOVO'",false)};this.e13i32_client=function(){this.executeServerEvent("'SEGUIR PARA'",false)};this.e17i32_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e18i31_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,17,21,24,27,29,33,34,35,36];this.GXLastCtrlId=36;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",32,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh242",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Subfile1Container.addBitmap("&Grdimgeditar","vGRDIMGEDITAR",33,0,"px",17,"px",null,"","");this.Subfile1Container.addSingleLineEdit(169,34,"CURCOD","Curso","","CurCod","int",40,"px",5,5,"right",null,[],169,"CurCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(170,35,"CURNOM","Nome do curso","","CurNom","char",410,"px",100,100,"left",null,[],170,"CurNom",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Grdpopupdisciplinas",36,"vGRDPOPUPDISCIPLINAS","","","GrdPopUpDisciplinas","char",110,"px",20,20,"left","e16i32_client",[],"Grdpopupdisciplinas","GrdPopUpDisciplinas",true,0,false,false);
this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[17]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRCODCURSONAVEGAR",gxz:"ZV16ScrCodCursoNavegar",gxold:"OV16ScrCodCursoNavegar",gxvar:"AV16ScrCodCursoNavegar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16ScrCodCursoNavegar=gx.num.intval(a)},v2z:function(a){gx.O.ZV16ScrCodCursoNavegar=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vSCRCODCURSONAVEGAR",gx.O.AV16ScrCodCursoNavegar,0)},c2v:function(){gx.O.AV16ScrCodCursoNavegar=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRCODCURSONAVEGAR",".")},nac:function(){return false}};this.GXValidFnc[21]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[24]={fld:"TABLE2",grid:0};this.GXValidFnc[27]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[29]={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[33]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDIMGEDITAR",gxz:"ZV17GrdImgEditar",gxold:"OV17GrdImgEditar",gxvar:"AV17GrdImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17GrdImgEditar=a
},v2z:function(a){gx.O.ZV17GrdImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV17GrdImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDIMGEDITAR",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:32,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(32),gx.O.A169CurCod,0)},c2v:function(){gx.O.A169CurCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CURCOD",gx.fn.currentGridRowImpl(32),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:32,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(32),gx.O.A170CurNom,0)},c2v:function(){gx.O.A170CurNom=this.val()},val:function(){return gx.fn.getGridControlValue("CURNOM",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:0,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDPOPUPDISCIPLINAS",gxz:"ZV21GrdPopUpDisciplinas",gxold:"OV21GrdPopUpDisciplinas",gxvar:"AV21GrdPopUpDisciplinas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21GrdPopUpDisciplinas=a
},v2z:function(a){gx.O.ZV21GrdPopUpDisciplinas=a},v2c:function(){gx.fn.setGridControlValue("vGRDPOPUPDISCIPLINAS",gx.fn.currentGridRowImpl(32),gx.O.AV21GrdPopUpDisciplinas,0)},c2v:function(){gx.O.AV21GrdPopUpDisciplinas=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDPOPUPDISCIPLINAS",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.AV16ScrCodCursoNavegar=0;this.ZV16ScrCodCursoNavegar=0;this.OV16ScrCodCursoNavegar=0;this.AV14NomeContendo="";this.ZV14NomeContendo="";
this.OV14NomeContendo="";this.ZV17GrdImgEditar="";this.OV17GrdImgEditar="";this.Z169CurCod=0;this.O169CurCod=0;this.Z170CurNom="";this.O170CurNom="";this.ZV21GrdPopUpDisciplinas="";this.OV21GrdPopUpDisciplinas="";this.AV17GrdImgEditar="";this.A169CurCod=0;this.A170CurNom="";this.AV21GrdPopUpDisciplinas="";this.ServerEvents=["e12i32_client","e13i32_client","e17i32_client","e18i31_client"];this.VarControlMap.AV15CharDB={id:"vCHARDB",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[29]);
this.Subfile1Container.addRefreshingVar({rfrVar:"AV15CharDB"});this.SetStandaloneVars()}himh242.prototype=new gx.GxObject;gx.setParentObj(new himh242());