gx.evt.autoSkip=false;function himh093(){this.ServerClass="HImh093";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){};this.Valid_Fordescida=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true}var a=gx.util.balloon.getNew("FORDESCIDA",gx.fn.currentGridRowImpl(30));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e111n2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e121n2_client=function(){this.executeServerEvent("'CONFIRMAR'",false)};this.e161n2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e171n2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,17,20,22,25,27,31,32,33,34,35,36,37];this.GXLastCtrlId=37;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh093",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addCheckBox("Indselecao",31,"vINDSELECAO","","","IndSelecao","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit(444,32,"FORNOMCOMP","Nome","","ForNomComp","char",0,"px",60,60,"left",null,[],444,"ForNomComp",true,0,false,false);this.Grid1Container.addSingleLineEdit(445,33,"FORNOMCONT","Contato","","ForNomCont","char",0,"px",30,30,"left",null,[],445,"ForNomCont",true,0,false,false);this.Grid1Container.addSingleLineEdit(449,34,"FORNROFONE","Fone","","ForNroFone","char",0,"px",16,16,"left",null,[],449,"ForNroFone",true,0,false,false);
this.Grid1Container.addSingleLineEdit(436,35,"FORDESCIDA","Cidade","","ForDesCida","char",0,"px",25,25,"left",null,[],436,"ForDesCida",true,0,false,false);this.Grid1Container.addSingleLineEdit(434,36,"FORCODEMAI","E-mail","","ForCodEMai","char",0,"px",50,50,"left",null,[],434,"ForCodEMai",true,0,false,false);this.Grid1Container.addSingleLineEdit(433,37,"FORCOD","Código","","ForCod","int",0,"px",6,6,"right",null,[],433,"ForCod",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};
this.GXValidFnc[14]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[17]={fld:"TABLE2",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[22]={lvl:0,type:"svchar",len:2048,dec:20,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCLISTASC",gxz:"ZV17DscListaSc",gxold:"OV17DscListaSc",gxvar:"AV17DscListaSc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17DscListaSc=a},v2z:function(a){gx.O.ZV17DscListaSc=a},v2c:function(){gx.fn.setControlValue("vDSCLISTASC",gx.O.AV17DscListaSc,0)
},c2v:function(){gx.O.AV17DscListaSc=this.val()},val:function(){return gx.fn.getControlValue("vDSCLISTASC")},nac:function(){return false}};this.GXValidFnc[25]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[27]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMCIDADE",gxz:"ZV18NomCidade",gxold:"OV18NomCidade",gxvar:"AV18NomCidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18NomCidade=a},v2z:function(a){gx.O.ZV18NomCidade=a
},v2c:function(){gx.fn.setControlValue("vNOMCIDADE",gx.O.AV18NomCidade,0)},c2v:function(){gx.O.AV18NomCidade=this.val()},val:function(){return gx.fn.getControlValue("vNOMCIDADE")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vINDSELECAO",gxz:"ZV9IndSelecao",gxold:"OV9IndSelecao",gxvar:"AV9IndSelecao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV9IndSelecao=a
},v2z:function(a){gx.O.ZV9IndSelecao=a},v2c:function(){gx.fn.setGridCheckBoxValue("vINDSELECAO",gx.fn.currentGridRowImpl(30),gx.O.AV9IndSelecao,"S")},c2v:function(){gx.O.AV9IndSelecao=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vINDSELECAO",gx.fn.currentGridRowImpl(30),"S","N")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:60,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FORNOMCOMP",gxz:"Z444ForNomComp",gxold:"O444ForNomComp",gxvar:"A444ForNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A444ForNomComp=a
},v2z:function(a){gx.O.Z444ForNomComp=a},v2c:function(){gx.fn.setGridControlValue("FORNOMCOMP",gx.fn.currentGridRowImpl(30),gx.O.A444ForNomComp,0)},c2v:function(){gx.O.A444ForNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("FORNOMCOMP",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FORNOMCONT",gxz:"Z445ForNomCont",gxold:"O445ForNomCont",gxvar:"A445ForNomCont",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A445ForNomCont=a
},v2z:function(a){gx.O.Z445ForNomCont=a},v2c:function(){gx.fn.setGridControlValue("FORNOMCONT",gx.fn.currentGridRowImpl(30),gx.O.A445ForNomCont,0)},c2v:function(){gx.O.A445ForNomCont=this.val()},val:function(){return gx.fn.getGridControlValue("FORNOMCONT",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:16,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FORNROFONE",gxz:"Z449ForNroFone",gxold:"O449ForNroFone",gxvar:"A449ForNroFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A449ForNroFone=a
},v2z:function(a){gx.O.Z449ForNroFone=a},v2c:function(){gx.fn.setGridControlValue("FORNROFONE",gx.fn.currentGridRowImpl(30),gx.O.A449ForNroFone,0)},c2v:function(){gx.O.A449ForNroFone=this.val()},val:function(){return gx.fn.getGridControlValue("FORNROFONE",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:25,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:this.Valid_Fordescida,isvalid:null,fld:"FORDESCIDA",gxz:"Z436ForDesCida",gxold:"O436ForDesCida",gxvar:"A436ForDesCida",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A436ForDesCida=a
},v2z:function(a){gx.O.Z436ForDesCida=a},v2c:function(){gx.fn.setGridControlValue("FORDESCIDA",gx.fn.currentGridRowImpl(30),gx.O.A436ForDesCida,0)},c2v:function(){gx.O.A436ForDesCida=this.val()},val:function(){return gx.fn.getGridControlValue("FORDESCIDA",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FORCODEMAI",gxz:"Z434ForCodEMai",gxold:"O434ForCodEMai",gxvar:"A434ForCodEMai",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A434ForCodEMai=a
},v2z:function(a){gx.O.Z434ForCodEMai=a},v2c:function(){gx.fn.setGridControlValue("FORCODEMAI",gx.fn.currentGridRowImpl(30),gx.O.A434ForCodEMai,0)},c2v:function(){gx.O.A434ForCodEMai=this.val()},val:function(){return gx.fn.getGridControlValue("FORCODEMAI",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"FORCOD",gxz:"Z433ForCod",gxold:"O433ForCod",gxvar:"A433ForCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A433ForCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z433ForCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("FORCOD",gx.fn.currentGridRowImpl(30),gx.O.A433ForCod,0)},c2v:function(){gx.O.A433ForCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("FORCOD",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.AV17DscListaSc="";this.ZV17DscListaSc="";this.OV17DscListaSc="";this.AV18NomCidade="";this.ZV18NomCidade="";this.OV18NomCidade="";this.ZV9IndSelecao="";this.OV9IndSelecao="";this.Z444ForNomComp="";
this.O444ForNomComp="";this.Z445ForNomCont="";this.O445ForNomCont="";this.Z449ForNroFone="";this.O449ForNroFone="";this.Z436ForDesCida="";this.O436ForDesCida="";this.Z434ForCodEMai="";this.O434ForCodEMai="";this.Z433ForCod=0;this.O433ForCod=0;this.A441ForIndEnvi="";this.AV9IndSelecao="";this.A444ForNomComp="";this.A445ForNomCont="";this.A449ForNroFone="";this.A436ForDesCida="";this.A434ForCodEMai="";this.A433ForCod=0;this.ServerEvents=["e111n2_client","e121n2_client","e161n2_client","e171n2_client"];
this.Grid1Container.addRefreshingVar(this.GXValidFnc[27]);this.SetStandaloneVars()}himh093.prototype=new gx.GxObject;gx.setParentObj(new himh093());