gx.evt.autoSkip=false;function himh079(){this.ServerClass="HImh079";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Validv_Undcod=function(){try{var a=gx.util.balloon.getNew("vUNDCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Loccod=function(){try{var a=gx.util.balloon.getNew("vLOCCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e115i2_client=function(){this.executeServerEvent("ENTER",true)};this.e135i2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e155i2_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,23,25,28,30,33,35,37,40,42,45,47,50,52,55,57,60,62,64,65,66];this.GXLastCtrlId=66;this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK2",format:0,grid:0};
this.GXValidFnc[20]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTPACOD",gxz:"ZV19TpaCod",gxold:"OV19TpaCod",gxvar:"AV19TpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19TpaCod=a},v2z:function(a){gx.O.ZV19TpaCod=a},v2c:function(){gx.fn.setControlValue("vTPACOD",gx.O.AV19TpaCod,0)},c2v:function(){gx.O.AV19TpaCod=this.val()},val:function(){return gx.fn.getControlValue("vTPACOD")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK3",format:0,grid:0};
this.GXValidFnc[25]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTIDCOD",gxz:"ZV7TidCod",gxold:"OV7TidCod",gxvar:"AV7TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7TidCod=a},v2z:function(a){gx.O.ZV7TidCod=a},v2c:function(){gx.fn.setControlValue("vTIDCOD",gx.O.AV7TidCod,0)},c2v:function(){gx.O.AV7TidCod=this.val()},val:function(){return gx.fn.getControlValue("vTIDCOD")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK4",format:0,grid:0};
this.GXValidFnc[30]={fld:"TABLE3",grid:0};this.GXValidFnc[33]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATINI",gxz:"ZV16DatIni",gxold:"OV16DatIni",gxvar:"AV16DatIni",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.AV16DatIni=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.ZV16DatIni=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATINI",gx.O.AV16DatIni,0)
},c2v:function(){gx.O.AV16DatIni=this.val()},val:function(){return gx.fn.getControlValue("vDATINI")},nac:function(){return false}};this.GXValidFnc[35]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[37]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATFIM",gxz:"ZV17DatFim",gxold:"OV17DatFim",gxvar:"AV17DatFim",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.AV17DatFim=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV17DatFim=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATFIM",gx.O.AV17DatFim,0)},c2v:function(){gx.O.AV17DatFim=this.val()},val:function(){return gx.fn.getControlValue("vDATFIM")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[42]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDOECODPRT",gxz:"ZV18DoeCodPrt",gxold:"OV18DoeCodPrt",gxvar:"AV18DoeCodPrt",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18DoeCodPrt=a
},v2z:function(a){gx.O.ZV18DoeCodPrt=a},v2c:function(){gx.fn.setControlValue("vDOECODPRT",gx.O.AV18DoeCodPrt,0)},c2v:function(){gx.O.AV18DoeCodPrt=this.val()},val:function(){return gx.fn.getControlValue("vDOECODPRT")},nac:function(){return false}};this.GXValidFnc[45]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[47]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vACONRO",gxz:"ZV32AcoNro",gxold:"OV32AcoNro",gxvar:"AV32AcoNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV32AcoNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV32AcoNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vACONRO",gx.O.AV32AcoNro,0)},c2v:function(){gx.O.AV32AcoNro=this.val()},val:function(){return gx.fn.getIntegerValue("vACONRO",".")},nac:function(){return false}};this.GXValidFnc[50]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[52]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Undcod,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV20UndCod",gxold:"OV20UndCod",gxvar:"AV20UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV20UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vUNDCOD",gx.O.AV20UndCod,0)},c2v:function(){gx.O.AV20UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[55]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[57]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Loccod,isvalid:null,rgrid:[],fld:"vLOCCOD",gxz:"ZV5LocCod",gxold:"OV5LocCod",gxvar:"AV5LocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LocCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV5LocCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vLOCCOD",gx.O.AV5LocCod,0)},c2v:function(){gx.O.AV5LocCod=this.val()},val:function(){return gx.fn.getIntegerValue("vLOCCOD",".")},nac:function(){return false}};this.GXValidFnc[60]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[62]={lvl:0,type:"char",len:7,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDBAIXAS",gxz:"ZV21IndBaixas",gxold:"OV21IndBaixas",gxvar:"AV21IndBaixas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV21IndBaixas=a
},v2z:function(a){gx.O.ZV21IndBaixas=a},v2c:function(){gx.fn.setComboBoxValue("vINDBAIXAS",gx.O.AV21IndBaixas)},c2v:function(){gx.O.AV21IndBaixas=this.val()},val:function(){return gx.fn.getControlValue("vINDBAIXAS")},nac:function(){return false}};this.GXValidFnc[64]={fld:"PROMPT_TPACOD",grid:0};this.GXValidFnc[65]={fld:"PROMPT_TIDCOD",grid:0};this.GXValidFnc[66]={fld:"PROMPT_ACONRO",grid:0};this.AV19TpaCod="";this.ZV19TpaCod="";this.OV19TpaCod="";this.AV7TidCod="";this.ZV7TidCod="";this.OV7TidCod="";
this.AV16DatIni=gx.date.nullDate();this.ZV16DatIni=gx.date.nullDate();this.OV16DatIni=gx.date.nullDate();this.AV17DatFim=gx.date.nullDate();this.ZV17DatFim=gx.date.nullDate();this.OV17DatFim=gx.date.nullDate();this.AV18DoeCodPrt="";this.ZV18DoeCodPrt="";this.OV18DoeCodPrt="";this.AV32AcoNro=0;this.ZV32AcoNro=0;this.OV32AcoNro=0;this.AV20UndCod=0;this.ZV20UndCod=0;this.OV20UndCod=0;this.AV5LocCod=0;this.ZV5LocCod=0;this.OV5LocCod=0;this.AV21IndBaixas="";this.ZV21IndBaixas="";this.OV21IndBaixas="";
this.A509LocCod=0;this.A922UndCod=0;this.A512LocNom="";this.ServerEvents=["e115i2_client","e135i2_client","e155i2_client"];this.setPrompt("PROMPT_TPACOD",[20]);this.setPrompt("PROMPT_TIDCOD",[25]);this.setPrompt("PROMPT_ACONRO",[47]);this.EnterCtrl=["BUTTON1"];this.SetStandaloneVars()}himh079.prototype=new gx.GxObject;gx.setParentObj(new himh079());