gx.evt.autoSkip=false;function gx00d0(){this.ServerClass="Gx00D0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pUsbCod=gx.fn.getControlValue("vPUSBCOD")};this.e139m2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149m1_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,"gx00d0",[],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(787,53,"USBCOD","Leitor","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(786,54,"USBNOM","Nome","Selecionar","UsbNom","char",0,"px",50,50,"left",null,[],786,"UsbNom",true,0,false,false);
this.Grid1Container.addSingleLineEdit(948,55,"USBNOMSEMA","Nome sem acento","","UsbNomSemA","char",0,"px",35,35,"left",null,[],948,"UsbNomSemA",true,0,false,false);this.Grid1Container.addSingleLineEdit(930,56,"USBDATNASC","Nascimento","","UsbDatNasc","date",0,"px",10,10,"right",null,[],930,"UsbDatNasc",true,0,false,false);this.Grid1Container.addComboBox(943,57,"USBINDSEXO","Sexo","UsbIndSexo","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(929,58,"USBDATCADA","Cadastramento","","UsbDatCada","date",0,"px",10,10,"right",null,[],929,"UsbDatCada",true,0,false,false);
this.Grid1Container.addSingleLineEdit(950,59,"USBNROCEP","Cep","","UsbNroCep","char",0,"px",10,10,"left",null,[],950,"UsbNroCep",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:"TEXTBLOCKUSBCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBCOD",gxz:"ZV6cUsbCod",gxold:"OV6cUsbCod",gxvar:"AV6cUsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cUsbCod=a
},v2z:function(a){gx.O.ZV6cUsbCod=a},v2c:function(){gx.fn.setControlValue("vCUSBCOD",gx.O.AV6cUsbCod,0)},c2v:function(){gx.O.AV6cUsbCod=this.val()},val:function(){return gx.fn.getControlValue("vCUSBCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKUSBNOM",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBNOM",gxz:"ZV7cUsbNom",gxold:"OV7cUsbNom",gxvar:"AV7cUsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cUsbNom=a
},v2z:function(a){gx.O.ZV7cUsbNom=a},v2c:function(){gx.fn.setControlValue("vCUSBNOM",gx.O.AV7cUsbNom,0)},c2v:function(){gx.O.AV7cUsbNom=this.val()},val:function(){return gx.fn.getControlValue("vCUSBNOM")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKUSBNOMSEMACENTO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBNOMSEMACENTO",gxz:"ZV8cUsbNomSemAcento",gxold:"OV8cUsbNomSemAcento",gxvar:"AV8cUsbNomSemAcento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cUsbNomSemAcento=a
},v2z:function(a){gx.O.ZV8cUsbNomSemAcento=a},v2c:function(){gx.fn.setControlValue("vCUSBNOMSEMACENTO",gx.O.AV8cUsbNomSemAcento,0)},c2v:function(){gx.O.AV8cUsbNomSemAcento=this.val()},val:function(){return gx.fn.getControlValue("vCUSBNOMSEMACENTO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKUSBDATNASCIMENTO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBDATNASCIMENTO",gxz:"ZV9cUsbDatNascimento",gxold:"OV9cUsbDatNascimento",gxvar:"AV9cUsbDatNascimento",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cUsbDatNascimento=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV9cUsbDatNascimento=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCUSBDATNASCIMENTO",gx.O.AV9cUsbDatNascimento,0)},c2v:function(){gx.O.AV9cUsbDatNascimento=this.val()},val:function(){return gx.fn.getControlValue("vCUSBDATNASCIMENTO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKUSBINDSEXO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBINDSEXO",gxz:"ZV10cUsbIndSexo",gxold:"OV10cUsbIndSexo",gxvar:"AV10cUsbIndSexo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV10cUsbIndSexo=a
},v2z:function(a){gx.O.ZV10cUsbIndSexo=a},v2c:function(){gx.fn.setComboBoxValue("vCUSBINDSEXO",gx.O.AV10cUsbIndSexo)},c2v:function(){gx.O.AV10cUsbIndSexo=this.val()},val:function(){return gx.fn.getControlValue("vCUSBINDSEXO")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKUSBDATCADASTRAMENTO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBDATCADASTRAMENTO",gxz:"ZV11cUsbDatCadastramento",gxold:"OV11cUsbDatCadastramento",gxvar:"AV11cUsbDatCadastramento",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cUsbDatCadastramento=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV11cUsbDatCadastramento=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCUSBDATCADASTRAMENTO",gx.O.AV11cUsbDatCadastramento,0)},c2v:function(){gx.O.AV11cUsbDatCadastramento=this.val()},val:function(){return gx.fn.getControlValue("vCUSBDATCADASTRAMENTO")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKUSBDESENDERECO",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:45,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUSBDESENDERECO",gxz:"ZV12cUsbDesEndereco",gxold:"OV12cUsbDesEndereco",gxvar:"AV12cUsbDesEndereco",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cUsbDesEndereco=a
},v2z:function(a){gx.O.ZV12cUsbDesEndereco=a},v2c:function(){gx.fn.setControlValue("vCUSBDESENDERECO",gx.O.AV12cUsbDesEndereco,0)},c2v:function(){gx.O.AV12cUsbDesEndereco=this.val()},val:function(){return gx.fn.getControlValue("vCUSBDESENDERECO")},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:"char",len:14,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a
},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setGridControlValue("USBCOD",gx.fn.currentGridRowImpl(51),gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("USBCOD",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBNOM",gxz:"Z786UsbNom",gxold:"O786UsbNom",gxvar:"A786UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A786UsbNom=a
},v2z:function(a){gx.O.Z786UsbNom=a},v2c:function(){gx.fn.setGridControlValue("USBNOM",gx.fn.currentGridRowImpl(51),gx.O.A786UsbNom,0)},c2v:function(){gx.O.A786UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("USBNOM",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBNOMSEMA",gxz:"Z948UsbNomSemA",gxold:"O948UsbNomSemA",gxvar:"A948UsbNomSemA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A948UsbNomSemA=a
},v2z:function(a){gx.O.Z948UsbNomSemA=a},v2c:function(){gx.fn.setGridControlValue("USBNOMSEMA",gx.fn.currentGridRowImpl(51),gx.O.A948UsbNomSemA,0)},c2v:function(){gx.O.A948UsbNomSemA=this.val()},val:function(){return gx.fn.getGridControlValue("USBNOMSEMA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBDATNASC",gxz:"Z930UsbDatNasc",gxold:"O930UsbDatNasc",gxvar:"A930UsbDatNasc",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A930UsbDatNasc=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z930UsbDatNasc=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("USBDATNASC",gx.fn.currentGridRowImpl(51),gx.O.A930UsbDatNasc,0)},c2v:function(){gx.O.A930UsbDatNasc=this.val()},val:function(){return gx.fn.getGridControlValue("USBDATNASC",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBINDSEXO",gxz:"Z943UsbIndSexo",gxold:"O943UsbIndSexo",gxvar:"A943UsbIndSexo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A943UsbIndSexo=a
},v2z:function(a){gx.O.Z943UsbIndSexo=a},v2c:function(){gx.fn.setGridComboBoxValue("USBINDSEXO",gx.fn.currentGridRowImpl(51),gx.O.A943UsbIndSexo)},c2v:function(){gx.O.A943UsbIndSexo=this.val()},val:function(){return gx.fn.getGridControlValue("USBINDSEXO",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBDATCADA",gxz:"Z929UsbDatCada",gxold:"O929UsbDatCada",gxvar:"A929UsbDatCada",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A929UsbDatCada=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z929UsbDatCada=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("USBDATCADA",gx.fn.currentGridRowImpl(51),gx.O.A929UsbDatCada,0)},c2v:function(){gx.O.A929UsbDatCada=this.val()},val:function(){return gx.fn.getGridControlValue("USBDATCADA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBNROCEP",gxz:"Z950UsbNroCep",gxold:"O950UsbNroCep",gxvar:"A950UsbNroCep",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A950UsbNroCep=a
},v2z:function(a){gx.O.Z950UsbNroCep=a},v2c:function(){gx.fn.setGridControlValue("USBNROCEP",gx.fn.currentGridRowImpl(51),gx.O.A950UsbNroCep,0)},c2v:function(){gx.O.A950UsbNroCep=this.val()},val:function(){return gx.fn.getGridControlValue("USBNROCEP",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[62]={fld:"TABLE4",grid:0};this.AV6cUsbCod="";this.ZV6cUsbCod="";this.OV6cUsbCod="";this.AV7cUsbNom="";this.ZV7cUsbNom="";this.OV7cUsbNom="";this.AV8cUsbNomSemAcento="";this.ZV8cUsbNomSemAcento="";
this.OV8cUsbNomSemAcento="";this.AV9cUsbDatNascimento=gx.date.nullDate();this.ZV9cUsbDatNascimento=gx.date.nullDate();this.OV9cUsbDatNascimento=gx.date.nullDate();this.AV10cUsbIndSexo="";this.ZV10cUsbIndSexo="";this.OV10cUsbIndSexo="";this.AV11cUsbDatCadastramento=gx.date.nullDate();this.ZV11cUsbDatCadastramento=gx.date.nullDate();this.OV11cUsbDatCadastramento=gx.date.nullDate();this.AV12cUsbDesEndereco="";this.ZV12cUsbDesEndereco="";this.OV12cUsbDesEndereco="";this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z787UsbCod="";this.O787UsbCod="";this.Z786UsbNom="";this.O786UsbNom="";this.Z948UsbNomSemA="";this.O948UsbNomSemA="";this.Z930UsbDatNasc=gx.date.nullDate();this.O930UsbDatNasc=gx.date.nullDate();this.Z943UsbIndSexo="";this.O943UsbIndSexo="";this.Z929UsbDatCada=gx.date.nullDate();this.O929UsbDatCada=gx.date.nullDate();this.Z950UsbNroCep="";this.O950UsbNroCep="";this.AV13pUsbCod="";this.A935UsbDesEnde="";this.AV5LinkSelection="";this.A787UsbCod="";this.A786UsbNom="";this.A948UsbNomSemA="";this.A930UsbDatNasc=gx.date.nullDate();
this.A943UsbIndSexo="";this.A929UsbDatCada=gx.date.nullDate();this.A950UsbNroCep="";this.ServerEvents=["e139m2_client","e149m1_client"];this.VarControlMap.AV13pUsbCod={id:"vPUSBCOD",grid:0,type:"char"};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()}gx00d0.prototype=new gx.GxObject;gx.setParentObj(new gx00d0());