gx.evt.autoSkip=false;function tabt013(){this.ServerClass="Tabt013";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Docnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Docnro",["gx.O.A258DocNro","gx.O.A242DocDesL1Ti"],["A242DocDesL1Ti","Gx_mode","Z258DocNro","Z242DocDesL1Ti","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Dpcnroseq=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true
}var a=gx.util.balloon.getNew("DPCNROSEQ",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.sMode8=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(8,30);this.standaloneModal0F8();this.standaloneNotModal0F8();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.sMode8;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Pchnro=function(){this.sMode8=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(8,30);
gx.ajax.validSrvEvt("dyncall","valid_Pchnro",["gx.O.A193PchNro","gx.O.A192PchDes"],["A192PchDes"]);this.Gx_mode=this.sMode8;return true};this.standaloneModal0F8=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DPCNROSEQ","Enabled",0)}else{gx.fn.setCtrlProperty("DPCNROSEQ","Enabled",1)}}catch(a){}return true};this.standaloneNotModal0F8=function(){return true};this.e110f5_client=function(){this.executeServerEvent("ENTER",true)};this.e120f5_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,24,26,31,32,33,34];this.GXLastCtrlId=34;this.Grid1Container=new gx.grid.grid(this,8,"Level1",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt013",[289],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_8",31,"vNRCDDELETED_8","","","nRcdDeleted_8","int",0,"px",4,4,"right",null,[],"nRcdDeleted_8","nRcdDeleted_8",true,0,false,false);
this.Grid1Container.addSingleLineEdit(289,32,"DPCNROSEQ","Sequência","","DpcNroSeq","int",0,"px",3,3,"right",null,[],289,"DpcNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(193,33,"PCHNRO","Código da palavra-chave","","PchNro","int",0,"px",6,6,"right",null,[],193,"PchNro",true,0,false,false);this.Grid1Container.addBitmap("prompt_193","PROMPT_193",42,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(192,34,"PCHDES","Palavra-chave","","PchDes","char",0,"px",60,60,"left",null,[],192,"PchDes",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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Docnro,isvalid:null,rgrid:[this.Grid1Container],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[26],ip:[26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DOCNRO",gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getIntegerValue("DOCNRO",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:250,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"DOCDESL1TI",gxz:"Z242DocDesL1Ti",gxold:"O242DocDesL1Ti",gxvar:"A242DocDesL1Ti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A242DocDesL1Ti=a
},v2z:function(a){gx.O.Z242DocDesL1Ti=a},v2c:function(){gx.fn.setControlValue("DOCDESL1TI",gx.O.A242DocDesL1Ti,0)},c2v:function(){gx.O.A242DocDesL1Ti=this.val()},val:function(){return gx.fn.getControlValue("DOCDESL1TI")},nac:function(){return false}};this.GXValidFnc[31]={lvl:8,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_8",gxz:"ZnRcdDeleted_8",gxold:"OnRcdDeleted_8",gxvar:"nRcdDeleted_8",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_8=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_8=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_8",gx.fn.currentGridRowImpl(30),gx.O.nRcdDeleted_8,0)},c2v:function(){gx.O.nRcdDeleted_8=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_8",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:8,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Dpcnroseq,isvalid:null,rgrid:[],fld:"DPCNROSEQ",gxz:"Z289DpcNroSeq",gxold:"O289DpcNroSeq",gxvar:"A289DpcNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A289DpcNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z289DpcNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DPCNROSEQ",gx.fn.currentGridRowImpl(30),gx.O.A289DpcNroSeq,0)},c2v:function(){gx.O.A289DpcNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("DPCNROSEQ",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:8,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Pchnro,isvalid:null,rgrid:[],fld:"PCHNRO",gxz:"Z193PchNro",gxold:"O193PchNro",gxvar:"A193PchNro",ucs:[],op:[34],ip:[34,33],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A193PchNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z193PchNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PCHNRO",gx.fn.currentGridRowImpl(30),gx.O.A193PchNro,0)},c2v:function(){gx.O.A193PchNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("PCHNRO",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:8,type:"char",len:60,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PCHDES",gxz:"Z192PchDes",gxold:"O192PchDes",gxvar:"A192PchDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A192PchDes=a
},v2z:function(a){gx.O.Z192PchDes=a},v2c:function(){gx.fn.setGridControlValue("PCHDES",gx.fn.currentGridRowImpl(30),gx.O.A192PchDes,0)},c2v:function(){gx.O.A192PchDes=this.val()},val:function(){return gx.fn.getGridControlValue("PCHDES",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A242DocDesL1Ti="";this.Z242DocDesL1Ti="";this.O242DocDesL1Ti="";this.ZnRcdDeleted_8=0;this.OnRcdDeleted_8=0;this.Z289DpcNroSeq=0;this.O289DpcNroSeq=0;
this.Z193PchNro=0;this.O193PchNro=0;this.Z192PchDes="";this.O192PchDes="";this.A289DpcNroSeq=0;this.A193PchNro=0;this.A192PchDes="";this.ServerEvents=["e110f5_client","e120f5_client"];this.setPrompt("PROMPT_193",[33]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt013.prototype=new gx.GxObject;gx.setParentObj(new tabt013());