gx.evt.autoSkip=false;function gx0130(){this.ServerClass="Gx0130";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".")};this.e139q2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149q1_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,"gx0130",[],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(922,48,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(925,49,"UNDNOMCOMP","Nome completo","Selecionar","UndNomComp","char",0,"px",40,40,"left",null,[],925,"UndNomComp",true,0,false,false);this.Grid1Container.addSingleLineEdit(926,50,"UNDNOMSIGL","Sigla","","UndNomSigl","char",0,"px",3,3,"left",null,[],926,"UndNomSigl",true,0,false,false);this.Grid1Container.addComboBox(924,51,"UNDINDTOMB","Permite tombo repetido","UndIndTomb","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(923,52,"UNDDATFECH","Data fechamento saldo penalidades","","UndDatFech","date",0,"px",10,10,"right",null,[],923,"UndDatFech",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:"TEXTBLOCKUNDCOD",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:"vCUNDCOD",gxz:"ZV6cUndCod",gxold:"OV6cUndCod",gxvar:"AV6cUndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cUndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cUndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCUNDCOD",gx.O.AV6cUndCod,0)},c2v:function(){gx.O.AV6cUndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKUNDNOMCOMPLETO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUNDNOMCOMPLETO",gxz:"ZV7cUndNomCompleto",gxold:"OV7cUndNomCompleto",gxvar:"AV7cUndNomCompleto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cUndNomCompleto=a
},v2z:function(a){gx.O.ZV7cUndNomCompleto=a},v2c:function(){gx.fn.setControlValue("vCUNDNOMCOMPLETO",gx.O.AV7cUndNomCompleto,0)},c2v:function(){gx.O.AV7cUndNomCompleto=this.val()},val:function(){return gx.fn.getControlValue("vCUNDNOMCOMPLETO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKUNDNOMSIGLA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUNDNOMSIGLA",gxz:"ZV8cUndNomSigla",gxold:"OV8cUndNomSigla",gxvar:"AV8cUndNomSigla",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cUndNomSigla=a
},v2z:function(a){gx.O.ZV8cUndNomSigla=a},v2c:function(){gx.fn.setControlValue("vCUNDNOMSIGLA",gx.O.AV8cUndNomSigla,0)},c2v:function(){gx.O.AV8cUndNomSigla=this.val()},val:function(){return gx.fn.getControlValue("vCUNDNOMSIGLA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKUNDINDTOMBOREPETIDO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUNDINDTOMBOREPETIDO",gxz:"ZV9cUndIndTomboRepetido",gxold:"OV9cUndIndTomboRepetido",gxvar:"AV9cUndIndTomboRepetido",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV9cUndIndTomboRepetido=a
},v2z:function(a){gx.O.ZV9cUndIndTomboRepetido=a},v2c:function(){gx.fn.setComboBoxValue("vCUNDINDTOMBOREPETIDO",gx.O.AV9cUndIndTomboRepetido)},c2v:function(){gx.O.AV9cUndIndTomboRepetido=this.val()},val:function(){return gx.fn.getControlValue("vCUNDINDTOMBOREPETIDO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKUNDCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCUNDCAMPO1LIVRE",gxz:"ZV10cUndCampo1Livre",gxold:"OV10cUndCampo1Livre",gxvar:"AV10cUndCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cUndCampo1Livre=a
},v2z:function(a){gx.O.ZV10cUndCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCUNDCAMPO1LIVRE",gx.O.AV10cUndCampo1Livre,0)},c2v:function(){gx.O.AV10cUndCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCUNDCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKUNDDATFECHAMENTOPENALIDADES",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:"vCUNDDATFECHAMENTOPENALIDADES",gxz:"ZV11cUndDatFechamentoPenalidades",gxold:"OV11cUndDatFechamentoPenalidades",gxvar:"AV11cUndDatFechamentoPenalidades",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.AV11cUndDatFechamentoPenalidades=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV11cUndDatFechamentoPenalidades=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCUNDDATFECHAMENTOPENALIDADES",gx.O.AV11cUndDatFechamentoPenalidades,0)},c2v:function(){gx.O.AV11cUndDatFechamentoPenalidades=this.val()},val:function(){return gx.fn.getControlValue("vCUNDDATFECHAMENTOPENALIDADES")},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:"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[49]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDNOMCOMP",gxz:"Z925UndNomComp",gxold:"O925UndNomComp",gxvar:"A925UndNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A925UndNomComp=a
},v2z:function(a){gx.O.Z925UndNomComp=a},v2c:function(){gx.fn.setGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(46),gx.O.A925UndNomComp,0)},c2v:function(){gx.O.A925UndNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDNOMSIGL",gxz:"Z926UndNomSigl",gxold:"O926UndNomSigl",gxvar:"A926UndNomSigl",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A926UndNomSigl=a
},v2z:function(a){gx.O.Z926UndNomSigl=a},v2c:function(){gx.fn.setGridControlValue("UNDNOMSIGL",gx.fn.currentGridRowImpl(46),gx.O.A926UndNomSigl,0)},c2v:function(){gx.O.A926UndNomSigl=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMSIGL",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDINDTOMB",gxz:"Z924UndIndTomb",gxold:"O924UndIndTomb",gxvar:"A924UndIndTomb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A924UndIndTomb=a
},v2z:function(a){gx.O.Z924UndIndTomb=a},v2c:function(){gx.fn.setGridComboBoxValue("UNDINDTOMB",gx.fn.currentGridRowImpl(46),gx.O.A924UndIndTomb)},c2v:function(){gx.O.A924UndIndTomb=this.val()},val:function(){return gx.fn.getGridControlValue("UNDINDTOMB",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDDATFECH",gxz:"Z923UndDatFech",gxold:"O923UndDatFech",gxvar:"A923UndDatFech",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.A923UndDatFech=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z923UndDatFech=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("UNDDATFECH",gx.fn.currentGridRowImpl(46),gx.O.A923UndDatFech,0)},c2v:function(){gx.O.A923UndDatFech=this.val()},val:function(){return gx.fn.getGridControlValue("UNDDATFECH",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[55]={fld:"TABLE4",grid:0};this.AV6cUndCod=0;this.ZV6cUndCod=0;this.OV6cUndCod=0;this.AV7cUndNomCompleto="";this.ZV7cUndNomCompleto="";this.OV7cUndNomCompleto="";
this.AV8cUndNomSigla="";this.ZV8cUndNomSigla="";this.OV8cUndNomSigla="";this.AV9cUndIndTomboRepetido="";this.ZV9cUndIndTomboRepetido="";this.OV9cUndIndTomboRepetido="";this.AV10cUndCampo1Livre="";this.ZV10cUndCampo1Livre="";this.OV10cUndCampo1Livre="";this.AV11cUndDatFechamentoPenalidades=gx.date.nullDate();this.ZV11cUndDatFechamentoPenalidades=gx.date.nullDate();this.OV11cUndDatFechamentoPenalidades=gx.date.nullDate();this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z922UndCod=0;this.O922UndCod=0;
this.Z925UndNomComp="";this.O925UndNomComp="";this.Z926UndNomSigl="";this.O926UndNomSigl="";this.Z924UndIndTomb="";this.O924UndIndTomb="";this.Z923UndDatFech=gx.date.nullDate();this.O923UndDatFech=gx.date.nullDate();this.AV12pUndCod=0;this.A921UndCampo1L="";this.AV5LinkSelection="";this.A922UndCod=0;this.A925UndNomComp="";this.A926UndNomSigl="";this.A924UndIndTomb="";this.A923UndDatFech=gx.date.nullDate();this.ServerEvents=["e139q2_client","e149q1_client"];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.SetStandaloneVars()}gx0130.prototype=new gx.GxObject;gx.setParentObj(new gx0130());