gx.evt.autoSkip=false;function himh246(){this.ServerClass="HImh246";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Valid_Tiudes=function(){try{if(gx.fn.currentGridRowImpl(32)===0){return true}var a=gx.util.balloon.getNew("TIUDES",gx.fn.currentGridRowImpl(32));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e17i91_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh247",[]),[]);
this.refreshOutputs([])};this.e16i92_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e12i92_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e13i92_client=function(){this.executeServerEvent("'PROSSEGUIR'",false)};this.e18i92_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,17,21,24,27,29,33,34,35,36,37,38,39];this.GXLastCtrlId=39;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",32,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh246",[],false,1,true,true,12,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Subfile1Container.addBitmap("&Grdimgeditar","vGRDIMGEDITAR",33,0,"px",17,"px",null,"","");this.Subfile1Container.addSingleLineEdit(883,34,"TIUCOD","Tipo","","TiuCod","char",0,"px",3,3,"left",null,[],883,"TiuCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(884,35,"TIUDES","Descrição","","TiuDes","char",0,"px",30,30,"left",null,[],884,"TiuDes",true,0,false,false);this.Subfile1Container.addSingleLineEdit(890,36,"TIUQTDRENO","Qtd. renovações","","TiuQtdReno","int",0,"px",2,2,"right",null,[],890,"TiuQtdReno",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(891,37,"TIUQTDRESE","Qtd. reservas","","TiuQtdRese","int",0,"px",3,3,"right",null,[],891,"TiuQtdRese",true,0,false,false);this.Subfile1Container.addComboBox(887,38,"TIUIND2","Pode mudar senha","TiuInd2","char",null,0,true,false,0,"px");this.Subfile1Container.addComboBox(886,39,"TIUIND1","Padrão para anônimo","TiuInd1","char",null,0,true,false,0,"px");this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};
this.GXValidFnc[17]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRCODTIPOOPERADOR",gxz:"ZV11ScrCodTipoOperador",gxold:"OV11ScrCodTipoOperador",gxvar:"AV11ScrCodTipoOperador",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11ScrCodTipoOperador=a},v2z:function(a){gx.O.ZV11ScrCodTipoOperador=a},v2c:function(){gx.fn.setControlValue("vSCRCODTIPOOPERADOR",gx.O.AV11ScrCodTipoOperador,0)},c2v:function(){gx.O.AV11ScrCodTipoOperador=this.val()
},val:function(){return gx.fn.getControlValue("vSCRCODTIPOOPERADOR")},nac:function(){return false}};this.GXValidFnc[21]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[24]={fld:"TABLE2",grid:0};this.GXValidFnc[27]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV8NomeContendo",gxold:"OV8NomeContendo",gxvar:"AV8NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8NomeContendo=a
},v2z:function(a){gx.O.ZV8NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV8NomeContendo,0)},c2v:function(){gx.O.AV8NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDIMGEDITAR",gxz:"ZV10GrdImgEditar",gxold:"OV10GrdImgEditar",gxvar:"AV10GrdImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10GrdImgEditar=a
},v2z:function(a){gx.O.ZV10GrdImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV10GrdImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDIMGEDITAR",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIUCOD",gxz:"Z883TiuCod",gxold:"O883TiuCod",gxvar:"A883TiuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A883TiuCod=a
},v2z:function(a){gx.O.Z883TiuCod=a},v2c:function(){gx.fn.setGridControlValue("TIUCOD",gx.fn.currentGridRowImpl(32),gx.O.A883TiuCod,0)},c2v:function(){gx.O.A883TiuCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIUCOD",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:this.Valid_Tiudes,isvalid:null,fld:"TIUDES",gxz:"Z884TiuDes",gxold:"O884TiuDes",gxvar:"A884TiuDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A884TiuDes=a
},v2z:function(a){gx.O.Z884TiuDes=a},v2c:function(){gx.fn.setGridControlValue("TIUDES",gx.fn.currentGridRowImpl(32),gx.O.A884TiuDes,0)},c2v:function(){gx.O.A884TiuDes=this.val()},val:function(){return gx.fn.getGridControlValue("TIUDES",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"TIUQTDRENO",gxz:"Z890TiuQtdReno",gxold:"O890TiuQtdReno",gxvar:"A890TiuQtdReno",ucs:[],op:[],ip:[],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.setGridControlValue("TIUQTDRENO",gx.fn.currentGridRowImpl(32),gx.O.A890TiuQtdReno,0)},c2v:function(){gx.O.A890TiuQtdReno=this.val()},val:function(){return gx.fn.getGridIntegerValue("TIUQTDRENO",gx.fn.currentGridRowImpl(32),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"TIUQTDRESE",gxz:"Z891TiuQtdRese",gxold:"O891TiuQtdRese",gxvar:"A891TiuQtdRese",ucs:[],op:[],ip:[],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.setGridControlValue("TIUQTDRESE",gx.fn.currentGridRowImpl(32),gx.O.A891TiuQtdRese,0)},c2v:function(){gx.O.A891TiuQtdRese=this.val()},val:function(){return gx.fn.getGridIntegerValue("TIUQTDRESE",gx.fn.currentGridRowImpl(32),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIUIND2",gxz:"Z887TiuInd2",gxold:"O887TiuInd2",gxvar:"A887TiuInd2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A887TiuInd2=a
},v2z:function(a){gx.O.Z887TiuInd2=a},v2c:function(){gx.fn.setGridComboBoxValue("TIUIND2",gx.fn.currentGridRowImpl(32),gx.O.A887TiuInd2)},c2v:function(){gx.O.A887TiuInd2=this.val()},val:function(){return gx.fn.getGridControlValue("TIUIND2",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:32,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIUIND1",gxz:"Z886TiuInd1",gxold:"O886TiuInd1",gxvar:"A886TiuInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A886TiuInd1=a
},v2z:function(a){gx.O.Z886TiuInd1=a},v2c:function(){gx.fn.setGridComboBoxValue("TIUIND1",gx.fn.currentGridRowImpl(32),gx.O.A886TiuInd1)},c2v:function(){gx.O.A886TiuInd1=this.val()},val:function(){return gx.fn.getGridControlValue("TIUIND1",gx.fn.currentGridRowImpl(32))},nac:function(){return false}};this.AV11ScrCodTipoOperador="";this.ZV11ScrCodTipoOperador="";this.OV11ScrCodTipoOperador="";this.AV8NomeContendo="";this.ZV8NomeContendo="";this.OV8NomeContendo="";this.ZV10GrdImgEditar="";this.OV10GrdImgEditar="";
this.Z883TiuCod="";this.O883TiuCod="";this.Z884TiuDes="";this.O884TiuDes="";this.Z890TiuQtdReno=0;this.O890TiuQtdReno=0;this.Z891TiuQtdRese=0;this.O891TiuQtdRese=0;this.Z887TiuInd2="";this.O887TiuInd2="";this.Z886TiuInd1="";this.O886TiuInd1="";this.AV10GrdImgEditar="";this.A883TiuCod="";this.A884TiuDes="";this.A890TiuQtdReno=0;this.A891TiuQtdRese=0;this.A887TiuInd2="";this.A886TiuInd1="";this.ServerEvents=["e16i92_client","e12i92_client","e13i92_client","e18i92_client"];this.VarControlMap.AV9CharDB={id:"vCHARDB",grid:0,type:"char"};
this.Subfile1Container.addRefreshingVar(this.GXValidFnc[29]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV9CharDB"});this.SetStandaloneVars()}himh246.prototype=new gx.GxObject;gx.setParentObj(new himh246());