gx.evt.autoSkip=false;function tabt077(){this.ServerClass="TAbt077";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Curcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Curcod",["gx.O.A169CurCod","gx.O.A170CurNom","gx.O.A168CurCampo1L"],["A170CurNom","A168CurCampo1L","Gx_mode","Z169CurCod","Z170CurNom","Z168CurCampo1L","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Curnom=function(){try{var a=gx.util.balloon.getNew("CURNOM");this.AnyError=0;if((0==this.A169CurCod)||(""==this.A170CurNom)){try{a.setError("O código e o nome do curso devem ser informados");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dcpnro=function(){try{if(gx.fn.currentGridRowImpl(35)===0){return true}var a=gx.util.balloon.getNew("DCPNRO",gx.fn.currentGridRowImpl(35));this.AnyError=0;this.sMode59=this.Gx_mode;
this.Gx_mode=gx.fn.getGridRowMode(59,35);this.standaloneModal1U59();this.standaloneNotModal1U59();if(gx.fn.gridDuplicateKey(37)){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(35)===0){return true}var a=gx.util.balloon.getNew("DCPNOM",gx.fn.currentGridRowImpl(35));this.AnyError=0;this.sMode59=this.Gx_mode;
this.Gx_mode=gx.fn.getGridRowMode(59,35);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.standaloneModal1U59=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.standaloneNotModal1U59=function(){return true
};this.e111u58_client=function(){this.executeServerEvent("ENTER",true)};this.e121u58_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,29,31,36,37,38,39,40];this.GXLastCtrlId=40;this.Grid1Container=new gx.grid.grid(this,59,"Level1",35,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt077",[186],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_59",36,"vNRCDDELETED_59","","","nRcdDeleted_59","int",0,"px",4,4,"right",null,[],"nRcdDeleted_59","nRcdDeleted_59",true,0,false,false);
this.Grid1Container.addSingleLineEdit(186,37,"DCPNRO","Disciplina","","DcpNro","int",0,"px",4,4,"right",null,[],186,"DcpNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(185,38,"DCPNOM","Nome","","DcpNom","char",0,"px",80,80,"left",null,[],185,"DcpNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(184,39,"DCPCODABRE","Código abreviado","","DcpCodAbre","char",0,"px",5,5,"left",null,[],184,"DcpCodAbre",true,0,false,false);this.Grid1Container.addSingleLineEdit(183,40,"DCPCAMPO1L","Campo livre","","DcpCampo1L","char",0,"px",50,50,"left",null,[],183,"DcpCampo1L",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",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:0,grid:0,gxgrid:null,fnc:this.Valid_Curcod,isvalid:null,rgrid:[this.Grid1Container],fld:"CURCOD",gxz:"Z169CurCod",gxold:"O169CurCod",gxvar:"A169CurCod",ucs:[],op:[31,26],ip:[31,26,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[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Curnom,isvalid:null,fld:"CURNOM",gxz:"Z170CurNom",gxold:"O170CurNom",gxvar:"A170CurNom",ucs:[],op:[26,20],ip:[26,20],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[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CURCAMPO1L",gxz:"Z168CurCampo1L",gxold:"O168CurCampo1L",gxvar:"A168CurCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A168CurCampo1L=a
},v2z:function(a){gx.O.Z168CurCampo1L=a},v2c:function(){gx.fn.setControlValue("CURCAMPO1L",gx.O.A168CurCampo1L,0)},c2v:function(){gx.O.A168CurCampo1L=this.val()},val:function(){return gx.fn.getControlValue("CURCAMPO1L")},nac:function(){return false}};this.GXValidFnc[36]={lvl:59,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_59",gxz:"ZnRcdDeleted_59",gxold:"OnRcdDeleted_59",gxvar:"nRcdDeleted_59",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_59=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_59=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_59",gx.fn.currentGridRowImpl(35),gx.O.nRcdDeleted_59,0)},c2v:function(){gx.O.nRcdDeleted_59=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_59",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:59,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:35,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(35),gx.O.A186DcpNro,0)},c2v:function(){gx.O.A186DcpNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DCPNRO",gx.fn.currentGridRowImpl(35),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:59,type:"char",len:80,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Grid1Container,fnc:this.Valid_Dcpnom,isvalid:null,fld:"DCPNOM",gxz:"Z185DcpNom",gxold:"O185DcpNom",gxvar:"A185DcpNom",ucs:[],op:[38,37],ip:[38,37],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(35),gx.O.A185DcpNom,0)},c2v:function(){gx.O.A185DcpNom=this.val()},val:function(){return gx.fn.getGridControlValue("DCPNOM",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[39]={lvl:59,type:"char",len:5,dec:0,sign:false,ro:0,grid:35,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(35),gx.O.A184DcpCodAbre,0)},c2v:function(){gx.O.A184DcpCodAbre=this.val()},val:function(){return gx.fn.getGridControlValue("DCPCODABRE",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.GXValidFnc[40]={lvl:59,type:"char",len:50,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DCPCAMPO1L",gxz:"Z183DcpCampo1L",gxold:"O183DcpCampo1L",gxvar:"A183DcpCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A183DcpCampo1L=a
},v2z:function(a){gx.O.Z183DcpCampo1L=a},v2c:function(){gx.fn.setGridControlValue("DCPCAMPO1L",gx.fn.currentGridRowImpl(35),gx.O.A183DcpCampo1L,0)},c2v:function(){gx.O.A183DcpCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("DCPCAMPO1L",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.A169CurCod=0;this.Z169CurCod=0;this.O169CurCod=0;this.A170CurNom="";this.Z170CurNom="";this.O170CurNom="";this.A168CurCampo1L="";this.Z168CurCampo1L="";this.O168CurCampo1L="";this.ZnRcdDeleted_59=0;
this.OnRcdDeleted_59=0;this.Z186DcpNro=0;this.O186DcpNro=0;this.Z185DcpNom="";this.O185DcpNom="";this.Z184DcpCodAbre="";this.O184DcpCodAbre="";this.Z183DcpCampo1L="";this.O183DcpCampo1L="";this.A186DcpNro=0;this.A185DcpNom="";this.A184DcpCodAbre="";this.A183DcpCampo1L="";this.ServerEvents=["e111u58_client","e121u58_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt077.prototype=new gx.GxObject;
gx.setParentObj(new tabt077());