gx.evt.autoSkip=false;function hzsubcampos(){this.ServerClass="HZSubcampos";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV27DisCodSubcampo=gx.fn.getControlValue("vDISCODSUBCAMPO")};this.Validv_Dicnroetiqueta=function(){try{var a=gx.util.balloon.getNew("vDICNROETIQUETA");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dictipmate=function(){try{if(gx.fn.currentGridRowImpl(43)===0){return true
}var a=gx.util.balloon.getNew("DICTIPMATE",gx.fn.currentGridRowImpl(43));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e15fr2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e12fr2_client=function(){this.executeServerEvent("'ATUALIZAR'",false)};this.e16fr1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,15,18,21,23,25,27,29,34,37,39,42,44,45,46,47,48,49,50,51,52,53];
this.GXLastCtrlId=53;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",43,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzsubcampos",[],false,1,false,true,15,true,false,false,"",900,"px","Novo registro",true,false,true,null,null,false,"");this.Subfile1Container.addRadioButton("Grdindativo",44,"vGRDINDATIVO","Ativo","GrdIndAtivo","char",null,true,true,false);this.Subfile1Container.addSingleLineEdit(203,45,"DICTIPMATE","Tipo","","DicTipMate","char",0,"px",3,3,"left",null,[],203,"DicTipMate",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(216,46,"DISNROSEQU","Seq","","DisNroSequ","int",0,"px",3,3,"right",null,[],216,"DisNroSequ",true,0,false,false);this.Subfile1Container.addSingleLineEdit(209,47,"DISCODSUBC","Subcampo","","DisCodSubc","char",68,"px",1,1,"left",null,[],209,"DisCodSubc",true,0,false,false);this.Subfile1Container.addSingleLineEdit(214,48,"DISNOMSUBC","Nome","","DisNomSubc","char",0,"px",50,50,"left",null,[],214,"DisNomSubc",true,0,false,false);this.Subfile1Container.addComboBox(213,49,"DISINDSUBC","Repetitivo","DisIndSubc","char",null,0,true,false,0,"px");
this.Subfile1Container.addComboBox(1084,50,"DISINDOBRI","Obrigatório","DisIndObri","char",null,0,true,false,72,"px");this.Subfile1Container.addComboBox(211,51,"DISINDRECU","Recuperar","DisIndRecu","char",null,0,true,false,66,"px");this.Subfile1Container.addComboBox(212,52,"DISINDREST","Restrito","DisIndRest","char",null,0,true,false,48,"px");this.Subfile1Container.addComboBox(210,53,"DISINDATIV","Ativo","DisIndAtiv","char",null,0,true,false,0,"px");this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};
this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[18]={fld:"TABLE3",grid:0};this.GXValidFnc[21]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,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[25]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[27]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Validv_Dicnroetiqueta,isvalid:null,fld:"vDICNROETIQUETA",gxz:"ZV26DicNroEtiqueta",gxold:"OV26DicNroEtiqueta",gxvar:"AV26DicNroEtiqueta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26DicNroEtiqueta=a
},v2z:function(a){gx.O.ZV26DicNroEtiqueta=a},v2c:function(){gx.fn.setControlValue("vDICNROETIQUETA",gx.O.AV26DicNroEtiqueta,0)},c2v:function(){gx.O.AV26DicNroEtiqueta=this.val()},val:function(){return gx.fn.getControlValue("vDICNROETIQUETA")},nac:function(){return false}};this.GXValidFnc[29]={lvl:0,type:"char",len:70,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDICNOMCAMPO",gxz:"ZV28DicNomCampo",gxold:"OV28DicNomCampo",gxvar:"AV28DicNomCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28DicNomCampo=a
},v2z:function(a){gx.O.ZV28DicNomCampo=a},v2c:function(){gx.fn.setControlValue("vDICNOMCAMPO",gx.O.AV28DicNomCampo,0)},c2v:function(){gx.O.AV28DicNomCampo=this.val()},val:function(){return gx.fn.getControlValue("vDICNOMCAMPO")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TABLE4",grid:0};this.GXValidFnc[37]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[39]={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[42]={fld:"GROUP1",grid:0};this.GXValidFnc[44]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vGRDINDATIVO",gxz:"ZV29GrdIndAtivo",gxold:"OV29GrdIndAtivo",gxvar:"AV29GrdIndAtivo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV29GrdIndAtivo=a
},v2z:function(a){gx.O.ZV29GrdIndAtivo=a},v2c:function(){},c2v:function(){gx.O.AV29GrdIndAtivo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDINDATIVO",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:this.Valid_Dictipmate,isvalid:null,fld:"DICTIPMATE",gxz:"Z203DicTipMate",gxold:"O203DicTipMate",gxvar:"A203DicTipMate",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A203DicTipMate=a
},v2z:function(a){gx.O.Z203DicTipMate=a},v2c:function(){gx.fn.setGridControlValue("DICTIPMATE",gx.fn.currentGridRowImpl(43),gx.O.A203DicTipMate,0)},c2v:function(){gx.O.A203DicTipMate=this.val()},val:function(){return gx.fn.getGridControlValue("DICTIPMATE",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"DISNROSEQU",gxz:"Z216DisNroSequ",gxold:"O216DisNroSequ",gxvar:"A216DisNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A216DisNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z216DisNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DISNROSEQU",gx.fn.currentGridRowImpl(43),gx.O.A216DisNroSequ,0)},c2v:function(){gx.O.A216DisNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DISNROSEQU",gx.fn.currentGridRowImpl(43),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DISCODSUBC",gxz:"Z209DisCodSubc",gxold:"O209DisCodSubc",gxvar:"A209DisCodSubc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A209DisCodSubc=a
},v2z:function(a){gx.O.Z209DisCodSubc=a},v2c:function(){gx.fn.setGridControlValue("DISCODSUBC",gx.fn.currentGridRowImpl(43),gx.O.A209DisCodSubc,0)},c2v:function(){gx.O.A209DisCodSubc=this.val()},val:function(){return gx.fn.getGridControlValue("DISCODSUBC",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DISNOMSUBC",gxz:"Z214DisNomSubc",gxold:"O214DisNomSubc",gxvar:"A214DisNomSubc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A214DisNomSubc=a
},v2z:function(a){gx.O.Z214DisNomSubc=a},v2c:function(){gx.fn.setGridControlValue("DISNOMSUBC",gx.fn.currentGridRowImpl(43),gx.O.A214DisNomSubc,0)},c2v:function(){gx.O.A214DisNomSubc=this.val()},val:function(){return gx.fn.getGridControlValue("DISNOMSUBC",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:2,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DISINDSUBC",gxz:"Z213DisIndSubc",gxold:"O213DisIndSubc",gxvar:"A213DisIndSubc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A213DisIndSubc=a
},v2z:function(a){gx.O.Z213DisIndSubc=a},v2c:function(){gx.fn.setGridComboBoxValue("DISINDSUBC",gx.fn.currentGridRowImpl(43),gx.O.A213DisIndSubc)},c2v:function(){gx.O.A213DisIndSubc=this.val()},val:function(){return gx.fn.getGridControlValue("DISINDSUBC",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DISINDOBRI",gxz:"Z1084DisIndObri",gxold:"O1084DisIndObri",gxvar:"A1084DisIndObri",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1084DisIndObri=a
},v2z:function(a){gx.O.Z1084DisIndObri=a},v2c:function(){gx.fn.setGridComboBoxValue("DISINDOBRI",gx.fn.currentGridRowImpl(43),gx.O.A1084DisIndObri)},c2v:function(){gx.O.A1084DisIndObri=this.val()},val:function(){return gx.fn.getGridControlValue("DISINDOBRI",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DISINDRECU",gxz:"Z211DisIndRecu",gxold:"O211DisIndRecu",gxvar:"A211DisIndRecu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A211DisIndRecu=a
},v2z:function(a){gx.O.Z211DisIndRecu=a},v2c:function(){gx.fn.setGridComboBoxValue("DISINDRECU",gx.fn.currentGridRowImpl(43),gx.O.A211DisIndRecu)},c2v:function(){gx.O.A211DisIndRecu=this.val()},val:function(){return gx.fn.getGridControlValue("DISINDRECU",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DISINDREST",gxz:"Z212DisIndRest",gxold:"O212DisIndRest",gxvar:"A212DisIndRest",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A212DisIndRest=a
},v2z:function(a){gx.O.Z212DisIndRest=a},v2c:function(){gx.fn.setGridComboBoxValue("DISINDREST",gx.fn.currentGridRowImpl(43),gx.O.A212DisIndRest)},c2v:function(){gx.O.A212DisIndRest=this.val()},val:function(){return gx.fn.getGridControlValue("DISINDREST",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:43,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"DISINDATIV",gxz:"Z210DisIndAtiv",gxold:"O210DisIndAtiv",gxvar:"A210DisIndAtiv",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A210DisIndAtiv=a
},v2z:function(a){gx.O.Z210DisIndAtiv=a},v2c:function(){gx.fn.setGridComboBoxValue("DISINDATIV",gx.fn.currentGridRowImpl(43),gx.O.A210DisIndAtiv)},c2v:function(){gx.O.A210DisIndAtiv=this.val()},val:function(){return gx.fn.getGridControlValue("DISINDATIV",gx.fn.currentGridRowImpl(43))},nac:function(){return false}};this.AV14DicTipMaterial="";this.ZV14DicTipMaterial="";this.OV14DicTipMaterial="";this.AV26DicNroEtiqueta="";this.ZV26DicNroEtiqueta="";this.OV26DicNroEtiqueta="";this.AV28DicNomCampo="";
this.ZV28DicNomCampo="";this.OV28DicNomCampo="";this.AV13IndVerInativos="";this.ZV13IndVerInativos="";this.OV13IndVerInativos="";this.ZV29GrdIndAtivo="";this.OV29GrdIndAtivo="";this.Z203DicTipMate="";this.O203DicTipMate="";this.Z216DisNroSequ=0;this.O216DisNroSequ=0;this.Z209DisCodSubc="";this.O209DisCodSubc="";this.Z214DisNomSubc="";this.O214DisNomSubc="";this.Z213DisIndSubc="";this.O213DisIndSubc="";this.Z1084DisIndObri="";this.O1084DisIndObri="";this.Z211DisIndRecu="";this.O211DisIndRecu="";this.Z212DisIndRest="";
this.O212DisIndRest="";this.Z210DisIndAtiv="";this.O210DisIndAtiv="";this.AV27DisCodSubcampo="";this.A202DicNroSequ=0;this.AV29GrdIndAtivo="";this.A203DicTipMate="";this.A216DisNroSequ=0;this.A209DisCodSubc="";this.A214DisNomSubc="";this.A213DisIndSubc="";this.A1084DisIndObri="";this.A211DisIndRecu="";this.A212DisIndRest="";this.A210DisIndAtiv="";this.A200DicNroEtiq="";this.A198DicNomCamp="";this.ServerEvents=["e15fr2_client","e12fr2_client","e16fr1_client"];this.VarControlMap.AV27DisCodSubcampo={id:"vDISCODSUBCAMPO",grid:0,type:"char"};
this.VarControlMap.AV22DicNroSequencia={id:"vDICNROSEQUENCIA",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[39]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV22DicNroSequencia"});this.Subfile1Container.addRefreshingVar({rfrVar:"A203DicTipMate",rfrProp:"Value"});this.SetStandaloneVars()}hzsubcampos.prototype=new gx.GxObject;gx.setParentObj(new hzsubcampos());