/*!   GeneXus Java 16_0_9-140712 on August 21, 2021 11:34:21.86
*/
gx.evt.autoSkip=!1;gx.define("hmih085",!1,function(){var n,t;this.ServerClass="hmih085";this.PackageName="";this.setObjectType("web");this.anyGridBaseTable=!0;this.hasEnterEvent=!1;this.skipOnEnter=!1;this.ajaxSecurityToken=!0;this.SetStandaloneVars=function(){this.A5DocNro=gx.fn.getIntegerValue("DOCNRO",".");this.A5DocNro=gx.fn.getIntegerValue("DOCNRO",".")};this.e138k2_client=function(){return this.executeServerEvent("ENTER",!0,arguments[0],!1,!1)};this.e148k2_client=function(){return this.executeServerEvent("CANCEL",!0,arguments[0],!1,!1)};this.GXValidFnc=[];n=this.GXValidFnc;this.GXCtrlIds=[2,3,4,5,6,7,8,10,11,12];this.GXLastCtrlId=12;this.Grid2Container=new gx.grid.grid(this,2,"WbpLvl2",9,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"hmih085",[],!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,!0,!1);t=this.Grid2Container;t.addSingleLineEdit(235,10,"CMTDTHREGI","","","CmtDthRegi","dtime",0,"px",14,14,"right",null,[],235,"CmtDthRegi",!0,5,!1,!1,"Attribute",1,"");t.addSingleLineEdit("Cmtnomleitor",11,"vCMTNOMLEITOR","Nome do leitor","","CmtNomLeitor","char",0,"px",80,80,"left",null,[],"Cmtnomleitor","CmtNomLeitor",!0,0,!1,!1,"Attribute",1,"");t.addSingleLineEdit(429,12,"CMTDSCCOME","Comentário","","CmtDscCome","svchar",0,"px",999,80,"left",null,[],429,"CmtDscCome",!0,0,!1,!1,"Attribute",1,"");this.Grid2Container.emptyText="";this.setGrid(t);n[2]={id:2,fld:"",grid:0};n[3]={id:3,fld:"MAINTABLE",grid:0};n[4]={id:4,fld:"",grid:0};n[5]={id:5,fld:"",grid:0};n[6]={id:6,fld:"TABLE1",grid:0};n[7]={id:7,fld:"",grid:0};n[8]={id:8,fld:"",grid:0};n[10]={id:10,lvl:2,type:"dtime",len:8,dec:5,sign:!1,ro:1,isacc:0,grid:9,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CMTDTHREGI",gxz:"Z235CmtDthRegi",gxold:"O235CmtDthRegi",gxvar:"A235CmtDthRegi",dp:{f:0,st:!0,wn:!1,mf:!1,pic:"99/99/99 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(n){n!==undefined&&(gx.O.A235CmtDthRegi=gx.fn.toDatetimeValue(n))},v2z:function(n){n!==undefined&&(gx.O.Z235CmtDthRegi=gx.fn.toDatetimeValue(n))},v2c:function(n){gx.fn.setGridControlValue("CMTDTHREGI",n||gx.fn.currentGridRowImpl(9),gx.O.A235CmtDthRegi,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A235CmtDthRegi=gx.fn.toDatetimeValue(this.val(n)))},val:function(n){return gx.fn.getGridDateTimeValue("CMTDTHREGI",n||gx.fn.currentGridRowImpl(9))},nac:gx.falseFn};n[11]={id:11,lvl:2,type:"char",len:80,dec:0,sign:!1,ro:1,isacc:0,grid:9,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"vCMTNOMLEITOR",gxz:"ZV8CmtNomLeitor",gxold:"OV8CmtNomLeitor",gxvar:"AV8CmtNomLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.AV8CmtNomLeitor=n)},v2z:function(n){n!==undefined&&(gx.O.ZV8CmtNomLeitor=n)},v2c:function(n){gx.fn.setGridControlValue("vCMTNOMLEITOR",n||gx.fn.currentGridRowImpl(9),gx.O.AV8CmtNomLeitor,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.AV8CmtNomLeitor=this.val(n))},val:function(n){return gx.fn.getGridControlValue("vCMTNOMLEITOR",n||gx.fn.currentGridRowImpl(9))},nac:gx.falseFn};n[12]={id:12,lvl:2,type:"svchar",len:999,dec:0,sign:!1,ro:1,isacc:0,grid:9,gxgrid:this.Grid2Container,fnc:null,isvalid:null,evt_cvc:null,evt_cvcing:null,rgrid:[],fld:"CMTDSCCOME",gxz:"Z429CmtDscCome",gxold:"O429CmtDscCome",gxvar:"A429CmtDscCome",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(n){n!==undefined&&(gx.O.A429CmtDscCome=n)},v2z:function(n){n!==undefined&&(gx.O.Z429CmtDscCome=n)},v2c:function(n){gx.fn.setGridControlValue("CMTDSCCOME",n||gx.fn.currentGridRowImpl(9),gx.O.A429CmtDscCome,0)},c2v:function(n){this.val(n)!==undefined&&(gx.O.A429CmtDscCome=this.val(n))},val:function(n){return gx.fn.getGridControlValue("CMTDSCCOME",n||gx.fn.currentGridRowImpl(9))},nac:gx.falseFn};this.Z235CmtDthRegi=gx.date.nullDate();this.O235CmtDthRegi=gx.date.nullDate();this.ZV8CmtNomLeitor="";this.OV8CmtNomLeitor="";this.Z429CmtDscCome="";this.O429CmtDscCome="";this.A5DocNro=0;this.A1061CmtIndAtiv="";this.A428CmtCodLeit="";this.A234CmtNroSequ=0;this.A235CmtDthRegi=gx.date.nullDate();this.AV8CmtNomLeitor="";this.A429CmtDscCome="";this.Events={e138k2_client:["ENTER",!0],e148k2_client:["CANCEL",!0]};this.EvtParms.REFRESH=[[{av:"GRID2_nFirstRecordOnPage"},{av:"GRID2_nEOF"},{av:"A5DocNro",fld:"DOCNRO",pic:"ZZZZZ9"}],[]];this.EvtParms.START=[[{av:"AV7UsuCod",fld:"vUSUCOD",pic:"@!"}],[{av:"AV7UsuCod",fld:"vUSUCOD",pic:"@!"}]];this.EvtParms.LOAD=[[{av:"A428CmtCodLeit",fld:"CMTCODLEIT",pic:""}],[{av:"AV8CmtNomLeitor",fld:"vCMTNOMLEITOR",pic:""}]];this.setVCMap("A5DocNro","DOCNRO",0,"int",6,0);this.setVCMap("A5DocNro","DOCNRO",0,"int",6,0);this.setVCMap("A5DocNro","DOCNRO",0,"int",6,0);t.addRefreshingVar({rfrVar:"A5DocNro"});t.addRefreshingParm({rfrVar:"A5DocNro"});this.Initialize()});gx.setParentObj(new hmih085)