gx.evt.autoSkip=false;function himh147(){this.ServerClass="HImh147";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV36AtdNro=gx.fn.getIntegerValue("vATDNRO",".");this.AV62ScdCodEntidade=gx.fn.getControlValue("vSCDCODENTIDADE");this.AV22UsbCod=gx.fn.getControlValue("vUSBCOD")};this.e166r1_client=function(){this.clearMessages();if((""==this.AV22UsbCod)){this.addMessage("Eefetue o login para poder entrar na tela de Relações Entidades X Documento")
}else{this.AV62ScdCodEntidade=gx.text.trim(gx.num.str(this.AV36AtdNro,6,0));gx.popup.openUrl(gx.http.formatLink("himh024",["AT",this.AV62ScdCodEntidade]),["","AV62ScdCodEntidade"])}this.refreshOutputs([{av:"AV62ScdCodEntidade",fld:"vSCDCODENTIDADE"}])};this.e136r2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e116r2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e176r2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];
this.GXCtrlIds=[3,10,14,15];this.GXLastCtrlId=15;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",13,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh147",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Grddsclinha",14,"vGRDDSCLINHA","","","GrdDscLinha","char",150,"px",20,20,"left",null,[],"Grddsclinha","GrdDscLinha",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdvalconteudo",15,"vGRDVALCONTEUDO","","","GrdValConteudo","vchar",570,"px",11264,11264,"left",null,[],"Grdvalconteudo","GrdValConteudo",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[14]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCLINHA",gxz:"ZV42GrdDscLinha",gxold:"OV42GrdDscLinha",gxvar:"AV42GrdDscLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV42GrdDscLinha=a},v2z:function(a){gx.O.ZV42GrdDscLinha=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCLINHA",gx.fn.currentGridRowImpl(13),gx.O.AV42GrdDscLinha,0)
},c2v:function(){gx.O.AV42GrdDscLinha=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCLINHA",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.GXValidFnc[15]={lvl:2,type:"vchar",len:11264,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDVALCONTEUDO",gxz:"ZV43GrdValConteudo",gxold:"OV43GrdValConteudo",gxvar:"AV43GrdValConteudo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV43GrdValConteudo=a},v2z:function(a){gx.O.ZV43GrdValConteudo=a
},v2c:function(){gx.fn.setGridControlValue("vGRDVALCONTEUDO",gx.fn.currentGridRowImpl(13),gx.O.AV43GrdValConteudo,0)},c2v:function(){gx.O.AV43GrdValConteudo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDVALCONTEUDO",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.ZV42GrdDscLinha="";this.OV42GrdDscLinha="";this.ZV43GrdValConteudo="";this.OV43GrdValConteudo="";this.AV36AtdNro=0;this.AV42GrdDscLinha="";this.AV43GrdValConteudo="";this.AV62ScdCodEntidade="";this.AV22UsbCod="";
this.ServerEvents=["e136r2_client","e116r2_client","e176r2_client"];this.VarControlMap.AV36AtdNro={id:"vATDNRO",grid:0,type:"int"};this.VarControlMap.AV62ScdCodEntidade={id:"vSCDCODENTIDADE",grid:0,type:"char"};this.VarControlMap.AV22UsbCod={id:"vUSBCOD",grid:0,type:"char"};this.VarControlMap.AV53QtdTermosEspecificos={id:"vQTDTERMOSESPECIFICOS",grid:0,type:"int"};this.VarControlMap.AV52DscNivelInicial={id:"vDSCNIVELINICIAL",grid:0,type:"char"};this.VarControlMap.AV49SatValSubcampo={id:"vSATVALSUBCAMPO",grid:0,type:"vchar"};
this.VarControlMap.AV36AtdNro={id:"vATDNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"AV53QtdTermosEspecificos"});this.Grid1Container.addRefreshingVar({rfrVar:"AV52DscNivelInicial"});this.Grid1Container.addRefreshingVar({rfrVar:"AV49SatValSubcampo"});this.Grid1Container.addRefreshingVar({rfrVar:"AV36AtdNro"});this.SetStandaloneVars()}himh147.prototype=new gx.GxObject;gx.setParentObj(new himh147());