gx.evt.autoSkip=false;function gx02d0(){this.ServerClass="Gx02D0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pEmpCod=gx.fn.getIntegerValue("vPEMPCOD",".")};this.e139u2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149u1_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,58,59,62];
this.GXLastCtrlId=62;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx02d0",[],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(339,53,"EMPCOD","Empresa","","EmpCod","int",0,"px",2,2,"right",null,[],339,"EmpCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(352,54,"EMPRAZSOCI","Razao Social","Selecionar","EmpRazSoci","char",0,"px",35,35,"left",null,[],352,"EmpRazSoci",true,0,false,false);
this.Grid1Container.addSingleLineEdit(348,55,"EMPNOMFANT","Nome fantasia","","EmpNomFant","char",0,"px",15,15,"left",null,[],348,"EmpNomFant",true,0,false,false);this.Grid1Container.addSingleLineEdit(342,56,"EMPDESENDE","Endereco","","EmpDesEnde","char",0,"px",30,30,"left",null,[],342,"EmpDesEnde",true,0,false,false);this.Grid1Container.addSingleLineEdit(341,57,"EMPDESCOMP","Complemento","","EmpDesComp","char",0,"px",15,15,"left",null,[],341,"EmpDesComp",true,0,false,false);this.Grid1Container.addSingleLineEdit(346,58,"EMPNOMBAIR","Bairro","","EmpNomBair","char",0,"px",15,15,"left",null,[],346,"EmpNomBair",true,0,false,false);
this.Grid1Container.addSingleLineEdit(343,59,"EMPESTCOD","UF","","EmpEstCod","char",0,"px",2,2,"left",null,[],343,"EmpEstCod",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:"TEXTBLOCKEMPCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCEMPCOD",gxz:"ZV6cEmpCod",gxold:"OV6cEmpCod",gxvar:"AV6cEmpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cEmpCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cEmpCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCEMPCOD",gx.O.AV6cEmpCod,0)},c2v:function(){gx.O.AV6cEmpCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCEMPCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKEMPRAZSOCI",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEMPRAZSOCI",gxz:"ZV7cEmpRazSoci",gxold:"OV7cEmpRazSoci",gxvar:"AV7cEmpRazSoci",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cEmpRazSoci=a
},v2z:function(a){gx.O.ZV7cEmpRazSoci=a},v2c:function(){gx.fn.setControlValue("vCEMPRAZSOCI",gx.O.AV7cEmpRazSoci,0)},c2v:function(){gx.O.AV7cEmpRazSoci=this.val()},val:function(){return gx.fn.getControlValue("vCEMPRAZSOCI")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKEMPNOMFANT",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEMPNOMFANT",gxz:"ZV8cEmpNomFant",gxold:"OV8cEmpNomFant",gxvar:"AV8cEmpNomFant",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cEmpNomFant=a
},v2z:function(a){gx.O.ZV8cEmpNomFant=a},v2c:function(){gx.fn.setControlValue("vCEMPNOMFANT",gx.O.AV8cEmpNomFant,0)},c2v:function(){gx.O.AV8cEmpNomFant=this.val()},val:function(){return gx.fn.getControlValue("vCEMPNOMFANT")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKEMPDESENDE",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEMPDESENDE",gxz:"ZV9cEmpDesEnde",gxold:"OV9cEmpDesEnde",gxvar:"AV9cEmpDesEnde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cEmpDesEnde=a
},v2z:function(a){gx.O.ZV9cEmpDesEnde=a},v2c:function(){gx.fn.setControlValue("vCEMPDESENDE",gx.O.AV9cEmpDesEnde,0)},c2v:function(){gx.O.AV9cEmpDesEnde=this.val()},val:function(){return gx.fn.getControlValue("vCEMPDESENDE")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKEMPDESCOMP",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEMPDESCOMP",gxz:"ZV10cEmpDesComp",gxold:"OV10cEmpDesComp",gxvar:"AV10cEmpDesComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cEmpDesComp=a
},v2z:function(a){gx.O.ZV10cEmpDesComp=a},v2c:function(){gx.fn.setControlValue("vCEMPDESCOMP",gx.O.AV10cEmpDesComp,0)},c2v:function(){gx.O.AV10cEmpDesComp=this.val()},val:function(){return gx.fn.getControlValue("vCEMPDESCOMP")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKEMPNOMBAIRRO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEMPNOMBAIRRO",gxz:"ZV11cEmpNomBairro",gxold:"OV11cEmpNomBairro",gxvar:"AV11cEmpNomBairro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cEmpNomBairro=a
},v2z:function(a){gx.O.ZV11cEmpNomBairro=a},v2c:function(){gx.fn.setControlValue("vCEMPNOMBAIRRO",gx.O.AV11cEmpNomBairro,0)},c2v:function(){gx.O.AV11cEmpNomBairro=this.val()},val:function(){return gx.fn.getControlValue("vCEMPNOMBAIRRO")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKEMPNOMCID",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCEMPNOMCID",gxz:"ZV12cEmpNomCid",gxold:"OV12cEmpNomCid",gxvar:"AV12cEmpNomCid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cEmpNomCid=a
},v2z:function(a){gx.O.ZV12cEmpNomCid=a},v2c:function(){gx.fn.setControlValue("vCEMPNOMCID",gx.O.AV12cEmpNomCid,0)},c2v:function(){gx.O.AV12cEmpNomCid=this.val()},val:function(){return gx.fn.getControlValue("vCEMPNOMCID")},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:2,dec:0,sign:false,pic:"Z9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EMPCOD",gxz:"Z339EmpCod",gxold:"O339EmpCod",gxvar:"A339EmpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A339EmpCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z339EmpCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EMPCOD",gx.fn.currentGridRowImpl(51),gx.O.A339EmpCod,0)},c2v:function(){gx.O.A339EmpCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("EMPCOD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EMPRAZSOCI",gxz:"Z352EmpRazSoci",gxold:"O352EmpRazSoci",gxvar:"A352EmpRazSoci",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A352EmpRazSoci=a
},v2z:function(a){gx.O.Z352EmpRazSoci=a},v2c:function(){gx.fn.setGridControlValue("EMPRAZSOCI",gx.fn.currentGridRowImpl(51),gx.O.A352EmpRazSoci,0)},c2v:function(){gx.O.A352EmpRazSoci=this.val()},val:function(){return gx.fn.getGridControlValue("EMPRAZSOCI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EMPNOMFANT",gxz:"Z348EmpNomFant",gxold:"O348EmpNomFant",gxvar:"A348EmpNomFant",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A348EmpNomFant=a
},v2z:function(a){gx.O.Z348EmpNomFant=a},v2c:function(){gx.fn.setGridControlValue("EMPNOMFANT",gx.fn.currentGridRowImpl(51),gx.O.A348EmpNomFant,0)},c2v:function(){gx.O.A348EmpNomFant=this.val()},val:function(){return gx.fn.getGridControlValue("EMPNOMFANT",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EMPDESENDE",gxz:"Z342EmpDesEnde",gxold:"O342EmpDesEnde",gxvar:"A342EmpDesEnde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A342EmpDesEnde=a
},v2z:function(a){gx.O.Z342EmpDesEnde=a},v2c:function(){gx.fn.setGridControlValue("EMPDESENDE",gx.fn.currentGridRowImpl(51),gx.O.A342EmpDesEnde,0)},c2v:function(){gx.O.A342EmpDesEnde=this.val()},val:function(){return gx.fn.getGridControlValue("EMPDESENDE",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EMPDESCOMP",gxz:"Z341EmpDesComp",gxold:"O341EmpDesComp",gxvar:"A341EmpDesComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A341EmpDesComp=a
},v2z:function(a){gx.O.Z341EmpDesComp=a},v2c:function(){gx.fn.setGridControlValue("EMPDESCOMP",gx.fn.currentGridRowImpl(51),gx.O.A341EmpDesComp,0)},c2v:function(){gx.O.A341EmpDesComp=this.val()},val:function(){return gx.fn.getGridControlValue("EMPDESCOMP",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EMPNOMBAIR",gxz:"Z346EmpNomBair",gxold:"O346EmpNomBair",gxvar:"A346EmpNomBair",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A346EmpNomBair=a
},v2z:function(a){gx.O.Z346EmpNomBair=a},v2c:function(){gx.fn.setGridControlValue("EMPNOMBAIR",gx.fn.currentGridRowImpl(51),gx.O.A346EmpNomBair,0)},c2v:function(){gx.O.A346EmpNomBair=this.val()},val:function(){return gx.fn.getGridControlValue("EMPNOMBAIR",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EMPESTCOD",gxz:"Z343EmpEstCod",gxold:"O343EmpEstCod",gxvar:"A343EmpEstCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A343EmpEstCod=a
},v2z:function(a){gx.O.Z343EmpEstCod=a},v2c:function(){gx.fn.setGridControlValue("EMPESTCOD",gx.fn.currentGridRowImpl(51),gx.O.A343EmpEstCod,0)},c2v:function(){gx.O.A343EmpEstCod=this.val()},val:function(){return gx.fn.getGridControlValue("EMPESTCOD",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[62]={fld:"TABLE4",grid:0};this.AV6cEmpCod=0;this.ZV6cEmpCod=0;this.OV6cEmpCod=0;this.AV7cEmpRazSoci="";this.ZV7cEmpRazSoci="";this.OV7cEmpRazSoci="";this.AV8cEmpNomFant="";this.ZV8cEmpNomFant="";
this.OV8cEmpNomFant="";this.AV9cEmpDesEnde="";this.ZV9cEmpDesEnde="";this.OV9cEmpDesEnde="";this.AV10cEmpDesComp="";this.ZV10cEmpDesComp="";this.OV10cEmpDesComp="";this.AV11cEmpNomBairro="";this.ZV11cEmpNomBairro="";this.OV11cEmpNomBairro="";this.AV12cEmpNomCid="";this.ZV12cEmpNomCid="";this.OV12cEmpNomCid="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z339EmpCod=0;this.O339EmpCod=0;this.Z352EmpRazSoci="";this.O352EmpRazSoci="";this.Z348EmpNomFant="";this.O348EmpNomFant="";this.Z342EmpDesEnde="";
this.O342EmpDesEnde="";this.Z341EmpDesComp="";this.O341EmpDesComp="";this.Z346EmpNomBair="";this.O346EmpNomBair="";this.Z343EmpEstCod="";this.O343EmpEstCod="";this.AV13pEmpCod=0;this.A347EmpNomCid="";this.AV5LinkSelection="";this.A339EmpCod=0;this.A352EmpRazSoci="";this.A348EmpNomFant="";this.A342EmpDesEnde="";this.A341EmpDesComp="";this.A346EmpNomBair="";this.A343EmpEstCod="";this.ServerEvents=["e139u2_client","e149u1_client"];this.VarControlMap.AV13pEmpCod={id:"vPEMPCOD",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()}gx02d0.prototype=new gx.GxObject;gx.setParentObj(new gx02d0());