gx.evt.autoSkip=false;function hmih103(){this.ServerClass="HMih103";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.AV16ParmNroEnquete=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.e11kr2_client=function(){this.executeServerEvent("'SALVAR'",false)
};this.e15kr2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e16kr2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,9,18,21,23,27,33,36,38,40,42,44,46,48,50,53];this.GXLastCtrlId=53;this.GridrespostasContainer=new gx.grid.grid(this,5,"WbpLvl5",30,"Gridrespostas","Gridrespostas","GridrespostasContainer",this.CmpContext,this.IsMasterPage,"hmih103",[],true,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.GridrespostasContainer.startRow("","","","","","");this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.startTable("Table3",33,"0px");this.GridrespostasContainer.addHtmlCode("<TBODY>");this.GridrespostasContainer.startRow("","","","","","");this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addComboBox("Grd2tippergunta",36,"vGRD2TIPPERGUNTA","","Grd2TipPergunta","char",null,0,true,false,1,"chr");this.GridrespostasContainer.endCell();
this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addSingleLineEdit("Grd2nropergunta",38,"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",40,"vGRD2NRORESPOSTA","","","Grd2NroResposta","int",4,"chr",4,4,"right",null,[],"Grd2nroresposta","Grd2NroResposta",true,0,false,false);
this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addRadioButton("Grd2tipradio",42,"vGRD2TIPRADIO","","Grd2TipRadio","char",null,false,true,false);this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addRadioButton("Grd2tipradiohorizontal",44,"vGRD2TIPRADIOHORIZONTAL","","Grd2TipRadioHorizontal","char",null,true,true,false);this.GridrespostasContainer.endCell();
this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addCheckBox("Grd2tipcheck",46,"vGRD2TIPCHECK","","","Grd2TipCheck","char","S","N",null,true,false,3,"chr");this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addTextBlock("PERGUNTACHECKBOX",null);this.GridrespostasContainer.endCell();this.GridrespostasContainer.startCell("","","","","","","","","","");this.GridrespostasContainer.addMultipleLineEdit("Grd2tiptext",50,"vGRD2TIPTEXT","","Grd2TipText","vchar",100,"chr",5,"row","5120",5120,"left",null,true,false,0);
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",15,"Gridperguntas","Gridperguntas","GridperguntasContainer",this.CmpContext,this.IsMasterPage,"hmih103",[],true,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.GridperguntasContainer.startRow("","","","","","");this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.startTable("Table2",18,"0px");this.GridperguntasContainer.addHtmlCode("<TBODY>");this.GridperguntasContainer.startRow("","","","","","");this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.addComboBox("Grd1tipapresentacao",21,"vGRD1TIPAPRESENTACAO","","Grd1TipApresentacao","char",null,0,true,false,1,"chr");
this.GridperguntasContainer.endCell();this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.addSingleLineEdit("Grd1nropergunta",23,"vGRD1NROPERGUNTA","","","Grd1NroPergunta","int",3,"chr",3,3,"right",null,[],"Grd1nropergunta","Grd1NroPergunta",true,0,false,false);this.GridperguntasContainer.endCell();this.GridperguntasContainer.startCell("","","","","","","25px","","","");this.GridperguntasContainer.addBitmap("Help","HELP",25,0,"px",0,"px",null,"","");this.GridperguntasContainer.endCell();
this.GridperguntasContainer.startCell("","","","","","","","","","");this.GridperguntasContainer.addMultipleLineEdit("Grd1dscpergunta",27,"vGRD1DSCPERGUNTA","","Grd1DscPergunta","svchar",100,"chr",5,"row","400",400,"left",null,true,false,0);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:"TABLE1",grid:0};this.GXValidFnc[6]={fld:"NOMEENQUETE",format:0,grid:0};this.GXValidFnc[9]={fld:"OBJETIVOS",format:0,grid:0};this.GXValidFnc[18]={fld:"TABLE2",grid:15};this.GXValidFnc[21]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:15,gxgrid:this.GridperguntasContainer,fnc:null,isvalid:null,fld:"vGRD1TIPAPRESENTACAO",gxz:"ZV5Grd1TipApresentacao",gxold:"OV5Grd1TipApresentacao",gxvar:"AV5Grd1TipApresentacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV5Grd1TipApresentacao=a
},v2z:function(a){gx.O.ZV5Grd1TipApresentacao=a},v2c:function(){gx.fn.setGridComboBoxValue("vGRD1TIPAPRESENTACAO",gx.fn.currentGridRowImpl(15),gx.O.AV5Grd1TipApresentacao)},c2v:function(){gx.O.AV5Grd1TipApresentacao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD1TIPAPRESENTACAO",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:15,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(15),gx.O.AV6Grd1NroPergunta,0)},c2v:function(){gx.O.AV6Grd1NroPergunta=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRD1NROPERGUNTA",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"svchar",len:400,dec:0,sign:false,ro:0,grid:15,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(15),gx.O.AV7Grd1DscPergunta,0)},c2v:function(){gx.O.AV7Grd1DscPergunta=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD1DSCPERGUNTA",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[33]={fld:"TABLE3",grid:30};this.GXValidFnc[36]={lvl:5,type:"char",len:1,dec:0,sign:false,ro:0,grid:30,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,fld:"vGRD2TIPPERGUNTA",gxz:"ZV8Grd2TipPergunta",gxold:"OV8Grd2TipPergunta",gxvar:"AV8Grd2TipPergunta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV8Grd2TipPergunta=a
},v2z:function(a){gx.O.ZV8Grd2TipPergunta=a},v2c:function(){gx.fn.setGridComboBoxValue("vGRD2TIPPERGUNTA",gx.fn.currentGridRowImpl(30),gx.O.AV8Grd2TipPergunta)},c2v:function(){gx.O.AV8Grd2TipPergunta=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD2TIPPERGUNTA",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[38]={lvl:5,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:30,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(30),gx.O.AV9Grd2NroPergunta,0)},c2v:function(){gx.O.AV9Grd2NroPergunta=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRD2NROPERGUNTA",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[40]={lvl:5,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:30,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(30),gx.O.AV10Grd2NroResposta,0)},c2v:function(){gx.O.AV10Grd2NroResposta=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRD2NRORESPOSTA",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[42]={lvl:5,type:"char",len:3,dec:0,sign:false,ro:0,grid:30,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,fld:"vGRD2TIPRADIO",gxz:"ZV11Grd2TipRadio",gxold:"OV11Grd2TipRadio",gxvar:"AV11Grd2TipRadio",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV11Grd2TipRadio=a
},v2z:function(a){gx.O.ZV11Grd2TipRadio=a},v2c:function(){},c2v:function(){gx.O.AV11Grd2TipRadio=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD2TIPRADIO",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[44]={lvl:5,type:"char",len:3,dec:0,sign:false,ro:0,grid:30,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,fld:"vGRD2TIPRADIOHORIZONTAL",gxz:"ZV12Grd2TipRadioHorizontal",gxold:"OV12Grd2TipRadioHorizontal",gxvar:"AV12Grd2TipRadioHorizontal",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV12Grd2TipRadioHorizontal=a
},v2z:function(a){gx.O.ZV12Grd2TipRadioHorizontal=a},v2c:function(){},c2v:function(){gx.O.AV12Grd2TipRadioHorizontal=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD2TIPRADIOHORIZONTAL",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[46]={lvl:5,type:"char",len:3,dec:0,sign:false,ro:0,grid:30,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,fld:"vGRD2TIPCHECK",gxz:"ZV13Grd2TipCheck",gxold:"OV13Grd2TipCheck",gxvar:"AV13Grd2TipCheck",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV13Grd2TipCheck=a
},v2z:function(a){gx.O.ZV13Grd2TipCheck=a},v2c:function(){gx.fn.setGridCheckBoxValue("vGRD2TIPCHECK",gx.fn.currentGridRowImpl(30),gx.O.AV13Grd2TipCheck,"S")},c2v:function(){gx.O.AV13Grd2TipCheck=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRD2TIPCHECK",gx.fn.currentGridRowImpl(30),"S","N")},nac:function(){return false}};this.GXValidFnc[48]={fld:"PERGUNTACHECKBOX",format:0,grid:30};this.GXValidFnc[50]={lvl:5,type:"vchar",len:5120,dec:0,sign:false,ro:0,grid:30,gxgrid:this.GridrespostasContainer,fnc:null,isvalid:null,fld:"vGRD2TIPTEXT",gxz:"ZV15Grd2TipText",gxold:"OV15Grd2TipText",gxvar:"AV15Grd2TipText",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15Grd2TipText=a
},v2z:function(a){gx.O.ZV15Grd2TipText=a},v2c:function(){gx.fn.setGridControlValue("vGRD2TIPTEXT",gx.fn.currentGridRowImpl(30),gx.O.AV15Grd2TipText,0)},c2v:function(){gx.O.AV15Grd2TipText=this.val()},val:function(){return gx.fn.getGridControlValue("vGRD2TIPTEXT",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[53]={fld:"TABLE4",grid:0};this.ZV5Grd1TipApresentacao="";this.OV5Grd1TipApresentacao="";this.ZV6Grd1NroPergunta=0;this.OV6Grd1NroPergunta=0;this.ZV7Grd1DscPergunta="";
this.OV7Grd1DscPergunta="";this.ZV8Grd2TipPergunta="";this.OV8Grd2TipPergunta="";this.ZV9Grd2NroPergunta=0;this.OV9Grd2NroPergunta=0;this.ZV10Grd2NroResposta=0;this.OV10Grd2NroResposta=0;this.ZV11Grd2TipRadio="";this.OV11Grd2TipRadio="";this.ZV12Grd2TipRadioHorizontal="";this.OV12Grd2TipRadioHorizontal="";this.ZV13Grd2TipCheck="";this.OV13Grd2TipCheck="";this.ZV15Grd2TipText="";this.OV15Grd2TipText="";this.AV16ParmNroEnquete=0;this.AV5Grd1TipApresentacao="";this.AV6Grd1NroPergunta=0;this.AV7Grd1DscPergunta="";
this.A1130EqtNroSequ=0;this.A1135EqtIndStat="";this.AV8Grd2TipPergunta="";this.AV9Grd2NroPergunta=0;this.AV10Grd2NroResposta=0;this.AV11Grd2TipRadio="";this.AV12Grd2TipRadioHorizontal="";this.AV13Grd2TipCheck="";this.AV15Grd2TipText="";this.A1138EqpNroSequ=0;this.A1139EqpDscPerg="";this.A1142EqpTipApre="";this.A1143EqpQtdNota=0;this.A1145EqvDscValo="";this.A1144EqvNroSequ=0;this.A1141EqpIndStat="";this.A1140EqpDscText="";this.A1132EqtDscTitu="";this.A1159EqtDscApre="";this.A1156EqtTipIden="";this.A1134EqtDatFimP=gx.date.nullDate();
this.A1133EqtDatInic=gx.date.nullDate();this.ServerEvents=["e11kr2_client","e15kr2_client","e16kr2_client"];this.VarControlMap.AV16ParmNroEnquete={id:"vPARMNROENQUETE",grid:0,type:"int"};this.VarControlMap.A1140EqpDscText={id:"EQPDSCTEXT",grid:0,type:"char"};this.VarControlMap.A1142EqpTipApre={id:"EQPTIPAPRE",grid:0,type:"char"};this.VarControlMap.A1139EqpDscPerg={id:"EQPDSCPERG",grid:0,type:"svchar"};this.VarControlMap.A1138EqpNroSequ={id:"EQPNROSEQU",grid:0,type:"int"};this.VarControlMap.A1130EqtNroSequ={id:"EQTNROSEQU",grid:0,type:"int"};
this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV10Grd2NroResposta",rfrProp:"Visible"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV9Grd2NroPergunta",rfrProp:"Visible"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV8Grd2TipPergunta",rfrProp:"Visible"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1143EqpQtdNota"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1145EqvDscValo"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1144EqvNroSequ"});
this.GridrespostasContainer.addRefreshingVar({rfrVar:"AV27SdtRolPerguntasEnquetes"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1142EqpTipApre"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1138EqpNroSequ"});this.GridrespostasContainer.addRefreshingVar({rfrVar:"A1139EqpDscPerg"});this.GridperguntasContainer.addRefreshingVar({rfrVar:"AV5Grd1TipApresentacao",rfrProp:"Visible"});this.GridperguntasContainer.addRefreshingVar({rfrVar:"A1140EqpDscText"});this.GridperguntasContainer.addRefreshingVar({rfrVar:"A1142EqpTipApre"});
this.GridperguntasContainer.addRefreshingVar({rfrVar:"A1139EqpDscPerg"});this.GridperguntasContainer.addRefreshingVar({rfrVar:"A1138EqpNroSequ"});this.GridperguntasContainer.addRefreshingVar({rfrVar:"A1130EqtNroSequ"});this.SetStandaloneVars()}hmih103.prototype=new gx.GxObject;gx.setParentObj(new hmih103());