gx.evt.autoSkip=false;function gx0141(){this.ServerClass="Gx0141";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV13pLocCod=gx.fn.getIntegerValue("vPLOCCOD",".")};this.e139r2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149r1_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,43,47,48,49,50,51,52,55];
this.GXLastCtrlId=55;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0141",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",47,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(509,48,"LOCCOD","Localização","","LocCod","int",0,"px",3,3,"right",null,[],509,"LocCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(512,49,"LOCNOM","Nome da localização","Selecionar","LocNom","char",0,"px",45,45,"left",null,[],512,"LocNom",true,0,false,false);
this.Grid1Container.addSingleLineEdit(513,50,"LOCNOMRESP","Responsável","","LocNomResp","char",0,"px",30,30,"left",null,[],513,"LocNomResp",true,0,false,false);this.Grid1Container.addSingleLineEdit(514,51,"LOCNROFONE","Fone","","LocNroFone","char",0,"px",15,15,"left",null,[],514,"LocNroFone",true,0,false,false);this.Grid1Container.addSingleLineEdit(922,52,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",false,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:"TEXTBLOCKLOCCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCLOCCOD",gxz:"ZV6cLocCod",gxold:"OV6cLocCod",gxvar:"AV6cLocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cLocCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cLocCod=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vCLOCCOD",gx.O.AV6cLocCod,0)},c2v:function(){gx.O.AV6cLocCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCLOCCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKLOCNOM",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:45,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLOCNOM",gxz:"ZV7cLocNom",gxold:"OV7cLocNom",gxvar:"AV7cLocNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cLocNom=a
},v2z:function(a){gx.O.ZV7cLocNom=a},v2c:function(){gx.fn.setControlValue("vCLOCNOM",gx.O.AV7cLocNom,0)},c2v:function(){gx.O.AV7cLocNom=this.val()},val:function(){return gx.fn.getControlValue("vCLOCNOM")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKLOCNOMRESPONSAVEL",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLOCNOMRESPONSAVEL",gxz:"ZV8cLocNomResponsavel",gxold:"OV8cLocNomResponsavel",gxvar:"AV8cLocNomResponsavel",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cLocNomResponsavel=a
},v2z:function(a){gx.O.ZV8cLocNomResponsavel=a},v2c:function(){gx.fn.setControlValue("vCLOCNOMRESPONSAVEL",gx.O.AV8cLocNomResponsavel,0)},c2v:function(){gx.O.AV8cLocNomResponsavel=this.val()},val:function(){return gx.fn.getControlValue("vCLOCNOMRESPONSAVEL")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKLOCDESENDERECO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLOCDESENDERECO",gxz:"ZV9cLocDesEndereco",gxold:"OV9cLocDesEndereco",gxvar:"AV9cLocDesEndereco",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cLocDesEndereco=a
},v2z:function(a){gx.O.ZV9cLocDesEndereco=a},v2c:function(){gx.fn.setControlValue("vCLOCDESENDERECO",gx.O.AV9cLocDesEndereco,0)},c2v:function(){gx.O.AV9cLocDesEndereco=this.val()},val:function(){return gx.fn.getControlValue("vCLOCDESENDERECO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKLOCNROFONE",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:"vCLOCNROFONE",gxz:"ZV10cLocNroFone",gxold:"OV10cLocNroFone",gxvar:"AV10cLocNroFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cLocNroFone=a
},v2z:function(a){gx.O.ZV10cLocNroFone=a},v2c:function(){gx.fn.setControlValue("vCLOCNROFONE",gx.O.AV10cLocNroFone,0)},c2v:function(){gx.O.AV10cLocNroFone=this.val()},val:function(){return gx.fn.getControlValue("vCLOCNROFONE")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKLOCCODEMAIL",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLOCCODEMAIL",gxz:"ZV11cLocCodEmail",gxold:"OV11cLocCodEmail",gxvar:"AV11cLocCodEmail",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cLocCodEmail=a
},v2z:function(a){gx.O.ZV11cLocCodEmail=a},v2c:function(){gx.fn.setControlValue("vCLOCCODEMAIL",gx.O.AV11cLocCodEmail,0)},c2v:function(){gx.O.AV11cLocCodEmail=this.val()},val:function(){return gx.fn.getControlValue("vCLOCCODEMAIL")},nac:function(){return false}};this.GXValidFnc[42]={fld:"GROUP2",grid:0};this.GXValidFnc[43]={fld:"TABLE3",grid:0};this.GXValidFnc[47]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:46,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(46))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"LOCCOD",gxz:"Z509LocCod",gxold:"O509LocCod",gxvar:"A509LocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A509LocCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z509LocCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("LOCCOD",gx.fn.currentGridRowImpl(46),gx.O.A509LocCod,0)},c2v:function(){gx.O.A509LocCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("LOCCOD",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:45,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCNOM",gxz:"Z512LocNom",gxold:"O512LocNom",gxvar:"A512LocNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A512LocNom=a
},v2z:function(a){gx.O.Z512LocNom=a},v2c:function(){gx.fn.setGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(46),gx.O.A512LocNom,0)},c2v:function(){gx.O.A512LocNom=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCNOMRESP",gxz:"Z513LocNomResp",gxold:"O513LocNomResp",gxvar:"A513LocNomResp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A513LocNomResp=a
},v2z:function(a){gx.O.Z513LocNomResp=a},v2c:function(){gx.fn.setGridControlValue("LOCNOMRESP",gx.fn.currentGridRowImpl(46),gx.O.A513LocNomResp,0)},c2v:function(){gx.O.A513LocNomResp=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOMRESP",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LOCNROFONE",gxz:"Z514LocNroFone",gxold:"O514LocNroFone",gxvar:"A514LocNroFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A514LocNroFone=a
},v2z:function(a){gx.O.Z514LocNroFone=a},v2c:function(){gx.fn.setGridControlValue("LOCNROFONE",gx.fn.currentGridRowImpl(46),gx.O.A514LocNroFone,0)},c2v:function(){gx.O.A514LocNroFone=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNROFONE",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(46),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[55]={fld:"TABLE4",grid:0};this.AV6cLocCod=0;this.ZV6cLocCod=0;this.OV6cLocCod=0;this.AV7cLocNom="";this.ZV7cLocNom="";this.OV7cLocNom="";this.AV8cLocNomResponsavel="";this.ZV8cLocNomResponsavel="";
this.OV8cLocNomResponsavel="";this.AV9cLocDesEndereco="";this.ZV9cLocDesEndereco="";this.OV9cLocDesEndereco="";this.AV10cLocNroFone="";this.ZV10cLocNroFone="";this.OV10cLocNroFone="";this.AV11cLocCodEmail="";this.ZV11cLocCodEmail="";this.OV11cLocCodEmail="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z509LocCod=0;this.O509LocCod=0;this.Z512LocNom="";this.O512LocNom="";this.Z513LocNomResp="";this.O513LocNomResp="";this.Z514LocNroFone="";this.O514LocNroFone="";this.Z922UndCod=0;this.O922UndCod=0;
this.AV12pUndCod=0;this.AV13pLocCod=0;this.A511LocDesEnde="";this.A510LocCodEmai="";this.AV5LinkSelection="";this.A509LocCod=0;this.A512LocNom="";this.A513LocNomResp="";this.A514LocNroFone="";this.A922UndCod=0;this.ServerEvents=["e139r2_client","e149r1_client"];this.VarControlMap.AV12pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV13pLocCod={id:"vPLOCCOD",grid:0,type:"int"};this.VarControlMap.AV12pUndCod={id:"vPUNDCOD",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({rfrVar:"AV12pUndCod"});this.SetStandaloneVars()}gx0141.prototype=new gx.GxObject;gx.setParentObj(new gx0141());