gx.evt.autoSkip=false;function tabt075(){this.ServerClass="TAbt075";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Usbcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Usbcod",["gx.O.A787UsbCod","gx.O.A786UsbNom"],["A786UsbNom","Gx_mode","Z787UsbCod","Z786UsbNom","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Usnnroseq=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true
}var a=gx.util.balloon.getNew("USNNROSEQ",gx.fn.currentGridRowImpl(25));this.AnyError=0;this.sMode56=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(56,25);this.standaloneModal0L56();this.standaloneNotModal0L56();if(gx.fn.gridDuplicateKey(27)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode56;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal0L56=function(){try{if((this.Gx_mode=="INS")){this.A964UsnNroSeq=1
}}catch(a){}return true};this.standaloneNotModal0L56=function(){try{gx.fn.setCtrlProperty("USNNROSEQ","Enabled",0)}catch(a){}return true};this.e120l13_client=function(){this.clearMessages();this.refreshOutputs([])};this.e130l13_client=function(){this.executeServerEvent("ENTER",true)};this.e140l13_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,16,21,26,27,28];this.GXLastCtrlId=28;this.Grid1Container=new gx.grid.grid(this,56,"Level1",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt075",[964],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_56",26,"vNRCDDELETED_56","Remove Line","","nRcdDeleted_56","int",0,"px",4,4,"right",null,[],"nRcdDeleted_56","nRcdDeleted_56",true,0,false,false);this.Grid1Container.addComboBox(964,27,"USNNROSEQ","Nr. sequência","UsnNroSeq","int",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(963,28,"USNDESANOT","Anotações","","UsnDesAnot","vchar",0,"px",10240,10240,"left",null,[],963,"UsnDesAnot",true,0,false,false);this.setGrid(this.Grid1Container);
this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Usbcod,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[21],ip:[21,16],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setControlValue("USBCOD",gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getControlValue("USBCOD")
},nac:function(){return false}};this.GXValidFnc[21]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USBNOM",gxz:"Z786UsbNom",gxold:"O786UsbNom",gxvar:"A786UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A786UsbNom=a},v2z:function(a){gx.O.Z786UsbNom=a},v2c:function(){gx.fn.setControlValue("USBNOM",gx.O.A786UsbNom,0)},c2v:function(){gx.O.A786UsbNom=this.val()},val:function(){return gx.fn.getControlValue("USBNOM")},nac:function(){return false
}};this.GXValidFnc[26]={lvl:56,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_56",gxz:"ZnRcdDeleted_56",gxold:"OnRcdDeleted_56",gxvar:"nRcdDeleted_56",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_56=gx.num.intval(a)},v2z:function(a){gx.O.ZnRcdDeleted_56=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_56",gx.fn.currentGridRowImpl(25),gx.O.nRcdDeleted_56,0)
},c2v:function(){gx.O.nRcdDeleted_56=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_56",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:56,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:this.Valid_Usnnroseq,isvalid:null,rgrid:[],fld:"USNNROSEQ",gxz:"Z964UsnNroSeq",gxold:"O964UsnNroSeq",gxvar:"A964UsnNroSeq",ucs:[],op:[27],ip:[27],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A964UsnNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z964UsnNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridComboBoxValue("USNNROSEQ",gx.fn.currentGridRowImpl(25),gx.O.A964UsnNroSeq)},c2v:function(){gx.O.A964UsnNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("USNNROSEQ",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:56,type:"vchar",len:10240,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USNDESANOT",gxz:"Z963UsnDesAnot",gxold:"O963UsnDesAnot",gxvar:"A963UsnDesAnot",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A963UsnDesAnot=a
},v2z:function(a){gx.O.Z963UsnDesAnot=a},v2c:function(){gx.fn.setGridControlValue("USNDESANOT",gx.fn.currentGridRowImpl(25),gx.O.A963UsnDesAnot,0)},c2v:function(){gx.O.A963UsnDesAnot=this.val()},val:function(){return gx.fn.getGridControlValue("USNDESANOT",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.A787UsbCod="";this.Z787UsbCod="";this.O787UsbCod="";this.A786UsbNom="";this.Z786UsbNom="";this.O786UsbNom="";this.ZnRcdDeleted_56=0;this.OnRcdDeleted_56=0;this.Z964UsnNroSeq=0;this.O964UsnNroSeq=0;
this.Z963UsnDesAnot="";this.O963UsnDesAnot="";this.A964UsnNroSeq=0;this.A963UsnDesAnot="";this.AV14UsuCodCorr="";this.AV25UsuCodUnidDepositaria=0;this.AV26UsuTipAcesso="";this.AV15IndLiber="";this.ServerEvents=["e130l13_client","e140l13_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt075.prototype=new gx.GxObject;gx.setParentObj(new tabt075());