gx.evt.autoSkip=false;function gx03k0(){this.ServerClass="Gx03K0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV14pCedNroItem=gx.fn.getIntegerValue("vPCEDNROITEM",".");this.AV15pCedNroArtigo=gx.fn.getIntegerValue("vPCEDNROARTIGO",".");this.AV16pCedNroSeqCampo=gx.fn.getIntegerValue("vPCEDNROSEQCAMPO",".");this.AV17pCedNroRepCampo=gx.fn.getIntegerValue("vPCEDNROREPCAMPO",".")
};this.e13c72_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14c71_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,58,59,60,63];this.GXLastCtrlId=63;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx03k0",[],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(258,53,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(113,54,"CEDNROITEM","Nr. item","","CedNroItem","int",0,"px",6,6,"right",null,[],113,"CedNroItem",true,0,false,false);this.Grid1Container.addSingleLineEdit(112,55,"CEDNROARTI","Nr. artigo","","CedNroArti","int",0,"px",4,4,"right",null,[],112,"CedNroArti",true,0,false,false);
this.Grid1Container.addSingleLineEdit(115,56,"CEDNROSEQC","Nr. sequencia campo","","CedNroSeqC","int",0,"px",4,4,"right",null,[],115,"CedNroSeqC",true,0,false,false);this.Grid1Container.addSingleLineEdit(114,57,"CEDNROREPC","Nr. repetição campo","","CedNroRepC","int",0,"px",3,3,"right",null,[],114,"CedNroRepC",true,0,false,false);this.Grid1Container.addSingleLineEdit(116,58,"CEDVAL1IND","Indicador 1","Selecionar","CedVal1Ind","char",0,"px",1,1,"left",null,[],116,"CedVal1Ind",true,0,false,false);this.Grid1Container.addSingleLineEdit(117,59,"CEDVAL2IND","Indicador 2","","CedVal2Ind","char",0,"px",1,1,"left",null,[],117,"CedVal2Ind",true,0,false,false);
this.Grid1Container.addSingleLineEdit(111,60,"CEDCAMPO1L","Campo livre","","CedCampo1L","char",0,"px",10,10,"left",null,[],111,"CedCampo1L",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:"TEXTBLOCKDOCNRO",format:0,grid:0};this.GXValidFnc[14]={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:"vCDOCNRO",gxz:"ZV6cDocNro",gxold:"OV6cDocNro",gxvar:"AV6cDocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cDocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDOCNRO",gx.O.AV6cDocNro,0)},c2v:function(){gx.O.AV6cDocNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCDOCNRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKCEDNROITEM",format:0,grid:0};this.GXValidFnc[19]={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:"vCCEDNROITEM",gxz:"ZV7cCedNroItem",gxold:"OV7cCedNroItem",gxvar:"AV7cCedNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cCedNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cCedNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCEDNROITEM",gx.O.AV7cCedNroItem,0)},c2v:function(){gx.O.AV7cCedNroItem=this.val()},val:function(){return gx.fn.getIntegerValue("vCCEDNROITEM",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKCEDNROARTIGO",format:0,grid:0};this.GXValidFnc[24]={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:"vCCEDNROARTIGO",gxz:"ZV8cCedNroArtigo",gxold:"OV8cCedNroArtigo",gxvar:"AV8cCedNroArtigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cCedNroArtigo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cCedNroArtigo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCEDNROARTIGO",gx.O.AV8cCedNroArtigo,0)},c2v:function(){gx.O.AV8cCedNroArtigo=this.val()},val:function(){return gx.fn.getIntegerValue("vCCEDNROARTIGO",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKCEDNROSEQCAMPO",format:0,grid:0};this.GXValidFnc[29]={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:"vCCEDNROSEQCAMPO",gxz:"ZV9cCedNroSeqCampo",gxold:"OV9cCedNroSeqCampo",gxvar:"AV9cCedNroSeqCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cCedNroSeqCampo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cCedNroSeqCampo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCEDNROSEQCAMPO",gx.O.AV9cCedNroSeqCampo,0)},c2v:function(){gx.O.AV9cCedNroSeqCampo=this.val()},val:function(){return gx.fn.getIntegerValue("vCCEDNROSEQCAMPO",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKCEDNROREPCAMPO",format:0,grid:0};this.GXValidFnc[34]={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:"vCCEDNROREPCAMPO",gxz:"ZV10cCedNroRepCampo",gxold:"OV10cCedNroRepCampo",gxvar:"AV10cCedNroRepCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cCedNroRepCampo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cCedNroRepCampo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCEDNROREPCAMPO",gx.O.AV10cCedNroRepCampo,0)},c2v:function(){gx.O.AV10cCedNroRepCampo=this.val()},val:function(){return gx.fn.getIntegerValue("vCCEDNROREPCAMPO",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKCEDVAL1INDICADOR",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:"vCCEDVAL1INDICADOR",gxz:"ZV11cCedVal1Indicador",gxold:"OV11cCedVal1Indicador",gxvar:"AV11cCedVal1Indicador",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cCedVal1Indicador=a
},v2z:function(a){gx.O.ZV11cCedVal1Indicador=a},v2c:function(){gx.fn.setControlValue("vCCEDVAL1INDICADOR",gx.O.AV11cCedVal1Indicador,0)},c2v:function(){gx.O.AV11cCedVal1Indicador=this.val()},val:function(){return gx.fn.getControlValue("vCCEDVAL1INDICADOR")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKCEDVAL2INDICADOR",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCEDVAL2INDICADOR",gxz:"ZV12cCedVal2Indicador",gxold:"OV12cCedVal2Indicador",gxvar:"AV12cCedVal2Indicador",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cCedVal2Indicador=a
},v2z:function(a){gx.O.ZV12cCedVal2Indicador=a},v2c:function(){gx.fn.setControlValue("vCCEDVAL2INDICADOR",gx.O.AV12cCedVal2Indicador,0)},c2v:function(){gx.O.AV12cCedVal2Indicador=this.val()},val:function(){return gx.fn.getControlValue("vCCEDVAL2INDICADOR")},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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,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(51),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CEDNROITEM",gxz:"Z113CedNroItem",gxold:"O113CedNroItem",gxvar:"A113CedNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A113CedNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.Z113CedNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CEDNROITEM",gx.fn.currentGridRowImpl(51),gx.O.A113CedNroItem,0)},c2v:function(){gx.O.A113CedNroItem=this.val()},val:function(){return gx.fn.getGridIntegerValue("CEDNROITEM",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CEDNROARTI",gxz:"Z112CedNroArti",gxold:"O112CedNroArti",gxvar:"A112CedNroArti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A112CedNroArti=gx.num.intval(a)
},v2z:function(a){gx.O.Z112CedNroArti=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CEDNROARTI",gx.fn.currentGridRowImpl(51),gx.O.A112CedNroArti,0)},c2v:function(){gx.O.A112CedNroArti=this.val()},val:function(){return gx.fn.getGridIntegerValue("CEDNROARTI",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CEDNROSEQC",gxz:"Z115CedNroSeqC",gxold:"O115CedNroSeqC",gxvar:"A115CedNroSeqC",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A115CedNroSeqC=gx.num.intval(a)
},v2z:function(a){gx.O.Z115CedNroSeqC=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CEDNROSEQC",gx.fn.currentGridRowImpl(51),gx.O.A115CedNroSeqC,0)},c2v:function(){gx.O.A115CedNroSeqC=this.val()},val:function(){return gx.fn.getGridIntegerValue("CEDNROSEQC",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CEDNROREPC",gxz:"Z114CedNroRepC",gxold:"O114CedNroRepC",gxvar:"A114CedNroRepC",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A114CedNroRepC=gx.num.intval(a)
},v2z:function(a){gx.O.Z114CedNroRepC=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CEDNROREPC",gx.fn.currentGridRowImpl(51),gx.O.A114CedNroRepC,0)},c2v:function(){gx.O.A114CedNroRepC=this.val()},val:function(){return gx.fn.getGridIntegerValue("CEDNROREPC",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CEDVAL1IND",gxz:"Z116CedVal1Ind",gxold:"O116CedVal1Ind",gxvar:"A116CedVal1Ind",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A116CedVal1Ind=a
},v2z:function(a){gx.O.Z116CedVal1Ind=a},v2c:function(){gx.fn.setGridControlValue("CEDVAL1IND",gx.fn.currentGridRowImpl(51),gx.O.A116CedVal1Ind,0)},c2v:function(){gx.O.A116CedVal1Ind=this.val()},val:function(){return gx.fn.getGridControlValue("CEDVAL1IND",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CEDVAL2IND",gxz:"Z117CedVal2Ind",gxold:"O117CedVal2Ind",gxvar:"A117CedVal2Ind",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A117CedVal2Ind=a
},v2z:function(a){gx.O.Z117CedVal2Ind=a},v2c:function(){gx.fn.setGridControlValue("CEDVAL2IND",gx.fn.currentGridRowImpl(51),gx.O.A117CedVal2Ind,0)},c2v:function(){gx.O.A117CedVal2Ind=this.val()},val:function(){return gx.fn.getGridControlValue("CEDVAL2IND",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CEDCAMPO1L",gxz:"Z111CedCampo1L",gxold:"O111CedCampo1L",gxvar:"A111CedCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A111CedCampo1L=a
},v2z:function(a){gx.O.Z111CedCampo1L=a},v2c:function(){gx.fn.setGridControlValue("CEDCAMPO1L",gx.fn.currentGridRowImpl(51),gx.O.A111CedCampo1L,0)},c2v:function(){gx.O.A111CedCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("CEDCAMPO1L",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[63]={fld:"TABLE4",grid:0};this.AV6cDocNro=0;this.ZV6cDocNro=0;this.OV6cDocNro=0;this.AV7cCedNroItem=0;this.ZV7cCedNroItem=0;this.OV7cCedNroItem=0;this.AV8cCedNroArtigo=0;
this.ZV8cCedNroArtigo=0;this.OV8cCedNroArtigo=0;this.AV9cCedNroSeqCampo=0;this.ZV9cCedNroSeqCampo=0;this.OV9cCedNroSeqCampo=0;this.AV10cCedNroRepCampo=0;this.ZV10cCedNroRepCampo=0;this.OV10cCedNroRepCampo=0;this.AV11cCedVal1Indicador="";this.ZV11cCedVal1Indicador="";this.OV11cCedVal1Indicador="";this.AV12cCedVal2Indicador="";this.ZV12cCedVal2Indicador="";this.OV12cCedVal2Indicador="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z258DocNro=0;this.O258DocNro=0;this.Z113CedNroItem=0;this.O113CedNroItem=0;
this.Z112CedNroArti=0;this.O112CedNroArti=0;this.Z115CedNroSeqC=0;this.O115CedNroSeqC=0;this.Z114CedNroRepC=0;this.O114CedNroRepC=0;this.Z116CedVal1Ind="";this.O116CedVal1Ind="";this.Z117CedVal2Ind="";this.O117CedVal2Ind="";this.Z111CedCampo1L="";this.O111CedCampo1L="";this.AV13pDocNro=0;this.AV14pCedNroItem=0;this.AV15pCedNroArtigo=0;this.AV16pCedNroSeqCampo=0;this.AV17pCedNroRepCampo=0;this.AV5LinkSelection="";this.A258DocNro=0;this.A113CedNroItem=0;this.A112CedNroArti=0;this.A115CedNroSeqC=0;this.A114CedNroRepC=0;
this.A116CedVal1Ind="";this.A117CedVal2Ind="";this.A111CedCampo1L="";this.ServerEvents=["e13c72_client","e14c71_client"];this.VarControlMap.AV13pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV14pCedNroItem={id:"vPCEDNROITEM",grid:0,type:"int"};this.VarControlMap.AV15pCedNroArtigo={id:"vPCEDNROARTIGO",grid:0,type:"int"};this.VarControlMap.AV16pCedNroSeqCampo={id:"vPCEDNROSEQCAMPO",grid:0,type:"int"};this.VarControlMap.AV17pCedNroRepCampo={id:"vPCEDNROREPCAMPO",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()}gx03k0.prototype=new gx.GxObject;gx.setParentObj(new gx03k0());