gx.evt.autoSkip=false;function hmih047(){this.ServerClass="HMih047";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Valid_Docdestitu=function(){try{if(gx.fn.currentGridRowImpl(49)===0){return true}var a=gx.util.balloon.getNew("DOCDESTITU",gx.fn.currentGridRowImpl(49));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e121w2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e131w2_client=function(){this.executeServerEvent("'IMPORTAR'",false)};this.e141w2_client=function(){this.executeServerEvent("'DOCUMENTOS POR LOCALIZAçãO'",false)};this.e151w2_client=function(){this.executeServerEvent("'DOCUMENTO'",false)};this.e161w2_client=function(){this.executeServerEvent("'DOCUMENTO VIA TOMBO'",false)};this.e171w2_client=function(){this.executeServerEvent("'NOVO DOCUMENTO'",false)};this.e181w2_client=function(){this.executeServerEvent("'PROXIMO DOCUMENTO LIVRE'",false)
};this.e191w2_client=function(){this.executeServerEvent("ENTER",true)};this.e201w2_client=function(){this.executeServerEvent("'REVISAR'",false)};this.e211w2_client=function(){this.executeServerEvent("'DE/PARA'",false)};this.e221w2_client=function(){this.executeServerEvent("'TRANSFERêNCIA'",false)};this.e231w2_client=function(){this.executeServerEvent("'REDE MULTIACERVO'",false)};this.e261w2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,30,33,36,38,40,42,50,51,52,53,54,55,56,57];
this.GXLastCtrlId=57;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",49,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hmih047",[],false,1,true,true,12,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addBitmap("&Imgeditar","vIMGEDITAR",50,0,"px",17,"px",null,"","");this.Subfile1Container.addSingleLineEdit("Docdestitulo",51,"vDOCDESTITULO","Título","","DocDesTitulo","char",0,"px",80,80,"left",null,[],"Docdestitulo","DocDesTitulo",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Nomautor",52,"vNOMAUTOR","Autor","","NomAutor","char",0,"px",250,250,"left",null,[],"Nomautor","NomAutor",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Docanoedicao",53,"vDOCANOEDICAO","Ano","","DocAnoEdicao","int",0,"px",4,4,"right",null,[],"Docanoedicao","DocAnoEdicao",true,0,false,false);this.Subfile1Container.addSingleLineEdit(863,54,"TIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Chamada",55,"vCHAMADA","Chamada","","Chamada","char",0,"px",40,40,"left",null,[],"Chamada","Chamada",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(258,56,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Subfile1Container.addSingleLineEdit(249,57,"DOCDESTITU","Título sem acento","","DocDesTitu","char",0,"px",58,58,"left",null,[],249,"DocDesTitu",false,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[30]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[33]={fld:"TABLE2",grid:0};this.GXValidFnc[36]={fld:"TEXTBLOCK2",format:0,grid:0};
this.GXValidFnc[38]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTIDCOD",gxz:"ZV13TidCod",gxold:"OV13TidCod",gxvar:"AV13TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV13TidCod=a},v2z:function(a){gx.O.ZV13TidCod=a},v2c:function(){gx.fn.setComboBoxValue("vTIDCOD",gx.O.AV13TidCod)},c2v:function(){gx.O.AV13TidCod=this.val()},val:function(){return gx.fn.getControlValue("vTIDCOD")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TEXTBLOCK3",format:0,grid:0};
this.GXValidFnc[42]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCINICIOTITULO",gxz:"ZV14DscInicioTitulo",gxold:"OV14DscInicioTitulo",gxvar:"AV14DscInicioTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14DscInicioTitulo=a},v2z:function(a){gx.O.ZV14DscInicioTitulo=a},v2c:function(){gx.fn.setControlValue("vDSCINICIOTITULO",gx.O.AV14DscInicioTitulo,0)},c2v:function(){gx.O.AV14DscInicioTitulo=this.val()},val:function(){return gx.fn.getControlValue("vDSCINICIOTITULO")
},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV38ImgEditar",gxold:"OV38ImgEditar",gxvar:"AV38ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV38ImgEditar=a},v2z:function(a){gx.O.ZV38ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV38ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(49))
},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDOCDESTITULO",gxz:"ZV12DocDesTitulo",gxold:"OV12DocDesTitulo",gxvar:"AV12DocDesTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12DocDesTitulo=a},v2z:function(a){gx.O.ZV12DocDesTitulo=a},v2c:function(){gx.fn.setGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(49),gx.O.AV12DocDesTitulo,0)},c2v:function(){gx.O.AV12DocDesTitulo=this.val()
},val:function(){return gx.fn.getGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(49))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vNOMAUTOR",gxz:"ZV29NomAutor",gxold:"OV29NomAutor",gxvar:"AV29NomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV29NomAutor=a},v2z:function(a){gx.O.ZV29NomAutor=a},v2c:function(){gx.fn.setGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(49),gx.O.AV29NomAutor,0)
},c2v:function(){gx.O.AV29NomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(49))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDOCANOEDICAO",gxz:"ZV42DocAnoEdicao",gxold:"OV42DocAnoEdicao",gxvar:"AV42DocAnoEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV42DocAnoEdicao=gx.num.intval(a)
},v2z:function(a){gx.O.ZV42DocAnoEdicao=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCANOEDICAO",gx.fn.currentGridRowImpl(49),gx.O.AV42DocAnoEdicao,0)},c2v:function(){gx.O.AV42DocAnoEdicao=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCANOEDICAO",gx.fn.currentGridRowImpl(49),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIDCOD",gxz:"Z863TidCod",gxold:"O863TidCod",gxvar:"A863TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A863TidCod=a
},v2z:function(a){gx.O.Z863TidCod=a},v2c:function(){gx.fn.setGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(49),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(49))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vCHAMADA",gxz:"ZV28Chamada",gxold:"OV28Chamada",gxvar:"AV28Chamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28Chamada=a
},v2z:function(a){gx.O.ZV28Chamada=a},v2c:function(){gx.fn.setGridControlValue("vCHAMADA",gx.fn.currentGridRowImpl(49),gx.O.AV28Chamada,0)},c2v:function(){gx.O.AV28Chamada=this.val()},val:function(){return gx.fn.getGridControlValue("vCHAMADA",gx.fn.currentGridRowImpl(49))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(49),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(49),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:58,dec:0,sign:false,ro:1,grid:49,gxgrid:this.Subfile1Container,fnc:this.Valid_Docdestitu,isvalid:null,fld:"DOCDESTITU",gxz:"Z249DocDesTitu",gxold:"O249DocDesTitu",gxvar:"A249DocDesTitu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A249DocDesTitu=a
},v2z:function(a){gx.O.Z249DocDesTitu=a},v2c:function(){gx.fn.setGridControlValue("DOCDESTITU",gx.fn.currentGridRowImpl(49),gx.O.A249DocDesTitu,0)},c2v:function(){gx.O.A249DocDesTitu=this.val()},val:function(){return gx.fn.getGridControlValue("DOCDESTITU",gx.fn.currentGridRowImpl(49))},nac:function(){return false}};this.AV13TidCod="";this.ZV13TidCod="";this.OV13TidCod="";this.AV14DscInicioTitulo="";this.ZV14DscInicioTitulo="";this.OV14DscInicioTitulo="";this.ZV38ImgEditar="";this.OV38ImgEditar="";
this.ZV12DocDesTitulo="";this.OV12DocDesTitulo="";this.ZV29NomAutor="";this.OV29NomAutor="";this.ZV42DocAnoEdicao=0;this.OV42DocAnoEdicao=0;this.Z863TidCod="";this.O863TidCod="";this.ZV28Chamada="";this.OV28Chamada="";this.Z258DocNro=0;this.O258DocNro=0;this.Z249DocDesTitu="";this.O249DocDesTitu="";this.A232DocAnoEdic=0;this.AV38ImgEditar="";this.AV12DocDesTitulo="";this.AV29NomAutor="";this.AV42DocAnoEdicao=0;this.A863TidCod="";this.AV28Chamada="";this.A258DocNro=0;this.A249DocDesTitu="";this.A868TidDes="";
this.ServerEvents=["e121w2_client","e131w2_client","e141w2_client","e151w2_client","e161w2_client","e171w2_client","e181w2_client","e191w2_client","e201w2_client","e211w2_client","e221w2_client","e231w2_client","e261w2_client"];this.EnterCtrl=["BUTTON5"];this.VarControlMap.AV39Chr255={id:"vCHR255",grid:0,type:"char"};this.VarControlMap.A232DocAnoEdic={id:"DOCANOEDIC",grid:0,type:"int"};this.VarControlMap.AV15ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[38]);
this.Subfile1Container.addRefreshingVar(this.GXValidFnc[42]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV39Chr255"});this.Subfile1Container.addRefreshingVar({rfrVar:"A232DocAnoEdic"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV15ParTipForm"});this.SetStandaloneVars()}hmih047.prototype=new gx.GxObject;gx.setParentObj(new hmih047());