gx.evt.autoSkip=false;function tgrt002(){this.ServerClass="TGrt002";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Cfgcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Cfgcod",["gx.O.A122CfgCod","gx.O.A124CfgDesSign"],["A124CfgDesSign","Gx_mode","Z122CfgCod","Z124CfgDesSign","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Cfcnroseq=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true}var a=gx.util.balloon.getNew("CFCNROSEQ",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.sMode83=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(83,30);this.standaloneModal2D83();this.standaloneNotModal2D83();if(gx.fn.gridDuplicateKey(32)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode83;if(a==null){return true}return a.show()}catch(b){}return true
};this.standaloneModal2D83=function(){return true};this.standaloneNotModal2D83=function(){try{gx.fn.setCtrlProperty("CFCNROSEQ","Enabled",0)}catch(a){}try{gx.fn.setCtrlProperty("CFCDESCONT","Enabled",0)}catch(a){}return true};this.e112d82_client=function(){this.clearMessages();this.refreshOutputs([])};this.e122d82_client=function(){this.executeServerEvent("ENTER",true)};this.e132d82_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,31,32,33];
this.GXLastCtrlId=33;this.Grid1Container=new gx.grid.grid(this,83,"Level1",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tgrt002",[121],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_83",31,"vNRCDDELETED_83","","","nRcdDeleted_83","int",0,"px",4,4,"right",null,[],"nRcdDeleted_83","nRcdDeleted_83",true,0,false,false);this.Grid1Container.addSingleLineEdit(121,32,"CFCNROSEQ","Seq.","","CfcNroSeq","int",0,"px",3,3,"right",null,[],121,"CfcNroSeq",true,0,false,false);
this.Grid1Container.addSingleLineEdit(120,33,"CFCDESCONT","Conteúdo","","CfcDesCont","char",0,"px",100,100,"left",null,[],120,"CfcDesCont",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:"char",len:10,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Cfgcod,isvalid:null,fld:"CFGCOD",gxz:"Z122CfgCod",gxold:"O122CfgCod",gxvar:"A122CfgCod",ucs:[],op:[26],ip:[26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A122CfgCod=a
},v2z:function(a){gx.O.Z122CfgCod=a},v2c:function(){gx.fn.setControlValue("CFGCOD",gx.O.A122CfgCod,0)},c2v:function(){gx.O.A122CfgCod=this.val()},val:function(){return gx.fn.getControlValue("CFGCOD")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:95,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"CFGDESSIGN",gxz:"Z124CfgDesSign",gxold:"O124CfgDesSign",gxvar:"A124CfgDesSign",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A124CfgDesSign=a
},v2z:function(a){gx.O.Z124CfgDesSign=a},v2c:function(){gx.fn.setControlValue("CFGDESSIGN",gx.O.A124CfgDesSign,0)},c2v:function(){gx.O.A124CfgDesSign=this.val()},val:function(){return gx.fn.getControlValue("CFGDESSIGN")},nac:function(){return false}};this.GXValidFnc[31]={lvl:83,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_83",gxz:"ZnRcdDeleted_83",gxold:"OnRcdDeleted_83",gxvar:"nRcdDeleted_83",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_83=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_83=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_83",gx.fn.currentGridRowImpl(30),gx.O.nRcdDeleted_83,0)},c2v:function(){gx.O.nRcdDeleted_83=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_83",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:83,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Cfcnroseq,isvalid:null,rgrid:[],fld:"CFCNROSEQ",gxz:"Z121CfcNroSeq",gxold:"O121CfcNroSeq",gxvar:"A121CfcNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A121CfcNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z121CfcNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CFCNROSEQ",gx.fn.currentGridRowImpl(30),gx.O.A121CfcNroSeq,0)},c2v:function(){gx.O.A121CfcNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("CFCNROSEQ",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:83,type:"char",len:100,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CFCDESCONT",gxz:"Z120CfcDesCont",gxold:"O120CfcDesCont",gxvar:"A120CfcDesCont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A120CfcDesCont=a
},v2z:function(a){gx.O.Z120CfcDesCont=a},v2c:function(){gx.fn.setGridControlValue("CFCDESCONT",gx.fn.currentGridRowImpl(30),gx.O.A120CfcDesCont,0)},c2v:function(){gx.O.A120CfcDesCont=this.val()},val:function(){return gx.fn.getGridControlValue("CFCDESCONT",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.A122CfgCod="";this.Z122CfgCod="";this.O122CfgCod="";this.A124CfgDesSign="";this.Z124CfgDesSign="";this.O124CfgDesSign="";this.ZnRcdDeleted_83=0;this.OnRcdDeleted_83=0;this.Z121CfcNroSeq=0;
this.O121CfcNroSeq=0;this.Z120CfcDesCont="";this.O120CfcDesCont="";this.A121CfcNroSeq=0;this.A120CfcDesCont="";this.ServerEvents=["e122d82_client","e132d82_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgrt002.prototype=new gx.GxObject;gx.setParentObj(new tgrt002());