gx.evt.autoSkip=false;function hzoper(){this.ServerClass="HZOper";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV5UsuCod=gx.fn.getControlValue("vUSUCOD")};this.Valid_Usucod=function(){try{if(gx.fn.currentGridRowImpl(26)===0){return true}var a=gx.util.balloon.getNew("USUCOD",gx.fn.currentGridRowImpl(26));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.Valid_Usunom=function(){try{if(gx.fn.currentGridRowImpl(26)===0){return true}var a=gx.util.balloon.getNew("USUNOM",gx.fn.currentGridRowImpl(26));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e121b2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e151b1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,21,23,27,28,29,30,31,32];this.GXLastCtrlId=32;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzoper",[],false,1,true,true,16,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Subfile1Container.addSingleLineEdit(968,27,"USUCOD","Operador","","UsuCod","char",0,"px",6,6,"left",null,[],968,"UsuCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(983,28,"USUNOM","Nome","","UsuNom","char",260,"px",50,50,"left",null,[],983,"UsuNom",true,0,false,false);this.Subfile1Container.addComboBox(980,29,"USUINDPRIV","Privilegiado?","UsuIndPriv","char",null,0,true,false,0,"px");this.Subfile1Container.addSingleLineEdit("Undcodmovimentacao",30,"vUNDCODMOVIMENTACAO","Unidade Movimentação","","UndCodMovimentacao","int",0,"px",3,3,"right",null,[],"Undcodmovimentacao","UndCodMovimentacao",true,0,false,false);
this.Subfile1Container.addComboBox("Usutipacesso",31,"vUSUTIPACESSO","Tipo acesso","UsuTipAcesso","char",null,0,true,false,0,"px");this.Subfile1Container.addSingleLineEdit(971,32,"USUCODUSUA","Leitor","","UsuCodUsua","char",0,"px",14,14,"left",null,[],971,"UsuCodUsua",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE3",grid:0};this.GXValidFnc[18]={fld:"TABLE2",grid:0};
this.GXValidFnc[21]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV12NomeContendo",gxold:"OV12NomeContendo",gxvar:"AV12NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12NomeContendo=a},v2z:function(a){gx.O.ZV12NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV12NomeContendo,0)},c2v:function(){gx.O.AV12NomeContendo=this.val()
},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:this.Valid_Usucod,isvalid:null,fld:"USUCOD",gxz:"Z968UsuCod",gxold:"O968UsuCod",gxvar:"A968UsuCod",ucs:[],op:[],ip:[27,28],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A968UsuCod=a},v2z:function(a){gx.O.Z968UsuCod=a},v2c:function(){gx.fn.setGridControlValue("USUCOD",gx.fn.currentGridRowImpl(26),gx.O.A968UsuCod,0)
},c2v:function(){gx.O.A968UsuCod=this.val()},val:function(){return gx.fn.getGridControlValue("USUCOD",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:this.Valid_Usunom,isvalid:null,fld:"USUNOM",gxz:"Z983UsuNom",gxold:"O983UsuNom",gxvar:"A983UsuNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A983UsuNom=a},v2z:function(a){gx.O.Z983UsuNom=a},v2c:function(){gx.fn.setGridControlValue("USUNOM",gx.fn.currentGridRowImpl(26),gx.O.A983UsuNom,0)
},c2v:function(){gx.O.A983UsuNom=this.val()},val:function(){return gx.fn.getGridControlValue("USUNOM",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"USUINDPRIV",gxz:"Z980UsuIndPriv",gxold:"O980UsuIndPriv",gxvar:"A980UsuIndPriv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A980UsuIndPriv=a},v2z:function(a){gx.O.Z980UsuIndPriv=a},v2c:function(){gx.fn.setGridComboBoxValue("USUINDPRIV",gx.fn.currentGridRowImpl(26),gx.O.A980UsuIndPriv)
},c2v:function(){gx.O.A980UsuIndPriv=this.val()},val:function(){return gx.fn.getGridControlValue("USUINDPRIV",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCODMOVIMENTACAO",gxz:"ZV9UndCodMovimentacao",gxold:"OV9UndCodMovimentacao",gxvar:"AV9UndCodMovimentacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9UndCodMovimentacao=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9UndCodMovimentacao=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vUNDCODMOVIMENTACAO",gx.fn.currentGridRowImpl(26),gx.O.AV9UndCodMovimentacao,0)},c2v:function(){gx.O.AV9UndCodMovimentacao=this.val()},val:function(){return gx.fn.getGridIntegerValue("vUNDCODMOVIMENTACAO",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vUSUTIPACESSO",gxz:"ZV7UsuTipAcesso",gxold:"OV7UsuTipAcesso",gxvar:"AV7UsuTipAcesso",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV7UsuTipAcesso=a
},v2z:function(a){gx.O.ZV7UsuTipAcesso=a},v2c:function(){gx.fn.setGridComboBoxValue("vUSUTIPACESSO",gx.fn.currentGridRowImpl(26),gx.O.AV7UsuTipAcesso)},c2v:function(){gx.O.AV7UsuTipAcesso=this.val()},val:function(){return gx.fn.getGridControlValue("vUSUTIPACESSO",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"USUCODUSUA",gxz:"Z971UsuCodUsua",gxold:"O971UsuCodUsua",gxvar:"A971UsuCodUsua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A971UsuCodUsua=a
},v2z:function(a){gx.O.Z971UsuCodUsua=a},v2c:function(){gx.fn.setGridControlValue("USUCODUSUA",gx.fn.currentGridRowImpl(26),gx.O.A971UsuCodUsua,0)},c2v:function(){gx.O.A971UsuCodUsua=this.val()},val:function(){return gx.fn.getGridControlValue("USUCODUSUA",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.AV12NomeContendo="";this.ZV12NomeContendo="";this.OV12NomeContendo="";this.Z968UsuCod="";this.O968UsuCod="";this.Z983UsuNom="";this.O983UsuNom="";this.Z980UsuIndPriv="";this.O980UsuIndPriv="";
this.ZV9UndCodMovimentacao=0;this.OV9UndCodMovimentacao=0;this.ZV7UsuTipAcesso="";this.OV7UsuTipAcesso="";this.Z971UsuCodUsua="";this.O971UsuCodUsua="";this.AV5UsuCod="";this.A984UsuTipAces="";this.A968UsuCod="";this.A983UsuNom="";this.A980UsuIndPriv="";this.AV9UndCodMovimentacao=0;this.AV7UsuTipAcesso="";this.A971UsuCodUsua="";this.ServerEvents=["e121b2_client","e151b1_client"];this.VarControlMap.AV5UsuCod={id:"vUSUCOD",grid:0,type:"char"};this.VarControlMap.AV13CharDB={id:"vCHARDB",grid:0,type:"char"};
this.VarControlMap.A984UsuTipAces={id:"USUTIPACES",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[23]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV13CharDB"});this.Subfile1Container.addRefreshingVar({rfrVar:"A984UsuTipAces"});this.SetStandaloneVars()}hzoper.prototype=new gx.GxObject;gx.setParentObj(new hzoper());