gx.evt.autoSkip=false;function himh092(){this.ServerClass="HImh092";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A819SlcNro=gx.fn.getIntegerValue("SLCNRO",".");this.A797SlbNro=gx.fn.getIntegerValue("SLBNRO",".")};this.Validv_Forcod=function(){try{var a=gx.util.balloon.getNew("vFORCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};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.Validv_Caecod=function(){try{var a=gx.util.balloon.getNew("vCAECOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e115m2_client=function(){this.executeServerEvent("ENTER",true)};this.e135m2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e155m2_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,23,25,28,30,33,35,38,40,43,45,48,50,53,55,58,60,63,65,68,70,73,75,78,80,83,85,88,90,92,93,94,95,96];this.GXLastCtrlId=96;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:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV27DocNro",gxold:"OV27DocNro",gxvar:"AV27DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV27DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vDOCNRO",gx.O.AV27DocNro,0)},c2v:function(){gx.O.AV27DocNro=this.val()},val:function(){return gx.fn.getIntegerValue("vDOCNRO",".")},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:"vTPACOD",gxz:"ZV21TpaCod",gxold:"OV21TpaCod",gxvar:"AV21TpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21TpaCod=a
},v2z:function(a){gx.O.ZV21TpaCod=a},v2c:function(){gx.fn.setControlValue("vTPACOD",gx.O.AV21TpaCod,0)},c2v:function(){gx.O.AV21TpaCod=this.val()},val:function(){return gx.fn.getControlValue("vTPACOD")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vQTDEXEMP",gxz:"ZV24QtdExemp",gxold:"OV24QtdExemp",gxvar:"AV24QtdExemp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV24QtdExemp=gx.num.intval(a)
},v2z:function(a){gx.O.ZV24QtdExemp=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vQTDEXEMP",gx.O.AV24QtdExemp,0)},c2v:function(){gx.O.AV24QtdExemp=this.val()},val:function(){return gx.fn.getIntegerValue("vQTDEXEMP",".")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vQTDVOLUMES",gxz:"ZV31QtdVolumes",gxold:"OV31QtdVolumes",gxvar:"AV31QtdVolumes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31QtdVolumes=gx.num.intval(a)
},v2z:function(a){gx.O.ZV31QtdVolumes=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vQTDVOLUMES",gx.O.AV31QtdVolumes,0)},c2v:function(){gx.O.AV31QtdVolumes=this.val()},val:function(){return gx.fn.getIntegerValue("vQTDVOLUMES",".")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[40]={fld:"TABLE3",grid:0};this.GXValidFnc[43]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Forcod,isvalid:null,rgrid:[],fld:"vFORCOD",gxz:"ZV25ForCod",gxold:"OV25ForCod",gxvar:"AV25ForCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV25ForCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV25ForCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vFORCOD",gx.O.AV25ForCod,0)},c2v:function(){gx.O.AV25ForCod=this.val()},val:function(){return gx.fn.getIntegerValue("vFORCOD",".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vFORNOM",gxz:"ZV26ForNom",gxold:"OV26ForNom",gxvar:"AV26ForNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26ForNom=a
},v2z:function(a){gx.O.ZV26ForNom=a},v2c:function(){gx.fn.setControlValue("vFORNOM",gx.O.AV26ForNom,0)},c2v:function(){gx.O.AV26ForNom=this.val()},val:function(){return gx.fn.getControlValue("vFORNOM")},nac:function(){return false}};this.GXValidFnc[48]={fld:"TEXTBLOCK14",format:0,grid:0};this.GXValidFnc[50]={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:"ZV38UndCod",gxold:"OV38UndCod",gxvar:"AV38UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV38UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV38UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vUNDCOD",gx.O.AV38UndCod,0)},c2v:function(){gx.O.AV38UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[53]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[55]={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:"ZV17LocCod",gxold:"OV17LocCod",gxvar:"AV17LocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17LocCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV17LocCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vLOCCOD",gx.O.AV17LocCod,0)},c2v:function(){gx.O.AV17LocCod=this.val()},val:function(){return gx.fn.getIntegerValue("vLOCCOD",".")},nac:function(){return false}};this.GXValidFnc[58]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[60]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Caecod,isvalid:null,rgrid:[],fld:"vCAECOD",gxz:"ZV32CaeCod",gxold:"OV32CaeCod",gxvar:"AV32CaeCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV32CaeCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV32CaeCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCAECOD",gx.O.AV32CaeCod,0)},c2v:function(){gx.O.AV32CaeCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCAECOD",".")},nac:function(){return false}};this.GXValidFnc[63]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[65]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vVALUNIT",gxz:"ZV23ValUnit",gxold:"OV23ValUnit",gxvar:"AV23ValUnit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23ValUnit=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV23ValUnit=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vVALUNIT",gx.O.AV23ValUnit,2,",")},c2v:function(){gx.O.AV23ValUnit=this.val()},val:function(){return gx.fn.getDecimalValue("vVALUNIT",".",",")},nac:function(){return false}};this.GXValidFnc[68]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[70]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDOECODPROP",gxz:"ZV34DoeCodProp",gxold:"OV34DoeCodProp",gxvar:"AV34DoeCodProp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV34DoeCodProp=a
},v2z:function(a){gx.O.ZV34DoeCodProp=a},v2c:function(){gx.fn.setControlValue("vDOECODPROP",gx.O.AV34DoeCodProp,0)},c2v:function(){gx.O.AV34DoeCodProp=this.val()},val:function(){return gx.fn.getControlValue("vDOECODPROP")},nac:function(){return false}};this.GXValidFnc[73]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[75]={lvl:0,type:"char",len:5,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMMOEDA",gxz:"ZV33NomMoeda",gxold:"OV33NomMoeda",gxvar:"AV33NomMoeda",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV33NomMoeda=a
},v2z:function(a){gx.O.ZV33NomMoeda=a},v2c:function(){gx.fn.setControlValue("vNOMMOEDA",gx.O.AV33NomMoeda,0)},c2v:function(){gx.O.AV33NomMoeda=this.val()},val:function(){return gx.fn.getControlValue("vNOMMOEDA")},nac:function(){return false}};this.GXValidFnc[78]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[80]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vCURCOD",gxz:"ZV41CurCod",gxold:"OV41CurCod",gxvar:"AV41CurCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV41CurCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV41CurCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCURCOD",gx.O.AV41CurCod,0)},c2v:function(){gx.O.AV41CurCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCURCOD",".")},nac:function(){return false}};this.GXValidFnc[83]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[85]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vDCPNRO",gxz:"ZV42DcpNro",gxold:"OV42DcpNro",gxvar:"AV42DcpNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV42DcpNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV42DcpNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vDCPNRO",gx.O.AV42DcpNro,0)},c2v:function(){gx.O.AV42DcpNro=this.val()},val:function(){return gx.fn.getIntegerValue("vDCPNRO",".")},nac:function(){return false}};this.GXValidFnc[88]={fld:"TEXTBLOCK15",format:0,grid:0};this.GXValidFnc[90]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSLCTIPBIBLIOGRAFIA",gxz:"ZV50SlcTipBibliografia",gxold:"OV50SlcTipBibliografia",gxvar:"AV50SlcTipBibliografia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV50SlcTipBibliografia=a
},v2z:function(a){gx.O.ZV50SlcTipBibliografia=a},v2c:function(){gx.fn.setComboBoxValue("vSLCTIPBIBLIOGRAFIA",gx.O.AV50SlcTipBibliografia)},c2v:function(){gx.O.AV50SlcTipBibliografia=this.val()},val:function(){return gx.fn.getControlValue("vSLCTIPBIBLIOGRAFIA")},nac:function(){return false}};this.GXValidFnc[92]={fld:"PROMPT_TPACOD",grid:0};this.GXValidFnc[93]={fld:"PROMPT_LOCCOD",grid:0};this.GXValidFnc[94]={fld:"PROMPT_CAECOD",grid:0};this.GXValidFnc[95]={fld:"PROMPT_CURCOD",grid:0};this.GXValidFnc[96]={fld:"PROMPT_DCPNRO",grid:0};
this.AV27DocNro=0;this.ZV27DocNro=0;this.OV27DocNro=0;this.AV21TpaCod="";this.ZV21TpaCod="";this.OV21TpaCod="";this.AV24QtdExemp=0;this.ZV24QtdExemp=0;this.OV24QtdExemp=0;this.AV31QtdVolumes=0;this.ZV31QtdVolumes=0;this.OV31QtdVolumes=0;this.AV25ForCod=0;this.ZV25ForCod=0;this.OV25ForCod=0;this.AV26ForNom="";this.ZV26ForNom="";this.OV26ForNom="";this.AV38UndCod=0;this.ZV38UndCod=0;this.OV38UndCod=0;this.AV17LocCod=0;this.ZV17LocCod=0;this.OV17LocCod=0;this.AV32CaeCod=0;this.ZV32CaeCod=0;this.OV32CaeCod=0;
this.AV23ValUnit=0;this.ZV23ValUnit=0;this.OV23ValUnit=0;this.AV34DoeCodProp="";this.ZV34DoeCodProp="";this.OV34DoeCodProp="";this.AV33NomMoeda="";this.ZV33NomMoeda="";this.OV33NomMoeda="";this.AV41CurCod=0;this.ZV41CurCod=0;this.OV41CurCod=0;this.AV42DcpNro=0;this.ZV42DcpNro=0;this.OV42DcpNro=0;this.AV50SlcTipBibliografia="";this.ZV50SlcTipBibliografia="";this.OV50SlcTipBibliografia="";this.A819SlcNro=0;this.A797SlbNro=0;this.A795SlbDatMovi=gx.date.nullDate();this.A821SlcQtdVolu=0;this.A805SlcCodUnid=0;
this.A800SlbValUnit=0;this.A798SlbQtdMovi=0;this.A169CurCod=0;this.A186DcpNro=0;this.A1098SlcTipBibl="";this.A433ForCod=0;this.A444ForNomComp="";this.A772SctIndSele="";this.A770SctCodForn=0;this.A812SlcNroDocu=0;this.A509LocCod=0;this.A922UndCod=0;this.A512LocNom="";this.A79CaeCod=0;this.A84CaeNom="";this.ServerEvents=["e115m2_client","e135m2_client","e155m2_client"];this.setPrompt("PROMPT_TPACOD",[25]);this.setPrompt("PROMPT_LOCCOD",[55]);this.setPrompt("PROMPT_CAECOD",[60]);this.setPrompt("PROMPT_CURCOD",[80]);
this.setPrompt("PROMPT_DCPNRO",[85]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.A819SlcNro={id:"SLCNRO",grid:0,type:"int"};this.VarControlMap.A797SlbNro={id:"SLBNRO",grid:0,type:"int"};this.SetStandaloneVars()}himh092.prototype=new gx.GxObject;gx.setParentObj(new himh092());