gx.evt.autoSkip=false;function gx00s1(){this.ServerClass="Gx00S1";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV7pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV8pEdiNro=gx.fn.getIntegerValue("vPEDINRO",".")};this.e13942_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14941_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,18,22,23,24,27];
this.GXLastCtrlId=27;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",21,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00s1",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",22,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(334,23,"EDINRO","Editora","Selecionar","EdiNro","int",0,"px",5,5,"right",null,[],334,"EdiNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(258,24,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",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:"TEXTBLOCKEDINRO",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:"vCEDINRO",gxz:"ZV6cEdiNro",gxold:"OV6cEdiNro",gxvar:"AV6cEdiNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cEdiNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cEdiNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCEDINRO",gx.O.AV6cEdiNro,0)},c2v:function(){gx.O.AV6cEdiNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCEDINRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"GROUP2",grid:0};this.GXValidFnc[18]={fld:"TABLE3",grid:0};this.GXValidFnc[22]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:21,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(21))},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:21,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EDINRO",gxz:"Z334EdiNro",gxold:"O334EdiNro",gxvar:"A334EdiNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A334EdiNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z334EdiNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EDINRO",gx.fn.currentGridRowImpl(21),gx.O.A334EdiNro,0)},c2v:function(){gx.O.A334EdiNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("EDINRO",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:21,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(21),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TABLE4",grid:0};this.AV6cEdiNro=0;this.ZV6cEdiNro=0;this.OV6cEdiNro=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z334EdiNro=0;this.O334EdiNro=0;this.Z258DocNro=0;
this.O258DocNro=0;this.AV7pDocNro=0;this.AV8pEdiNro=0;this.AV5LinkSelection="";this.A334EdiNro=0;this.A258DocNro=0;this.ServerEvents=["e13942_client","e14941_client"];this.VarControlMap.AV7pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV8pEdiNro={id:"vPEDINRO",grid:0,type:"int"};this.VarControlMap.AV7pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar({rfrVar:"AV7pDocNro"});this.SetStandaloneVars()
}gx00s1.prototype=new gx.GxObject;gx.setParentObj(new gx00s1());