gx.evt.autoSkip=false;function timt010(){this.ServerClass="TImt010";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A168CurCampo1L=gx.fn.getControlValue("CURCAMPO1L");this.Gx_mode=gx.fn.getControlValue("vMODE");this.A183DcpCampo1L=gx.fn.getControlValue("DCPCAMPO1L")};this.Valid_Curcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Curcod",["gx.O.AV12GrdLinkManutencao","gx.O.A169CurCod","gx.O.A170CurNom","gx.O.A168CurCampo1L"],["A170CurNom","A168CurCampo1L","Gx_mode","Z169CurCod","Z170CurNom","Z168CurCampo1L","Grid1",["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Curnom=function(){try{var a=gx.util.balloon.getNew("CURNOM");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dcpnro=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("DCPNRO",gx.fn.currentGridRowImpl(24));this.AnyError=0;this.sMode59=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(59,24);this.standaloneModal3659();this.standaloneNotModal3659();if(gx.fn.gridDuplicateKey(25)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));
this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode59;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dcpnom=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("DCPNOM",gx.fn.currentGridRowImpl(24));this.AnyError=0;this.sMode59=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(59,24);if((0==this.A186DcpNro)||(""==this.A185DcpNom)){try{a.setError("O número e o nome da disciplina devem ser informados");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode59;
if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal3659=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DCPNRO","Enabled",0)}else{gx.fn.setCtrlProperty("DCPNRO","Enabled",1)}}catch(a){}return true};this.standaloneNotModal3659=function(){return true};this.e133658_client=function(){this.clearMessages();if(this.A186DcpNro>0){gx.popup.openUrl(gx.http.formatLink("himh244.aspx",[this.A169CurCod,this.A186DcpNro]),[])}this.refreshOutputs([])};this.e12362_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e143658_client=function(){this.executeServerEvent("ENTER",true)};this.e153658_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,22,25,26,27,28];this.GXLastCtrlId=28;this.Grid1Container=new gx.grid.grid(this,59,"Level1",24,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt010",[186],false,1,true,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(186,25,"DCPNRO","Disciplina","","DcpNro","int",62,"px",4,4,"right",null,[],186,"DcpNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(185,26,"DCPNOM","Nome","","DcpNom","char",410,"px",80,80,"left",null,[],185,"DcpNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(184,27,"DCPCODABRE","Código","","DcpCodAbre","char",65,"px",5,5,"left",null,[],184,"DcpCodAbre",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdlinkmanutencao",28,"vGRDLINKMANUTENCAO","","Exibe o acervo da disciplina e permite fazer modificações","GrdLinkManutencao","char",0,"px",18,18,"left","e133658_client",[],"Grdlinkmanutencao","GrdLinkManutencao",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE1",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Curcod,isvalid:null,rgrid:[this.Grid1Container],fld:"CURCOD",gxz:"Z169CurCod",gxold:"O169CurCod",gxvar:"A169CurCod",ucs:[],op:[22],ip:[22,20],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.setControlValue("CURCOD",gx.O.A169CurCod,0)},c2v:function(){gx.O.A169CurCod=this.val()},val:function(){return gx.fn.getIntegerValue("CURCOD",".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:1,grid:0,gxgrid:null,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.setControlValue("CURNOM",gx.O.A170CurNom,0)},c2v:function(){gx.O.A170CurNom=this.val()},val:function(){return gx.fn.getControlValue("CURNOM")},nac:function(){return false}};this.GXValidFnc[25]={lvl:59,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:24,gxgrid:this.Grid1Container,fnc:this.Valid_Dcpnro,isvalid:null,rgrid:[],fld:"DCPNRO",gxz:"Z186DcpNro",gxold:"O186DcpNro",gxvar:"A186DcpNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A186DcpNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z186DcpNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DCPNRO",gx.fn.currentGridRowImpl(24),gx.O.A186DcpNro,0)},c2v:function(){gx.O.A186DcpNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DCPNRO",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:59,type:"char",len:80,dec:0,sign:false,ro:0,grid:24,gxgrid:this.Grid1Container,fnc:this.Valid_Dcpnom,isvalid:null,fld:"DCPNOM",gxz:"Z185DcpNom",gxold:"O185DcpNom",gxvar:"A185DcpNom",ucs:[],op:[26,25],ip:[26,25],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A185DcpNom=a
},v2z:function(a){gx.O.Z185DcpNom=a},v2c:function(){gx.fn.setGridControlValue("DCPNOM",gx.fn.currentGridRowImpl(24),gx.O.A185DcpNom,0)},c2v:function(){gx.O.A185DcpNom=this.val()},val:function(){return gx.fn.getGridControlValue("DCPNOM",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[27]={lvl:59,type:"char",len:5,dec:0,sign:false,ro:0,grid:24,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DCPCODABRE",gxz:"Z184DcpCodAbre",gxold:"O184DcpCodAbre",gxvar:"A184DcpCodAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A184DcpCodAbre=a
},v2z:function(a){gx.O.Z184DcpCodAbre=a},v2c:function(){gx.fn.setGridControlValue("DCPCODABRE",gx.fn.currentGridRowImpl(24),gx.O.A184DcpCodAbre,0)},c2v:function(){gx.O.A184DcpCodAbre=this.val()},val:function(){return gx.fn.getGridControlValue("DCPCODABRE",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[28]={lvl:59,type:"char",len:18,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDLINKMANUTENCAO",gxz:"ZV12GrdLinkManutencao",gxold:"OV12GrdLinkManutencao",gxvar:"AV12GrdLinkManutencao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12GrdLinkManutencao=a
},v2z:function(a){gx.O.ZV12GrdLinkManutencao=a},v2c:function(){gx.fn.setGridControlValue("vGRDLINKMANUTENCAO",gx.fn.currentGridRowImpl(24),gx.O.AV12GrdLinkManutencao,0)},c2v:function(){gx.O.AV12GrdLinkManutencao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDLINKMANUTENCAO",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.A169CurCod=0;this.Z169CurCod=0;this.O169CurCod=0;this.A170CurNom="";this.Z170CurNom="";this.O170CurNom="";this.Z186DcpNro=0;this.O186DcpNro=0;
this.Z185DcpNom="";this.O185DcpNom="";this.Z184DcpCodAbre="";this.O184DcpCodAbre="";this.ZV12GrdLinkManutencao="";this.OV12GrdLinkManutencao="";this.A186DcpNro=0;this.A185DcpNom="";this.A184DcpCodAbre="";this.A183DcpCampo1L="";this.AV7UsuCodCorr="";this.AV12GrdLinkManutencao="";this.A168CurCampo1L="";this.ServerEvents=["e12362_client","e143658_client","e153658_client"];this.EnterCtrl=["BTN_ENTER2"];this.VarControlMap.A168CurCampo1L={id:"CURCAMPO1L",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.VarControlMap.A183DcpCampo1L={id:"DCPCAMPO1L",grid:24,type:"char"};this.Grid1Container.addPostingVar("AV12GrdLinkManutencao");this.SetStandaloneVars()}timt010.prototype=new gx.GxObject;gx.setParentObj(new timt010());