gx.evt.autoSkip=false;function gx00i0(){this.ServerClass="Gx00I0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pForCod=gx.fn.getIntegerValue("vPFORCOD",".")};this.e139h2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149h1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,60];
this.GXLastCtrlId=60;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00i0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(433,53,"FORCOD","Código","","ForCod","int",0,"px",6,6,"right",null,[],433,"ForCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(442,54,"FORNOMABRE","Nome abreviado","Selecionar","ForNomAbre","char",0,"px",15,15,"left",null,[],442,"ForNomAbre",true,0,false,false);
this.Grid1Container.addSingleLineEdit(444,55,"FORNOMCOMP","Nome","","ForNomComp","char",0,"px",60,60,"left",null,[],444,"ForNomComp",true,0,false,false);this.Grid1Container.addSingleLineEdit(437,56,"FORDESENDE","Endereço","","ForDesEnde","char",0,"px",35,35,"left",null,[],437,"ForDesEnde",true,0,false,false);this.Grid1Container.addSingleLineEdit(438,57,"FORDESESTA","Estado","","ForDesEsta","char",0,"px",2,2,"left",null,[],438,"ForDesEsta",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};
this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKFORCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCFORCOD",gxz:"ZV6cForCod",gxold:"OV6cForCod",gxvar:"AV6cForCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cForCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cForCod=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vCFORCOD",gx.O.AV6cForCod,0)},c2v:function(){gx.O.AV6cForCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCFORCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKFORNOMABREVIADO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCFORNOMABREVIADO",gxz:"ZV7cForNomAbreviado",gxold:"OV7cForNomAbreviado",gxvar:"AV7cForNomAbreviado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cForNomAbreviado=a
},v2z:function(a){gx.O.ZV7cForNomAbreviado=a},v2c:function(){gx.fn.setControlValue("vCFORNOMABREVIADO",gx.O.AV7cForNomAbreviado,0)},c2v:function(){gx.O.AV7cForNomAbreviado=this.val()},val:function(){return gx.fn.getControlValue("vCFORNOMABREVIADO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKFORNOMCOMPLETO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCFORNOMCOMPLETO",gxz:"ZV8cForNomCompleto",gxold:"OV8cForNomCompleto",gxvar:"AV8cForNomCompleto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cForNomCompleto=a
},v2z:function(a){gx.O.ZV8cForNomCompleto=a},v2c:function(){gx.fn.setControlValue("vCFORNOMCOMPLETO",gx.O.AV8cForNomCompleto,0)},c2v:function(){gx.O.AV8cForNomCompleto=this.val()},val:function(){return gx.fn.getControlValue("vCFORNOMCOMPLETO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKFORDESENDERECO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCFORDESENDERECO",gxz:"ZV9cForDesEndereco",gxold:"OV9cForDesEndereco",gxvar:"AV9cForDesEndereco",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cForDesEndereco=a
},v2z:function(a){gx.O.ZV9cForDesEndereco=a},v2c:function(){gx.fn.setControlValue("vCFORDESENDERECO",gx.O.AV9cForDesEndereco,0)},c2v:function(){gx.O.AV9cForDesEndereco=this.val()},val:function(){return gx.fn.getControlValue("vCFORDESENDERECO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKFORNOMBAIRRO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCFORNOMBAIRRO",gxz:"ZV10cForNomBairro",gxold:"OV10cForNomBairro",gxvar:"AV10cForNomBairro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cForNomBairro=a
},v2z:function(a){gx.O.ZV10cForNomBairro=a},v2c:function(){gx.fn.setControlValue("vCFORNOMBAIRRO",gx.O.AV10cForNomBairro,0)},c2v:function(){gx.O.AV10cForNomBairro=this.val()},val:function(){return gx.fn.getControlValue("vCFORNOMBAIRRO")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKFORDESCIDADE",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCFORDESCIDADE",gxz:"ZV11cForDesCidade",gxold:"OV11cForDesCidade",gxvar:"AV11cForDesCidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cForDesCidade=a
},v2z:function(a){gx.O.ZV11cForDesCidade=a},v2c:function(){gx.fn.setControlValue("vCFORDESCIDADE",gx.O.AV11cForDesCidade,0)},c2v:function(){gx.O.AV11cForDesCidade=this.val()},val:function(){return gx.fn.getControlValue("vCFORDESCIDADE")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKFORDESESTADO",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCFORDESESTADO",gxz:"ZV12cForDesEstado",gxold:"OV12cForDesEstado",gxvar:"AV12cForDesEstado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cForDesEstado=a
},v2z:function(a){gx.O.ZV12cForDesEstado=a},v2c:function(){gx.fn.setControlValue("vCFORDESESTADO",gx.O.AV12cForDesEstado,0)},c2v:function(){gx.O.AV12cForDesEstado=this.val()},val:function(){return gx.fn.getControlValue("vCFORDESESTADO")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,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(51),gx.O.A433ForCod,0)},c2v:function(){gx.O.A433ForCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("FORCOD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FORNOMABRE",gxz:"Z442ForNomAbre",gxold:"O442ForNomAbre",gxvar:"A442ForNomAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A442ForNomAbre=a
},v2z:function(a){gx.O.Z442ForNomAbre=a},v2c:function(){gx.fn.setGridControlValue("FORNOMABRE",gx.fn.currentGridRowImpl(51),gx.O.A442ForNomAbre,0)},c2v:function(){gx.O.A442ForNomAbre=this.val()},val:function(){return gx.fn.getGridControlValue("FORNOMABRE",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:60,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A444ForNomComp,0)},c2v:function(){gx.O.A444ForNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("FORNOMCOMP",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FORDESENDE",gxz:"Z437ForDesEnde",gxold:"O437ForDesEnde",gxvar:"A437ForDesEnde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A437ForDesEnde=a
},v2z:function(a){gx.O.Z437ForDesEnde=a},v2c:function(){gx.fn.setGridControlValue("FORDESENDE",gx.fn.currentGridRowImpl(51),gx.O.A437ForDesEnde,0)},c2v:function(){gx.O.A437ForDesEnde=this.val()},val:function(){return gx.fn.getGridControlValue("FORDESENDE",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"FORDESESTA",gxz:"Z438ForDesEsta",gxold:"O438ForDesEsta",gxvar:"A438ForDesEsta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A438ForDesEsta=a
},v2z:function(a){gx.O.Z438ForDesEsta=a},v2c:function(){gx.fn.setGridControlValue("FORDESESTA",gx.fn.currentGridRowImpl(51),gx.O.A438ForDesEsta,0)},c2v:function(){gx.O.A438ForDesEsta=this.val()},val:function(){return gx.fn.getGridControlValue("FORDESESTA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={fld:"TABLE4",grid:0};this.AV6cForCod=0;this.ZV6cForCod=0;this.OV6cForCod=0;this.AV7cForNomAbreviado="";this.ZV7cForNomAbreviado="";this.OV7cForNomAbreviado="";this.AV8cForNomCompleto="";
this.ZV8cForNomCompleto="";this.OV8cForNomCompleto="";this.AV9cForDesEndereco="";this.ZV9cForDesEndereco="";this.OV9cForDesEndereco="";this.AV10cForNomBairro="";this.ZV10cForNomBairro="";this.OV10cForNomBairro="";this.AV11cForDesCidade="";this.ZV11cForDesCidade="";this.OV11cForDesCidade="";this.AV12cForDesEstado="";this.ZV12cForDesEstado="";this.OV12cForDesEstado="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z433ForCod=0;this.O433ForCod=0;this.Z442ForNomAbre="";this.O442ForNomAbre="";
this.Z444ForNomComp="";this.O444ForNomComp="";this.Z437ForDesEnde="";this.O437ForDesEnde="";this.Z438ForDesEsta="";this.O438ForDesEsta="";this.AV13pForCod=0;this.A443ForNomBair="";this.A436ForDesCida="";this.AV5LinkSelection="";this.A433ForCod=0;this.A442ForNomAbre="";this.A444ForNomComp="";this.A437ForDesEnde="";this.A438ForDesEsta="";this.ServerEvents=["e139h2_client","e149h1_client"];this.VarControlMap.AV13pForCod={id:"vPFORCOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[44]);this.SetStandaloneVars()}gx00i0.prototype=new gx.GxObject;gx.setParentObj(new gx00i0());