gx.evt.autoSkip=false;function tabt056(){this.ServerClass="Tabt056";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Docnro=function(){try{var a=gx.util.balloon.getNew("DOCNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Undcod=function(){try{var a=gx.util.balloon.getNew("UNDCOD");this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.Valid_Doenrosequ=function(){try{var a=gx.util.balloon.getNew("DOENROSEQU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvonrovolu=function(){try{var a=gx.util.balloon.getNew("DVONROVOLU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvonrotomo=function(){gx.ajax.validSrvEvt("dyncall","valid_Dvonrotomo",["gx.O.A258DocNro","gx.O.A922UndCod","gx.O.A281DoeNroSequ","gx.O.A317DvoNroVolu","gx.O.A316DvoNroTomo"],["Gx_mode","Z258DocNro","Z922UndCod","Z281DoeNroSequ","Z317DvoNroVolu","Z316DvoNroTomo","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Dcvnrolinh=function(){try{if(gx.fn.currentGridRowImpl(45)===0){return true}var a=gx.util.balloon.getNew("DCVNROLINH",gx.fn.currentGridRowImpl(45));this.AnyError=0;this.sMode42=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(42,45);this.standaloneModal1B42();this.standaloneNotModal1B42();if(gx.fn.gridDuplicateKey(47)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode42;if(a==null){return true}return a.show()
}catch(b){}return true};this.standaloneModal1B42=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DCVNROLINH","Enabled",0)}else{gx.fn.setCtrlProperty("DCVNROLINH","Enabled",1)}}catch(a){}return true};this.standaloneNotModal1B42=function(){return true};this.e111b41_client=function(){this.clearMessages();this.refreshOutputs([])};this.e121b41_client=function(){this.clearMessages();this.refreshOutputs([])};this.e131b41_client=function(){this.executeServerEvent("ENTER",true)};this.e141b41_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,33,35,38,40,46,47,48];this.GXLastCtrlId=48;this.Grid1Container=new gx.grid.grid(this,42,"Level1",45,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt056",[188],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_42",46,"vNRCDDELETED_42","","","nRcdDeleted_42","int",0,"px",4,4,"right",null,[],"nRcdDeleted_42","nRcdDeleted_42",true,0,false,false);
this.Grid1Container.addSingleLineEdit(188,47,"DCVNROLINH","Nr. linha","","DcvNroLinh","int",0,"px",2,2,"right",null,[],188,"DcvNroLinh",true,0,false,false);this.Grid1Container.addSingleLineEdit(187,48,"DCVDESVOLU","Descrição","","DcvDesVolu","char",0,"px",60,60,"left",null,[],187,"DcvDesVolu",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:1,grid:0,gxgrid:null,fnc:this.Valid_Docnro,isvalid:null,rgrid:[this.Grid1Container],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],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[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Undcod,isvalid:null,rgrid:[this.Grid1Container],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("UNDCOD",gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("UNDCOD",".")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Doenrosequ,isvalid:null,rgrid:[this.Grid1Container],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DOENROSEQU",gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("DOENROSEQU",".")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Dvonrovolu,isvalid:null,rgrid:[this.Grid1Container],fld:"DVONROVOLU",gxz:"Z317DvoNroVolu",gxold:"O317DvoNroVolu",gxvar:"A317DvoNroVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A317DvoNroVolu=gx.num.intval(a)
},v2z:function(a){gx.O.Z317DvoNroVolu=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DVONROVOLU",gx.O.A317DvoNroVolu,0)},c2v:function(){gx.O.A317DvoNroVolu=this.val()},val:function(){return gx.fn.getIntegerValue("DVONROVOLU",".")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Dvonrotomo,isvalid:null,rgrid:[this.Grid1Container],fld:"DVONROTOMO",gxz:"Z316DvoNroTomo",gxold:"O316DvoNroTomo",gxvar:"A316DvoNroTomo",ucs:[],op:[],ip:[40,35,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A316DvoNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.Z316DvoNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DVONROTOMO",gx.O.A316DvoNroTomo,0)},c2v:function(){gx.O.A316DvoNroTomo=this.val()},val:function(){return gx.fn.getIntegerValue("DVONROTOMO",".")},nac:function(){return false}};this.GXValidFnc[46]={lvl:42,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_42",gxz:"ZnRcdDeleted_42",gxold:"OnRcdDeleted_42",gxvar:"nRcdDeleted_42",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_42=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_42=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_42",gx.fn.currentGridRowImpl(45),gx.O.nRcdDeleted_42,0)},c2v:function(){gx.O.nRcdDeleted_42=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_42",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:42,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:this.Valid_Dcvnrolinh,isvalid:null,rgrid:[],fld:"DCVNROLINH",gxz:"Z188DcvNroLinh",gxold:"O188DcvNroLinh",gxvar:"A188DcvNroLinh",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A188DcvNroLinh=gx.num.intval(a)
},v2z:function(a){gx.O.Z188DcvNroLinh=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DCVNROLINH",gx.fn.currentGridRowImpl(45),gx.O.A188DcvNroLinh,0)},c2v:function(){gx.O.A188DcvNroLinh=this.val()},val:function(){return gx.fn.getGridIntegerValue("DCVNROLINH",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:42,type:"char",len:60,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DCVDESVOLU",gxz:"Z187DcvDesVolu",gxold:"O187DcvDesVolu",gxvar:"A187DcvDesVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A187DcvDesVolu=a
},v2z:function(a){gx.O.Z187DcvDesVolu=a},v2c:function(){gx.fn.setGridControlValue("DCVDESVOLU",gx.fn.currentGridRowImpl(45),gx.O.A187DcvDesVolu,0)},c2v:function(){gx.O.A187DcvDesVolu=this.val()},val:function(){return gx.fn.getGridControlValue("DCVDESVOLU",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A922UndCod=0;this.Z922UndCod=0;this.O922UndCod=0;this.A281DoeNroSequ=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.A317DvoNroVolu=0;
this.Z317DvoNroVolu=0;this.O317DvoNroVolu=0;this.A316DvoNroTomo=0;this.Z316DvoNroTomo=0;this.O316DvoNroTomo=0;this.ZnRcdDeleted_42=0;this.OnRcdDeleted_42=0;this.Z188DcvNroLinh=0;this.O188DcvNroLinh=0;this.Z187DcvDesVolu="";this.O187DcvDesVolu="";this.A188DcvNroLinh=0;this.A187DcvDesVolu="";this.ServerEvents=["e131b41_client","e141b41_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt056.prototype=new gx.GxObject;
gx.setParentObj(new tabt056());