gx.evt.autoSkip=false;function tpet008(){this.ServerClass="Tpet008";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A652PerNro=gx.fn.getIntegerValue("PERNRO",".");this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Assnro=function(){try{var a=gx.util.balloon.getNew("ASSNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.Valid_Aexnroexer=function(){gx.ajax.validSrvEvt("dyncall","Valid_Aexnroexer",["gx.O.A57AssNro","gx.O.A11AexNroExer",'gx.date.urlDate(gx.O.A8AexDatInic,"DMY")','gx.date.urlDate(gx.O.A7AexDatFimR,"DMY")',"gx.O.A13AexQtdParc","gx.num.urlDecimal(gx.O.A14AexValTota,'.',',')","gx.O.A12AexQtdMese"],["A652PerNro","A642PerDesAbre","A643PerDesLong","A654PerNroIssn","A683PrdCod","A8AexDatInic","A7AexDatFimR","A51AssDatInic","A13AexQtdParc","A14AexValTota","A53AssIndCanc","A12AexQtdMese","Gx_mode","Z57AssNro","Z11AexNroExer","Z652PerNro","Z642PerDesAbre","Z643PerDesLong","Z654PerNroIssn","Z683PrdCod","Z8AexDatInic","Z7AexDatFimR","Z51AssDatInic","Z13AexQtdParc","Z14AexValTota","Z53AssIndCanc","Z12AexQtdMese","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Aexdatinic=function(){try{var a=gx.util.balloon.getNew("AEXDATINIC");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Aexdatfimr=function(){try{var a=gx.util.balloon.getNew("AEXDATFIMR");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asfnrosequ=function(){try{if(gx.fn.currentGridRowImpl(85)===0){return true}var a=gx.util.balloon.getNew("ASFNROSEQU",gx.fn.currentGridRowImpl(85));
this.AnyError=0;this.sMode143=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(143,85);this.standaloneModal57143();this.standaloneNotModal57143();if((0==this.A31AsfNroSequ)){try{a.setError("Informe o número da sequencia");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode143;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asftipfasc=function(){try{if(gx.fn.currentGridRowImpl(85)===0){return true}var a=gx.util.balloon.getNew("ASFTIPFASC",gx.fn.currentGridRowImpl(85));
this.AnyError=0;this.sMode143=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(143,85);if(gx.fn.gridDuplicateKey(88)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode143;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asfdatprev=function(){try{if(gx.fn.currentGridRowImpl(85)===0){return true}var a=gx.util.balloon.getNew("ASFDATPREV",gx.fn.currentGridRowImpl(85));this.AnyError=0;this.sMode143=this.Gx_mode;
this.Gx_mode=gx.fn.getGridRowMode(143,85)}catch(b){}try{this.Gx_mode=this.sMode143;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asfdatefet=function(){try{if(gx.fn.currentGridRowImpl(85)===0){return true}var a=gx.util.balloon.getNew("ASFDATEFET",gx.fn.currentGridRowImpl(85));this.AnyError=0;this.sMode143=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(143,85);if(new gx.date.gxdate(this.A24AsfDatPrev).compare(this.A8AexDatInic)<0||new gx.date.gxdate(this.A23AsfDatEfet).compare(this.A8AexDatInic)<0){try{a.setMessage("Nota: Data anterior ao início do recebimento")
}catch(b){}}if(new gx.date.gxdate(this.A24AsfDatPrev).compare(this.A7AexDatFimR)>0||new gx.date.gxdate(this.A23AsfDatEfet).compare(this.A7AexDatFimR)>0){try{a.setMessage("Nota: Data superior ao fim do recebimento")}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode143;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asfindfasc=function(){try{if(gx.fn.currentGridRowImpl(85)===0){return true}var a=gx.util.balloon.getNew("ASFINDFASC",gx.fn.currentGridRowImpl(85));this.AnyError=0;
this.sMode143=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(143,85);if(this.A27AsfIndFasc!="S"&&this.A27AsfIndFasc!="N"){try{a.setError("Informe S-Sim ou N-Não");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode143;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asfindause=function(){try{if(gx.fn.currentGridRowImpl(85)===0){return true}var a=gx.util.balloon.getNew("ASFINDAUSE",gx.fn.currentGridRowImpl(85));this.AnyError=0;this.sMode143=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(143,85);
if(!(this.A26AsfIndAuse=="S"||this.A26AsfIndAuse=="N")){try{a.setError("Campo Ausência de publicação fora da faixa");this.AnyError=1}catch(b){}}}catch(b){}try{this.Gx_mode=this.sMode143;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asfnrodocu=function(){try{if(gx.fn.currentGridRowImpl(85)===0){return true}var a=gx.util.balloon.getNew("ASFNRODOCU",gx.fn.currentGridRowImpl(85));this.AnyError=0;this.sMode143=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(143,85);if(this.A29AsfNroDocu!=gx.OldInteger("ASFNRODOCU","O29AsfNroDocu")&&this.A29AsfNroDocu>0){try{a.setError("Não é possível substituir o número do documento");
this.AnyError=1}catch(b){}}if((this.Gx_mode=="DLT")&&this.A29AsfNroDocu>0){try{a.setError("Este fascículo possui um documento indexado");this.AnyError=1}catch(b){}}if(this.Gx_mode=="UPD"){}}catch(b){}try{this.Gx_mode=this.sMode143;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal57143=function(){try{if((this.Gx_mode=="INS")){gx.fn.setCtrlProperty("ASFNRODOCU","Enabled",0)}else{gx.fn.setCtrlProperty("ASFNRODOCU","Enabled",1)}}catch(a){}try{if((this.Gx_mode=="INS")&&(""==this.A27AsfIndFasc)&&this.Gx_BScreen==0){this.A27AsfIndFasc="N"
}}catch(a){}try{if((this.Gx_mode=="INS")&&(""==this.A34AsfTipFasc)&&this.Gx_BScreen==0){this.A34AsfTipFasc="NO"}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("ASFNROSEQU","Enabled",0)}else{gx.fn.setCtrlProperty("ASFNROSEQU","Enabled",1)}}catch(a){}return true};this.standaloneNotModal57143=function(){try{gx.fn.setCtrlProperty("ASFTIPFASC","Enabled",0)}catch(a){}return true};this.e1157113_client=function(){this.executeServerEvent("ENTER",true)};this.e1257113_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,33,35,38,40,43,45,49,51,54,56,59,61,64,66,69,71,74,76,79,81,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101];this.GXLastCtrlId=101;this.Grid1Container=new gx.grid.grid(this,143,"Level1",85,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tpet008",[31,34],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_143",86,"vNRCDDELETED_143","","","nRcdDeleted_143","int",0,"px",4,4,"right",null,[],"nRcdDeleted_143","nRcdDeleted_143",true,0,false,false);
this.Grid1Container.addSingleLineEdit(31,87,"ASFNROSEQU","Sequência","","AsfNroSequ","int",0,"px",3,3,"right",null,[],31,"AsfNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(34,88,"ASFTIPFASC","Tipo de fascículo","","AsfTipFasc","char",0,"px",2,2,"left",null,[],34,"AsfTipFasc",true,0,false,false);this.Grid1Container.addSingleLineEdit(24,89,"ASFDATPREV","Data recebimento previsto","","AsfDatPrev","date",0,"px",10,10,"right",null,[],24,"AsfDatPrev",true,0,false,false);this.Grid1Container.addSingleLineEdit(23,90,"ASFDATEFET","Data recebimento efetivo","","AsfDatEfet","date",0,"px",10,10,"right",null,[],23,"AsfDatEfet",true,0,false,false);
this.Grid1Container.addSingleLineEdit(30,91,"ASFNROEDIC","Número edição","","AsfNroEdic","int",0,"px",5,5,"right",null,[],30,"AsfNroEdic",true,0,false,false);this.Grid1Container.addSingleLineEdit(33,92,"ASFNROVOLU","Número do volume","","AsfNroVolu","char",0,"px",5,5,"left",null,[],33,"AsfNroVolu",true,0,false,false);this.Grid1Container.addSingleLineEdit(28,93,"ASFNROANO","Ano edição","","AsfNroAno","int",0,"px",4,4,"right",null,[],28,"AsfNroAno",true,0,false,false);this.Grid1Container.addSingleLineEdit(25,94,"ASFDESPERI","Período","","AsfDesPeri","char",0,"px",12,12,"left",null,[],25,"AsfDesPeri",true,0,false,false);
this.Grid1Container.addSingleLineEdit(32,95,"ASFNROULTD","Nro ultima descrição","","AsfNroUltD","int",0,"px",3,3,"right",null,[],32,"AsfNroUltD",true,0,false,false);this.Grid1Container.addSingleLineEdit(22,96,"ASFDATDESC","Data descarte","","AsfDatDesc","date",0,"px",10,10,"right",null,[],22,"AsfDatDesc",true,0,false,false);this.Grid1Container.addSingleLineEdit(20,97,"ASFCAMPO1L","Campo livre 1","","AsfCampo1L","char",0,"px",10,10,"left",null,[],20,"AsfCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(21,98,"ASFCAMPO2L","Campo livre 2","","AsfCampo2L","char",0,"px",15,15,"left",null,[],21,"AsfCampo2L",true,0,false,false);
this.Grid1Container.addSingleLineEdit(27,99,"ASFINDFASC","Fascículo indexado","","AsfIndFasc","char",0,"px",2,1,"left",null,[],27,"AsfIndFasc",true,0,false,false);this.Grid1Container.addSingleLineEdit(26,100,"ASFINDAUSE","Ausência de publicação","","AsfIndAuse","char",0,"px",2,1,"left",null,[],26,"AsfIndAuse",true,0,false,false);this.Grid1Container.addSingleLineEdit(29,101,"ASFNRODOCU","Número documento","","AsfNroDocu","int",0,"px",6,6,"right",null,[],29,"AsfNroDocu",true,0,false,false);this.setGrid(this.Grid1Container);
this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Assnro,isvalid:null,rgrid:[this.Grid1Container],fld:"ASSNRO",gxz:"Z57AssNro",gxold:"O57AssNro",gxvar:"A57AssNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A57AssNro=gx.num.intval(a)},v2z:function(a){gx.O.Z57AssNro=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("ASSNRO",gx.O.A57AssNro,0)},c2v:function(){gx.O.A57AssNro=this.val()},val:function(){return gx.fn.getIntegerValue("ASSNRO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERDESABRE",gxz:"Z642PerDesAbre",gxold:"O642PerDesAbre",gxvar:"A642PerDesAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A642PerDesAbre=a
},v2z:function(a){gx.O.Z642PerDesAbre=a},v2c:function(){gx.fn.setControlValue("PERDESABRE",gx.O.A642PerDesAbre,0)},c2v:function(){gx.O.A642PerDesAbre=this.val()},val:function(){return gx.fn.getControlValue("PERDESABRE")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERDESLONG",gxz:"Z643PerDesLong",gxold:"O643PerDesLong",gxvar:"A643PerDesLong",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A643PerDesLong=a
},v2z:function(a){gx.O.Z643PerDesLong=a},v2c:function(){gx.fn.setControlValue("PERDESLONG",gx.O.A643PerDesLong,0)},c2v:function(){gx.O.A643PerDesLong=this.val()},val:function(){return gx.fn.getControlValue("PERDESLONG")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERNROISSN",gxz:"Z654PerNroIssn",gxold:"O654PerNroIssn",gxvar:"A654PerNroIssn",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A654PerNroIssn=a
},v2z:function(a){gx.O.Z654PerNroIssn=a},v2c:function(){gx.fn.setControlValue("PERNROISSN",gx.O.A654PerNroIssn,0)},c2v:function(){gx.O.A654PerNroIssn=this.val()},val:function(){return gx.fn.getControlValue("PERNROISSN")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRDCOD",gxz:"Z683PrdCod",gxold:"O683PrdCod",gxvar:"A683PrdCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A683PrdCod=a
},v2z:function(a){gx.O.Z683PrdCod=a},v2c:function(){gx.fn.setControlValue("PRDCOD",gx.O.A683PrdCod,0)},c2v:function(){gx.O.A683PrdCod=this.val()},val:function(){return gx.fn.getControlValue("PRDCOD")},nac:function(){return false}};this.GXValidFnc[43]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[45]={lvl:0,type:"char",len:4,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Aexnroexer,isvalid:null,fld:"AEXNROEXER",gxz:"Z11AexNroExer",gxold:"O11AexNroExer",gxvar:"A11AexNroExer",ucs:[],op:[81,71,66,56,51],ip:[81,71,66,56,51,45,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A11AexNroExer=a
},v2z:function(a){gx.O.Z11AexNroExer=a},v2c:function(){gx.fn.setControlValue("AEXNROEXER",gx.O.A11AexNroExer,0)},c2v:function(){gx.O.A11AexNroExer=this.val()},val:function(){return gx.fn.getControlValue("AEXNROEXER")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Aexdatinic,isvalid:null,fld:"AEXDATINIC",gxz:"Z8AexDatInic",gxold:"O8AexDatInic",gxvar:"A8AexDatInic",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.A8AexDatInic=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z8AexDatInic=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("AEXDATINIC",gx.O.A8AexDatInic,0)},c2v:function(){gx.O.A8AexDatInic=this.val()},val:function(){return gx.fn.getControlValue("AEXDATINIC")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Aexdatfimr,isvalid:null,fld:"AEXDATFIMR",gxz:"Z7AexDatFimR",gxold:"O7AexDatFimR",gxvar:"A7AexDatFimR",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.A7AexDatFimR=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z7AexDatFimR=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("AEXDATFIMR",gx.O.A7AexDatFimR,0)},c2v:function(){gx.O.A7AexDatFimR=this.val()},val:function(){return gx.fn.getControlValue("AEXDATFIMR")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"ASSDATINIC",gxz:"Z51AssDatInic",gxold:"O51AssDatInic",gxvar:"A51AssDatInic",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.A51AssDatInic=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z51AssDatInic=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("ASSDATINIC",gx.O.A51AssDatInic,0)},c2v:function(){gx.O.A51AssDatInic=this.val()},val:function(){return gx.fn.getControlValue("ASSDATINIC")},nac:function(){return false}};this.GXValidFnc[64]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[66]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"AEXQTDPARC",gxz:"Z13AexQtdParc",gxold:"O13AexQtdParc",gxvar:"A13AexQtdParc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A13AexQtdParc=gx.num.intval(a)
},v2z:function(a){gx.O.Z13AexQtdParc=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("AEXQTDPARC",gx.O.A13AexQtdParc,0)},c2v:function(){gx.O.A13AexQtdParc=this.val()},val:function(){return gx.fn.getIntegerValue("AEXQTDPARC",".")},nac:function(){return false}};this.GXValidFnc[69]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[71]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"AEXVALTOTA",gxz:"Z14AexValTota",gxold:"O14AexValTota",gxvar:"A14AexValTota",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A14AexValTota=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z14AexValTota=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("AEXVALTOTA",gx.O.A14AexValTota,2,",")},c2v:function(){gx.O.A14AexValTota=this.val()},val:function(){return gx.fn.getDecimalValue("AEXVALTOTA",".",",")},nac:function(){return false}};this.GXValidFnc[74]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[76]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"ASSINDCANC",gxz:"Z53AssIndCanc",gxold:"O53AssIndCanc",gxvar:"A53AssIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A53AssIndCanc=a
},v2z:function(a){gx.O.Z53AssIndCanc=a},v2c:function(){gx.fn.setControlValue("ASSINDCANC",gx.O.A53AssIndCanc,0)},c2v:function(){gx.O.A53AssIndCanc=this.val()},val:function(){return gx.fn.getControlValue("ASSINDCANC")},nac:function(){return false}};this.GXValidFnc[79]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[81]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"AEXQTDMESE",gxz:"Z12AexQtdMese",gxold:"O12AexQtdMese",gxvar:"A12AexQtdMese",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A12AexQtdMese=gx.num.intval(a)
},v2z:function(a){gx.O.Z12AexQtdMese=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("AEXQTDMESE",gx.O.A12AexQtdMese,0)},c2v:function(){gx.O.A12AexQtdMese=this.val()},val:function(){return gx.fn.getIntegerValue("AEXQTDMESE",".")},nac:function(){return false}};this.GXValidFnc[86]={lvl:143,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_143",gxz:"ZnRcdDeleted_143",gxold:"OnRcdDeleted_143",gxvar:"nRcdDeleted_143",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_143=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_143=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_143",gx.fn.currentGridRowImpl(85),gx.O.nRcdDeleted_143,0)},c2v:function(){gx.O.nRcdDeleted_143=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_143",gx.fn.currentGridRowImpl(85),".")},nac:function(){return false}};this.GXValidFnc[87]={lvl:143,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:85,gxgrid:this.Grid1Container,fnc:this.Valid_Asfnrosequ,isvalid:null,rgrid:[],fld:"ASFNROSEQU",gxz:"Z31AsfNroSequ",gxold:"O31AsfNroSequ",gxvar:"A31AsfNroSequ",ucs:[],op:[88,99,87],ip:[88,99,87],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A31AsfNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z31AsfNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ASFNROSEQU",gx.fn.currentGridRowImpl(85),gx.O.A31AsfNroSequ,0)},c2v:function(){gx.O.A31AsfNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("ASFNROSEQU",gx.fn.currentGridRowImpl(85),".")},nac:function(){return false}};this.GXValidFnc[88]={lvl:143,type:"char",len:2,dec:0,sign:false,ro:1,grid:85,gxgrid:this.Grid1Container,fnc:this.Valid_Asftipfasc,isvalid:null,fld:"ASFTIPFASC",gxz:"Z34AsfTipFasc",gxold:"O34AsfTipFasc",gxvar:"A34AsfTipFasc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A34AsfTipFasc=a
},v2z:function(a){gx.O.Z34AsfTipFasc=a},v2c:function(){gx.fn.setGridControlValue("ASFTIPFASC",gx.fn.currentGridRowImpl(85),gx.O.A34AsfTipFasc,0)},c2v:function(){gx.O.A34AsfTipFasc=this.val()},val:function(){return gx.fn.getGridControlValue("ASFTIPFASC",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[89]={lvl:143,type:"date",len:10,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:this.Valid_Asfdatprev,isvalid:null,fld:"ASFDATPREV",gxz:"Z24AsfDatPrev",gxold:"O24AsfDatPrev",gxvar:"A24AsfDatPrev",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.A24AsfDatPrev=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z24AsfDatPrev=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("ASFDATPREV",gx.fn.currentGridRowImpl(85),gx.O.A24AsfDatPrev,0)},c2v:function(){gx.O.A24AsfDatPrev=this.val()},val:function(){return gx.fn.getGridControlValue("ASFDATPREV",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[90]={lvl:143,type:"date",len:10,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:this.Valid_Asfdatefet,isvalid:null,fld:"ASFDATEFET",gxz:"Z23AsfDatEfet",gxold:"O23AsfDatEfet",gxvar:"A23AsfDatEfet",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[56,90,51,89],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A23AsfDatEfet=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z23AsfDatEfet=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("ASFDATEFET",gx.fn.currentGridRowImpl(85),gx.O.A23AsfDatEfet,0)},c2v:function(){gx.O.A23AsfDatEfet=this.val()},val:function(){return gx.fn.getGridControlValue("ASFDATEFET",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[91]={lvl:143,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"ASFNROEDIC",gxz:"Z30AsfNroEdic",gxold:"O30AsfNroEdic",gxvar:"A30AsfNroEdic",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A30AsfNroEdic=gx.num.intval(a)
},v2z:function(a){gx.O.Z30AsfNroEdic=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ASFNROEDIC",gx.fn.currentGridRowImpl(85),gx.O.A30AsfNroEdic,0)},c2v:function(){gx.O.A30AsfNroEdic=this.val()},val:function(){return gx.fn.getGridIntegerValue("ASFNROEDIC",gx.fn.currentGridRowImpl(85),".")},nac:function(){return false}};this.GXValidFnc[92]={lvl:143,type:"char",len:5,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASFNROVOLU",gxz:"Z33AsfNroVolu",gxold:"O33AsfNroVolu",gxvar:"A33AsfNroVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A33AsfNroVolu=a
},v2z:function(a){gx.O.Z33AsfNroVolu=a},v2c:function(){gx.fn.setGridControlValue("ASFNROVOLU",gx.fn.currentGridRowImpl(85),gx.O.A33AsfNroVolu,0)},c2v:function(){gx.O.A33AsfNroVolu=this.val()},val:function(){return gx.fn.getGridControlValue("ASFNROVOLU",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[93]={lvl:143,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"ASFNROANO",gxz:"Z28AsfNroAno",gxold:"O28AsfNroAno",gxvar:"A28AsfNroAno",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A28AsfNroAno=gx.num.intval(a)
},v2z:function(a){gx.O.Z28AsfNroAno=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ASFNROANO",gx.fn.currentGridRowImpl(85),gx.O.A28AsfNroAno,0)},c2v:function(){gx.O.A28AsfNroAno=this.val()},val:function(){return gx.fn.getGridIntegerValue("ASFNROANO",gx.fn.currentGridRowImpl(85),".")},nac:function(){return false}};this.GXValidFnc[94]={lvl:143,type:"char",len:12,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASFDESPERI",gxz:"Z25AsfDesPeri",gxold:"O25AsfDesPeri",gxvar:"A25AsfDesPeri",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A25AsfDesPeri=a
},v2z:function(a){gx.O.Z25AsfDesPeri=a},v2c:function(){gx.fn.setGridControlValue("ASFDESPERI",gx.fn.currentGridRowImpl(85),gx.O.A25AsfDesPeri,0)},c2v:function(){gx.O.A25AsfDesPeri=this.val()},val:function(){return gx.fn.getGridControlValue("ASFDESPERI",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[95]={lvl:143,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"ASFNROULTD",gxz:"Z32AsfNroUltD",gxold:"O32AsfNroUltD",gxvar:"A32AsfNroUltD",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A32AsfNroUltD=gx.num.intval(a)
},v2z:function(a){gx.O.Z32AsfNroUltD=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ASFNROULTD",gx.fn.currentGridRowImpl(85),gx.O.A32AsfNroUltD,0)},c2v:function(){gx.O.A32AsfNroUltD=this.val()},val:function(){return gx.fn.getGridIntegerValue("ASFNROULTD",gx.fn.currentGridRowImpl(85),".")},nac:function(){return false}};this.GXValidFnc[96]={lvl:143,type:"date",len:10,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASFDATDESC",gxz:"Z22AsfDatDesc",gxold:"O22AsfDatDesc",gxvar:"A22AsfDatDesc",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.A22AsfDatDesc=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z22AsfDatDesc=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("ASFDATDESC",gx.fn.currentGridRowImpl(85),gx.O.A22AsfDatDesc,0)},c2v:function(){gx.O.A22AsfDatDesc=this.val()},val:function(){return gx.fn.getGridControlValue("ASFDATDESC",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[97]={lvl:143,type:"char",len:10,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASFCAMPO1L",gxz:"Z20AsfCampo1L",gxold:"O20AsfCampo1L",gxvar:"A20AsfCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A20AsfCampo1L=a
},v2z:function(a){gx.O.Z20AsfCampo1L=a},v2c:function(){gx.fn.setGridControlValue("ASFCAMPO1L",gx.fn.currentGridRowImpl(85),gx.O.A20AsfCampo1L,0)},c2v:function(){gx.O.A20AsfCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("ASFCAMPO1L",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[98]={lvl:143,type:"char",len:15,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASFCAMPO2L",gxz:"Z21AsfCampo2L",gxold:"O21AsfCampo2L",gxvar:"A21AsfCampo2L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A21AsfCampo2L=a
},v2z:function(a){gx.O.Z21AsfCampo2L=a},v2c:function(){gx.fn.setGridControlValue("ASFCAMPO2L",gx.fn.currentGridRowImpl(85),gx.O.A21AsfCampo2L,0)},c2v:function(){gx.O.A21AsfCampo2L=this.val()},val:function(){return gx.fn.getGridControlValue("ASFCAMPO2L",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[99]={lvl:143,type:"char",len:1,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:this.Valid_Asfindfasc,isvalid:null,fld:"ASFINDFASC",gxz:"Z27AsfIndFasc",gxold:"O27AsfIndFasc",gxvar:"A27AsfIndFasc",ucs:[],op:[99],ip:[99],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A27AsfIndFasc=a
},v2z:function(a){gx.O.Z27AsfIndFasc=a},v2c:function(){gx.fn.setGridControlValue("ASFINDFASC",gx.fn.currentGridRowImpl(85),gx.O.A27AsfIndFasc,0)},c2v:function(){gx.O.A27AsfIndFasc=this.val()},val:function(){return gx.fn.getGridControlValue("ASFINDFASC",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[100]={lvl:143,type:"char",len:1,dec:0,sign:false,ro:0,grid:85,gxgrid:this.Grid1Container,fnc:this.Valid_Asfindause,isvalid:null,fld:"ASFINDAUSE",gxz:"Z26AsfIndAuse",gxold:"O26AsfIndAuse",gxvar:"A26AsfIndAuse",ucs:[],op:[100],ip:[100],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A26AsfIndAuse=a
},v2z:function(a){gx.O.Z26AsfIndAuse=a},v2c:function(){gx.fn.setGridControlValue("ASFINDAUSE",gx.fn.currentGridRowImpl(85),gx.O.A26AsfIndAuse,0)},c2v:function(){gx.O.A26AsfIndAuse=this.val()},val:function(){return gx.fn.getGridControlValue("ASFINDAUSE",gx.fn.currentGridRowImpl(85))},nac:function(){return false}};this.GXValidFnc[101]={lvl:143,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:85,gxgrid:this.Grid1Container,fnc:this.Valid_Asfnrodocu,isvalid:null,rgrid:[],fld:"ASFNRODOCU",gxz:"Z29AsfNroDocu",gxold:"O29AsfNroDocu",gxvar:"A29AsfNroDocu",ucs:[],op:[101],ip:[101],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A29AsfNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z29AsfNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ASFNRODOCU",gx.fn.currentGridRowImpl(85),gx.O.A29AsfNroDocu,0)},c2v:function(){gx.O.A29AsfNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("ASFNRODOCU",gx.fn.currentGridRowImpl(85),".")},nac:function(){return(this.Gx_mode=="INS")}};this.A57AssNro=0;this.Z57AssNro=0;this.O57AssNro=0;this.A642PerDesAbre="";this.Z642PerDesAbre="";this.O642PerDesAbre="";this.A643PerDesLong="";this.Z643PerDesLong="";
this.O643PerDesLong="";this.A654PerNroIssn="";this.Z654PerNroIssn="";this.O654PerNroIssn="";this.A683PrdCod="";this.Z683PrdCod="";this.O683PrdCod="";this.A11AexNroExer="";this.Z11AexNroExer="";this.O11AexNroExer="";this.A8AexDatInic=gx.date.nullDate();this.Z8AexDatInic=gx.date.nullDate();this.O8AexDatInic=gx.date.nullDate();this.A7AexDatFimR=gx.date.nullDate();this.Z7AexDatFimR=gx.date.nullDate();this.O7AexDatFimR=gx.date.nullDate();this.A51AssDatInic=gx.date.nullDate();this.Z51AssDatInic=gx.date.nullDate();
this.O51AssDatInic=gx.date.nullDate();this.A13AexQtdParc=0;this.Z13AexQtdParc=0;this.O13AexQtdParc=0;this.A14AexValTota=0;this.Z14AexValTota=0;this.O14AexValTota=0;this.A53AssIndCanc="";this.Z53AssIndCanc="";this.O53AssIndCanc="";this.A12AexQtdMese=0;this.Z12AexQtdMese=0;this.O12AexQtdMese=0;this.ZnRcdDeleted_143=0;this.OnRcdDeleted_143=0;this.Z31AsfNroSequ=0;this.O31AsfNroSequ=0;this.Z34AsfTipFasc="";this.O34AsfTipFasc="";this.Z24AsfDatPrev=gx.date.nullDate();this.O24AsfDatPrev=gx.date.nullDate();
this.Z23AsfDatEfet=gx.date.nullDate();this.O23AsfDatEfet=gx.date.nullDate();this.Z30AsfNroEdic=0;this.O30AsfNroEdic=0;this.Z33AsfNroVolu="";this.O33AsfNroVolu="";this.Z28AsfNroAno=0;this.O28AsfNroAno=0;this.Z25AsfDesPeri="";this.O25AsfDesPeri="";this.Z32AsfNroUltD=0;this.O32AsfNroUltD=0;this.Z22AsfDatDesc=gx.date.nullDate();this.O22AsfDatDesc=gx.date.nullDate();this.Z20AsfCampo1L="";this.O20AsfCampo1L="";this.Z21AsfCampo2L="";this.O21AsfCampo2L="";this.Z27AsfIndFasc="";this.O27AsfIndFasc="";this.Z26AsfIndAuse="";
this.O26AsfIndAuse="";this.Z29AsfNroDocu=0;this.O29AsfNroDocu=0;this.A31AsfNroSequ=0;this.A34AsfTipFasc="";this.A27AsfIndFasc="";this.A24AsfDatPrev=gx.date.nullDate();this.A23AsfDatEfet=gx.date.nullDate();this.A30AsfNroEdic=0;this.A33AsfNroVolu="";this.A28AsfNroAno=0;this.A25AsfDesPeri="";this.A32AsfNroUltD=0;this.A22AsfDatDesc=gx.date.nullDate();this.A20AsfCampo1L="";this.A21AsfCampo2L="";this.A26AsfIndAuse="";this.A29AsfNroDocu=0;this.A652PerNro=0;this.Gx_BScreen=0;this.ServerEvents=["e1157113_client","e1257113_client"];
this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.A652PerNro={id:"PERNRO",grid:0,type:"int"};this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars();this.LvlOlds[143]=["O29AsfNroDocu"]}tpet008.prototype=new gx.GxObject;gx.setParentObj(new tpet008());