gx.evt.autoSkip=false;function gx0301(){this.ServerClass="Gx0301";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV9pCgaCod=gx.fn.getControlValue("vPCGACOD");this.AV10pScaCod=gx.fn.getControlValue("vPSCACOD")};this.e13bz2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bz1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,28,32,33,34,35,36,39];
this.GXLastCtrlId=39;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0301",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",32,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(760,33,"SCACOD","Sub-categoria","","ScaCod","char",0,"px",12,12,"left",null,[],760,"ScaCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(761,34,"SCADSC","Descrição","Selecionar","ScaDsc","char",0,"px",100,100,"left",null,[],761,"ScaDsc",true,0,false,false);this.Grid1Container.addSingleLineEdit(762,35,"SCANROSEQU","Sequência","","ScaNroSequ","int",0,"px",6,6,"right",null,[],762,"ScaNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(128,36,"CGACOD","Categoria","","CgaCod","char",0,"px",12,12,"left",null,[],128,"CgaCod",false,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:"TEXTBLOCKSCACOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:12,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSCACOD",gxz:"ZV6cScaCod",gxold:"OV6cScaCod",gxvar:"AV6cScaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cScaCod=a},v2z:function(a){gx.O.ZV6cScaCod=a},v2c:function(){gx.fn.setControlValue("vCSCACOD",gx.O.AV6cScaCod,0)
},c2v:function(){gx.O.AV6cScaCod=this.val()},val:function(){return gx.fn.getControlValue("vCSCACOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKSCADSC",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSCADSC",gxz:"ZV7cScaDsc",gxold:"OV7cScaDsc",gxvar:"AV7cScaDsc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cScaDsc=a},v2z:function(a){gx.O.ZV7cScaDsc=a},v2c:function(){gx.fn.setControlValue("vCSCADSC",gx.O.AV7cScaDsc,0)
},c2v:function(){gx.O.AV7cScaDsc=this.val()},val:function(){return gx.fn.getControlValue("vCSCADSC")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKSCANROSEQUENCIA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSCANROSEQUENCIA",gxz:"ZV8cScaNroSequencia",gxold:"OV8cScaNroSequencia",gxvar:"AV8cScaNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cScaNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cScaNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSCANROSEQUENCIA",gx.O.AV8cScaNroSequencia,0)},c2v:function(){gx.O.AV8cScaNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCSCANROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"GROUP2",grid:0};this.GXValidFnc[28]={fld:"TABLE3",grid:0};this.GXValidFnc[32]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:31,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(31))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:12,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCACOD",gxz:"Z760ScaCod",gxold:"O760ScaCod",gxvar:"A760ScaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A760ScaCod=a
},v2z:function(a){gx.O.Z760ScaCod=a},v2c:function(){gx.fn.setGridControlValue("SCACOD",gx.fn.currentGridRowImpl(31),gx.O.A760ScaCod,0)},c2v:function(){gx.O.A760ScaCod=this.val()},val:function(){return gx.fn.getGridControlValue("SCACOD",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SCADSC",gxz:"Z761ScaDsc",gxold:"O761ScaDsc",gxvar:"A761ScaDsc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A761ScaDsc=a
},v2z:function(a){gx.O.Z761ScaDsc=a},v2c:function(){gx.fn.setGridControlValue("SCADSC",gx.fn.currentGridRowImpl(31),gx.O.A761ScaDsc,0)},c2v:function(){gx.O.A761ScaDsc=this.val()},val:function(){return gx.fn.getGridControlValue("SCADSC",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SCANROSEQU",gxz:"Z762ScaNroSequ",gxold:"O762ScaNroSequ",gxvar:"A762ScaNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A762ScaNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z762ScaNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SCANROSEQU",gx.fn.currentGridRowImpl(31),gx.O.A762ScaNroSequ,0)},c2v:function(){gx.O.A762ScaNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("SCANROSEQU",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:12,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CGACOD",gxz:"Z128CgaCod",gxold:"O128CgaCod",gxvar:"A128CgaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A128CgaCod=a
},v2z:function(a){gx.O.Z128CgaCod=a},v2c:function(){gx.fn.setGridControlValue("CGACOD",gx.fn.currentGridRowImpl(31),gx.O.A128CgaCod,0)},c2v:function(){gx.O.A128CgaCod=this.val()},val:function(){return gx.fn.getGridControlValue("CGACOD",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[39]={fld:"TABLE4",grid:0};this.AV6cScaCod="";this.ZV6cScaCod="";this.OV6cScaCod="";this.AV7cScaDsc="";this.ZV7cScaDsc="";this.OV7cScaDsc="";this.AV8cScaNroSequencia=0;this.ZV8cScaNroSequencia=0;
this.OV8cScaNroSequencia=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z760ScaCod="";this.O760ScaCod="";this.Z761ScaDsc="";this.O761ScaDsc="";this.Z762ScaNroSequ=0;this.O762ScaNroSequ=0;this.Z128CgaCod="";this.O128CgaCod="";this.AV9pCgaCod="";this.AV10pScaCod="";this.AV5LinkSelection="";this.A760ScaCod="";this.A761ScaDsc="";this.A762ScaNroSequ=0;this.A128CgaCod="";this.ServerEvents=["e13bz2_client","e14bz1_client"];this.VarControlMap.AV9pCgaCod={id:"vPCGACOD",grid:0,type:"char"};this.VarControlMap.AV10pScaCod={id:"vPSCACOD",grid:0,type:"char"};
this.VarControlMap.AV9pCgaCod={id:"vPCGACOD",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({rfrVar:"AV9pCgaCod"});this.SetStandaloneVars()}gx0301.prototype=new gx.GxObject;gx.setParentObj(new gx0301());