gx.evt.autoSkip=false;function gx0191(){this.ServerClass="Gx0191";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV13pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV14pDoeNroSequencia=gx.fn.getIntegerValue("vPDOENROSEQUENCIA",".")};this.Valid_Undcod=function(){try{if(gx.fn.currentGridRowImpl(46)===0){return true}var a=gx.util.balloon.getNew("UNDCOD",gx.fn.currentGridRowImpl(46));
this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Doenrosequ=function(){try{if(gx.fn.currentGridRowImpl(46)===0){return true}var a=gx.util.balloon.getNew("DOENROSEQU",gx.fn.currentGridRowImpl(46));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(46)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(46));
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e13cy2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14cy1_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,54,55,58];this.GXLastCtrlId=58;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0191",[],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(922,48,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(281,49,"DOENROSEQU","Nro seqüência exemplar","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(271,50,"DOEDATAQUI","Data início assinatura","","DoeDatAqui","date",0,"px",10,10,"right",null,[],271,"DoeDatAqui",true,0,false,false);
this.Grid1Container.addSingleLineEdit(899,51,"TPACOD","Tipo de aquisição","","TpaCod","char",0,"px",3,3,"left",null,[],899,"TpaCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(509,52,"LOCCOD","Localização","","LocCod","int",0,"px",3,3,"right",null,[],509,"LocCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(272,53,"DOEDATBAIX","Data baixa / Fim assinatura","","DoeDatBaix","date",0,"px",10,10,"right",null,[],272,"DoeDatBaix",true,0,false,false);this.Grid1Container.addSingleLineEdit(276,54,"DOEDESMOED","Moeda","","DoeDesMoed","char",0,"px",5,5,"left",null,[],276,"DoeDesMoed",true,0,false,false);
this.Grid1Container.addSingleLineEdit(258,55,"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:"TEXTBLOCKUNDCOD",format:0,grid:0};this.GXValidFnc[14]={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:"vCUNDCOD",gxz:"ZV6cUndCod",gxold:"OV6cUndCod",gxvar:"AV6cUndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cUndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cUndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCUNDCOD",gx.O.AV6cUndCod,0)},c2v:function(){gx.O.AV6cUndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKDOENROSEQUENCIA",format:0,grid:0};this.GXValidFnc[19]={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:"vCDOENROSEQUENCIA",gxz:"ZV7cDoeNroSequencia",gxold:"OV7cDoeNroSequencia",gxvar:"AV7cDoeNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDoeNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cDoeNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDOENROSEQUENCIA",gx.O.AV7cDoeNroSequencia,0)},c2v:function(){gx.O.AV7cDoeNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCDOENROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDOEDATAQUISICAO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDOEDATAQUISICAO",gxz:"ZV8cDoeDatAquisicao",gxold:"OV8cDoeDatAquisicao",gxvar:"AV8cDoeDatAquisicao",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cDoeDatAquisicao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cDoeDatAquisicao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCDOEDATAQUISICAO",gx.O.AV8cDoeDatAquisicao,0)},c2v:function(){gx.O.AV8cDoeDatAquisicao=this.val()},val:function(){return gx.fn.getControlValue("vCDOEDATAQUISICAO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKTPACOD",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTPACOD",gxz:"ZV9cTpaCod",gxold:"OV9cTpaCod",gxvar:"AV9cTpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cTpaCod=a
},v2z:function(a){gx.O.ZV9cTpaCod=a},v2c:function(){gx.fn.setControlValue("vCTPACOD",gx.O.AV9cTpaCod,0)},c2v:function(){gx.O.AV9cTpaCod=this.val()},val:function(){return gx.fn.getControlValue("vCTPACOD")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKLOCCOD",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:"vCLOCCOD",gxz:"ZV10cLocCod",gxold:"OV10cLocCod",gxvar:"AV10cLocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cLocCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cLocCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCLOCCOD",gx.O.AV10cLocCod,0)},c2v:function(){gx.O.AV10cLocCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCLOCCOD",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKDOEDATBAIXA",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDOEDATBAIXA",gxz:"ZV11cDoeDatBaixa",gxold:"OV11cDoeDatBaixa",gxvar:"AV11cDoeDatBaixa",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cDoeDatBaixa=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV11cDoeDatBaixa=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCDOEDATBAIXA",gx.O.AV11cDoeDatBaixa,0)},c2v:function(){gx.O.AV11cDoeDatBaixa=this.val()},val:function(){return gx.fn.getControlValue("vCDOEDATBAIXA")},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:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:this.Valid_Undcod,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[50,51,53,54],ip:[50,51,53,54,49,48,55],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(46),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:this.Valid_Doenrosequ,isvalid:null,rgrid:[],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOENROSEQU",gx.fn.currentGridRowImpl(46),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DOEDATAQUI",gxz:"Z271DoeDatAqui",gxold:"O271DoeDatAqui",gxvar:"A271DoeDatAqui",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A271DoeDatAqui=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z271DoeDatAqui=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("DOEDATAQUI",gx.fn.currentGridRowImpl(46),gx.O.A271DoeDatAqui,0)},c2v:function(){gx.O.A271DoeDatAqui=this.val()},val:function(){return gx.fn.getGridControlValue("DOEDATAQUI",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TPACOD",gxz:"Z899TpaCod",gxold:"O899TpaCod",gxvar:"A899TpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A899TpaCod=a
},v2z:function(a){gx.O.Z899TpaCod=a},v2c:function(){gx.fn.setGridControlValue("TPACOD",gx.fn.currentGridRowImpl(46),gx.O.A899TpaCod,0)},c2v:function(){gx.O.A899TpaCod=this.val()},val:function(){return gx.fn.getGridControlValue("TPACOD",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"LOCCOD",gxz:"Z509LocCod",gxold:"O509LocCod",gxvar:"A509LocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A509LocCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z509LocCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("LOCCOD",gx.fn.currentGridRowImpl(46),gx.O.A509LocCod,0)},c2v:function(){gx.O.A509LocCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("LOCCOD",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DOEDATBAIX",gxz:"Z272DoeDatBaix",gxold:"O272DoeDatBaix",gxvar:"A272DoeDatBaix",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A272DoeDatBaix=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z272DoeDatBaix=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("DOEDATBAIX",gx.fn.currentGridRowImpl(46),gx.O.A272DoeDatBaix,0)},c2v:function(){gx.O.A272DoeDatBaix=this.val()},val:function(){return gx.fn.getGridControlValue("DOEDATBAIX",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:5,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DOEDESMOED",gxz:"Z276DoeDesMoed",gxold:"O276DoeDesMoed",gxvar:"A276DoeDesMoed",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A276DoeDesMoed=a
},v2z:function(a){gx.O.Z276DoeDesMoed=a},v2c:function(){gx.fn.setGridControlValue("DOEDESMOED",gx.fn.currentGridRowImpl(46),gx.O.A276DoeDesMoed,0)},c2v:function(){gx.O.A276DoeDesMoed=this.val()},val:function(){return gx.fn.getGridControlValue("DOEDESMOED",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:this.Valid_Docnro,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(46),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[58]={fld:"TABLE4",grid:0};this.AV6cUndCod=0;this.ZV6cUndCod=0;this.OV6cUndCod=0;this.AV7cDoeNroSequencia=0;this.ZV7cDoeNroSequencia=0;this.OV7cDoeNroSequencia=0;this.AV8cDoeDatAquisicao=gx.date.nullDate();
this.ZV8cDoeDatAquisicao=gx.date.nullDate();this.OV8cDoeDatAquisicao=gx.date.nullDate();this.AV9cTpaCod="";this.ZV9cTpaCod="";this.OV9cTpaCod="";this.AV10cLocCod=0;this.ZV10cLocCod=0;this.OV10cLocCod=0;this.AV11cDoeDatBaixa=gx.date.nullDate();this.ZV11cDoeDatBaixa=gx.date.nullDate();this.OV11cDoeDatBaixa=gx.date.nullDate();this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.Z271DoeDatAqui=gx.date.nullDate();this.O271DoeDatAqui=gx.date.nullDate();
this.Z899TpaCod="";this.O899TpaCod="";this.Z509LocCod=0;this.O509LocCod=0;this.Z272DoeDatBaix=gx.date.nullDate();this.O272DoeDatBaix=gx.date.nullDate();this.Z276DoeDesMoed="";this.O276DoeDesMoed="";this.Z258DocNro=0;this.O258DocNro=0;this.AV12pDocNro=0;this.AV13pUndCod=0;this.AV14pDoeNroSequencia=0;this.AV5LinkSelection="";this.A922UndCod=0;this.A281DoeNroSequ=0;this.A271DoeDatAqui=gx.date.nullDate();this.A899TpaCod="";this.A509LocCod=0;this.A272DoeDatBaix=gx.date.nullDate();this.A276DoeDesMoed="";
this.A258DocNro=0;this.ServerEvents=["e13cy2_client","e14cy1_client"];this.VarControlMap.AV12pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV13pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV14pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV12pDocNro={id:"vPDOCNRO",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({rfrVar:"AV12pDocNro"});this.SetStandaloneVars()}gx0191.prototype=new gx.GxObject;gx.setParentObj(new gx0191());