gx.evt.autoSkip=false;function hmaw016(){this.ServerClass="HMAW016";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.AV52OrigemTipDoc=gx.fn.getControlValue("vORIGEMTIPDOC");this.AV46TipEntidade=gx.fn.getControlValue("vTIPENTIDADE");this.AV20IndOrigem=gx.fn.getControlValue("vINDORIGEM");this.AV47TipSeparadorSubcampo=gx.fn.getControlValue("vTIPSEPARADORSUBCAMPO")};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.s132_client=function(){this.AV12DesTitulo="";this.AV21NomAutor="";this.AV17i=1;while(this.AV17i<=2000){if(this.AV37TabLinha[this.AV17i-1]==this.AV23NroRegistro){if(this.AV38TabNroEtiq[this.AV17i-1]=="245"&&this.AV34TabCodSubC[this.AV17i-1]=="a"){this.AV12DesTitulo=this.AV35TabConteudo[this.AV17i-1]}if((this.AV38TabNroEtiq[this.AV17i-1]=="100"||this.AV38TabNroEtiq[this.AV17i-1]=="110"||this.AV38TabNroEtiq[this.AV17i-1]=="111")&&this.AV34TabCodSubC[this.AV17i-1]=="a"){this.AV21NomAutor=this.AV35TabConteudo[this.AV17i-1]
}}this.AV17i=this.AV17i+1}};this.e116e2_client=function(){this.executeServerEvent("'IMPORTAR SELEçãO'",false)};this.e126e2_client=function(){this.executeServerEvent("'EXIBE CONTEUDO'",false)};this.e136e2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e166e2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e176e2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,18,19,20,21,22,23,26,29];this.GXLastCtrlId=29;
this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",17,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmaw016",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.Grid1Container.addCheckBox("Opcao",18,"vOPCAO","","","Opcao","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Tidcod",19,"vTIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],"Tidcod","TidCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_Tidcod","PROMPT_TIDCOD",31,0,"",0,"",null,"","");
this.Grid1Container.addSingleLineEdit("Doctitautor",20,"vDOCTITAUTOR","Título / Autor","","DocTitAutor","char",0,"px",150,150,"left",null,[],"Doctitautor","DocTitAutor",true,0,false,false);this.Grid1Container.addSingleLineEdit("Docnro",21,"vDOCNRO","Doc","","DocNro","int",0,"px",6,6,"right",null,[],"Docnro","DocNro",true,0,false,false);this.Grid1Container.addSingleLineEdit("Nroregistro",22,"vNROREGISTRO","Linha","","NroRegistro","int",0,"px",4,4,"right",null,[],"Nroregistro","NroRegistro",true,0,false,false);
this.Grid1Container.addCheckBox("Grdinddocumentolivre",23,"vGRDINDDOCUMENTOLIVRE","Livre","","GrdIndDocumentoLivre","char","S","N",null,true,false,0,"px");this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[18]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vOPCAO",gxz:"ZV25Opcao",gxold:"OV25Opcao",gxvar:"AV25Opcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV25Opcao=a
},v2z:function(a){gx.O.ZV25Opcao=a},v2c:function(){gx.fn.setGridCheckBoxValue("vOPCAO",gx.fn.currentGridRowImpl(17),gx.O.AV25Opcao,"S")},c2v:function(){gx.O.AV25Opcao=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vOPCAO",gx.fn.currentGridRowImpl(17),"S","N")},nac:function(){return false}};this.GXValidFnc[19]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:0,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vTIDCOD",gxz:"ZV45TidCod",gxold:"OV45TidCod",gxvar:"AV45TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV45TidCod=a
},v2z:function(a){gx.O.ZV45TidCod=a},v2c:function(){gx.fn.setGridControlValue("vTIDCOD",gx.fn.currentGridRowImpl(17),gx.O.AV45TidCod,0)},c2v:function(){gx.O.AV45TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("vTIDCOD",gx.fn.currentGridRowImpl(17))},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"char",len:150,dec:0,sign:false,ro:1,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDOCTITAUTOR",gxz:"ZV14DocTitAutor",gxold:"OV14DocTitAutor",gxvar:"AV14DocTitAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14DocTitAutor=a
},v2z:function(a){gx.O.ZV14DocTitAutor=a},v2c:function(){gx.fn.setGridControlValue("vDOCTITAUTOR",gx.fn.currentGridRowImpl(17),gx.O.AV14DocTitAutor,0)},c2v:function(){gx.O.AV14DocTitAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCTITAUTOR",gx.fn.currentGridRowImpl(17))},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:17,gxgrid:this.Grid1Container,fnc:this.Validv_Docnro,isvalid:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV51DocNro",gxold:"OV51DocNro",gxvar:"AV51DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV51DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV51DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCNRO",gx.fn.currentGridRowImpl(17),gx.O.AV51DocNro,0)},c2v:function(){gx.O.AV51DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNRO",gx.fn.currentGridRowImpl(17),".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROREGISTRO",gxz:"ZV23NroRegistro",gxold:"OV23NroRegistro",gxvar:"AV23NroRegistro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23NroRegistro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV23NroRegistro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNROREGISTRO",gx.fn.currentGridRowImpl(17),gx.O.AV23NroRegistro,0)},c2v:function(){gx.O.AV23NroRegistro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROREGISTRO",gx.fn.currentGridRowImpl(17),".")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:17,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDINDDOCUMENTOLIVRE",gxz:"ZV58GrdIndDocumentoLivre",gxold:"OV58GrdIndDocumentoLivre",gxvar:"AV58GrdIndDocumentoLivre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV58GrdIndDocumentoLivre=a
},v2z:function(a){gx.O.ZV58GrdIndDocumentoLivre=a},v2c:function(){gx.fn.setGridCheckBoxValue("vGRDINDDOCUMENTOLIVRE",gx.fn.currentGridRowImpl(17),gx.O.AV58GrdIndDocumentoLivre,"S")},c2v:function(){gx.O.AV58GrdIndDocumentoLivre=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRDINDDOCUMENTOLIVRE",gx.fn.currentGridRowImpl(17),"S","N")},nac:function(){return false}};this.GXValidFnc[26]={fld:"TABLE1",grid:0};this.GXValidFnc[29]={fld:"TXTDOCLIVRES",format:0,grid:0};this.ZV25Opcao="";this.OV25Opcao="";
this.ZV45TidCod="";this.OV45TidCod="";this.ZV14DocTitAutor="";this.OV14DocTitAutor="";this.ZV51DocNro=0;this.OV51DocNro=0;this.ZV23NroRegistro=0;this.OV23NroRegistro=0;this.ZV58GrdIndDocumentoLivre="";this.OV58GrdIndDocumentoLivre="";this.AV46TipEntidade="";this.AV20IndOrigem="";this.AV47TipSeparadorSubcampo="";this.AV25Opcao="";this.AV45TidCod="";this.AV14DocTitAutor="";this.AV51DocNro=0;this.AV23NroRegistro=0;this.AV58GrdIndDocumentoLivre="";this.A258DocNro=0;this.A250DocInd1="";this.AV35TabConteudo=[];
this.AV34TabCodSubC=[];this.AV38TabNroEtiq=[];this.AV37TabLinha=[];this.AV17i=0;this.AV21NomAutor="";this.AV12DesTitulo="";this.ServerEvents=["e116e2_client","e126e2_client","e136e2_client","e166e2_client","e176e2_client"];this.setPrompt("PROMPT_TIDCOD",[19]);this.VarControlMap.AV52OrigemTipDoc={id:"vORIGEMTIPDOC",grid:0,type:"char"};this.VarControlMap.AV46TipEntidade={id:"vTIPENTIDADE",grid:0,type:"char"};this.VarControlMap.AV20IndOrigem={id:"vINDORIGEM",grid:0,type:"char"};this.VarControlMap.AV47TipSeparadorSubcampo={id:"vTIPSEPARADORSUBCAMPO",grid:0,type:"char"};
this.VarControlMap.AV29QtdLinhas={id:"vQTDLINHAS",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"AV29QtdLinhas"});this.SetStandaloneVars()}hmaw016.prototype=new gx.GxObject;gx.setParentObj(new hmaw016());