gx.evt.autoSkip=false;function gx01n0(){this.ServerClass="Gx01N0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV11pCurCod=gx.fn.getIntegerValue("vPCURCOD",".");this.AV12pDcpNro=gx.fn.getIntegerValue("vPDCPNRO",".")};this.e13dc2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14dc1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,38,42,43,44,45,46,49];
this.GXLastCtrlId=49;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",41,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx01n0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",42,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(169,43,"CURCOD","Curso","","CurCod","int",0,"px",5,5,"right",null,[],169,"CurCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(186,44,"DCPNRO","Disciplina","","DcpNro","int",0,"px",4,4,"right",null,[],186,"DcpNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(185,45,"DCPNOM","Nome","Selecionar","DcpNom","char",0,"px",80,80,"left",null,[],185,"DcpNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(184,46,"DCPCODABRE","Código abreviado","","DcpCodAbre","char",0,"px",5,5,"left",null,[],184,"DcpCodAbre",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:"TEXTBLOCKDCPNRO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDCPNRO",gxz:"ZV7cDcpNro",gxold:"OV7cDcpNro",gxvar:"AV7cDcpNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDcpNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV7cDcpNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDCPNRO",gx.O.AV7cDcpNro,0)
},c2v:function(){gx.O.AV7cDcpNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCDCPNRO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDCPNOM",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:80,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDCPNOM",gxz:"ZV8cDcpNom",gxold:"OV8cDcpNom",gxvar:"AV8cDcpNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cDcpNom=a},v2z:function(a){gx.O.ZV8cDcpNom=a},v2c:function(){gx.fn.setControlValue("vCDCPNOM",gx.O.AV8cDcpNom,0)
},c2v:function(){gx.O.AV8cDcpNom=this.val()},val:function(){return gx.fn.getControlValue("vCDCPNOM")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKDCPCODABREVIADO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:5,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDCPCODABREVIADO",gxz:"ZV9cDcpCodAbreviado",gxold:"OV9cDcpCodAbreviado",gxvar:"AV9cDcpCodAbreviado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cDcpCodAbreviado=a
},v2z:function(a){gx.O.ZV9cDcpCodAbreviado=a},v2c:function(){gx.fn.setControlValue("vCDCPCODABREVIADO",gx.O.AV9cDcpCodAbreviado,0)},c2v:function(){gx.O.AV9cDcpCodAbreviado=this.val()},val:function(){return gx.fn.getControlValue("vCDCPCODABREVIADO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKDCPCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDCPCAMPO1LIVRE",gxz:"ZV10cDcpCampo1Livre",gxold:"OV10cDcpCampo1Livre",gxvar:"AV10cDcpCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cDcpCampo1Livre=a
},v2z:function(a){gx.O.ZV10cDcpCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCDCPCAMPO1LIVRE",gx.O.AV10cDcpCampo1Livre,0)},c2v:function(){gx.O.AV10cDcpCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCDCPCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[37]={fld:"GROUP2",grid:0};this.GXValidFnc[38]={fld:"TABLE3",grid:0};this.GXValidFnc[42]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:41,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(41))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:41,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(41),gx.O.A169CurCod,0)},c2v:function(){gx.O.A169CurCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CURCOD",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,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(41),gx.O.A186DcpNro,0)},c2v:function(){gx.O.A186DcpNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DCPNRO",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DCPNOM",gxz:"Z185DcpNom",gxold:"O185DcpNom",gxvar:"A185DcpNom",ucs:[],op:[],ip:[],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(41),gx.O.A185DcpNom,0)},c2v:function(){gx.O.A185DcpNom=this.val()},val:function(){return gx.fn.getGridControlValue("DCPNOM",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"char",len:5,dec:0,sign:false,ro:1,grid:41,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(41),gx.O.A184DcpCodAbre,0)},c2v:function(){gx.O.A184DcpCodAbre=this.val()},val:function(){return gx.fn.getGridControlValue("DCPCODABRE",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[49]={fld:"TABLE4",grid:0};this.AV6cCurCod=0;this.ZV6cCurCod=0;this.OV6cCurCod=0;this.AV7cDcpNro=0;this.ZV7cDcpNro=0;this.OV7cDcpNro=0;this.AV8cDcpNom="";this.ZV8cDcpNom="";
this.OV8cDcpNom="";this.AV9cDcpCodAbreviado="";this.ZV9cDcpCodAbreviado="";this.OV9cDcpCodAbreviado="";this.AV10cDcpCampo1Livre="";this.ZV10cDcpCampo1Livre="";this.OV10cDcpCampo1Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z169CurCod=0;this.O169CurCod=0;this.Z186DcpNro=0;this.O186DcpNro=0;this.Z185DcpNom="";this.O185DcpNom="";this.Z184DcpCodAbre="";this.O184DcpCodAbre="";this.AV11pCurCod=0;this.AV12pDcpNro=0;this.A183DcpCampo1L="";this.AV5LinkSelection="";this.A169CurCod=0;this.A186DcpNro=0;
this.A185DcpNom="";this.A184DcpCodAbre="";this.ServerEvents=["e13dc2_client","e14dc1_client"];this.VarControlMap.AV11pCurCod={id:"vPCURCOD",grid:0,type:"int"};this.VarControlMap.AV12pDcpNro={id:"vPDCPNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);
this.SetStandaloneVars()}gx01n0.prototype=new gx.GxObject;gx.setParentObj(new gx01n0());