gx.evt.autoSkip=false;function gx04e0(){this.ServerClass="Gx04E0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pDinCodTabela=gx.fn.getControlValue("vPDINCODTABELA");this.AV13pDinNroDocumento=gx.fn.getIntegerValue("vPDINNRODOCUMENTO",".");this.AV14pDinNroSequencia=gx.fn.getIntegerValue("vPDINNROSEQUENCIA",".")};this.e13ep2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14ep1_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,43,47,48,49,50,51,52,53,56];this.GXLastCtrlId=56;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx04e0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",47,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(1031,48,"DINCODTABE","da tabela","","DinCodTabe","char",0,"px",1,1,"left",null,[],1031,"DinCodTabe",true,0,false,false);
this.Grid1Container.addSingleLineEdit(1032,49,"DINNRODOCU","documento","","DinNroDocu","int",0,"px",7,7,"right",null,[],1032,"DinNroDocu",true,0,false,false);this.Grid1Container.addSingleLineEdit(1033,50,"DINNROSEQU","sequência","","DinNroSequ","int",0,"px",4,4,"right",null,[],1033,"DinNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(1034,51,"DINCODCAMP","do campo","Selecionar","DinCodCamp","char",0,"px",20,20,"left",null,[],1034,"DinCodCamp",true,0,false,false);this.Grid1Container.addSingleLineEdit(1035,52,"DININD1","1","","DinInd1","char",0,"px",1,1,"left",null,[],1035,"DinInd1",true,0,false,false);
this.Grid1Container.addSingleLineEdit(1036,53,"DININD2","2","","DinInd2","char",0,"px",1,1,"left",null,[],1036,"DinInd2",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:"TEXTBLOCKDINCODTABELA",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDINCODTABELA",gxz:"ZV6cDinCodTabela",gxold:"OV6cDinCodTabela",gxvar:"AV6cDinCodTabela",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDinCodTabela=a
},v2z:function(a){gx.O.ZV6cDinCodTabela=a},v2c:function(){gx.fn.setControlValue("vCDINCODTABELA",gx.O.AV6cDinCodTabela,0)},c2v:function(){gx.O.AV6cDinCodTabela=this.val()},val:function(){return gx.fn.getControlValue("vCDINCODTABELA")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKDINNRODOCUMENTO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDINNRODOCUMENTO",gxz:"ZV7cDinNroDocumento",gxold:"OV7cDinNroDocumento",gxvar:"AV7cDinNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDinNroDocumento=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cDinNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDINNRODOCUMENTO",gx.O.AV7cDinNroDocumento,0)},c2v:function(){gx.O.AV7cDinNroDocumento=this.val()},val:function(){return gx.fn.getIntegerValue("vCDINNRODOCUMENTO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDINNROSEQUENCIA",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:"vCDINNROSEQUENCIA",gxz:"ZV8cDinNroSequencia",gxold:"OV8cDinNroSequencia",gxvar:"AV8cDinNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cDinNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cDinNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDINNROSEQUENCIA",gx.O.AV8cDinNroSequencia,0)},c2v:function(){gx.O.AV8cDinNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCDINNROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKDINCODCAMPO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDINCODCAMPO",gxz:"ZV9cDinCodCampo",gxold:"OV9cDinCodCampo",gxvar:"AV9cDinCodCampo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cDinCodCampo=a
},v2z:function(a){gx.O.ZV9cDinCodCampo=a},v2c:function(){gx.fn.setControlValue("vCDINCODCAMPO",gx.O.AV9cDinCodCampo,0)},c2v:function(){gx.O.AV9cDinCodCampo=this.val()},val:function(){return gx.fn.getControlValue("vCDINCODCAMPO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKDININD1",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDININD1",gxz:"ZV10cDinInd1",gxold:"OV10cDinInd1",gxvar:"AV10cDinInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cDinInd1=a
},v2z:function(a){gx.O.ZV10cDinInd1=a},v2c:function(){gx.fn.setControlValue("vCDININD1",gx.O.AV10cDinInd1,0)},c2v:function(){gx.O.AV10cDinInd1=this.val()},val:function(){return gx.fn.getControlValue("vCDININD1")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKDININD2",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:"vCDININD2",gxz:"ZV11cDinInd2",gxold:"OV11cDinInd2",gxvar:"AV11cDinInd2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cDinInd2=a
},v2z:function(a){gx.O.ZV11cDinInd2=a},v2c:function(){gx.fn.setControlValue("vCDININD2",gx.O.AV11cDinInd2,0)},c2v:function(){gx.O.AV11cDinInd2=this.val()},val:function(){return gx.fn.getControlValue("vCDININD2")},nac:function(){return false}};this.GXValidFnc[42]={fld:"GROUP2",grid:0};this.GXValidFnc[43]={fld:"TABLE3",grid:0};this.GXValidFnc[47]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:46,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(46))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DINCODTABE",gxz:"Z1031DinCodTabe",gxold:"O1031DinCodTabe",gxvar:"A1031DinCodTabe",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1031DinCodTabe=a
},v2z:function(a){gx.O.Z1031DinCodTabe=a},v2c:function(){gx.fn.setGridControlValue("DINCODTABE",gx.fn.currentGridRowImpl(46),gx.O.A1031DinCodTabe,0)},c2v:function(){gx.O.A1031DinCodTabe=this.val()},val:function(){return gx.fn.getGridControlValue("DINCODTABE",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DINNRODOCU",gxz:"Z1032DinNroDocu",gxold:"O1032DinNroDocu",gxvar:"A1032DinNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1032DinNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z1032DinNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DINNRODOCU",gx.fn.currentGridRowImpl(46),gx.O.A1032DinNroDocu,0)},c2v:function(){gx.O.A1032DinNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("DINNRODOCU",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DINNROSEQU",gxz:"Z1033DinNroSequ",gxold:"O1033DinNroSequ",gxvar:"A1033DinNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1033DinNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z1033DinNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DINNROSEQU",gx.fn.currentGridRowImpl(46),gx.O.A1033DinNroSequ,0)},c2v:function(){gx.O.A1033DinNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DINNROSEQU",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DINCODCAMP",gxz:"Z1034DinCodCamp",gxold:"O1034DinCodCamp",gxvar:"A1034DinCodCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1034DinCodCamp=a
},v2z:function(a){gx.O.Z1034DinCodCamp=a},v2c:function(){gx.fn.setGridControlValue("DINCODCAMP",gx.fn.currentGridRowImpl(46),gx.O.A1034DinCodCamp,0)},c2v:function(){gx.O.A1034DinCodCamp=this.val()},val:function(){return gx.fn.getGridControlValue("DINCODCAMP",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DININD1",gxz:"Z1035DinInd1",gxold:"O1035DinInd1",gxvar:"A1035DinInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1035DinInd1=a
},v2z:function(a){gx.O.Z1035DinInd1=a},v2c:function(){gx.fn.setGridControlValue("DININD1",gx.fn.currentGridRowImpl(46),gx.O.A1035DinInd1,0)},c2v:function(){gx.O.A1035DinInd1=this.val()},val:function(){return gx.fn.getGridControlValue("DININD1",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DININD2",gxz:"Z1036DinInd2",gxold:"O1036DinInd2",gxvar:"A1036DinInd2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1036DinInd2=a
},v2z:function(a){gx.O.Z1036DinInd2=a},v2c:function(){gx.fn.setGridControlValue("DININD2",gx.fn.currentGridRowImpl(46),gx.O.A1036DinInd2,0)},c2v:function(){gx.O.A1036DinInd2=this.val()},val:function(){return gx.fn.getGridControlValue("DININD2",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[56]={fld:"TABLE4",grid:0};this.AV6cDinCodTabela="";this.ZV6cDinCodTabela="";this.OV6cDinCodTabela="";this.AV7cDinNroDocumento=0;this.ZV7cDinNroDocumento=0;this.OV7cDinNroDocumento=0;
this.AV8cDinNroSequencia=0;this.ZV8cDinNroSequencia=0;this.OV8cDinNroSequencia=0;this.AV9cDinCodCampo="";this.ZV9cDinCodCampo="";this.OV9cDinCodCampo="";this.AV10cDinInd1="";this.ZV10cDinInd1="";this.OV10cDinInd1="";this.AV11cDinInd2="";this.ZV11cDinInd2="";this.OV11cDinInd2="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z1031DinCodTabe="";this.O1031DinCodTabe="";this.Z1032DinNroDocu=0;this.O1032DinNroDocu=0;this.Z1033DinNroSequ=0;this.O1033DinNroSequ=0;this.Z1034DinCodCamp="";this.O1034DinCodCamp="";
this.Z1035DinInd1="";this.O1035DinInd1="";this.Z1036DinInd2="";this.O1036DinInd2="";this.AV12pDinCodTabela="";this.AV13pDinNroDocumento=0;this.AV14pDinNroSequencia=0;this.AV5LinkSelection="";this.A1031DinCodTabe="";this.A1032DinNroDocu=0;this.A1033DinNroSequ=0;this.A1034DinCodCamp="";this.A1035DinInd1="";this.A1036DinInd2="";this.ServerEvents=["e13ep2_client","e14ep1_client"];this.VarControlMap.AV12pDinCodTabela={id:"vPDINCODTABELA",grid:0,type:"char"};this.VarControlMap.AV13pDinNroDocumento={id:"vPDINNRODOCUMENTO",grid:0,type:"int"};
this.VarControlMap.AV14pDinNroSequencia={id:"vPDINNROSEQUENCIA",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.SetStandaloneVars()}gx04e0.prototype=new gx.GxObject;gx.setParentObj(new gx04e0());