gx.evt.autoSkip=false;function tabt071(){this.ServerClass="TAbt071";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_mode","Z787UsbCod","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Dsenrosequ=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true
}var a=gx.util.balloon.getNew("DSENROSEQU",gx.fn.currentGridRowImpl(25));this.AnyError=0;this.sMode52=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(52,25);this.standaloneModal1Q52();this.standaloneNotModal1Q52();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.sMode52;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal1Q52=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DSENROSEQU","Enabled",0)
}else{gx.fn.setCtrlProperty("DSENROSEQU","Enabled",1)}}catch(a){}return true};this.standaloneNotModal1Q52=function(){return true};this.e111q13_client=function(){this.executeServerEvent("ENTER",true)};this.e121q13_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,26,27,28,29];this.GXLastCtrlId=29;this.Grid1Container=new gx.grid.grid(this,52,"Level1",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt071",[291],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_52",26,"vNRCDDELETED_52","","","nRcdDeleted_52","int",0,"px",4,4,"right",null,[],"nRcdDeleted_52","nRcdDeleted_52",true,0,false,false);this.Grid1Container.addSingleLineEdit(291,27,"DSENROSEQU","Nro. sequência","","DseNroSequ","int",0,"px",4,4,"right",null,[],291,"DseNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(290,28,"DSECODAUTO","Código da autoridade","","DseCodAuto","int",0,"px",8,8,"right",null,[],290,"DseCodAuto",true,0,false,false);
this.Grid1Container.addComboBox(292,29,"DSETIPAUTO","Tipo de autoridade","DseTipAuto","char",null,0,true,false,0,"px");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:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usbcod,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[],ip:[20],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[26]={lvl:52,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_52",gxz:"ZnRcdDeleted_52",gxold:"OnRcdDeleted_52",gxvar:"nRcdDeleted_52",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_52=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_52=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_52",gx.fn.currentGridRowImpl(25),gx.O.nRcdDeleted_52,0)},c2v:function(){gx.O.nRcdDeleted_52=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_52",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:52,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:25,gxgrid:this.Grid1Container,fnc:this.Valid_Dsenrosequ,isvalid:null,rgrid:[],fld:"DSENROSEQU",gxz:"Z291DseNroSequ",gxold:"O291DseNroSequ",gxvar:"A291DseNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A291DseNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z291DseNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DSENROSEQU",gx.fn.currentGridRowImpl(25),gx.O.A291DseNroSequ,0)},c2v:function(){gx.O.A291DseNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DSENROSEQU",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:52,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DSECODAUTO",gxz:"Z290DseCodAuto",gxold:"O290DseCodAuto",gxvar:"A290DseCodAuto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A290DseCodAuto=gx.num.intval(a)
},v2z:function(a){gx.O.Z290DseCodAuto=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DSECODAUTO",gx.fn.currentGridRowImpl(25),gx.O.A290DseCodAuto,0)},c2v:function(){gx.O.A290DseCodAuto=this.val()},val:function(){return gx.fn.getGridIntegerValue("DSECODAUTO",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:52,type:"char",len:1,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DSETIPAUTO",gxz:"Z292DseTipAuto",gxold:"O292DseTipAuto",gxvar:"A292DseTipAuto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A292DseTipAuto=a
},v2z:function(a){gx.O.Z292DseTipAuto=a},v2c:function(){gx.fn.setGridComboBoxValue("DSETIPAUTO",gx.fn.currentGridRowImpl(25),gx.O.A292DseTipAuto)},c2v:function(){gx.O.A292DseTipAuto=this.val()},val:function(){return gx.fn.getGridControlValue("DSETIPAUTO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.A787UsbCod="";this.Z787UsbCod="";this.O787UsbCod="";this.ZnRcdDeleted_52=0;this.OnRcdDeleted_52=0;this.Z291DseNroSequ=0;this.O291DseNroSequ=0;this.Z290DseCodAuto=0;this.O290DseCodAuto=0;
this.Z292DseTipAuto="";this.O292DseTipAuto="";this.A291DseNroSequ=0;this.A290DseCodAuto=0;this.A292DseTipAuto="";this.ServerEvents=["e111q13_client","e121q13_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt071.prototype=new gx.GxObject;gx.setParentObj(new tabt071());