gx.evt.autoSkip=false;function himh152(){this.ServerClass="HImh152";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){};this.s112_client=function(){if(this.AV14CodIdiomaLeitor=="ENG"){gx.fn.setCtrlProperty("ATUALIZA","Caption","Refresh");gx.fn.setCtrlProperty("TITULOPAGINA","Caption","See comments from readers");gx.fn.setCtrlProperty("PERIODO","Caption","period")}else{gx.fn.setCtrlProperty("ATUALIZA","Caption","Atualizar");gx.fn.setCtrlProperty("TITULOPAGINA","Caption","Ver comentários dos leitores");
gx.fn.setCtrlProperty("PERIODO","Caption","periodo")}};this.e146t2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e156t1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,5,12,15,18,20,22,24,28,29,30,31];this.GXLastCtrlId=31;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",27,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh152",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(134,28,"CMTDTHREGI","","","CmtDthRegi","dtime",94,"px",14,8,"right",null,[],134,"CmtDthRegi",true,5,false,false);this.Grid1Container.addSingleLineEdit(242,29,"DOCDESL1TI","","","DocDesL1Ti","char",410,"px",250,250,"left",null,[],242,"DocDesL1Ti",true,0,false,false);this.Grid1Container.addSingleLineEdit("Cmtnomleitor",30,"vCMTNOMLEITOR","","","CmtNomLeitor","char",260,"px",50,50,"left",null,[],"Cmtnomleitor","CmtNomLeitor",true,0,false,false);this.Grid1Container.addSingleLineEdit(133,31,"CMTDSCCOME","","","CmtDscCome","svchar",410,"px",999,999,"left",null,[],133,"CmtDscCome",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE3",grid:0};this.GXValidFnc[5]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TITULOPAGINA",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"PERIODO",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDTHINICIAL",gxz:"ZV11DthInicial",gxold:"OV11DthInicial",gxvar:"AV11DthInicial",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11DthInicial=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV11DthInicial=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDTHINICIAL",gx.O.AV11DthInicial,0)},c2v:function(){gx.O.AV11DthInicial=this.val()},val:function(){return gx.fn.getControlValue("vDTHINICIAL")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDTHFINAL",gxz:"ZV12DthFinal",gxold:"OV12DthFinal",gxvar:"AV12DthFinal",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12DthFinal=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV12DthFinal=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDTHFINAL",gx.O.AV12DthFinal,0)},c2v:function(){gx.O.AV12DthFinal=this.val()},val:function(){return gx.fn.getControlValue("vDTHFINAL")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"dtime",len:8,dec:5,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CMTDTHREGI",gxz:"Z134CmtDthRegi",gxold:"O134CmtDthRegi",gxvar:"A134CmtDthRegi",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/99 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A134CmtDthRegi=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z134CmtDthRegi=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("CMTDTHREGI",gx.fn.currentGridRowImpl(27),gx.O.A134CmtDthRegi,0)},c2v:function(){gx.O.A134CmtDthRegi=this.val()},val:function(){return gx.fn.getGridControlValue("CMTDTHREGI",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DOCDESL1TI",gxz:"Z242DocDesL1Ti",gxold:"O242DocDesL1Ti",gxvar:"A242DocDesL1Ti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A242DocDesL1Ti=a
},v2z:function(a){gx.O.Z242DocDesL1Ti=a},v2c:function(){gx.fn.setGridControlValue("DOCDESL1TI",gx.fn.currentGridRowImpl(27),gx.O.A242DocDesL1Ti,0)},c2v:function(){gx.O.A242DocDesL1Ti=this.val()},val:function(){return gx.fn.getGridControlValue("DOCDESL1TI",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vCMTNOMLEITOR",gxz:"ZV8CmtNomLeitor",gxold:"OV8CmtNomLeitor",gxvar:"AV8CmtNomLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8CmtNomLeitor=a
},v2z:function(a){gx.O.ZV8CmtNomLeitor=a},v2c:function(){gx.fn.setGridControlValue("vCMTNOMLEITOR",gx.fn.currentGridRowImpl(27),gx.O.AV8CmtNomLeitor,0)},c2v:function(){gx.O.AV8CmtNomLeitor=this.val()},val:function(){return gx.fn.getGridControlValue("vCMTNOMLEITOR",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"svchar",len:999,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CMTDSCCOME",gxz:"Z133CmtDscCome",gxold:"O133CmtDscCome",gxvar:"A133CmtDscCome",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A133CmtDscCome=a
},v2z:function(a){gx.O.Z133CmtDscCome=a},v2c:function(){gx.fn.setGridControlValue("CMTDSCCOME",gx.fn.currentGridRowImpl(27),gx.O.A133CmtDscCome,0)},c2v:function(){gx.O.A133CmtDscCome=this.val()},val:function(){return gx.fn.getGridControlValue("CMTDSCCOME",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.AV11DthInicial=gx.date.nullDate();this.ZV11DthInicial=gx.date.nullDate();this.OV11DthInicial=gx.date.nullDate();this.AV12DthFinal=gx.date.nullDate();this.ZV12DthFinal=gx.date.nullDate();
this.OV12DthFinal=gx.date.nullDate();this.Z134CmtDthRegi=gx.date.nullDate();this.O134CmtDthRegi=gx.date.nullDate();this.Z242DocDesL1Ti="";this.O242DocDesL1Ti="";this.ZV8CmtNomLeitor="";this.OV8CmtNomLeitor="";this.Z133CmtDscCome="";this.O133CmtDscCome="";this.A1011CmtIndAtiv="";this.A132CmtCodLeit="";this.A135CmtNroSequ=0;this.A258DocNro=0;this.A134CmtDthRegi=gx.date.nullDate();this.A242DocDesL1Ti="";this.AV8CmtNomLeitor="";this.A133CmtDscCome="";this.AV14CodIdiomaLeitor="";this.ServerEvents=["e146t2_client","e156t1_client"];
this.VarControlMap.A132CmtCodLeit={id:"CMTCODLEIT",grid:0,type:"char"};this.VarControlMap.AV14CodIdiomaLeitor={id:"vCODIDIOMALEITOR",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[20]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar({rfrVar:"A132CmtCodLeit"});this.Grid1Container.addRefreshingVar({rfrVar:"AV14CodIdiomaLeitor"});this.SetStandaloneVars()}himh152.prototype=new gx.GxObject;gx.setParentObj(new himh152());