/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:34:20.33
*/
gx.evt.autoSkip=!1;gx.define("hmih027",!1,function(){var t,n;this.ServerClass="hmih027";this.PackageName="";this.setObjectType("web");this.anyGridBaseTable=!0;this.hasEnterEvent=!1;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.AV6DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV13ParTipForm=gx.fn.getControlValue("vPARTIPFORM");this.AV14IndOrigem=gx.fn.getControlValue("vINDORIGEM");this.AV15TidIndModoPublicacao=gx.fn.getControlValue("vTIDINDMODOPUBLICACAO");this.AV16UndCodSele=gx.fn.getIntegerValue("vUNDCODSELE",".");this.AV17IndModeloApresentacao=gx.fn.getControlValue("vINDMODELOAPRESENTACAO");this.AV6DocNro=gx.fn.getIntegerValue("vDOCNRO",".")};this.e138h2_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e148h2_client=function(){return this.executeServerEvent("CANCEL",!0,arguments[0],!1,!1)};this.GXValidFnc=[];t=this.GXValidFnc;this.GXCtrlIds=[4,5,13,17];this.GXLastCtrlId=17;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",3,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih027",[],!1,1,!1,!0,0,!1,!1,!1,"",0,"px",0,"px","Novo registro",!1,!1,!1,null,null,!1,"",!1,[1,1,1,1],!1,0,!1,!1);n=this.Grid1Container;n.addSingleLineEdit(39,4,"DONNROSEQ","Seq","","DonNroSeq","int",0,"px",4,4,"right",null,[],39,"DonNroSeq",!0,0,!1,!1,"Attribute",1,"");n.addSingleLineEdit(534,5,"DONDESLINH","Narrativa","","DonDesLinh","char",0,"px",70,70,"left",null,[],534,"DonDesLinh",!0,0,!1,!1,"Attribute",1,"");this.Grid1Container.emptyText="";this.setGrid(n);t[4]={id:4,lvl:2,type:"int",len:4,dec:0,sign:!1,pic:"ZZZ9",ro:1,isacc:0,grid:3,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"DONNROSEQ",gxz:"Z39DonNroSeq",gxold:"O39DonNroSeq",gxvar:"A39DonNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"number",v2v:function(n){n!==undefined&&(gx.O.A39DonNroSeq=gx.num.intval(n))},v2z:function(n){n!==undefined&&(gx.O.Z39DonNroSeq=gx.num.intval(n))},v2c:function(n){gx.fn.setGridControlValue("DONNROSEQ",n||gx.fn.currentGridRowImpl(3),gx.O.A39DonNroSeq,1)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A39DonNroSeq=gx.num.intval(this.val(n)))},val:function(n){return gx.fn.getGridIntegerValue("DONNROSEQ",n||gx.fn.currentGridRowImpl(3),".")},nac:gx.falseFn};t[5]={id:5,lvl:2,type:"char",len:70,dec:0,sign:!1,ro:1,isacc:0,grid:3,gxgrid:this.Grid1Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"DONDESLINH",gxz:"Z534DonDesLinh",gxold:"O534DonDesLinh",gxvar:"A534DonDesLinh",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A534DonDesLinh=n)},v2z:function(n){n!==undefined&&(gx.O.Z534DonDesLinh=n)},v2c:function(n){gx.fn.setGridControlValue("DONDESLINH",n||gx.fn.currentGridRowImpl(3),gx.O.A534DonDesLinh,1)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A534DonDesLinh=this.val(n))},val:function(n){return gx.fn.getGridControlValue("DONDESLINH",n||gx.fn.currentGridRowImpl(3))},nac:gx.falseFn};t[13]={id:13,fld:"VOLTAR",format:0,grid:0};t[17]={id:17,fld:"DIALOGO",format:0,grid:0};this.Z39DonNroSeq=0;this.O39DonNroSeq=0;this.Z534DonDesLinh="";this.O534DonDesLinh="";this.AV6DocNro=0;this.AV13ParTipForm="";this.AV14IndOrigem="";this.AV15TidIndModoPublicacao="";this.AV16UndCodSele=0;this.AV17IndModeloApresentacao="";this.A5DocNro=0;this.A39DonNroSeq=0;this.A534DonDesLinh="";this.A158CfgCod="";this.A425CfgValCont="";this.Events={e138h2_client:["ENTER",!0],e148h2_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID1_nFirstRecordOnPage"},{av:"GRID1_nEOF"},{av:"AV6DocNro",fld:"vDOCNRO",pic:"ZZZZZ9"}],[]];this.EvtParms.START=[[{av:"A158CfgCod",fld:"CFGCOD",pic:"@!"},{av:"A425CfgValCont",fld:"CFGVALCONT",pic:""},{av:"AV6DocNro",fld:"vDOCNRO",pic:"ZZZZZ9"},{av:"AV13ParTipForm",fld:"vPARTIPFORM",pic:""},{av:"AV14IndOrigem",fld:"vINDORIGEM",pic:""},{av:"AV15TidIndModoPublicacao",fld:"vTIDINDMODOPUBLICACAO",pic:"@!"},{av:"AV16UndCodSele",fld:"vUNDCODSELE",pic:"ZZ9"},{av:"AV17IndModeloApresentacao",fld:"vINDMODELOAPRESENTACAO",pic:""}],[{ctrl:"FORM",prop:"Backcolor"},{ctrl:"FORM",prop:"Background"},{av:'gx.fn.getCtrlProperty("VOLTAR","Link")',ctrl:"VOLTAR",prop:"Link"},{av:'gx.fn.getCtrlProperty("DIALOGO","Caption")',ctrl:"DIALOGO",prop:"Caption"}]];this.setVCMap("AV6DocNro","vDOCNRO",0,"int",6,0);this.setVCMap("AV13ParTipForm","vPARTIPFORM",0,"char",1,0);this.setVCMap("AV14IndOrigem","vINDORIGEM",0,"char",8,0);this.setVCMap("AV15TidIndModoPublicacao","vTIDINDMODOPUBLICACAO",0,"char",1,0);this.setVCMap("AV16UndCodSele","vUNDCODSELE",0,"int",3,0);this.setVCMap("AV17IndModeloApresentacao","vINDMODELOAPRESENTACAO",0,"char",1,0);this.setVCMap("AV6DocNro","vDOCNRO",0,"int",6,0);this.setVCMap("AV6DocNro","vDOCNRO",0,"int",6,0);n.addRefreshingVar({rfrVar:"AV6DocNro"});n.addRefreshingParm({rfrVar:"AV6DocNro"});this.Initialize()});gx.setParentObj(new hmih027)