gx.evt.autoSkip=false;function tabt085(){this.ServerClass="TAbt085";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Etbnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Etbnro",["gx.O.A372EtbNro","gx.O.A371EtbExpBusc","gx.O.A373EtbQtdPerB","gx.O.A374EtbQtdPerE","gx.O.A375EtbQtdPerM","gx.O.A376EtbQtdTotB","gx.O.A377EtbQtdTotE","gx.O.A378EtbQtdTotM"],["A371EtbExpBusc","A373EtbQtdPerB","A374EtbQtdPerE","A375EtbQtdPerM","A376EtbQtdTotB","A377EtbQtdTotE","A378EtbQtdTotM","Gx_mode","Z372EtbNro","Z371EtbExpBusc","Z373EtbQtdPerB","Z374EtbQtdPerE","Z375EtbQtdPerM","Z376EtbQtdTotB","Z377EtbQtdTotE","Z378EtbQtdTotM","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Ebmanomesb=function(){try{if(gx.fn.currentGridRowImpl(60)===0){return true}var a=gx.util.balloon.getNew("EBMANOMESB",gx.fn.currentGridRowImpl(60));this.AnyError=0;this.sMode69=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(69,60);this.standaloneModal2069();this.standaloneNotModal2069();if(gx.fn.gridDuplicateKey(62)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode69;if(a==null){return true}return a.show()
}catch(b){}return true};this.standaloneModal2069=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("EBMANOMESB","Enabled",0)}else{gx.fn.setCtrlProperty("EBMANOMESB","Enabled",1)}}catch(a){}return true};this.standaloneNotModal2069=function(){return true};this.e112068_client=function(){this.clearMessages();this.refreshOutputs([])};this.e122068_client=function(){this.executeServerEvent("ENTER",true)};this.e132068_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];
this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41,44,46,49,51,54,56,61,62,63,64];this.GXLastCtrlId=64;this.Grid1Container=new gx.grid.grid(this,69,"Level1",60,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt085",[320],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_69",61,"vNRCDDELETED_69","","","nRcdDeleted_69","int",0,"px",4,4,"right",null,[],"nRcdDeleted_69","nRcdDeleted_69",true,0,false,false);
this.Grid1Container.addSingleLineEdit(320,62,"EBMANOMESB","Ano e mes da busca","","EbmAnoMesB","int",0,"px",6,6,"right",null,[],320,"EbmAnoMesB",true,0,false,false);this.Grid1Container.addSingleLineEdit(321,63,"EBMQTDEXIT","Êxitos no mês","","EbmQtdExit","int",0,"px",8,8,"right",null,[],321,"EbmQtdExit",true,0,false,false);this.Grid1Container.addSingleLineEdit(322,64,"EBMQTDMALO","Malogros no mês","","EbmQtdMalo","int",0,"px",8,8,"right",null,[],322,"EbmQtdMalo",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:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Etbnro,isvalid:null,rgrid:[this.Grid1Container],fld:"ETBNRO",gxz:"Z372EtbNro",gxold:"O372EtbNro",gxvar:"A372EtbNro",ucs:[],op:[56,51,46,41,36,31,26],ip:[56,51,46,41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A372EtbNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z372EtbNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ETBNRO",gx.O.A372EtbNro,0)},c2v:function(){gx.O.A372EtbNro=this.val()},val:function(){return gx.fn.getIntegerValue("ETBNRO",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:80,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"ETBEXPBUSC",gxz:"Z371EtbExpBusc",gxold:"O371EtbExpBusc",gxvar:"A371EtbExpBusc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A371EtbExpBusc=a
},v2z:function(a){gx.O.Z371EtbExpBusc=a},v2c:function(){gx.fn.setControlValue("ETBEXPBUSC",gx.O.A371EtbExpBusc,0)},c2v:function(){gx.O.A371EtbExpBusc=this.val()},val:function(){return gx.fn.getControlValue("ETBEXPBUSC")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"ETBQTDPERB",gxz:"Z373EtbQtdPerB",gxold:"O373EtbQtdPerB",gxvar:"A373EtbQtdPerB",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A373EtbQtdPerB=gx.num.intval(a)
},v2z:function(a){gx.O.Z373EtbQtdPerB=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ETBQTDPERB",gx.O.A373EtbQtdPerB,0)},c2v:function(){gx.O.A373EtbQtdPerB=this.val()},val:function(){return gx.fn.getIntegerValue("ETBQTDPERB",".")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"ETBQTDPERE",gxz:"Z374EtbQtdPerE",gxold:"O374EtbQtdPerE",gxvar:"A374EtbQtdPerE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A374EtbQtdPerE=gx.num.intval(a)
},v2z:function(a){gx.O.Z374EtbQtdPerE=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ETBQTDPERE",gx.O.A374EtbQtdPerE,0)},c2v:function(){gx.O.A374EtbQtdPerE=this.val()},val:function(){return gx.fn.getIntegerValue("ETBQTDPERE",".")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"ETBQTDPERM",gxz:"Z375EtbQtdPerM",gxold:"O375EtbQtdPerM",gxvar:"A375EtbQtdPerM",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A375EtbQtdPerM=gx.num.intval(a)
},v2z:function(a){gx.O.Z375EtbQtdPerM=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ETBQTDPERM",gx.O.A375EtbQtdPerM,0)},c2v:function(){gx.O.A375EtbQtdPerM=this.val()},val:function(){return gx.fn.getIntegerValue("ETBQTDPERM",".")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"ETBQTDTOTB",gxz:"Z376EtbQtdTotB",gxold:"O376EtbQtdTotB",gxvar:"A376EtbQtdTotB",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A376EtbQtdTotB=gx.num.intval(a)
},v2z:function(a){gx.O.Z376EtbQtdTotB=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ETBQTDTOTB",gx.O.A376EtbQtdTotB,0)},c2v:function(){gx.O.A376EtbQtdTotB=this.val()},val:function(){return gx.fn.getIntegerValue("ETBQTDTOTB",".")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"ETBQTDTOTE",gxz:"Z377EtbQtdTotE",gxold:"O377EtbQtdTotE",gxvar:"A377EtbQtdTotE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A377EtbQtdTotE=gx.num.intval(a)
},v2z:function(a){gx.O.Z377EtbQtdTotE=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ETBQTDTOTE",gx.O.A377EtbQtdTotE,0)},c2v:function(){gx.O.A377EtbQtdTotE=this.val()},val:function(){return gx.fn.getIntegerValue("ETBQTDTOTE",".")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"ETBQTDTOTM",gxz:"Z378EtbQtdTotM",gxold:"O378EtbQtdTotM",gxvar:"A378EtbQtdTotM",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A378EtbQtdTotM=gx.num.intval(a)
},v2z:function(a){gx.O.Z378EtbQtdTotM=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ETBQTDTOTM",gx.O.A378EtbQtdTotM,0)},c2v:function(){gx.O.A378EtbQtdTotM=this.val()},val:function(){return gx.fn.getIntegerValue("ETBQTDTOTM",".")},nac:function(){return false}};this.GXValidFnc[61]={lvl:69,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_69",gxz:"ZnRcdDeleted_69",gxold:"OnRcdDeleted_69",gxvar:"nRcdDeleted_69",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_69=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_69=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_69",gx.fn.currentGridRowImpl(60),gx.O.nRcdDeleted_69,0)},c2v:function(){gx.O.nRcdDeleted_69=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_69",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[62]={lvl:69,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:this.Valid_Ebmanomesb,isvalid:null,rgrid:[],fld:"EBMANOMESB",gxz:"Z320EbmAnoMesB",gxold:"O320EbmAnoMesB",gxvar:"A320EbmAnoMesB",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A320EbmAnoMesB=gx.num.intval(a)
},v2z:function(a){gx.O.Z320EbmAnoMesB=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EBMANOMESB",gx.fn.currentGridRowImpl(60),gx.O.A320EbmAnoMesB,0)},c2v:function(){gx.O.A320EbmAnoMesB=this.val()},val:function(){return gx.fn.getGridIntegerValue("EBMANOMESB",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[63]={lvl:69,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EBMQTDEXIT",gxz:"Z321EbmQtdExit",gxold:"O321EbmQtdExit",gxvar:"A321EbmQtdExit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A321EbmQtdExit=gx.num.intval(a)
},v2z:function(a){gx.O.Z321EbmQtdExit=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EBMQTDEXIT",gx.fn.currentGridRowImpl(60),gx.O.A321EbmQtdExit,0)},c2v:function(){gx.O.A321EbmQtdExit=this.val()},val:function(){return gx.fn.getGridIntegerValue("EBMQTDEXIT",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[64]={lvl:69,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EBMQTDMALO",gxz:"Z322EbmQtdMalo",gxold:"O322EbmQtdMalo",gxvar:"A322EbmQtdMalo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A322EbmQtdMalo=gx.num.intval(a)
},v2z:function(a){gx.O.Z322EbmQtdMalo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EBMQTDMALO",gx.fn.currentGridRowImpl(60),gx.O.A322EbmQtdMalo,0)},c2v:function(){gx.O.A322EbmQtdMalo=this.val()},val:function(){return gx.fn.getGridIntegerValue("EBMQTDMALO",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.A372EtbNro=0;this.Z372EtbNro=0;this.O372EtbNro=0;this.A371EtbExpBusc="";this.Z371EtbExpBusc="";this.O371EtbExpBusc="";this.A373EtbQtdPerB=0;this.Z373EtbQtdPerB=0;
this.O373EtbQtdPerB=0;this.A374EtbQtdPerE=0;this.Z374EtbQtdPerE=0;this.O374EtbQtdPerE=0;this.A375EtbQtdPerM=0;this.Z375EtbQtdPerM=0;this.O375EtbQtdPerM=0;this.A376EtbQtdTotB=0;this.Z376EtbQtdTotB=0;this.O376EtbQtdTotB=0;this.A377EtbQtdTotE=0;this.Z377EtbQtdTotE=0;this.O377EtbQtdTotE=0;this.A378EtbQtdTotM=0;this.Z378EtbQtdTotM=0;this.O378EtbQtdTotM=0;this.ZnRcdDeleted_69=0;this.OnRcdDeleted_69=0;this.Z320EbmAnoMesB=0;this.O320EbmAnoMesB=0;this.Z321EbmQtdExit=0;this.O321EbmQtdExit=0;this.Z322EbmQtdMalo=0;
this.O322EbmQtdMalo=0;this.A320EbmAnoMesB=0;this.A321EbmQtdExit=0;this.A322EbmQtdMalo=0;this.ServerEvents=["e122068_client","e132068_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt085.prototype=new gx.GxObject;gx.setParentObj(new tabt085());