gx.evt.autoSkip=false;function himh151(){this.ServerClass="HImh151";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV14ParmCodUnidadeDepositaria=gx.fn.getIntegerValue("vPARMCODUNIDADEDEPOSITARIA",".")};this.Validv_Usucod=function(){try{var a=gx.util.balloon.getNew("vUSUCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Undcod=function(){try{if(gx.fn.currentGridRowImpl(27)===0){return true
}var a=gx.util.balloon.getNew("UNDCOD",gx.fn.currentGridRowImpl(27));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11562_client=function(){this.executeServerEvent("ENTER",true)};this.e14561_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,22,28,29,30,31];this.GXLastCtrlId=31;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",27,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh151",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addCheckBox("Op",28,"vOP","Movimentar","","Op","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit(922,29,"UNDCOD","Unid.","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(925,30,"UNDNOMCOMP","Nome","","UndNomComp","char",0,"px",40,40,"left",null,[],925,"UndNomComp",true,0,false,false);this.Grid1Container.addCheckBox(557,31,"OPUINDMOVI","","","OpuIndMovi","char","S","N",null,true,false,0,"px");
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK2",format:0,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:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Usucod,isvalid:null,fld:"vUSUCOD",gxz:"ZV9UsuCod",gxold:"OV9UsuCod",gxvar:"AV9UsuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9UsuCod=a},v2z:function(a){gx.O.ZV9UsuCod=a
},v2c:function(){gx.fn.setControlValue("vUSUCOD",gx.O.AV9UsuCod,0)},c2v:function(){gx.O.AV9UsuCod=this.val()},val:function(){return gx.fn.getControlValue("vUSUCOD")},nac:function(){return false}};this.GXValidFnc[22]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSUNOM",gxz:"ZV11UsuNom",gxold:"OV11UsuNom",gxvar:"AV11UsuNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11UsuNom=a},v2z:function(a){gx.O.ZV11UsuNom=a},v2c:function(){gx.fn.setControlValue("vUSUNOM",gx.O.AV11UsuNom,0)
},c2v:function(){gx.O.AV11UsuNom=this.val()},val:function(){return gx.fn.getControlValue("vUSUNOM")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:1,dec:0,sign:true,ro:0,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vOP",gxz:"ZV17Op",gxold:"OV17Op",gxvar:"AV17Op",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV17Op=a},v2z:function(a){gx.O.ZV17Op=a},v2c:function(){gx.fn.setGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(27),gx.O.AV17Op,"S")
},c2v:function(){gx.O.AV17Op=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(27),"S","N")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:27,gxgrid:this.Grid1Container,fnc:this.Valid_Undcod,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[30],ip:[30,29],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(27),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(27),".")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDNOMCOMP",gxz:"Z925UndNomComp",gxold:"O925UndNomComp",gxvar:"A925UndNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A925UndNomComp=a
},v2z:function(a){gx.O.Z925UndNomComp=a},v2c:function(){gx.fn.setGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(27),gx.O.A925UndNomComp,0)},c2v:function(){gx.O.A925UndNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"OPUINDMOVI",gxz:"Z557OpuIndMovi",gxold:"O557OpuIndMovi",gxvar:"A557OpuIndMovi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.A557OpuIndMovi=a
},v2z:function(a){gx.O.Z557OpuIndMovi=a},v2c:function(){gx.fn.setGridCheckBoxValue("OPUINDMOVI",gx.fn.currentGridRowImpl(27),gx.O.A557OpuIndMovi,"S")},c2v:function(){gx.O.A557OpuIndMovi=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("OPUINDMOVI",gx.fn.currentGridRowImpl(27),"S","N")},nac:function(){return false}};this.AV9UsuCod="";this.ZV9UsuCod="";this.OV9UsuCod="";this.AV11UsuNom="";this.ZV11UsuNom="";this.OV11UsuNom="";this.ZV17Op="";this.OV17Op="";this.Z922UndCod=0;this.O922UndCod=0;
this.Z925UndNomComp="";this.O925UndNomComp="";this.Z557OpuIndMovi="";this.O557OpuIndMovi="";this.AV14ParmCodUnidadeDepositaria=0;this.A968UsuCod="";this.AV17Op="";this.A922UndCod=0;this.A925UndNomComp="";this.A557OpuIndMovi="";this.ServerEvents=["e11562_client","e14561_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV14ParmCodUnidadeDepositaria={id:"vPARMCODUNIDADEDEPOSITARIA",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[20]);this.SetStandaloneVars()}himh151.prototype=new gx.GxObject;
gx.setParentObj(new himh151());