gx.evt.autoSkip=false;function tabt053(){this.ServerClass="TAbt053";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE");this.AV17MudouAlgo=gx.fn.getControlValue("vMUDOUALGO");this.AV18ParTipForm=gx.fn.getControlValue("vPARTIPFORM")};this.Valid_Autnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Autnro",["gx.O.A74AutNro","gx.O.A71AutNom","gx.O.A75AutTipAuto","gx.O.A70AutDesTitu","gx.O.A69AutDesData","gx.O.A72AutNomLoca","gx.O.A73AutNomSemA"],["A71AutNom","A75AutTipAuto","A70AutDesTitu","A69AutDesData","A72AutNomLoca","A73AutNomSemA","Gx_mode","Z74AutNro","Z71AutNom","Z75AutTipAuto","Z70AutDesTitu","Z69AutDesData","Z72AutNomLoca","Z73AutNomSemA","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Atinrosequ=function(){try{if(gx.fn.currentGridRowImpl(55)===0){return true}var a=gx.util.balloon.getNew("ATINROSEQU",gx.fn.currentGridRowImpl(55));this.AnyError=0;this.sMode38=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(38,55);this.standaloneModal1538();this.standaloneNotModal1538();if(gx.fn.gridDuplicateKey(57)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode38;if(a==null){return true}return a.show()
}catch(b){}return true};this.Valid_Atidestitu=function(){try{if(gx.fn.currentGridRowImpl(55)===0){return true}var a=gx.util.balloon.getNew("ATIDESTITU",gx.fn.currentGridRowImpl(55));this.AnyError=0;this.sMode38=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(38,55);if((""==this.A67AtiDesTitu)){try{a.setError("Informe o título do autor. ");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode38;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Aticampo1l=function(){try{if(gx.fn.currentGridRowImpl(55)===0){return true
}var a=gx.util.balloon.getNew("ATICAMPO1L",gx.fn.currentGridRowImpl(55));this.AnyError=0;this.sMode38=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(38,55);if(this.Gx_mode=="UPD"){}}catch(b){}try{this.Gx_mode=this.sMode38;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal1538=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("ATINROSEQU","Enabled",0)}else{gx.fn.setCtrlProperty("ATINROSEQU","Enabled",1)}}catch(a){}return true};this.standaloneNotModal1538=function(){return true
};this.e141531_client=function(){this.clearMessages();this.refreshOutputs([])};this.e13152_client=function(){this.executeServerEvent("AFTER TRN",true)};this.e11152_client=function(){this.executeServerEvent("EXIT",true)};this.e151531_client=function(){this.executeServerEvent("ENTER",true)};this.e161531_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,56,57,58,59];this.GXLastCtrlId=59;this.Grid1Container=new gx.grid.grid(this,38,"Level1",55,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt053",[68],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_38",56,"vNRCDDELETED_38","","","nRcdDeleted_38","int",0,"px",4,4,"right",null,[],"nRcdDeleted_38","nRcdDeleted_38",true,0,false,false);this.Grid1Container.addSingleLineEdit(68,57,"ATINROSEQU","Sequência","","AtiNroSequ","int",0,"px",3,3,"right",null,[],68,"AtiNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(67,58,"ATIDESTITU","Título","","AtiDesTitu","char",0,"px",40,40,"left",null,[],67,"AtiDesTitu",true,0,false,false);this.Grid1Container.addSingleLineEdit(66,59,"ATICAMPO1L","Campo livre","","AtiCampo1L","char",0,"px",10,10,"left",null,[],66,"AtiCampo1L",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_Autnro,isvalid:null,rgrid:[this.Grid1Container],fld:"AUTNRO",gxz:"Z74AutNro",gxold:"O74AutNro",gxvar:"A74AutNro",ucs:[],op:[51,46,41,36,31,26],ip:[51,46,41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A74AutNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z74AutNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("AUTNRO",gx.O.A74AutNro,0)},c2v:function(){gx.O.A74AutNro=this.val()},val:function(){return gx.fn.getIntegerValue("AUTNRO",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:250,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AUTNOM",gxz:"Z71AutNom",gxold:"O71AutNom",gxvar:"A71AutNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A71AutNom=a
},v2z:function(a){gx.O.Z71AutNom=a},v2c:function(){gx.fn.setControlValue("AUTNOM",gx.O.A71AutNom,0)},c2v:function(){gx.O.A71AutNom=this.val()},val:function(){return gx.fn.getControlValue("AUTNOM")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AUTTIPAUTO",gxz:"Z75AutTipAuto",gxold:"O75AutTipAuto",gxvar:"A75AutTipAuto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A75AutTipAuto=a
},v2z:function(a){gx.O.Z75AutTipAuto=a},v2c:function(){gx.fn.setComboBoxValue("AUTTIPAUTO",gx.O.A75AutTipAuto)},c2v:function(){gx.O.A75AutTipAuto=this.val()},val:function(){return gx.fn.getControlValue("AUTTIPAUTO")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AUTDESTITU",gxz:"Z70AutDesTitu",gxold:"O70AutDesTitu",gxvar:"A70AutDesTitu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A70AutDesTitu=a
},v2z:function(a){gx.O.Z70AutDesTitu=a},v2c:function(){gx.fn.setControlValue("AUTDESTITU",gx.O.A70AutDesTitu,0)},c2v:function(){gx.O.A70AutDesTitu=this.val()},val:function(){return gx.fn.getControlValue("AUTDESTITU")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AUTDESDATA",gxz:"Z69AutDesData",gxold:"O69AutDesData",gxvar:"A69AutDesData",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A69AutDesData=a
},v2z:function(a){gx.O.Z69AutDesData=a},v2c:function(){gx.fn.setControlValue("AUTDESDATA",gx.O.A69AutDesData,0)},c2v:function(){gx.O.A69AutDesData=this.val()},val:function(){return gx.fn.getControlValue("AUTDESDATA")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AUTNOMLOCA",gxz:"Z72AutNomLoca",gxold:"O72AutNomLoca",gxvar:"A72AutNomLoca",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A72AutNomLoca=a
},v2z:function(a){gx.O.Z72AutNomLoca=a},v2c:function(){gx.fn.setControlValue("AUTNOMLOCA",gx.O.A72AutNomLoca,0)},c2v:function(){gx.O.A72AutNomLoca=this.val()},val:function(){return gx.fn.getControlValue("AUTNOMLOCA")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AUTNOMSEMA",gxz:"Z73AutNomSemA",gxold:"O73AutNomSemA",gxvar:"A73AutNomSemA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A73AutNomSemA=a
},v2z:function(a){gx.O.Z73AutNomSemA=a},v2c:function(){gx.fn.setControlValue("AUTNOMSEMA",gx.O.A73AutNomSemA,0)},c2v:function(){gx.O.A73AutNomSemA=this.val()},val:function(){return gx.fn.getControlValue("AUTNOMSEMA")},nac:function(){return false}};this.GXValidFnc[56]={lvl:38,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:55,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_38",gxz:"ZnRcdDeleted_38",gxold:"OnRcdDeleted_38",gxvar:"nRcdDeleted_38",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_38=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_38=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_38",gx.fn.currentGridRowImpl(55),gx.O.nRcdDeleted_38,0)},c2v:function(){gx.O.nRcdDeleted_38=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_38",gx.fn.currentGridRowImpl(55),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:38,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:55,gxgrid:this.Grid1Container,fnc:this.Valid_Atinrosequ,isvalid:null,rgrid:[],fld:"ATINROSEQU",gxz:"Z68AtiNroSequ",gxold:"O68AtiNroSequ",gxvar:"A68AtiNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A68AtiNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z68AtiNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ATINROSEQU",gx.fn.currentGridRowImpl(55),gx.O.A68AtiNroSequ,0)},c2v:function(){gx.O.A68AtiNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("ATINROSEQU",gx.fn.currentGridRowImpl(55),".")},nac:function(){return false}};this.GXValidFnc[58]={lvl:38,type:"char",len:40,dec:0,sign:false,ro:0,grid:55,gxgrid:this.Grid1Container,fnc:this.Valid_Atidestitu,isvalid:null,fld:"ATIDESTITU",gxz:"Z67AtiDesTitu",gxold:"O67AtiDesTitu",gxvar:"A67AtiDesTitu",ucs:[],op:[58],ip:[58],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A67AtiDesTitu=a
},v2z:function(a){gx.O.Z67AtiDesTitu=a},v2c:function(){gx.fn.setGridControlValue("ATIDESTITU",gx.fn.currentGridRowImpl(55),gx.O.A67AtiDesTitu,0)},c2v:function(){gx.O.A67AtiDesTitu=this.val()},val:function(){return gx.fn.getGridControlValue("ATIDESTITU",gx.fn.currentGridRowImpl(55))},nac:function(){return false}};this.GXValidFnc[59]={lvl:38,type:"char",len:10,dec:0,sign:false,ro:0,grid:55,gxgrid:this.Grid1Container,fnc:this.Valid_Aticampo1l,isvalid:null,fld:"ATICAMPO1L",gxz:"Z66AtiCampo1L",gxold:"O66AtiCampo1L",gxvar:"A66AtiCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A66AtiCampo1L=a
},v2z:function(a){gx.O.Z66AtiCampo1L=a},v2c:function(){gx.fn.setGridControlValue("ATICAMPO1L",gx.fn.currentGridRowImpl(55),gx.O.A66AtiCampo1L,0)},c2v:function(){gx.O.A66AtiCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("ATICAMPO1L",gx.fn.currentGridRowImpl(55))},nac:function(){return false}};this.A74AutNro=0;this.Z74AutNro=0;this.O74AutNro=0;this.A71AutNom="";this.Z71AutNom="";this.O71AutNom="";this.A75AutTipAuto="";this.Z75AutTipAuto="";this.O75AutTipAuto="";this.A70AutDesTitu="";
this.Z70AutDesTitu="";this.O70AutDesTitu="";this.A69AutDesData="";this.Z69AutDesData="";this.O69AutDesData="";this.A72AutNomLoca="";this.Z72AutNomLoca="";this.O72AutNomLoca="";this.A73AutNomSemA="";this.Z73AutNomSemA="";this.O73AutNomSemA="";this.ZnRcdDeleted_38=0;this.OnRcdDeleted_38=0;this.Z68AtiNroSequ=0;this.O68AtiNroSequ=0;this.Z67AtiDesTitu="";this.O67AtiDesTitu="";this.Z66AtiCampo1L="";this.O66AtiCampo1L="";this.A68AtiNroSequ=0;this.A67AtiDesTitu="";this.A66AtiCampo1L="";this.AV17MudouAlgo="";
this.AV18ParTipForm="";this.ServerEvents=["e13152_client","e11152_client","e151531_client","e161531_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.AV17MudouAlgo={id:"vMUDOUALGO",grid:0,type:"char"};this.VarControlMap.AV18ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.SetStandaloneVars()}tabt053.prototype=new gx.GxObject;gx.setParentObj(new tabt053());