gx.evt.autoSkip=false;function hzundep(){this.ServerClass="HZUnDep";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV17UndCod=gx.fn.getIntegerValue("vUNDCOD",".")};this.Valid_Undnomcomp=function(){try{if(gx.fn.currentGridRowImpl(22)===0){return true}var a=gx.util.balloon.getNew("UNDNOMCOMP",gx.fn.currentGridRowImpl(22));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e13112_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e15111_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[4,13,16,19,21,23,24,25,26];this.GXLastCtrlId=26;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",22,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzundep",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(922,23,"UNDCOD","Código","","UndCod","int",45,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(926,24,"UNDNOMSIGL","Sigla","","UndNomSigl","char",43,"px",3,3,"left",null,[],926,"UndNomSigl",true,0,false,false);this.Subfile1Container.addSingleLineEdit(925,25,"UNDNOMCOMP","Nome completo","","UndNomComp","char",210,"px",40,40,"left",null,[],925,"UndNomComp",true,0,false,false);this.Subfile1Container.addSingleLineEdit(923,26,"UNDDATFECH","Fechamento","","UndDatFech","date",79,"px",10,10,"right",null,[],923,"UndDatFech",true,0,false,false);this.setGrid(this.Subfile1Container);
this.GXValidFnc[4]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE2",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV19NomeContendo",gxold:"OV19NomeContendo",gxvar:"AV19NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19NomeContendo=a},v2z:function(a){gx.O.ZV19NomeContendo=a
},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV19NomeContendo,0)},c2v:function(){gx.O.AV19NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:22,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],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(22),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(22),".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:22,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"UNDNOMSIGL",gxz:"Z926UndNomSigl",gxold:"O926UndNomSigl",gxvar:"A926UndNomSigl",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A926UndNomSigl=a
},v2z:function(a){gx.O.Z926UndNomSigl=a},v2c:function(){gx.fn.setGridControlValue("UNDNOMSIGL",gx.fn.currentGridRowImpl(22),gx.O.A926UndNomSigl,0)},c2v:function(){gx.O.A926UndNomSigl=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMSIGL",gx.fn.currentGridRowImpl(22))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:22,gxgrid:this.Subfile1Container,fnc:this.Valid_Undnomcomp,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(22),gx.O.A925UndNomComp,0)},c2v:function(){gx.O.A925UndNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(22))},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:22,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"UNDDATFECH",gxz:"Z923UndDatFech",gxold:"O923UndDatFech",gxvar:"A923UndDatFech",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A923UndDatFech=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z923UndDatFech=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("UNDDATFECH",gx.fn.currentGridRowImpl(22),gx.O.A923UndDatFech,0)},c2v:function(){gx.O.A923UndDatFech=this.val()},val:function(){return gx.fn.getGridControlValue("UNDDATFECH",gx.fn.currentGridRowImpl(22))},nac:function(){return false}};this.AV19NomeContendo="";this.ZV19NomeContendo="";this.OV19NomeContendo="";this.Z922UndCod=0;this.O922UndCod=0;this.Z926UndNomSigl="";this.O926UndNomSigl="";this.Z925UndNomComp="";
this.O925UndNomComp="";this.Z923UndDatFech=gx.date.nullDate();this.O923UndDatFech=gx.date.nullDate();this.AV17UndCod=0;this.A922UndCod=0;this.A926UndNomSigl="";this.A925UndNomComp="";this.A923UndDatFech=gx.date.nullDate();this.ServerEvents=["e13112_client","e15111_client"];this.VarControlMap.AV17UndCod={id:"vUNDCOD",grid:0,type:"int"};this.VarControlMap.AV20CharDB={id:"vCHARDB",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[21]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV20CharDB"});
this.SetStandaloneVars()}hzundep.prototype=new gx.GxObject;gx.setParentObj(new hzundep());