gx.evt.autoSkip=false;function gx0170(){this.ServerClass="Gx0170";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pGvlNro=gx.fn.getIntegerValue("vPGVLNRO",".")};this.e13982_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14981_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,"gx0170",[],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(463,53,"GVLNRO","Número guarda-volume","","GvlNro","int",0,"px",5,5,"right",null,[],463,"GvlNro",true,0,false,false);
this.Grid1Container.addComboBox(462,54,"GVLINDATIV","Ativo (S/N)","GvlIndAtiv","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(467,55,"GVLVALUNIT","Valor unitário multa","","GvlValUnit","decimal",0,"px",11,10,"right",null,[],467,"GvlValUnit",true,4,false,false);this.Grid1Container.addComboBox(466,56,"GVLTIPUNID","Tipo valor multa","GvlTipUnid","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(460,57,"GVLCAMPO1L","Campo livre","","GvlCampo1L","char",0,"px",50,50,"left",null,[],460,"GvlCampo1L",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:"TEXTBLOCKGVLNRO",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCGVLNRO",gxz:"ZV6cGvlNro",gxold:"OV6cGvlNro",gxvar:"AV6cGvlNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cGvlNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cGvlNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCGVLNRO",gx.O.AV6cGvlNro,0)},c2v:function(){gx.O.AV6cGvlNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCGVLNRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKGVLINDATIVO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCGVLINDATIVO",gxz:"ZV7cGvlIndAtivo",gxold:"OV7cGvlIndAtivo",gxvar:"AV7cGvlIndAtivo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV7cGvlIndAtivo=a
},v2z:function(a){gx.O.ZV7cGvlIndAtivo=a},v2c:function(){gx.fn.setComboBoxValue("vCGVLINDATIVO",gx.O.AV7cGvlIndAtivo)},c2v:function(){gx.O.AV7cGvlIndAtivo=this.val()},val:function(){return gx.fn.getControlValue("vCGVLINDATIVO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKGVLVALUNITMULTA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"decimal",len:10,dec:4,sign:false,pic:"ZZ,ZZ9.9999",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCGVLVALUNITMULTA",gxz:"ZV8cGvlValUnitMulta",gxold:"OV8cGvlValUnitMulta",gxvar:"AV8cGvlValUnitMulta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cGvlValUnitMulta=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV8cGvlValUnitMulta=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCGVLVALUNITMULTA",gx.O.AV8cGvlValUnitMulta,4,",")},c2v:function(){gx.O.AV8cGvlValUnitMulta=this.val()},val:function(){return gx.fn.getDecimalValue("vCGVLVALUNITMULTA",".",",")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKGVLTIPUNIDADE",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:"vCGVLTIPUNIDADE",gxz:"ZV9cGvlTipUnidade",gxold:"OV9cGvlTipUnidade",gxvar:"AV9cGvlTipUnidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV9cGvlTipUnidade=a
},v2z:function(a){gx.O.ZV9cGvlTipUnidade=a},v2c:function(){gx.fn.setComboBoxValue("vCGVLTIPUNIDADE",gx.O.AV9cGvlTipUnidade)},c2v:function(){gx.O.AV9cGvlTipUnidade=this.val()},val:function(){return gx.fn.getControlValue("vCGVLTIPUNIDADE")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKGVLCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCGVLCAMPO1LIVRE",gxz:"ZV10cGvlCampo1Livre",gxold:"OV10cGvlCampo1Livre",gxvar:"AV10cGvlCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cGvlCampo1Livre=a
},v2z:function(a){gx.O.ZV10cGvlCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCGVLCAMPO1LIVRE",gx.O.AV10cGvlCampo1Livre,0)},c2v:function(){gx.O.AV10cGvlCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCGVLCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKGVLQTDUNIDADESLIBERADAS",format:0,grid:0};this.GXValidFnc[39]={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:"vCGVLQTDUNIDADESLIBERADAS",gxz:"ZV11cGvlQtdUnidadesLiberadas",gxold:"OV11cGvlQtdUnidadesLiberadas",gxvar:"AV11cGvlQtdUnidadesLiberadas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cGvlQtdUnidadesLiberadas=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11cGvlQtdUnidadesLiberadas=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCGVLQTDUNIDADESLIBERADAS",gx.O.AV11cGvlQtdUnidadesLiberadas,0)},c2v:function(){gx.O.AV11cGvlQtdUnidadesLiberadas=this.val()},val:function(){return gx.fn.getIntegerValue("vCGVLQTDUNIDADESLIBERADAS",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKGVLQTDMINIMA",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCGVLQTDMINIMA",gxz:"ZV12cGvlQtdMinima",gxold:"OV12cGvlQtdMinima",gxvar:"AV12cGvlQtdMinima",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cGvlQtdMinima=gx.num.intval(a)
},v2z:function(a){gx.O.ZV12cGvlQtdMinima=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCGVLQTDMINIMA",gx.O.AV12cGvlQtdMinima,0)},c2v:function(){gx.O.AV12cGvlQtdMinima=this.val()},val:function(){return gx.fn.getIntegerValue("vCGVLQTDMINIMA",".")},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:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"GVLNRO",gxz:"Z463GvlNro",gxold:"O463GvlNro",gxvar:"A463GvlNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A463GvlNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z463GvlNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("GVLNRO",gx.fn.currentGridRowImpl(51),gx.O.A463GvlNro,0)},c2v:function(){gx.O.A463GvlNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("GVLNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"GVLINDATIV",gxz:"Z462GvlIndAtiv",gxold:"O462GvlIndAtiv",gxvar:"A462GvlIndAtiv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A462GvlIndAtiv=a
},v2z:function(a){gx.O.Z462GvlIndAtiv=a},v2c:function(){gx.fn.setGridComboBoxValue("GVLINDATIV",gx.fn.currentGridRowImpl(51),gx.O.A462GvlIndAtiv)},c2v:function(){gx.O.A462GvlIndAtiv=this.val()},val:function(){return gx.fn.getGridControlValue("GVLINDATIV",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"decimal",len:10,dec:4,sign:false,pic:"ZZ,ZZ9.9999",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"GVLVALUNIT",gxz:"Z467GvlValUnit",gxold:"O467GvlValUnit",gxvar:"A467GvlValUnit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A467GvlValUnit=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z467GvlValUnit=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("GVLVALUNIT",gx.fn.currentGridRowImpl(51),gx.O.A467GvlValUnit,4,",")},c2v:function(){gx.O.A467GvlValUnit=this.val()},val:function(){return gx.fn.getGridDecimalValue("GVLVALUNIT",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"GVLTIPUNID",gxz:"Z466GvlTipUnid",gxold:"O466GvlTipUnid",gxvar:"A466GvlTipUnid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A466GvlTipUnid=a
},v2z:function(a){gx.O.Z466GvlTipUnid=a},v2c:function(){gx.fn.setGridComboBoxValue("GVLTIPUNID",gx.fn.currentGridRowImpl(51),gx.O.A466GvlTipUnid)},c2v:function(){gx.O.A466GvlTipUnid=this.val()},val:function(){return gx.fn.getGridControlValue("GVLTIPUNID",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"GVLCAMPO1L",gxz:"Z460GvlCampo1L",gxold:"O460GvlCampo1L",gxvar:"A460GvlCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A460GvlCampo1L=a
},v2z:function(a){gx.O.Z460GvlCampo1L=a},v2c:function(){gx.fn.setGridControlValue("GVLCAMPO1L",gx.fn.currentGridRowImpl(51),gx.O.A460GvlCampo1L,0)},c2v:function(){gx.O.A460GvlCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("GVLCAMPO1L",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={fld:"TABLE4",grid:0};this.AV6cGvlNro=0;this.ZV6cGvlNro=0;this.OV6cGvlNro=0;this.AV7cGvlIndAtivo="";this.ZV7cGvlIndAtivo="";this.OV7cGvlIndAtivo="";this.AV8cGvlValUnitMulta=0;
this.ZV8cGvlValUnitMulta=0;this.OV8cGvlValUnitMulta=0;this.AV9cGvlTipUnidade="";this.ZV9cGvlTipUnidade="";this.OV9cGvlTipUnidade="";this.AV10cGvlCampo1Livre="";this.ZV10cGvlCampo1Livre="";this.OV10cGvlCampo1Livre="";this.AV11cGvlQtdUnidadesLiberadas=0;this.ZV11cGvlQtdUnidadesLiberadas=0;this.OV11cGvlQtdUnidadesLiberadas=0;this.AV12cGvlQtdMinima=0;this.ZV12cGvlQtdMinima=0;this.OV12cGvlQtdMinima=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z463GvlNro=0;this.O463GvlNro=0;this.Z462GvlIndAtiv="";
this.O462GvlIndAtiv="";this.Z467GvlValUnit=0;this.O467GvlValUnit=0;this.Z466GvlTipUnid="";this.O466GvlTipUnid="";this.Z460GvlCampo1L="";this.O460GvlCampo1L="";this.AV13pGvlNro=0;this.A465GvlQtdUnid=0;this.A464GvlQtdMini=0;this.AV5LinkSelection="";this.A463GvlNro=0;this.A462GvlIndAtiv="";this.A467GvlValUnit=0;this.A466GvlTipUnid="";this.A460GvlCampo1L="";this.ServerEvents=["e13982_client","e14981_client"];this.VarControlMap.AV13pGvlNro={id:"vPGVLNRO",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()}gx0170.prototype=new gx.GxObject;gx.setParentObj(new gx0170());