gx.evt.autoSkip=false;function himh060(){this.ServerClass="HImh060";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Validv_Docnro=function(){try{var a=gx.util.balloon.getNew("vDOCNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11522_client=function(){this.executeServerEvent("ENTER",true)};this.e13522_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e15522_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[4,13,16,19,21,24,26,29,31,33,36,38,41,43,46,48,51,53,56,58,61,63,66,68,71,73,75,76,77,78];this.GXLastCtrlId=78;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:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV29UndCod",gxold:"OV29UndCod",gxvar:"AV29UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV29UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV29UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vUNDCOD",gx.O.AV29UndCod,0)},c2v:function(){gx.O.AV29UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[26]={fld:"TABLE3",grid:0};this.GXValidFnc[29]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vRESDATINI",gxz:"ZV9ResDatIni",gxold:"OV9ResDatIni",gxvar:"AV9ResDatIni",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.AV9ResDatIni=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV9ResDatIni=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vRESDATINI",gx.O.AV9ResDatIni,0)},c2v:function(){gx.O.AV9ResDatIni=this.val()},val:function(){return gx.fn.getControlValue("vRESDATINI")},nac:function(){return false}};this.GXValidFnc[31]={fld:"TEXTBLOCK8",format:0,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:"vRESDATFIM",gxz:"ZV10ResDatFim",gxold:"OV10ResDatFim",gxvar:"AV10ResDatFim",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.AV10ResDatFim=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV10ResDatFim=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vRESDATFIM",gx.O.AV10ResDatFim,0)},c2v:function(){gx.O.AV10ResDatFim=this.val()},val:function(){return gx.fn.getControlValue("vRESDATFIM")},nac:function(){return false}};this.GXValidFnc[36]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[38]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDVALIDADEADEFINIR",gxz:"ZV33IndValidadeADefinir",gxold:"OV33IndValidadeADefinir",gxvar:"AV33IndValidadeADefinir",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV33IndValidadeADefinir=a
},v2z:function(a){gx.O.ZV33IndValidadeADefinir=a},v2c:function(){gx.fn.setComboBoxValue("vINDVALIDADEADEFINIR",gx.O.AV33IndValidadeADefinir)},c2v:function(){gx.O.AV33IndValidadeADefinir=this.val()},val:function(){return gx.fn.getControlValue("vINDVALIDADEADEFINIR")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[43]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTIDCOD",gxz:"ZV11TidCod",gxold:"OV11TidCod",gxvar:"AV11TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11TidCod=a
},v2z:function(a){gx.O.ZV11TidCod=a},v2c:function(){gx.fn.setControlValue("vTIDCOD",gx.O.AV11TidCod,0)},c2v:function(){gx.O.AV11TidCod=this.val()},val:function(){return gx.fn.getControlValue("vTIDCOD")},nac:function(){return false}};this.GXValidFnc[46]={fld:"TEXTCAMPO",format:0,grid:0};this.GXValidFnc[48]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vLTRNRO",gxz:"ZV34LtrNro",gxold:"OV34LtrNro",gxvar:"AV34LtrNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV34LtrNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV34LtrNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vLTRNRO",gx.O.AV34LtrNro,0)},c2v:function(){gx.O.AV34LtrNro=this.val()},val:function(){return gx.fn.getIntegerValue("vLTRNRO",".")},nac:function(){return false}};this.GXValidFnc[51]={fld:"TEXTSUBCAMPO",format:0,grid:0};this.GXValidFnc[53]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSLTNRO",gxz:"ZV36SltNro",gxold:"OV36SltNro",gxvar:"AV36SltNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV36SltNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV36SltNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSLTNRO",gx.O.AV36SltNro,0)},c2v:function(){gx.O.AV36SltNro=this.val()},val:function(){return gx.fn.getIntegerValue("vSLTNRO",".")},nac:function(){return false}};this.GXValidFnc[56]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[58]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTIUCOD",gxz:"ZV13TiuCod",gxold:"OV13TiuCod",gxvar:"AV13TiuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13TiuCod=a
},v2z:function(a){gx.O.ZV13TiuCod=a},v2c:function(){gx.fn.setControlValue("vTIUCOD",gx.O.AV13TiuCod,0)},c2v:function(){gx.O.AV13TiuCod=this.val()},val:function(){return gx.fn.getControlValue("vTIUCOD")},nac:function(){return false}};this.GXValidFnc[61]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[63]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSBCOD",gxz:"ZV15UsbCod",gxold:"OV15UsbCod",gxvar:"AV15UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15UsbCod=a
},v2z:function(a){gx.O.ZV15UsbCod=a},v2c:function(){gx.fn.setControlValue("vUSBCOD",gx.O.AV15UsbCod,0)},c2v:function(){gx.O.AV15UsbCod=this.val()},val:function(){return gx.fn.getControlValue("vUSBCOD")},nac:function(){return false}};this.GXValidFnc[66]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[68]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Docnro,isvalid:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV16DocNro",gxold:"OV16DocNro",gxvar:"AV16DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV16DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vDOCNRO",gx.O.AV16DocNro,0)},c2v:function(){gx.O.AV16DocNro=this.val()},val:function(){return gx.fn.getIntegerValue("vDOCNRO",".")},nac:function(){return false}};this.GXValidFnc[71]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[73]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRINDCLASSIFICACAO",gxz:"ZV38ScrIndClassificacao",gxold:"OV38ScrIndClassificacao",gxvar:"AV38ScrIndClassificacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV38ScrIndClassificacao=a
},v2z:function(a){gx.O.ZV38ScrIndClassificacao=a},v2c:function(){gx.fn.setRadioValue("vSCRINDCLASSIFICACAO",gx.O.AV38ScrIndClassificacao)},c2v:function(){gx.O.AV38ScrIndClassificacao=this.val()},val:function(){return gx.fn.getControlValue("vSCRINDCLASSIFICACAO")},nac:function(){return false}};this.GXValidFnc[75]={fld:"PROMPT_TIDCOD",grid:0};this.GXValidFnc[76]={fld:"PROMPT_LTRNRO",grid:0};this.GXValidFnc[77]={fld:"PROMPT_SLTNRO",grid:0};this.GXValidFnc[78]={fld:"PROMPT_TIUCOD",grid:0};this.AV29UndCod=0;
this.ZV29UndCod=0;this.OV29UndCod=0;this.AV9ResDatIni=gx.date.nullDate();this.ZV9ResDatIni=gx.date.nullDate();this.OV9ResDatIni=gx.date.nullDate();this.AV10ResDatFim=gx.date.nullDate();this.ZV10ResDatFim=gx.date.nullDate();this.OV10ResDatFim=gx.date.nullDate();this.AV33IndValidadeADefinir="";this.ZV33IndValidadeADefinir="";this.OV33IndValidadeADefinir="";this.AV11TidCod="";this.ZV11TidCod="";this.OV11TidCod="";this.AV34LtrNro=0;this.ZV34LtrNro=0;this.OV34LtrNro=0;this.AV36SltNro=0;this.ZV36SltNro=0;
this.OV36SltNro=0;this.AV13TiuCod="";this.ZV13TiuCod="";this.OV13TiuCod="";this.AV15UsbCod="";this.ZV15UsbCod="";this.OV15UsbCod="";this.AV16DocNro=0;this.ZV16DocNro=0;this.OV16DocNro=0;this.AV38ScrIndClassificacao="";this.ZV38ScrIndClassificacao="";this.OV38ScrIndClassificacao="";this.A559ParCod=0;this.A569ParEmpFimP=0;this.A570ParEmpIniP=0;this.A586ParIndUsbC="";this.A258DocNro=0;this.A242DocDesL1Ti="";this.ServerEvents=["e11522_client","e13522_client","e15522_client"];this.setPrompt("PROMPT_TIDCOD",[43]);
this.setPrompt("PROMPT_LTRNRO",[48]);this.setPrompt("PROMPT_SLTNRO",[53]);this.setPrompt("PROMPT_TIUCOD",[58]);this.EnterCtrl=["BUTTON1"];this.SetStandaloneVars()}himh060.prototype=new gx.GxObject;gx.setParentObj(new himh060());