gx.evt.autoSkip=false;function tnpt001(){this.ServerClass="TNpt001";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Assnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Assnro",["gx.O.A57AssNro"],[]);return true};this.Valid_Aexnroexer=function(){gx.ajax.validSrvEvt("dyncall","valid_Aexnroexer",["gx.O.A57AssNro","gx.O.A11AexNroExer",'gx.date.urlDate(gx.O.A6AexDatAssi,"DMY")','gx.date.urlDate(gx.O.A8AexDatInic,"DMY")',"gx.O.A12AexQtdMese",'gx.date.urlDate(gx.O.A7AexDatFimR,"DMY")',"gx.O.A14AexValTota","gx.O.A13AexQtdParc","gx.O.A10AexNroAuto","gx.O.A9AexIndVige","gx.O.A5AexCampo1L","gx.O.A433ForCod"],["A6AexDatAssi","A8AexDatInic","A12AexQtdMese","A7AexDatFimR","A14AexValTota","A13AexQtdParc","A10AexNroAuto","A433ForCod","A9AexIndVige","A5AexCampo1L","A444ForNomComp","A449ForNroFone","Gx_mode","Z57AssNro","Z11AexNroExer","Z6AexDatAssi","Z8AexDatInic","Z12AexQtdMese","Z7AexDatFimR","Z14AexValTota","Z13AexQtdParc","Z10AexNroAuto","Z433ForCod","Z9AexIndVige","Z5AexCampo1L","Z444ForNomComp","Z449ForNroFone",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Forcod=function(){gx.ajax.validSrvEvt("dyncall","valid_Forcod",["gx.O.A433ForCod","gx.O.A444ForNomComp","gx.O.A449ForNroFone"],["A444ForNomComp","A449ForNroFone"]);return true};this.e114z113_client=function(){this.executeServerEvent("ENTER",true)};this.e124z113_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,29,31,34,36,39,41,44,46,49,51,54,56,59,61,64,66,69,71,74,76,79,81,84,86,94,95];this.GXLastCtrlId=95;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:0,grid:0,gxgrid:null,fnc:this.Valid_Assnro,isvalid:null,rgrid:[],fld:"ASSNRO",gxz:"Z57AssNro",gxold:"O57AssNro",gxvar:"A57AssNro",ucs:[],op:[],ip:[20],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:4,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Aexnroexer,isvalid:null,fld:"AEXNROEXER",gxz:"Z11AexNroExer",gxold:"O11AexNroExer",gxvar:"A11AexNroExer",ucs:[],op:[66,86,81,61,56,51,46,41,36,31],ip:[66,86,81,61,56,51,46,41,36,31,25,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[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AEXDATASSI",gxz:"Z6AexDatAssi",gxold:"O6AexDatAssi",gxvar:"A6AexDatAssi",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.A6AexDatAssi=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z6AexDatAssi=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("AEXDATASSI",gx.O.A6AexDatAssi,0)},c2v:function(){gx.O.A6AexDatAssi=this.val()},val:function(){return gx.fn.getControlValue("AEXDATASSI")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,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[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={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[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,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[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,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[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={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[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"char",len:12,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AEXNROAUTO",gxz:"Z10AexNroAuto",gxold:"O10AexNroAuto",gxvar:"A10AexNroAuto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A10AexNroAuto=a
},v2z:function(a){gx.O.Z10AexNroAuto=a},v2c:function(){gx.fn.setControlValue("AEXNROAUTO",gx.O.A10AexNroAuto,0)},c2v:function(){gx.O.A10AexNroAuto=this.val()},val:function(){return gx.fn.getControlValue("AEXNROAUTO")},nac:function(){return false}};this.GXValidFnc[64]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[66]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Forcod,isvalid:null,rgrid:[],fld:"FORCOD",gxz:"Z433ForCod",gxold:"O433ForCod",gxvar:"A433ForCod",ucs:[],op:[76,71],ip:[76,71,66],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A433ForCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z433ForCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("FORCOD",gx.O.A433ForCod,0)},c2v:function(){gx.O.A433ForCod=this.val()},val:function(){return gx.fn.getIntegerValue("FORCOD",".")},nac:function(){return false}};this.GXValidFnc[69]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[71]={lvl:0,type:"char",len:60,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FORNOMCOMP",gxz:"Z444ForNomComp",gxold:"O444ForNomComp",gxvar:"A444ForNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A444ForNomComp=a
},v2z:function(a){gx.O.Z444ForNomComp=a},v2c:function(){gx.fn.setControlValue("FORNOMCOMP",gx.O.A444ForNomComp,0)},c2v:function(){gx.O.A444ForNomComp=this.val()},val:function(){return gx.fn.getControlValue("FORNOMCOMP")},nac:function(){return false}};this.GXValidFnc[74]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[76]={lvl:0,type:"char",len:16,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"FORNROFONE",gxz:"Z449ForNroFone",gxold:"O449ForNroFone",gxvar:"A449ForNroFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A449ForNroFone=a
},v2z:function(a){gx.O.Z449ForNroFone=a},v2c:function(){gx.fn.setControlValue("FORNROFONE",gx.O.A449ForNroFone,0)},c2v:function(){gx.O.A449ForNroFone=this.val()},val:function(){return gx.fn.getControlValue("FORNROFONE")},nac:function(){return false}};this.GXValidFnc[79]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[81]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AEXINDVIGE",gxz:"Z9AexIndVige",gxold:"O9AexIndVige",gxvar:"A9AexIndVige",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A9AexIndVige=a
},v2z:function(a){gx.O.Z9AexIndVige=a},v2c:function(){gx.fn.setComboBoxValue("AEXINDVIGE",gx.O.A9AexIndVige)},c2v:function(){gx.O.A9AexIndVige=this.val()},val:function(){return gx.fn.getControlValue("AEXINDVIGE")},nac:function(){return false}};this.GXValidFnc[84]={fld:"TEXTBLOCK14",format:0,grid:0};this.GXValidFnc[86]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"AEXCAMPO1L",gxz:"Z5AexCampo1L",gxold:"O5AexCampo1L",gxvar:"A5AexCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A5AexCampo1L=a
},v2z:function(a){gx.O.Z5AexCampo1L=a},v2c:function(){gx.fn.setControlValue("AEXCAMPO1L",gx.O.A5AexCampo1L,0)},c2v:function(){gx.O.A5AexCampo1L=this.val()},val:function(){return gx.fn.getControlValue("AEXCAMPO1L")},nac:function(){return false}};this.GXValidFnc[94]={fld:"PROMPT_57",grid:113};this.GXValidFnc[95]={fld:"PROMPT_433",grid:113};this.A57AssNro=0;this.Z57AssNro=0;this.O57AssNro=0;this.A11AexNroExer="";this.Z11AexNroExer="";this.O11AexNroExer="";this.A6AexDatAssi=gx.date.nullDate();this.Z6AexDatAssi=gx.date.nullDate();
this.O6AexDatAssi=gx.date.nullDate();this.A8AexDatInic=gx.date.nullDate();this.Z8AexDatInic=gx.date.nullDate();this.O8AexDatInic=gx.date.nullDate();this.A12AexQtdMese=0;this.Z12AexQtdMese=0;this.O12AexQtdMese=0;this.A7AexDatFimR=gx.date.nullDate();this.Z7AexDatFimR=gx.date.nullDate();this.O7AexDatFimR=gx.date.nullDate();this.A14AexValTota=0;this.Z14AexValTota=0;this.O14AexValTota=0;this.A13AexQtdParc=0;this.Z13AexQtdParc=0;this.O13AexQtdParc=0;this.A10AexNroAuto="";this.Z10AexNroAuto="";this.O10AexNroAuto="";
this.A433ForCod=0;this.Z433ForCod=0;this.O433ForCod=0;this.A444ForNomComp="";this.Z444ForNomComp="";this.O444ForNomComp="";this.A449ForNroFone="";this.Z449ForNroFone="";this.O449ForNroFone="";this.A9AexIndVige="";this.Z9AexIndVige="";this.O9AexIndVige="";this.A5AexCampo1L="";this.Z5AexCampo1L="";this.O5AexCampo1L="";this.ServerEvents=["e114z113_client","e124z113_client"];this.setPrompt("PROMPT_57",[20]);this.setPrompt("PROMPT_433",[66]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.SetStandaloneVars()}tnpt001.prototype=new gx.GxObject;gx.setParentObj(new tnpt001());