gx.evt.autoSkip=false;function hzexemp(){this.ServerClass="HZExemp";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV20DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV19UndCod=gx.fn.getIntegerValue("vUNDCOD",".");this.AV15DoeNroSeq=gx.fn.getIntegerValue("vDOENROSEQ",".")};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(25));this.AnyError=0;
this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Undcod=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true}var a=gx.util.balloon.getNew("UNDCOD",gx.fn.currentGridRowImpl(25));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Doenrosequ=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true}var a=gx.util.balloon.getNew("DOENROSEQU",gx.fn.currentGridRowImpl(25));
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e142a2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e112a2_client=function(){this.executeServerEvent("'LAST'",false)};this.e122a2_client=function(){this.executeServerEvent("'FIRST'",false)};this.e132a2_client=function(){this.executeServerEvent("'NEXT'",false)};this.e172a2_client=function(){this.executeServerEvent("'PREVIOUS'",true,arguments[0])};this.e182a1_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[3,6,26,27,28,29,30,31,32,33];this.GXLastCtrlId=33;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",25,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzexemp",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(258,26,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Subfile1Container.addSingleLineEdit(922,27,"UNDCOD","Unid.","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(281,28,"DOENROSEQU","Ex.","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",true,0,false,false);this.Subfile1Container.addSingleLineEdit(899,29,"TPACOD","Aquisição","","TpaCod","char",0,"px",3,3,"left",null,[],899,"TpaCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(512,30,"LOCNOM","Localização","","LocNom","char",0,"px",45,45,"left",null,[],512,"LocNom",true,0,false,false);this.Subfile1Container.addSingleLineEdit(270,31,"DOECODPROP","Proprietário","","DoeCodProp","char",0,"px",3,3,"left",null,[],270,"DoeCodProp",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(96,32,"DOEVALOR","Valor","","DoeValor","decimal",0,"px",14,12,"right",null,[],96,"DoeValor",true,2,false,false);this.Subfile1Container.addSingleLineEdit("Tombos",33,"vTOMBOS","Tombos","","Tombos","char",0,"px",80,80,"left",null,[],"Tombos","Tombos",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[26]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:this.Valid_Docnro,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[29,31,32,30],ip:[29,31,32,30,28,26,27],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(25),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:this.Valid_Undcod,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(25),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:this.Valid_Doenrosequ,isvalid:null,rgrid:[],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOENROSEQU",gx.fn.currentGridRowImpl(25),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TPACOD",gxz:"Z899TpaCod",gxold:"O899TpaCod",gxvar:"A899TpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A899TpaCod=a
},v2z:function(a){gx.O.Z899TpaCod=a},v2c:function(){gx.fn.setGridControlValue("TPACOD",gx.fn.currentGridRowImpl(25),gx.O.A899TpaCod,0)},c2v:function(){gx.O.A899TpaCod=this.val()},val:function(){return gx.fn.getGridControlValue("TPACOD",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:45,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"LOCNOM",gxz:"Z512LocNom",gxold:"O512LocNom",gxvar:"A512LocNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A512LocNom=a
},v2z:function(a){gx.O.Z512LocNom=a},v2c:function(){gx.fn.setGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(25),gx.O.A512LocNom,0)},c2v:function(){gx.O.A512LocNom=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DOECODPROP",gxz:"Z270DoeCodProp",gxold:"O270DoeCodProp",gxvar:"A270DoeCodProp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A270DoeCodProp=a
},v2z:function(a){gx.O.Z270DoeCodProp=a},v2c:function(){gx.fn.setGridControlValue("DOECODPROP",gx.fn.currentGridRowImpl(25),gx.O.A270DoeCodProp,0)},c2v:function(){gx.O.A270DoeCodProp=this.val()},val:function(){return gx.fn.getGridControlValue("DOECODPROP",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"decimal",len:12,dec:2,sign:false,pic:"ZZZ,ZZZ,ZZ9.99",ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DOEVALOR",gxz:"Z96DoeValor",gxold:"O96DoeValor",gxvar:"A96DoeValor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A96DoeValor=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z96DoeValor=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("DOEVALOR",gx.fn.currentGridRowImpl(25),gx.O.A96DoeValor,2,",")},c2v:function(){gx.O.A96DoeValor=this.val()},val:function(){return gx.fn.getGridDecimalValue("DOEVALOR",gx.fn.currentGridRowImpl(25),".",",")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vTOMBOS",gxz:"ZV16Tombos",gxold:"OV16Tombos",gxvar:"AV16Tombos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16Tombos=a
},v2z:function(a){gx.O.ZV16Tombos=a},v2c:function(){gx.fn.setGridControlValue("vTOMBOS",gx.fn.currentGridRowImpl(25),gx.O.AV16Tombos,0)},c2v:function(){gx.O.AV16Tombos=this.val()},val:function(){return gx.fn.getGridControlValue("vTOMBOS",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.Z258DocNro=0;this.O258DocNro=0;this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.Z899TpaCod="";this.O899TpaCod="";this.Z512LocNom="";this.O512LocNom="";this.Z270DoeCodProp="";
this.O270DoeCodProp="";this.Z96DoeValor=0;this.O96DoeValor=0;this.ZV16Tombos="";this.OV16Tombos="";this.AV20DocNro=0;this.AV19UndCod=0;this.AV15DoeNroSeq=0;this.A315DvoNroTomb=0;this.A317DvoNroVolu=0;this.A509LocCod=0;this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.A899TpaCod="";this.A512LocNom="";this.A270DoeCodProp="";this.A96DoeValor=0;this.AV16Tombos="";this.ServerEvents=["e142a2_client","e112a2_client","e122a2_client","e132a2_client","e172a2_client","e182a1_client"];this.VarControlMap.AV20DocNro={id:"vDOCNRO",grid:0,type:"int"};
this.VarControlMap.AV19UndCod={id:"vUNDCOD",grid:0,type:"int"};this.VarControlMap.AV15DoeNroSeq={id:"vDOENROSEQ",grid:0,type:"int"};this.VarControlMap.AV20DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.A315DvoNroTomb={id:"DVONROTOMB",grid:0,type:"int"};this.VarControlMap.A317DvoNroVolu={id:"DVONROVOLU",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar({rfrVar:"AV20DocNro"});this.Subfile1Container.addRefreshingVar({rfrVar:"A315DvoNroTomb"});this.Subfile1Container.addRefreshingVar({rfrVar:"A317DvoNroVolu"});
this.SetStandaloneVars()}hzexemp.prototype=new gx.GxObject;gx.setParentObj(new hzexemp());