gx.evt.autoSkip=false;function himh308(){this.ServerClass="HImh308";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV20ParmNroEnquete=gx.fn.getIntegerValue("vPARMNROENQUETE",".")};this.Validv_Grd1nropergunta=function(){try{var a=gx.util.balloon.getNew("vGRD1NROPERGUNTA");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e15kx2_client=function(){this.clearMessages();
gx.popup.openUrl(gx.http.formatLink("himh309.aspx",[this.AV20ParmNroEnquete,this.AV6Grd1NroPergunta]),[]);this.refreshOutputs([])};this.e11kx2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e16kx2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e17kx2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,21,30,33,35,37,43,46,48,50,52,54];this.GXLastCtrlId=54;this.GridrespostasContainer=new gx.grid.grid(this,5,"WbpLvl5",40,"Gridrespostas","Gridrespostas","GridrespostasContainer",this.CmpContext,this.IsMasterPage,"himh308",[],true,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.GridrespostasContainer.startRow("","","","","","");this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.startTable("Table3",43,"0px");this.GridrespostasContainer.addHtmlCode("<TBODY>");this.GridrespostasContainer.startRow("","","","","","");this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addSingleLineEdit("Grd2nropergunta",46,"vGRD2NROPERGUNTA","","","Grd2NroPergunta","int",3,"chr",3,3,"right",null,[],"Grd2nropergunta","Grd2NroPergunta",true,0,false,false);
this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addSingleLineEdit("Grd2nroresposta",48,"vGRD2NRORESPOSTA","","","Grd2NroResposta","int",4,"chr",4,4,"right",null,[],"Grd2nroresposta","Grd2NroResposta",true,0,false,false);this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","600px","","","");this.GridrespostasContainer.addSingleLineEdit("Grd2valresposta",50,"vGRD2VALRESPOSTA","","","Grd2ValResposta","char",80,"chr",100,100,"left",null,[],"Grd2valresposta","Grd2ValResposta",true,0,false,false);
this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addSingleLineEdit("Grd2valporcentagem",52,"vGRD2VALPORCENTAGEM","","","Grd2ValPorcentagem","char",6,"chr",6,6,"left",null,[],"Grd2valporcentagem","Grd2ValPorcentagem",true,0,false,false);this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addSingleLineEdit("Grd2qtdresposta",54,"vGRD2QTDRESPOSTA","","","Grd2QtdResposta","int",4,"chr",4,4,"right",null,[],"Grd2qtdresposta","Grd2QtdResposta",true,0,false,false);
this.GridrespostasContainer.endCell();this.GridrespostasContainer.endRow();this.GridrespostasContainer.addHtmlCode("</TBODY>");this.GridrespostasContainer.endTable();this.GridrespostasContainer.endCell();this.GridrespostasContainer.endRow();this.GridperguntasContainer=new gx.grid.grid(this,2,"WbpLvl2",27,"Gridperguntas","Gridperguntas","GridperguntasContainer",this.CmpContext,this.IsMasterPage,"himh308",[],true,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.GridperguntasContainer.startRow("","","","","","");this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.startTable("Table2",30,"0px");this.GridperguntasContainer.addHtmlCode("<TBODY>");this.GridperguntasContainer.startRow("","","","","","");this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.addSingleLineEdit("Grd1nropergunta",33,"vGRD1NROPERGUNTA","","","Grd1NroPergunta","int",3,"chr",3,3,"right",null,[],"Grd1nropergunta","Grd1NroPergunta",true,0,false,false);
this.GridperguntasContainer.endCell();this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.addMultipleLineEdit("Grd1dscpergunta",35,"vGRD1DSCPERGUNTA","","Grd1DscPergunta","svchar",100,"chr",5,"row","400",400,"left",null,true,false,0);this.GridperguntasContainer.endCell();this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.addSingleLineEdit("Grd1linkgrafico",37,"vGRD1LINKGRAFICO","","","Grd1LinkGrafico","char",20,"chr",20,20,"left","e15kx2_client",[],"Grd1linkgrafico","Grd1LinkGrafico",true,0,false,false);
this.GridperguntasContainer.endCell();this.GridperguntasContainer.endRow();this.GridperguntasContainer.addHtmlCode("</TBODY>");this.GridperguntasContainer.endTable();this.GridperguntasContainer.endCell();this.GridperguntasContainer.endRow();this.GridperguntasContainer.startRow("","","","","","");this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.addGrid(this.GridrespostasContainer);this.GridperguntasContainer.endCell();this.GridperguntasContainer.endRow();
this.setGrid(this.GridperguntasContainer);this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE1",grid:0};this.GXValidFnc[18]={fld:"NOMEENQUETE",format:0,grid:0};this.GXValidFnc[21]={fld:"OBJETIVOS",format:0,grid:0};this.GXValidFnc[30]={fld:"TABLE2",grid:27};this.GXValidFnc[33]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:27,gxgrid:this.GridperguntasContainer,fnc:this.Validv_Grd1nropergunta,isvalid:null,rgrid:[],fld:"vGRD1NROPERGUNTA",gxz:"ZV6Grd1NroPergunta",gxold:"OV6Grd1NroPergunta",gxvar:"AV6Grd1NroPergunta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6Grd1NroPergunta=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6Grd1NroPergunta=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRD1NROPERGUNTA",gx.fn.currentGridRowImpl(27),gx.O.AV6Grd1NroPergunta,0)},c2v:function(){gx.O.AV6Grd1NroPergunta=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRD1NROPERGUNTA",gx.fn.currentGridRowImpl(27),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"svchar",len:400,dec:0,sign:false,ro:0,grid:27,gxgrid:this.GridperguntasContainer,fnc:null,isvalid:null,fld:"vGRD1DSCPERGUNTA",gxz:"ZV7Grd1DscPergunta",gxold:"OV7Grd1DscPergunta",gxvar:"AV7Grd1DscPergunta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7Grd1DscPergunta=a
},v2z:function(a){gx.O.ZV7Grd1DscPergunta=a},v2c:function(){gx.fn.setGridControlValue("vGRD1DSCPERGUNTA",gx.fn.currentGridRowImpl(27),gx.O.AV7Grd1DscPergunta,0)},c2v:function(){gx.O.AV7Grd1DscPergunta=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD1DSCPERGUNTA",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:0,grid:27,gxgrid:this.GridperguntasContainer,fnc:null,isvalid:null,fld:"vGRD1LINKGRAFICO",gxz:"ZV15Grd1LinkGrafico",gxold:"OV15Grd1LinkGrafico",gxvar:"AV15Grd1LinkGrafico",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15Grd1LinkGrafico=a
},v2z:function(a){gx.O.ZV15Grd1LinkGrafico=a},v2c:function(){gx.fn.setGridControlValue("vGRD1LINKGRAFICO",gx.fn.currentGridRowImpl(27),gx.O.AV15Grd1LinkGrafico,0)},c2v:function(){gx.O.AV15Grd1LinkGrafico=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD1LINKGRAFICO",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[43]={fld:"TABLE3",grid:40};this.GXValidFnc[46]={lvl:5,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:40,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,rgrid:[],fld:"vGRD2NROPERGUNTA",gxz:"ZV9Grd2NroPergunta",gxold:"OV9Grd2NroPergunta",gxvar:"AV9Grd2NroPergunta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9Grd2NroPergunta=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9Grd2NroPergunta=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRD2NROPERGUNTA",gx.fn.currentGridRowImpl(40),gx.O.AV9Grd2NroPergunta,0)},c2v:function(){gx.O.AV9Grd2NroPergunta=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRD2NROPERGUNTA",gx.fn.currentGridRowImpl(40),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:5,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:40,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,rgrid:[],fld:"vGRD2NRORESPOSTA",gxz:"ZV10Grd2NroResposta",gxold:"OV10Grd2NroResposta",gxvar:"AV10Grd2NroResposta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10Grd2NroResposta=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10Grd2NroResposta=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRD2NRORESPOSTA",gx.fn.currentGridRowImpl(40),gx.O.AV10Grd2NroResposta,0)},c2v:function(){gx.O.AV10Grd2NroResposta=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRD2NRORESPOSTA",gx.fn.currentGridRowImpl(40),".")},nac:function(){return false}};this.GXValidFnc[50]={lvl:5,type:"char",len:100,dec:0,sign:false,ro:1,grid:40,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,fld:"vGRD2VALRESPOSTA",gxz:"ZV17Grd2ValResposta",gxold:"OV17Grd2ValResposta",gxvar:"AV17Grd2ValResposta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17Grd2ValResposta=a
},v2z:function(a){gx.O.ZV17Grd2ValResposta=a},v2c:function(){gx.fn.setGridControlValue("vGRD2VALRESPOSTA",gx.fn.currentGridRowImpl(40),gx.O.AV17Grd2ValResposta,0)},c2v:function(){gx.O.AV17Grd2ValResposta=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD2VALRESPOSTA",gx.fn.currentGridRowImpl(40))},nac:function(){return false}};this.GXValidFnc[52]={lvl:5,type:"char",len:6,dec:0,sign:false,ro:1,grid:40,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,fld:"vGRD2VALPORCENTAGEM",gxz:"ZV18Grd2ValPorcentagem",gxold:"OV18Grd2ValPorcentagem",gxvar:"AV18Grd2ValPorcentagem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18Grd2ValPorcentagem=a
},v2z:function(a){gx.O.ZV18Grd2ValPorcentagem=a},v2c:function(){gx.fn.setGridControlValue("vGRD2VALPORCENTAGEM",gx.fn.currentGridRowImpl(40),gx.O.AV18Grd2ValPorcentagem,0)},c2v:function(){gx.O.AV18Grd2ValPorcentagem=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD2VALPORCENTAGEM",gx.fn.currentGridRowImpl(40))},nac:function(){return false}};this.GXValidFnc[54]={lvl:5,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:40,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,rgrid:[],fld:"vGRD2QTDRESPOSTA",gxz:"ZV19Grd2QtdResposta",gxold:"OV19Grd2QtdResposta",gxvar:"AV19Grd2QtdResposta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19Grd2QtdResposta=gx.num.intval(a)
},v2z:function(a){gx.O.ZV19Grd2QtdResposta=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRD2QTDRESPOSTA",gx.fn.currentGridRowImpl(40),gx.O.AV19Grd2QtdResposta,0)},c2v:function(){gx.O.AV19Grd2QtdResposta=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRD2QTDRESPOSTA",gx.fn.currentGridRowImpl(40),".")},nac:function(){return false}};this.ZV6Grd1NroPergunta=0;this.OV6Grd1NroPergunta=0;this.ZV7Grd1DscPergunta="";this.OV7Grd1DscPergunta="";this.ZV15Grd1LinkGrafico="";this.OV15Grd1LinkGrafico="";
this.ZV9Grd2NroPergunta=0;this.OV9Grd2NroPergunta=0;this.ZV10Grd2NroResposta=0;this.OV10Grd2NroResposta=0;this.ZV17Grd2ValResposta="";this.OV17Grd2ValResposta="";this.ZV18Grd2ValPorcentagem="";this.OV18Grd2ValPorcentagem="";this.ZV19Grd2QtdResposta=0;this.OV19Grd2QtdResposta=0;this.AV20ParmNroEnquete=0;this.AV6Grd1NroPergunta=0;this.AV7Grd1DscPergunta="";this.AV15Grd1LinkGrafico="";this.AV9Grd2NroPergunta=0;this.AV10Grd2NroResposta=0;this.AV17Grd2ValResposta="";this.AV18Grd2ValPorcentagem="";this.AV19Grd2QtdResposta=0;
this.A1142EqpTipApre="";this.A1138EqpNroSequ=0;this.A1130EqtNroSequ=0;this.A1139EqpDscPerg="";this.A1143EqpQtdNota=0;this.A1146EqrValResp="";this.A1145EqvDscValo="";this.A1144EqvNroSequ=0;this.A1141EqpIndStat="";this.A1132EqtDscTitu="";this.A1150EqtDscObje="";this.ServerEvents=["e11kx2_client","e16kx2_client","e17kx2_client"];this.VarControlMap.AV20ParmNroEnquete={id:"vPARMNROENQUETE",grid:0,type:"int"};this.VarControlMap.A1138EqpNroSequ={id:"EQPNROSEQU",grid:0,type:"int"};this.VarControlMap.A1139EqpDscPerg={id:"EQPDSCPERG",grid:0,type:"svchar"};
this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV19Grd2QtdResposta",rfrProp:"Visible"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV10Grd2NroResposta",rfrProp:"Visible"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV9Grd2NroPergunta",rfrProp:"Visible"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV24QtdAdicionar"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV22SdtRolRespostas"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1145EqvDscValo"});
this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1146EqrValResp"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1144EqvNroSequ"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1130EqtNroSequ"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1143EqpQtdNota"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1142EqpTipApre"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1138EqpNroSequ"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1139EqpDscPerg"});
this.GridperguntasContainer.addRefreshingVar({rfrVar:"A1138EqpNroSequ"});this.GridperguntasContainer.addRefreshingVar({rfrVar:"A1139EqpDscPerg"});this.SetStandaloneVars()}himh308.prototype=new gx.GxObject;gx.setParentObj(new himh308());