gx.evt.autoSkip=false;function tabt033(){this.ServerClass="TAbt033";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_Tiucod=function(){gx.ajax.validSrvEvt("dyncall","valid_Tiucod",["gx.O.A883TiuCod","gx.O.A884TiuDes","gx.O.A888TiuIndPaga","gx.O.A885TiuDesCamp","gx.O.A890TiuQtdReno","gx.O.A894TiuTipReti","gx.O.A891TiuQtdRese","gx.O.A892TiuTipCalc","gx.O.A895TiuValMult"],["A884TiuDes","A888TiuIndPaga","A885TiuDesCamp","A890TiuQtdReno","A894TiuTipReti","A891TiuQtdRese","A892TiuTipCalc","A895TiuValMult","Gx_mode","Z883TiuCod","Z884TiuDes","Z888TiuIndPaga","Z885TiuDesCamp","Z890TiuQtdReno","Z894TiuTipReti","Z891TiuQtdRese","Z892TiuTipCalc","Z895TiuValMult",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Tiudes=function(){try{var a=gx.util.balloon.getNew("TIUDES");this.AnyError=0;if((""==this.A884TiuDes)){try{a.setError("Descrição do tipo de usuário não pode ser nula");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Tiuqtdreno=function(){try{var a=gx.util.balloon.getNew("TIUQTDRENO");this.AnyError=0;if(this.A890TiuQtdReno<0){try{a.setError("Quantidade de renovações deve ser nula ou positiva");this.AnyError=1
}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Tiuqtdrese=function(){try{var a=gx.util.balloon.getNew("TIUQTDRESE");this.AnyError=0;if(this.A891TiuQtdRese<0){try{a.setError("Quantidade de reservas deve ser nula ou positiva");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e110u11_client=function(){this.executeServerEvent("ENTER",true)};this.e120u11_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,54,56,59,61];this.GXLastCtrlId=61;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:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tiucod,isvalid:null,fld:"TIUCOD",gxz:"Z883TiuCod",gxold:"O883TiuCod",gxvar:"A883TiuCod",ucs:[],op:[20,61,56,51,46,41,36,31,26],ip:[61,56,51,46,41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A883TiuCod=a
},v2z:function(a){gx.O.Z883TiuCod=a},v2c:function(){gx.fn.setControlValue("TIUCOD",gx.O.A883TiuCod,0)},c2v:function(){gx.O.A883TiuCod=this.val()},val:function(){return gx.fn.getControlValue("TIUCOD")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tiudes,isvalid:null,fld:"TIUDES",gxz:"Z884TiuDes",gxold:"O884TiuDes",gxvar:"A884TiuDes",ucs:[],op:[26],ip:[26],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A884TiuDes=a
},v2z:function(a){gx.O.Z884TiuDes=a},v2c:function(){gx.fn.setControlValue("TIUDES",gx.O.A884TiuDes,0)},c2v:function(){gx.O.A884TiuDes=this.val()},val:function(){return gx.fn.getControlValue("TIUDES")},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:"TIUINDPAGA",gxz:"Z888TiuIndPaga",gxold:"O888TiuIndPaga",gxvar:"A888TiuIndPaga",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A888TiuIndPaga=a
},v2z:function(a){gx.O.Z888TiuIndPaga=a},v2c:function(){gx.fn.setComboBoxValue("TIUINDPAGA",gx.O.A888TiuIndPaga)},c2v:function(){gx.O.A888TiuIndPaga=this.val()},val:function(){return gx.fn.getControlValue("TIUINDPAGA")},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:"TIUDESCAMP",gxz:"Z885TiuDesCamp",gxold:"O885TiuDesCamp",gxvar:"A885TiuDesCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A885TiuDesCamp=a
},v2z:function(a){gx.O.Z885TiuDesCamp=a},v2c:function(){gx.fn.setControlValue("TIUDESCAMP",gx.O.A885TiuDesCamp,0)},c2v:function(){gx.O.A885TiuDesCamp=this.val()},val:function(){return gx.fn.getControlValue("TIUDESCAMP")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tiuqtdreno,isvalid:null,rgrid:[],fld:"TIUQTDRENO",gxz:"Z890TiuQtdReno",gxold:"O890TiuQtdReno",gxvar:"A890TiuQtdReno",ucs:[],op:[41],ip:[41],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A890TiuQtdReno=gx.num.intval(a)
},v2z:function(a){gx.O.Z890TiuQtdReno=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("TIUQTDRENO",gx.O.A890TiuQtdReno,0)},c2v:function(){gx.O.A890TiuQtdReno=this.val()},val:function(){return gx.fn.getIntegerValue("TIUQTDRENO",".")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"TIUTIPRETI",gxz:"Z894TiuTipReti",gxold:"O894TiuTipReti",gxvar:"A894TiuTipReti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A894TiuTipReti=a
},v2z:function(a){gx.O.Z894TiuTipReti=a},v2c:function(){gx.fn.setComboBoxValue("TIUTIPRETI",gx.O.A894TiuTipReti)},c2v:function(){gx.O.A894TiuTipReti=this.val()},val:function(){return gx.fn.getControlValue("TIUTIPRETI")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Tiuqtdrese,isvalid:null,rgrid:[],fld:"TIUQTDRESE",gxz:"Z891TiuQtdRese",gxold:"O891TiuQtdRese",gxvar:"A891TiuQtdRese",ucs:[],op:[51],ip:[51],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A891TiuQtdRese=gx.num.intval(a)
},v2z:function(a){gx.O.Z891TiuQtdRese=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("TIUQTDRESE",gx.O.A891TiuQtdRese,0)},c2v:function(){gx.O.A891TiuQtdRese=this.val()},val:function(){return gx.fn.getIntegerValue("TIUQTDRESE",".")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"int",len:1,dec:0,sign:false,pic:"9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"TIUTIPCALC",gxz:"Z892TiuTipCalc",gxold:"O892TiuTipCalc",gxvar:"A892TiuTipCalc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A892TiuTipCalc=gx.num.intval(a)
},v2z:function(a){gx.O.Z892TiuTipCalc=gx.num.intval(a)},v2c:function(){gx.fn.setComboBoxValue("TIUTIPCALC",gx.O.A892TiuTipCalc)},c2v:function(){gx.O.A892TiuTipCalc=this.val()},val:function(){return gx.fn.getIntegerValue("TIUTIPCALC",".")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"decimal",len:4,dec:2,sign:false,pic:"9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"TIUVALMULT",gxz:"Z895TiuValMult",gxold:"O895TiuValMult",gxvar:"A895TiuValMult",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A895TiuValMult=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z895TiuValMult=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("TIUVALMULT",gx.O.A895TiuValMult,2,",")},c2v:function(){gx.O.A895TiuValMult=this.val()},val:function(){return gx.fn.getDecimalValue("TIUVALMULT",".",",")},nac:function(){return false}};this.A883TiuCod="";this.Z883TiuCod="";this.O883TiuCod="";this.A884TiuDes="";this.Z884TiuDes="";this.O884TiuDes="";this.A888TiuIndPaga="";this.Z888TiuIndPaga="";this.O888TiuIndPaga="";this.A885TiuDesCamp="";this.Z885TiuDesCamp="";
this.O885TiuDesCamp="";this.A890TiuQtdReno=0;this.Z890TiuQtdReno=0;this.O890TiuQtdReno=0;this.A894TiuTipReti="";this.Z894TiuTipReti="";this.O894TiuTipReti="";this.A891TiuQtdRese=0;this.Z891TiuQtdRese=0;this.O891TiuQtdRese=0;this.A892TiuTipCalc=0;this.Z892TiuTipCalc=0;this.O892TiuTipCalc=0;this.A895TiuValMult=0;this.Z895TiuValMult=0;this.O895TiuValMult=0;this.Gx_BScreen=0;this.ServerEvents=["e110u11_client","e120u11_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()}tabt033.prototype=new gx.GxObject;gx.setParentObj(new tabt033());