gx.evt.autoSkip=false;function hzcampos(){this.ServerClass="HZCampos";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV24ParmNroEtiqueta=gx.fn.getControlValue("vPARMNROETIQUETA")};this.Validv_Dictipmaterial=function(){try{var a=gx.util.balloon.getNew("vDICTIPMATERIAL");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dicnomcamp=function(){try{if(gx.fn.currentGridRowImpl(45)===0){return true
}var a=gx.util.balloon.getNew("DICNOMCAMP",gx.fn.currentGridRowImpl(45));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e15fq2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e12fq2_client=function(){this.executeServerEvent("'ATUALIZAR'",false)};this.e16fq1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,5,14,17,20,22,24,26,28,30,32,34,37,39,41,44,46,47,48,49,50,51];this.GXLastCtrlId=51;
this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",45,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hzcampos",[],false,1,false,true,15,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");this.Grid1Container.addRadioButton("Grdindativo",46,"vGRDINDATIVO","Ativo","GrdIndAtivo","char",null,true,true,false);this.Grid1Container.addSingleLineEdit(202,47,"DICNROSEQU","Seq","","DicNroSequ","int",34,"px",4,4,"right",null,[],202,"DicNroSequ",true,0,false,false);
this.Grid1Container.addSingleLineEdit(200,48,"DICNROETIQ","Campo","","DicNroEtiq","char",45,"px",3,3,"left",null,[],200,"DicNroEtiq",true,0,false,false);this.Grid1Container.addSingleLineEdit(198,49,"DICNOMCAMP","Nome","","DicNomCamp","char",0,"px",70,70,"left",null,[],198,"DicNomCamp",true,0,false,false);this.Grid1Container.addComboBox(197,50,"DICINDCAMP","Repetitivo","DicIndCamp","char",null,0,true,false,64,"px");this.Grid1Container.addComboBox(196,51,"DICINDATIV","Ativo","DicIndAtiv","char",null,0,true,false,69,"px");
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE2",grid:0};this.GXValidFnc[5]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[17]={fld:"TABLE3",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[22]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Validv_Dictipmaterial,isvalid:null,fld:"vDICTIPMATERIAL",gxz:"ZV14DicTipMaterial",gxold:"OV14DicTipMaterial",gxvar:"AV14DicTipMaterial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14DicTipMaterial=a
},v2z:function(a){gx.O.ZV14DicTipMaterial=a},v2c:function(){gx.fn.setControlValue("vDICTIPMATERIAL",gx.O.AV14DicTipMaterial,0)},c2v:function(){gx.O.AV14DicTipMaterial=this.val()},val:function(){return gx.fn.getControlValue("vDICTIPMATERIAL")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRNOMCAMPO",gxz:"ZV23ScrNomCampo",gxold:"OV23ScrNomCampo",gxvar:"AV23ScrNomCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23ScrNomCampo=a
},v2z:function(a){gx.O.ZV23ScrNomCampo=a},v2c:function(){gx.fn.setControlValue("vSCRNOMCAMPO",gx.O.AV23ScrNomCampo,0)},c2v:function(){gx.O.AV23ScrNomCampo=this.val()},val:function(){return gx.fn.getControlValue("vSCRNOMCAMPO")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDVERINATIVOS",gxz:"ZV13IndVerInativos",gxold:"OV13IndVerInativos",gxvar:"AV13IndVerInativos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV13IndVerInativos=a
},v2z:function(a){gx.O.ZV13IndVerInativos=a},v2c:function(){gx.fn.setComboBoxValue("vINDVERINATIVOS",gx.O.AV13IndVerInativos)},c2v:function(){gx.O.AV13IndVerInativos=this.val()},val:function(){return gx.fn.getControlValue("vINDVERINATIVOS")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[34]={fld:"TABLE4",grid:0};this.GXValidFnc[37]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNROCAMPOINICIAL",gxz:"ZV19NroCampoInicial",gxold:"OV19NroCampoInicial",gxvar:"AV19NroCampoInicial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19NroCampoInicial=a
},v2z:function(a){gx.O.ZV19NroCampoInicial=a},v2c:function(){gx.fn.setControlValue("vNROCAMPOINICIAL",gx.O.AV19NroCampoInicial,0)},c2v:function(){gx.O.AV19NroCampoInicial=this.val()},val:function(){return gx.fn.getControlValue("vNROCAMPOINICIAL")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNROCAMPOFINAL",gxz:"ZV20NroCampoFinal",gxold:"OV20NroCampoFinal",gxvar:"AV20NroCampoFinal",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20NroCampoFinal=a
},v2z:function(a){gx.O.ZV20NroCampoFinal=a},v2c:function(){gx.fn.setControlValue("vNROCAMPOFINAL",gx.O.AV20NroCampoFinal,0)},c2v:function(){gx.O.AV20NroCampoFinal=this.val()},val:function(){return gx.fn.getControlValue("vNROCAMPOFINAL")},nac:function(){return false}};this.GXValidFnc[44]={fld:"GRUPO1",grid:0};this.GXValidFnc[46]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDINDATIVO",gxz:"ZV25GrdIndAtivo",gxold:"OV25GrdIndAtivo",gxvar:"AV25GrdIndAtivo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV25GrdIndAtivo=a
},v2z:function(a){gx.O.ZV25GrdIndAtivo=a},v2c:function(){},c2v:function(){gx.O.AV25GrdIndAtivo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDINDATIVO",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DICNROSEQU",gxz:"Z202DicNroSequ",gxold:"O202DicNroSequ",gxvar:"A202DicNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A202DicNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z202DicNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DICNROSEQU",gx.fn.currentGridRowImpl(45),gx.O.A202DicNroSequ,0)},c2v:function(){gx.O.A202DicNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DICNROSEQU",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DICNROETIQ",gxz:"Z200DicNroEtiq",gxold:"O200DicNroEtiq",gxvar:"A200DicNroEtiq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A200DicNroEtiq=a
},v2z:function(a){gx.O.Z200DicNroEtiq=a},v2c:function(){gx.fn.setGridControlValue("DICNROETIQ",gx.fn.currentGridRowImpl(45),gx.O.A200DicNroEtiq,0)},c2v:function(){gx.O.A200DicNroEtiq=this.val()},val:function(){return gx.fn.getGridControlValue("DICNROETIQ",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:70,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:this.Valid_Dicnomcamp,isvalid:null,fld:"DICNOMCAMP",gxz:"Z198DicNomCamp",gxold:"O198DicNomCamp",gxvar:"A198DicNomCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A198DicNomCamp=a
},v2z:function(a){gx.O.Z198DicNomCamp=a},v2c:function(){gx.fn.setGridControlValue("DICNOMCAMP",gx.fn.currentGridRowImpl(45),gx.O.A198DicNomCamp,0)},c2v:function(){gx.O.A198DicNomCamp=this.val()},val:function(){return gx.fn.getGridControlValue("DICNOMCAMP",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DICINDCAMP",gxz:"Z197DicIndCamp",gxold:"O197DicIndCamp",gxvar:"A197DicIndCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A197DicIndCamp=a
},v2z:function(a){gx.O.Z197DicIndCamp=a},v2c:function(){gx.fn.setGridComboBoxValue("DICINDCAMP",gx.fn.currentGridRowImpl(45),gx.O.A197DicIndCamp)},c2v:function(){gx.O.A197DicIndCamp=this.val()},val:function(){return gx.fn.getGridControlValue("DICINDCAMP",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DICINDATIV",gxz:"Z196DicIndAtiv",gxold:"O196DicIndAtiv",gxvar:"A196DicIndAtiv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A196DicIndAtiv=a
},v2z:function(a){gx.O.Z196DicIndAtiv=a},v2c:function(){gx.fn.setGridComboBoxValue("DICINDATIV",gx.fn.currentGridRowImpl(45),gx.O.A196DicIndAtiv)},c2v:function(){gx.O.A196DicIndAtiv=this.val()},val:function(){return gx.fn.getGridControlValue("DICINDATIV",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.AV14DicTipMaterial="";this.ZV14DicTipMaterial="";this.OV14DicTipMaterial="";this.AV23ScrNomCampo="";this.ZV23ScrNomCampo="";this.OV23ScrNomCampo="";this.AV13IndVerInativos="";this.ZV13IndVerInativos="";
this.OV13IndVerInativos="";this.AV19NroCampoInicial="";this.ZV19NroCampoInicial="";this.OV19NroCampoInicial="";this.AV20NroCampoFinal="";this.ZV20NroCampoFinal="";this.OV20NroCampoFinal="";this.ZV25GrdIndAtivo="";this.OV25GrdIndAtivo="";this.Z202DicNroSequ=0;this.O202DicNroSequ=0;this.Z200DicNroEtiq="";this.O200DicNroEtiq="";this.Z198DicNomCamp="";this.O198DicNomCamp="";this.Z197DicIndCamp="";this.O197DicIndCamp="";this.Z196DicIndAtiv="";this.O196DicIndAtiv="";this.AV24ParmNroEtiqueta="";this.A203DicTipMate="";
this.AV25GrdIndAtivo="";this.A202DicNroSequ=0;this.A200DicNroEtiq="";this.A198DicNomCamp="";this.A197DicIndCamp="";this.A196DicIndAtiv="";this.ServerEvents=["e15fq2_client","e12fq2_client","e16fq1_client"];this.VarControlMap.AV24ParmNroEtiqueta={id:"vPARMNROETIQUETA",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[26]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[30]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[37]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[41]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[22]);this.SetStandaloneVars()}hzcampos.prototype=new gx.GxObject;gx.setParentObj(new hzcampos());