gx.evt.autoSkip=false;function tabt010(){this.ServerClass="Tabt010";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Docnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Docnro",["gx.O.A258DocNro","gx.O.A260DocNroUltN"],["A260DocNroUltN","Gx_mode","Z258DocNro","Z260DocNroUltN","O260DocNroUltN","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Docnroultn=function(){try{var a=gx.util.balloon.getNew("DOCNROULTN");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Donnroseq=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true}var a=gx.util.balloon.getNew("DONNROSEQ",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.sMode7=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(7,30);this.standaloneModal0B7();this.standaloneNotModal0B7();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.sMode7;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal0B7=function(){this.A260DocNroUltN=gx.fn.serialRule("A260DocNroUltN","A288DonNroSeq",30,1,this);try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DONNROSEQ","Enabled",0)}else{gx.fn.setCtrlProperty("DONNROSEQ","Enabled",1)}}catch(a){}return true};this.standaloneNotModal0B7=function(){try{gx.fn.setCtrlProperty("DOCNROULTN","Enabled",0)}catch(a){}try{gx.fn.setCtrlProperty("DOCNROULTN","Enabled",0)
}catch(a){}return true};this.e120b2_client=function(){this.executeServerEvent("'INCLUIR SUBLINHAS'",true)};this.e130b5_client=function(){this.executeServerEvent("ENTER",true)};this.e140b5_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,7,"Level1",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt010",[288],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_7",31,"vNRCDDELETED_7","","","nRcdDeleted_7","int",0,"px",4,4,"right",null,[],"nRcdDeleted_7","nRcdDeleted_7",true,0,false,false);this.Grid1Container.addSingleLineEdit(288,32,"DONNROSEQ","Sequência","","DonNroSeq","int",0,"px",4,4,"right",null,[],288,"DonNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(287,33,"DONDESLINH","Linha","","DonDesLinh","char",0,"px",70,70,"left",null,[],287,"DonDesLinh",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:[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:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Docnroultn,isvalid:null,rgrid:[],fld:"DOCNROULTN",gxz:"Z260DocNroUltN",gxold:"O260DocNroUltN",gxvar:"A260DocNroUltN",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A260DocNroUltN=gx.num.intval(a)
},v2z:function(a){gx.O.Z260DocNroUltN=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DOCNROULTN",gx.O.A260DocNroUltN,0)},c2v:function(){gx.O.A260DocNroUltN=this.val()},val:function(){return gx.fn.getIntegerValue("DOCNROULTN",".")},nac:function(){return false}};this.GXValidFnc[31]={lvl:7,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_7",gxz:"ZnRcdDeleted_7",gxold:"OnRcdDeleted_7",gxvar:"nRcdDeleted_7",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_7=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_7=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_7",gx.fn.currentGridRowImpl(30),gx.O.nRcdDeleted_7,0)},c2v:function(){gx.O.nRcdDeleted_7=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_7",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:7,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Donnroseq,isvalid:null,rgrid:[],fld:"DONNROSEQ",gxz:"Z288DonNroSeq",gxold:"O288DonNroSeq",gxvar:"A288DonNroSeq",ucs:[],op:[32,26],ip:[32,26],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A288DonNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z288DonNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DONNROSEQ",gx.fn.currentGridRowImpl(30),gx.O.A288DonNroSeq,0)},c2v:function(){gx.O.A288DonNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("DONNROSEQ",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:7,type:"char",len:70,dec:0,sign:false,ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DONDESLINH",gxz:"Z287DonDesLinh",gxold:"O287DonDesLinh",gxvar:"A287DonDesLinh",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A287DonDesLinh=a
},v2z:function(a){gx.O.Z287DonDesLinh=a},v2c:function(){gx.fn.setGridControlValue("DONDESLINH",gx.fn.currentGridRowImpl(30),gx.O.A287DonDesLinh,0)},c2v:function(){gx.O.A287DonDesLinh=this.val()},val:function(){return gx.fn.getGridControlValue("DONDESLINH",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A260DocNroUltN=0;this.Z260DocNroUltN=0;this.O260DocNroUltN=0;this.ZnRcdDeleted_7=0;this.OnRcdDeleted_7=0;this.Z288DonNroSeq=0;
this.O288DonNroSeq=0;this.Z287DonDesLinh="";this.O287DonDesLinh="";this.A288DonNroSeq=0;this.A287DonDesLinh="";this.AV16UsuCodCorr="";this.AV18UsuCodUnidDepositaria=0;this.AV19UsuTipAcesso="";this.AV17IndLiber="";this.Gx_BScreen=0;this.ServerEvents=["e120b2_client","e130b5_client","e140b5_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars();
this.LvlOlds[5]=["O260DocNroUltN"]}tabt010.prototype=new gx.GxObject;gx.setParentObj(new tabt010());