gx.evt.autoSkip=false;function hztipunl(){this.ServerClass="HZTipUnL";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV5TiuCod=gx.fn.getControlValue("vTIUCOD")};this.Valid_Undcod=function(){try{if(gx.fn.currentGridRowImpl(21)===0){return true}var a=gx.util.balloon.getNew("UNDCOD",gx.fn.currentGridRowImpl(21));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.Valid_Tiucod=function(){try{if(gx.fn.currentGridRowImpl(21)===0){return true}var a=gx.util.balloon.getNew("TIUCOD",gx.fn.currentGridRowImpl(21));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e142m2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e112m2_client=function(){this.executeServerEvent("'LAST'",false)};this.e122m2_client=function(){this.executeServerEvent("'FIRST'",false)};this.e132m2_client=function(){this.executeServerEvent("'NEXT'",false)
};this.e162m2_client=function(){this.executeServerEvent("'PREVIOUS'",true,arguments[0])};this.e182m1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[4,18,22,23,24,25];this.GXLastCtrlId=25;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",21,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hztipunl",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(922,22,"UNDCOD","Un. depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(883,23,"TIUCOD","Tipo","","TiuCod","char",0,"px",3,3,"left",null,[],883,"TiuCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(884,24,"TIUDES","Descrição","","TiuDes","char",0,"px",30,30,"left",null,[],884,"TiuDes",true,0,false,false);this.Subfile1Container.addSingleLineEdit(119,25,"CEUQTDMAXI","Qtd. itens","","CeuQtdMaxI","int",0,"px",4,4,"right",null,[],119,"CeuQtdMaxI",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[4]={fld:"TABLE1",grid:0};
this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[22]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:this.Valid_Undcod,isvalid:null,rgrid:[this.Subfile1Container],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[24],ip:[24,23],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(21),gx.O.A922UndCod,0)
},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:this.Valid_Tiucod,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(21),gx.O.A883TiuCod,0)
},c2v:function(){gx.O.A883TiuCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIUCOD",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,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(21),gx.O.A884TiuDes,0)
},c2v:function(){gx.O.A884TiuDes=this.val()},val:function(){return gx.fn.getGridControlValue("TIUDES",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CEUQTDMAXI",gxz:"Z119CeuQtdMaxI",gxold:"O119CeuQtdMaxI",gxvar:"A119CeuQtdMaxI",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A119CeuQtdMaxI=gx.num.intval(a)},v2z:function(a){gx.O.Z119CeuQtdMaxI=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("CEUQTDMAXI",gx.fn.currentGridRowImpl(21),gx.O.A119CeuQtdMaxI,0)},c2v:function(){gx.O.A119CeuQtdMaxI=this.val()},val:function(){return gx.fn.getGridIntegerValue("CEUQTDMAXI",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.Z922UndCod=0;this.O922UndCod=0;this.Z883TiuCod="";this.O883TiuCod="";this.Z884TiuDes="";this.O884TiuDes="";this.Z119CeuQtdMaxI=0;this.O119CeuQtdMaxI=0;this.AV5TiuCod="";this.A922UndCod=0;this.A883TiuCod="";this.A884TiuDes="";
this.A119CeuQtdMaxI=0;this.ServerEvents=["e142m2_client","e112m2_client","e122m2_client","e132m2_client","e162m2_client","e182m1_client"];this.VarControlMap.AV5TiuCod={id:"vTIUCOD",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar({rfrVar:"A922UndCod",rfrProp:"Value"});this.SetStandaloneVars()}hztipunl.prototype=new gx.GxObject;gx.setParentObj(new hztipunl());