gx.evt.autoSkip=false;function timt103(){this.ServerClass="TImt103";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A963UsnDesAnot=gx.fn.getControlValue("USNDESANOT");this.A1074UsnValRecu=gx.fn.getControlValue("USNVALRECU");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Usbcod=function(){try{var a=gx.util.balloon.getNew("USBCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Usnnroseq=function(){gx.ajax.validSrvEvt("dyncall","valid_Usnnroseq",["gx.O.AV28ScrDesAnotacoes","gx.O.A787UsbCod","gx.O.A964UsnNroSeq","gx.O.A1074UsnValRecu","gx.O.A963UsnDesAnot"],["A1074UsnValRecu","A963UsnDesAnot","A786UsbNom","Gx_mode","Z787UsbCod","Z964UsnNroSeq","Z1074UsnValRecu","Z963UsnDesAnot","Z786UsbNom",["BTN_ENTER1","Enabled"]]);
return true};this.Validv_Scrdesanotacoes=function(){try{var a=gx.util.balloon.getNew("vSCRDESANOTACOES");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e12612_client=function(){this.executeServerEvent("'GET PENSA-B'",false)};this.e13612_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e146156_client=function(){this.executeServerEvent("ENTER",true)};this.e156156_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];
this.GXCtrlIds=[3,12,15,18,20,23,25,28,30,33,39];this.GXLastCtrlId=39;this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE1",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[20]={fld:"TABLE2",grid:0};this.GXValidFnc[23]={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:[],ip:[],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[25]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,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[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={fld:"TABLE4",grid:0};this.GXValidFnc[33]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Usnnroseq,isvalid:null,rgrid:[],fld:"USNNROSEQ",gxz:"Z964UsnNroSeq",gxold:"O964UsnNroSeq",gxvar:"A964UsnNroSeq",ucs:[],op:[],ip:[33,23],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.setComboBoxValue("USNNROSEQ",gx.O.A964UsnNroSeq)},c2v:function(){gx.O.A964UsnNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("USNNROSEQ",".")},nac:function(){return false}};this.GXValidFnc[39]={lvl:0,type:"vchar",len:10240,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Scrdesanotacoes,isvalid:null,fld:"vSCRDESANOTACOES",gxz:"ZV28ScrDesAnotacoes",gxold:"OV28ScrDesAnotacoes",gxvar:"AV28ScrDesAnotacoes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28ScrDesAnotacoes=a
},v2z:function(a){gx.O.ZV28ScrDesAnotacoes=a},v2c:function(){gx.fn.setControlValue("vSCRDESANOTACOES",gx.O.AV28ScrDesAnotacoes,0)},c2v:function(){gx.O.AV28ScrDesAnotacoes=this.val()},val:function(){return gx.fn.getControlValue("vSCRDESANOTACOES")},nac:function(){return false}};this.A787UsbCod="";this.Z787UsbCod="";this.O787UsbCod="";this.A786UsbNom="";this.Z786UsbNom="";this.O786UsbNom="";this.A964UsnNroSeq=0;this.Z964UsnNroSeq=0;this.O964UsnNroSeq=0;this.AV28ScrDesAnotacoes="";this.ZV28ScrDesAnotacoes="";
this.OV28ScrDesAnotacoes="";this.AV14UsuCodCorr="";this.A1074UsnValRecu="";this.A963UsnDesAnot="";this.ServerEvents=["e12612_client","e13612_client","e146156_client","e156156_client"];this.EnterCtrl=["BTN_ENTER1"];this.VarControlMap.A963UsnDesAnot={id:"USNDESANOT",grid:0,type:"vchar"};this.VarControlMap.A1074UsnValRecu={id:"USNVALRECU",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt103.prototype=new gx.GxObject;gx.setParentObj(new timt103());