gx.evt.autoSkip=false;function hmih065(){this.ServerClass="HMih065";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){};this.Valid_Tidcod=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("TIDCOD",gx.fn.currentGridRowImpl(24));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(24));
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e117w2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e127w2_client=function(){this.executeServerEvent("'DOCUMENTOS POR TIPO'",false)};this.e167w2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e177w2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,17,21,25,26,27,28,29,30];this.GXLastCtrlId=30;
this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",24,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hmih065",[],false,1,false,true,15,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(281,25,"DOENROSEQU","Exemplar","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Docdestitulo",26,"vDOCDESTITULO","Título","","DocDesTitulo","char",0,"px",80,80,"left",null,[],"Docdestitulo","DocDesTitulo",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(253,27,"DOCNOMAUTO","Autor","","DocNomAuto","char",0,"px",48,48,"left",null,[],253,"DocNomAuto",true,0,false,false);this.Subfile1Container.addSingleLineEdit(863,28,"TIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(258,29,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Subfile1Container.addSingleLineEdit(249,30,"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[14]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[17]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Subfile1Container],fld:"vUNDLOCCOD",gxz:"ZV22UndLocCod",gxold:"OV22UndLocCod",gxvar:"AV22UndLocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV22UndLocCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV22UndLocCod=gx.num.intval(a)},v2c:function(){gx.fn.setComboBoxValue("vUNDLOCCOD",gx.O.AV22UndLocCod)},c2v:function(){gx.O.AV22UndLocCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDLOCCOD",".")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOENROSEQU",gx.fn.currentGridRowImpl(24),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:1,grid:24,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(24),gx.O.AV12DocDesTitulo,0)},c2v:function(){gx.O.AV12DocDesTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:48,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DOCNOMAUTO",gxz:"Z253DocNomAuto",gxold:"O253DocNomAuto",gxvar:"A253DocNomAuto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A253DocNomAuto=a
},v2z:function(a){gx.O.Z253DocNomAuto=a},v2c:function(){gx.fn.setGridControlValue("DOCNOMAUTO",gx.fn.currentGridRowImpl(24),gx.O.A253DocNomAuto,0)},c2v:function(){gx.O.A253DocNomAuto=this.val()},val:function(){return gx.fn.getGridControlValue("DOCNOMAUTO",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:this.Valid_Tidcod,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(24),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:this.Valid_Docnro,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(24),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:58,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,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(24),gx.O.A249DocDesTitu,0)},c2v:function(){gx.O.A249DocDesTitu=this.val()},val:function(){return gx.fn.getGridControlValue("DOCDESTITU",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.AV22UndLocCod=0;this.ZV22UndLocCod=0;this.OV22UndLocCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.ZV12DocDesTitulo="";this.OV12DocDesTitulo="";this.Z253DocNomAuto="";this.O253DocNomAuto="";
this.Z863TidCod="";this.O863TidCod="";this.Z258DocNro=0;this.O258DocNro=0;this.Z249DocDesTitu="";this.O249DocDesTitu="";this.A242DocDesL1Ti="";this.A871TidIndModo="";this.A509LocCod=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.AV12DocDesTitulo="";this.A253DocNomAuto="";this.A863TidCod="";this.A258DocNro=0;this.A249DocDesTitu="";this.A925UndNomComp="";this.A512LocNom="";this.ServerEvents=["e117w2_client","e127w2_client","e167w2_client","e177w2_client"];this.VarControlMap.AV28IndModeloApresentacao={id:"vINDMODELOAPRESENTACAO",grid:0,type:"char"};
this.VarControlMap.AV17UndCodPadrao={id:"vUNDCODPADRAO",grid:0,type:"int"};this.VarControlMap.A871TidIndModo={id:"TIDINDMODO",grid:0,type:"char"};this.VarControlMap.AV15ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.VarControlMap.AV19Origem={id:"vORIGEM",grid:0,type:"char"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[21]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV28IndModeloApresentacao"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV17UndCodPadrao"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A871TidIndModo"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV15ParTipForm"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV19Origem"});this.Subfile1Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.SetStandaloneVars()}hmih065.prototype=new gx.GxObject;gx.setParentObj(new hmih065());