gx.evt.autoSkip=false;function himh053(){this.ServerClass="HImh053";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV8DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV5IndTexto=gx.fn.getControlValue("vINDTEXTO")};this.Valid_Usbcod=function(){try{if(gx.fn.currentGridRowImpl(31)===0){return true}var a=gx.util.balloon.getNew("USBCOD",gx.fn.currentGridRowImpl(31));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e110z2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e120z2_client=function(){this.executeServerEvent("ENTER",true)};this.e150z2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,14,17,20,23,26,28,32,33,34,35,36,37,38,39,40,41,42];this.GXLastCtrlId=42;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh053",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addCheckBox("Selecionar",32,"vSELECIONAR","","","Selecionar","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit(727,33,"RESNROSEQ","Nro","","ResNroSeq","int",0,"px",6,6,"right",null,[],727,"ResNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(729,34,"RESNROVOLU","Item","","ResNroVolu","int",0,"px",6,6,"right",null,[],729,"ResNroVolu",true,0,false,false);this.Grid1Container.addSingleLineEdit(723,35,"RESDATSOLI","Solicitação","","ResDatSoli","date",0,"px",10,10,"right",null,[],723,"ResDatSoli",true,0,false,false);
this.Grid1Container.addSingleLineEdit(724,36,"RESDATVALI","Validade","","ResDatVali","date",0,"px",10,10,"right",null,[],724,"ResDatVali",true,0,false,false);this.Grid1Container.addComboBox(725,37,"RESINDAVIS","Aviso","ResIndAvis","char",null,0,true,false,0,"px");this.Grid1Container.addComboBox(726,38,"RESINDCANC","Status","ResIndCanc","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(787,39,"USBCOD","Usuário","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(786,40,"USBNOM","Nome","","UsbNom","char",0,"px",50,50,"left",null,[],786,"UsbNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(779,41,"SETCOD","Unid","","SetCod","int",0,"px",6,6,"right",null,[],779,"SetCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(941,42,"USBENDELET","E-mail","","UsbEndElet","char",0,"px",100,100,"left",null,[],941,"UsbEndElet",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};
this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[14]={fld:"TABLE2",grid:0};this.GXValidFnc[17]={lvl:0,type:"vchar",len:4000,dec:250,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTEXTOORIGINAL",gxz:"ZV59TextoOriginal",gxold:"OV59TextoOriginal",gxvar:"AV59TextoOriginal",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV59TextoOriginal=a},v2z:function(a){gx.O.ZV59TextoOriginal=a},v2c:function(){gx.fn.setControlValue("vTEXTOORIGINAL",gx.O.AV59TextoOriginal,0)
},c2v:function(){gx.O.AV59TextoOriginal=this.val()},val:function(){return gx.fn.getControlValue("vTEXTOORIGINAL")},nac:function(){return false}};this.GXValidFnc[20]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDIDENTIFICACAO",gxz:"ZV10IndIdentificacao",gxold:"OV10IndIdentificacao",gxvar:"AV10IndIdentificacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV10IndIdentificacao=a},v2z:function(a){gx.O.ZV10IndIdentificacao=a},v2c:function(){gx.fn.setCheckBoxValue("vINDIDENTIFICACAO",gx.O.AV10IndIdentificacao,"S")
},c2v:function(){gx.O.AV10IndIdentificacao=this.val()},val:function(){return gx.fn.getCheckBoxValue("vINDIDENTIFICACAO","S","N")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TABLE3",grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTODOS",gxz:"ZV9Todos",gxold:"OV9Todos",gxvar:"AV9Todos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV9Todos=a},v2z:function(a){gx.O.ZV9Todos=a},v2c:function(){gx.fn.setCheckBoxValue("vTODOS",gx.O.AV9Todos,"S")
},c2v:function(){gx.O.AV9Todos=this.val()},val:function(){return gx.fn.getCheckBoxValue("vTODOS","S","N")},nac:function(){return false}};this.GXValidFnc[28]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDGRAVARINDICADORAVISO",gxz:"ZV62IndGravarIndicadorAviso",gxold:"OV62IndGravarIndicadorAviso",gxvar:"AV62IndGravarIndicadorAviso",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV62IndGravarIndicadorAviso=a},v2z:function(a){gx.O.ZV62IndGravarIndicadorAviso=a
},v2c:function(){gx.fn.setCheckBoxValue("vINDGRAVARINDICADORAVISO",gx.O.AV62IndGravarIndicadorAviso,"S")},c2v:function(){gx.O.AV62IndGravarIndicadorAviso=this.val()},val:function(){return gx.fn.getCheckBoxValue("vINDGRAVARINDICADORAVISO","S","N")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vSELECIONAR",gxz:"ZV7Selecionar",gxold:"OV7Selecionar",gxvar:"AV7Selecionar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV7Selecionar=a
},v2z:function(a){gx.O.ZV7Selecionar=a},v2c:function(){gx.fn.setGridCheckBoxValue("vSELECIONAR",gx.fn.currentGridRowImpl(31),gx.O.AV7Selecionar,"S")},c2v:function(){gx.O.AV7Selecionar=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vSELECIONAR",gx.fn.currentGridRowImpl(31),"S","N")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RESNROSEQ",gxz:"Z727ResNroSeq",gxold:"O727ResNroSeq",gxvar:"A727ResNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A727ResNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z727ResNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RESNROSEQ",gx.fn.currentGridRowImpl(31),gx.O.A727ResNroSeq,0)},c2v:function(){gx.O.A727ResNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROSEQ",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RESNROVOLU",gxz:"Z729ResNroVolu",gxold:"O729ResNroVolu",gxvar:"A729ResNroVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A729ResNroVolu=gx.num.intval(a)
},v2z:function(a){gx.O.Z729ResNroVolu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RESNROVOLU",gx.fn.currentGridRowImpl(31),gx.O.A729ResNroVolu,0)},c2v:function(){gx.O.A729ResNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROVOLU",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RESDATSOLI",gxz:"Z723ResDatSoli",gxold:"O723ResDatSoli",gxvar:"A723ResDatSoli",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.A723ResDatSoli=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z723ResDatSoli=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("RESDATSOLI",gx.fn.currentGridRowImpl(31),gx.O.A723ResDatSoli,0)},c2v:function(){gx.O.A723ResDatSoli=this.val()},val:function(){return gx.fn.getGridControlValue("RESDATSOLI",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RESDATVALI",gxz:"Z724ResDatVali",gxold:"O724ResDatVali",gxvar:"A724ResDatVali",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.A724ResDatVali=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z724ResDatVali=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("RESDATVALI",gx.fn.currentGridRowImpl(31),gx.O.A724ResDatVali,0)},c2v:function(){gx.O.A724ResDatVali=this.val()},val:function(){return gx.fn.getGridControlValue("RESDATVALI",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RESINDAVIS",gxz:"Z725ResIndAvis",gxold:"O725ResIndAvis",gxvar:"A725ResIndAvis",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A725ResIndAvis=a
},v2z:function(a){gx.O.Z725ResIndAvis=a},v2c:function(){gx.fn.setGridComboBoxValue("RESINDAVIS",gx.fn.currentGridRowImpl(31),gx.O.A725ResIndAvis)},c2v:function(){gx.O.A725ResIndAvis=this.val()},val:function(){return gx.fn.getGridControlValue("RESINDAVIS",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RESINDCANC",gxz:"Z726ResIndCanc",gxold:"O726ResIndCanc",gxvar:"A726ResIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A726ResIndCanc=a
},v2z:function(a){gx.O.Z726ResIndCanc=a},v2c:function(){gx.fn.setGridComboBoxValue("RESINDCANC",gx.fn.currentGridRowImpl(31),gx.O.A726ResIndCanc)},c2v:function(){gx.O.A726ResIndCanc=this.val()},val:function(){return gx.fn.getGridControlValue("RESINDCANC",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:this.Valid_Usbcod,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a
},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setGridControlValue("USBCOD",gx.fn.currentGridRowImpl(31),gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("USBCOD",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBNOM",gxz:"Z786UsbNom",gxold:"O786UsbNom",gxvar:"A786UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A786UsbNom=a
},v2z:function(a){gx.O.Z786UsbNom=a},v2c:function(){gx.fn.setGridControlValue("USBNOM",gx.fn.currentGridRowImpl(31),gx.O.A786UsbNom,0)},c2v:function(){gx.O.A786UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("USBNOM",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SETCOD",gxz:"Z779SetCod",gxold:"O779SetCod",gxvar:"A779SetCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A779SetCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z779SetCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SETCOD",gx.fn.currentGridRowImpl(31),gx.O.A779SetCod,0)},c2v:function(){gx.O.A779SetCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("SETCOD",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[42]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBENDELET",gxz:"Z941UsbEndElet",gxold:"O941UsbEndElet",gxvar:"A941UsbEndElet",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A941UsbEndElet=a
},v2z:function(a){gx.O.Z941UsbEndElet=a},v2c:function(){gx.fn.setGridControlValue("USBENDELET",gx.fn.currentGridRowImpl(31),gx.O.A941UsbEndElet,0)},c2v:function(){gx.O.A941UsbEndElet=this.val()},val:function(){return gx.fn.getGridControlValue("USBENDELET",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.AV59TextoOriginal="";this.ZV59TextoOriginal="";this.OV59TextoOriginal="";this.AV10IndIdentificacao="";this.ZV10IndIdentificacao="";this.OV10IndIdentificacao="";this.AV9Todos="";this.ZV9Todos="";
this.OV9Todos="";this.AV62IndGravarIndicadorAviso="";this.ZV62IndGravarIndicadorAviso="";this.OV62IndGravarIndicadorAviso="";this.ZV7Selecionar="";this.OV7Selecionar="";this.Z727ResNroSeq=0;this.O727ResNroSeq=0;this.Z729ResNroVolu=0;this.O729ResNroVolu=0;this.Z723ResDatSoli=gx.date.nullDate();this.O723ResDatSoli=gx.date.nullDate();this.Z724ResDatVali=gx.date.nullDate();this.O724ResDatVali=gx.date.nullDate();this.Z725ResIndAvis="";this.O725ResIndAvis="";this.Z726ResIndCanc="";this.O726ResIndCanc="";
this.Z787UsbCod="";this.O787UsbCod="";this.Z786UsbNom="";this.O786UsbNom="";this.Z779SetCod=0;this.O779SetCod=0;this.Z941UsbEndElet="";this.O941UsbEndElet="";this.AV8DocNro=0;this.AV5IndTexto="";this.A258DocNro=0;this.AV7Selecionar="";this.A727ResNroSeq=0;this.A729ResNroVolu=0;this.A723ResDatSoli=gx.date.nullDate();this.A724ResDatVali=gx.date.nullDate();this.A725ResIndAvis="";this.A726ResIndCanc="";this.A787UsbCod="";this.A786UsbNom="";this.A779SetCod=0;this.A941UsbEndElet="";this.A339EmpCod=0;this.A347EmpNomCid="";
this.A352EmpRazSoci="";this.A351EmpObs="";this.A242DocDesL1Ti="";this.A559ParCod=0;this.A587ParNomCida="";this.A588ParNomRepo="";this.A589ParNroCRB="";this.A567ParDesEndE="";this.ServerEvents=["e110z2_client","e120z2_client","e150z2_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV8DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV5IndTexto={id:"vINDTEXTO",grid:0,type:"char"};this.VarControlMap.AV8DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV5IndTexto={id:"vINDTEXTO",grid:0,type:"char"};
this.Grid1Container.addRefreshingVar({rfrVar:"AV8DocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV5IndTexto"});this.SetStandaloneVars()}himh053.prototype=new gx.GxObject;gx.setParentObj(new himh053());