gx.evt.autoSkip=false;function hmih062(){this.ServerClass="HMih062";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV30DSIOrigem=gx.fn.getControlValue("vDSIORIGEM");this.AV33UsbCodCriptografado=gx.fn.getControlValue("vUSBCODCRIPTOGRAFADO")};this.Valid_Dsecodauto=function(){try{if(gx.fn.currentGridRowImpl(33)===0){return true}var a=gx.util.balloon.getNew("DSECODAUTO",gx.fn.currentGridRowImpl(33));this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.e172i2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e112i2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e122i2_client=function(){this.executeServerEvent("'NOVO AUTOR'",false)};this.e132i2_client=function(){this.executeServerEvent("'NOVA PALAVRA-CHAVE'",false)};this.e142i2_client=function(){this.executeServerEvent("'APAGAR LINHAS'",false)};this.e192i2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[3,16,19,22,25,28,30,34,35,36,37,38];this.GXLastCtrlId=38;this.SubfileContainer=new gx.grid.grid(this,2,"WbpLvl2",33,"Subfile","Subfile","SubfileContainer",this.CmpContext,this.IsMasterPage,"hmih062",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.SubfileContainer.addCheckBox("Op",34,"vOP","Apagar","","Op","char","S","N",null,true,false,46,"px");this.SubfileContainer.addSingleLineEdit(291,35,"DSENROSEQU","Seq","","DseNroSequ","int",34,"px",4,4,"right",null,[],291,"DseNroSequ",true,0,false,false);
this.SubfileContainer.addComboBox(292,36,"DSETIPAUTO","Tipo","DseTipAuto","char",null,0,true,false,97,"px");this.SubfileContainer.addSingleLineEdit(290,37,"DSECODAUTO","Autoridade","","DseCodAuto","int",70,"px",8,8,"right",null,[],290,"DseCodAuto",true,0,false,false);this.SubfileContainer.addSingleLineEdit("Nomautoridade",38,"vNOMAUTORIDADE","Nome","","NomAutoridade","char",410,"px",200,200,"left",null,[],"Nomautoridade","NomAutoridade",true,0,false,false);this.setGrid(this.SubfileContainer);this.GXValidFnc[3]={fld:"TABLE2",grid:0};
this.GXValidFnc[16]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[19]={fld:"TABLE1",grid:0};this.GXValidFnc[22]={lvl:0,type:"vchar",len:400,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCADDESCRICAO",gxz:"ZV27CadDescricao",gxold:"OV27CadDescricao",gxvar:"AV27CadDescricao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27CadDescricao=a},v2z:function(a){gx.O.ZV27CadDescricao=a},v2c:function(){gx.fn.setControlValue("vCADDESCRICAO",gx.O.AV27CadDescricao,1)
},c2v:function(){gx.O.AV27CadDescricao=this.val()},val:function(){return gx.fn.getControlValue("vCADDESCRICAO")},nac:function(){return false}};this.GXValidFnc[25]={fld:"TABLE3",grid:0};this.GXValidFnc[28]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSBNOM",gxz:"ZV20UsbNom",gxold:"OV20UsbNom",gxvar:"AV20UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20UsbNom=a},v2z:function(a){gx.O.ZV20UsbNom=a
},v2c:function(){gx.fn.setControlValue("vUSBNOM",gx.O.AV20UsbNom,0)},c2v:function(){gx.O.AV20UsbNom=this.val()},val:function(){return gx.fn.getControlValue("vUSBNOM")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:1,dec:0,sign:true,ro:0,grid:33,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"vOP",gxz:"ZV43Op",gxold:"OV43Op",gxvar:"AV43Op",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV43Op=a},v2z:function(a){gx.O.ZV43Op=a},v2c:function(){gx.fn.setGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(33),gx.O.AV43Op,"S")
},c2v:function(){gx.O.AV43Op=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(33),"S","N")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:33,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,rgrid:[],fld:"DSENROSEQU",gxz:"Z291DseNroSequ",gxold:"O291DseNroSequ",gxvar:"A291DseNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A291DseNroSequ=gx.num.intval(a)},v2z:function(a){gx.O.Z291DseNroSequ=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("DSENROSEQU",gx.fn.currentGridRowImpl(33),gx.O.A291DseNroSequ,0)},c2v:function(){gx.O.A291DseNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DSENROSEQU",gx.fn.currentGridRowImpl(33),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:33,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"DSETIPAUTO",gxz:"Z292DseTipAuto",gxold:"O292DseTipAuto",gxvar:"A292DseTipAuto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A292DseTipAuto=a
},v2z:function(a){gx.O.Z292DseTipAuto=a},v2c:function(){gx.fn.setGridComboBoxValue("DSETIPAUTO",gx.fn.currentGridRowImpl(33),gx.O.A292DseTipAuto)},c2v:function(){gx.O.A292DseTipAuto=this.val()},val:function(){return gx.fn.getGridControlValue("DSETIPAUTO",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:1,grid:33,gxgrid:this.SubfileContainer,fnc:this.Valid_Dsecodauto,isvalid:null,rgrid:[],fld:"DSECODAUTO",gxz:"Z290DseCodAuto",gxold:"O290DseCodAuto",gxvar:"A290DseCodAuto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A290DseCodAuto=gx.num.intval(a)
},v2z:function(a){gx.O.Z290DseCodAuto=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DSECODAUTO",gx.fn.currentGridRowImpl(33),gx.O.A290DseCodAuto,0)},c2v:function(){gx.O.A290DseCodAuto=this.val()},val:function(){return gx.fn.getGridIntegerValue("DSECODAUTO",gx.fn.currentGridRowImpl(33),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:200,dec:0,sign:false,ro:0,grid:33,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"vNOMAUTORIDADE",gxz:"ZV19NomAutoridade",gxold:"OV19NomAutoridade",gxvar:"AV19NomAutoridade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19NomAutoridade=a
},v2z:function(a){gx.O.ZV19NomAutoridade=a},v2c:function(){gx.fn.setGridControlValue("vNOMAUTORIDADE",gx.fn.currentGridRowImpl(33),gx.O.AV19NomAutoridade,0)},c2v:function(){gx.O.AV19NomAutoridade=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMAUTORIDADE",gx.fn.currentGridRowImpl(33))},nac:function(){return false}};this.AV27CadDescricao="";this.ZV27CadDescricao="";this.OV27CadDescricao="";this.AV20UsbNom="";this.ZV20UsbNom="";this.OV20UsbNom="";this.ZV43Op="";this.OV43Op="";this.Z291DseNroSequ=0;
this.O291DseNroSequ=0;this.Z292DseTipAuto="";this.O292DseTipAuto="";this.Z290DseCodAuto=0;this.O290DseCodAuto=0;this.ZV19NomAutoridade="";this.OV19NomAutoridade="";this.AV30DSIOrigem="";this.AV33UsbCodCriptografado="";this.A787UsbCod="";this.AV43Op="";this.A291DseNroSequ=0;this.A292DseTipAuto="";this.A290DseCodAuto=0;this.AV19NomAutoridade="";this.A86CarNro=0;this.A1091CarValText="";this.A786UsbNom="";this.A122CfgCod="";this.A127CfgValCont="";this.A193PchNro=0;this.A192PchDes="";this.A74AutNro=0;
this.A71AutNom="";this.A63AtdNro=0;this.A61AtdDesIden="";this.ServerEvents=["e172i2_client","e112i2_client","e122i2_client","e132i2_client","e142i2_client","e192i2_client"];this.VarControlMap.AV30DSIOrigem={id:"vDSIORIGEM",grid:0,type:"char"};this.VarControlMap.AV33UsbCodCriptografado={id:"vUSBCODCRIPTOGRAFADO",grid:0,type:"char"};this.VarControlMap.AV12UsbCod={id:"vUSBCOD",grid:0,type:"char"};this.VarControlMap.A192PchDes={id:"PCHDES",grid:0,type:"char"};this.VarControlMap.A71AutNom={id:"AUTNOM",grid:0,type:"char"};
this.VarControlMap.A61AtdDesIden={id:"ATDDESIDEN",grid:0,type:"char"};this.SubfileContainer.addRefreshingVar({rfrVar:"AV12UsbCod"});this.SubfileContainer.addRefreshingVar({rfrVar:"A192PchDes"});this.SubfileContainer.addRefreshingVar({rfrVar:"A71AutNom"});this.SubfileContainer.addRefreshingVar({rfrVar:"A61AtdDesIden"});this.SetStandaloneVars()}hmih062.prototype=new gx.GxObject;gx.setParentObj(new hmih062());