gx.evt.autoSkip=false;function gx03i0(){this.ServerClass="Gx03I0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV10pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV11pCmtNroSequencia=gx.fn.getIntegerValue("vPCMTNROSEQUENCIA",".")};this.e13c32_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14c31_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,33,37,38,39,40,41,44];
this.GXLastCtrlId=44;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",36,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx03i0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",37,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(258,38,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(135,39,"CMTNROSEQU","Nr. sequência","","CmtNroSequ","int",0,"px",6,6,"right",null,[],135,"CmtNroSequ",true,0,false,false);
this.Grid1Container.addSingleLineEdit(134,40,"CMTDTHREGI","Data e hora do registro","Selecionar","CmtDthRegi","dtime",0,"px",14,8,"right",null,[],134,"CmtDthRegi",true,5,false,false);this.Grid1Container.addSingleLineEdit(132,41,"CMTCODLEIT","Leitor","","CmtCodLeit","char",0,"px",14,14,"left",null,[],132,"CmtCodLeit",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:"TEXTBLOCKCMTNROSEQUENCIA",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:"vCCMTNROSEQUENCIA",gxz:"ZV7cCmtNroSequencia",gxold:"OV7cCmtNroSequencia",gxvar:"AV7cCmtNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cCmtNroSequencia=gx.num.intval(a)},v2z:function(a){gx.O.ZV7cCmtNroSequencia=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vCCMTNROSEQUENCIA",gx.O.AV7cCmtNroSequencia,0)},c2v:function(){gx.O.AV7cCmtNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCCMTNROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKCMTDTHREGISTRO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"dtime",len:8,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCMTDTHREGISTRO",gxz:"ZV8cCmtDthRegistro",gxold:"OV8cCmtDthRegistro",gxvar:"AV8cCmtDthRegistro",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/99 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cCmtDthRegistro=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cCmtDthRegistro=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCCMTDTHREGISTRO",gx.O.AV8cCmtDthRegistro,0)},c2v:function(){gx.O.AV8cCmtDthRegistro=this.val()},val:function(){return gx.fn.getControlValue("vCCMTDTHREGISTRO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKCMTCODLEITOR",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCMTCODLEITOR",gxz:"ZV9cCmtCodLeitor",gxold:"OV9cCmtCodLeitor",gxvar:"AV9cCmtCodLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cCmtCodLeitor=a
},v2z:function(a){gx.O.ZV9cCmtCodLeitor=a},v2c:function(){gx.fn.setControlValue("vCCMTCODLEITOR",gx.O.AV9cCmtCodLeitor,0)},c2v:function(){gx.O.AV9cCmtCodLeitor=this.val()},val:function(){return gx.fn.getControlValue("vCCMTCODLEITOR")},nac:function(){return false}};this.GXValidFnc[32]={fld:"GROUP2",grid:0};this.GXValidFnc[33]={fld:"TABLE3",grid:0};this.GXValidFnc[37]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:36,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(36))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:36,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(36),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CMTNROSEQU",gxz:"Z135CmtNroSequ",gxold:"O135CmtNroSequ",gxvar:"A135CmtNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A135CmtNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z135CmtNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CMTNROSEQU",gx.fn.currentGridRowImpl(36),gx.O.A135CmtNroSequ,0)},c2v:function(){gx.O.A135CmtNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("CMTNROSEQU",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"dtime",len:8,dec:5,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CMTDTHREGI",gxz:"Z134CmtDthRegi",gxold:"O134CmtDthRegi",gxvar:"A134CmtDthRegi",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/99 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A134CmtDthRegi=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z134CmtDthRegi=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("CMTDTHREGI",gx.fn.currentGridRowImpl(36),gx.O.A134CmtDthRegi,0)},c2v:function(){gx.O.A134CmtDthRegi=this.val()},val:function(){return gx.fn.getGridControlValue("CMTDTHREGI",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CMTCODLEIT",gxz:"Z132CmtCodLeit",gxold:"O132CmtCodLeit",gxvar:"A132CmtCodLeit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A132CmtCodLeit=a
},v2z:function(a){gx.O.Z132CmtCodLeit=a},v2c:function(){gx.fn.setGridControlValue("CMTCODLEIT",gx.fn.currentGridRowImpl(36),gx.O.A132CmtCodLeit,0)},c2v:function(){gx.O.A132CmtCodLeit=this.val()},val:function(){return gx.fn.getGridControlValue("CMTCODLEIT",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[44]={fld:"TABLE4",grid:0};this.AV6cDocNro=0;this.ZV6cDocNro=0;this.OV6cDocNro=0;this.AV7cCmtNroSequencia=0;this.ZV7cCmtNroSequencia=0;this.OV7cCmtNroSequencia=0;this.AV8cCmtDthRegistro=gx.date.nullDate();
this.ZV8cCmtDthRegistro=gx.date.nullDate();this.OV8cCmtDthRegistro=gx.date.nullDate();this.AV9cCmtCodLeitor="";this.ZV9cCmtCodLeitor="";this.OV9cCmtCodLeitor="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z258DocNro=0;this.O258DocNro=0;this.Z135CmtNroSequ=0;this.O135CmtNroSequ=0;this.Z134CmtDthRegi=gx.date.nullDate();this.O134CmtDthRegi=gx.date.nullDate();this.Z132CmtCodLeit="";this.O132CmtCodLeit="";this.AV10pDocNro=0;this.AV11pCmtNroSequencia=0;this.AV5LinkSelection="";this.A258DocNro=0;
this.A135CmtNroSequ=0;this.A134CmtDthRegi=gx.date.nullDate();this.A132CmtCodLeit="";this.ServerEvents=["e13c32_client","e14c31_client"];this.VarControlMap.AV10pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV11pCmtNroSequencia={id:"vPCMTNROSEQUENCIA",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.SetStandaloneVars()}gx03i0.prototype=new gx.GxObject;gx.setParentObj(new gx03i0());