gx.evt.autoSkip=false;function timt023(){this.ServerClass="TImt023";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A14AexValTota=gx.fn.getDecimalValue("AEXVALTOTA",".",",");this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE");this.A17AscCampo1L=gx.fn.getControlValue("ASCCAMPO1L")};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.num.urlDecimal(gx.O.A14AexValTota,'.',',')"],["A14AexValTota","Gx_mode","Z57AssNro","Z11AexNroExer","Z14AexValTota","Grid1",["BUTTON5","Enabled"],["BUTTON1","Enabled"]]);return true};this.Valid_Cctcod=function(){this.sMode114=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(114,40);this.standaloneModal3L114();this.standaloneNotModal3L114();
if(gx.fn.currentGridRowImpl(40)===0){return true}var a=gx.util.balloon.getNew("CCTCOD",gx.fn.currentGridRowImpl(40));if(gx.fn.gridDuplicateKey(41)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1;return a.show()}gx.ajax.validSrvEvt("dyncall","Valid_Cctcod",["gx.O.A97CctCod","gx.O.A98CctNomCent"],["A98CctNomCent"]);this.Gx_mode=this.sMode114;return true};this.Valid_Ascpctadeb=function(){try{if(gx.fn.currentGridRowImpl(40)===0){return true}var a=gx.util.balloon.getNew("ASCPCTADEB",gx.fn.currentGridRowImpl(40));
this.AnyError=0;this.sMode114=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(114,40);try{this.A19AscValADeb=gx.num.round((this.A14AexValTota*this.A18AscPctADeb)/100,2)}catch(b){}}catch(b){}try{this.Gx_mode=this.sMode114;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal3L114=function(){try{if((this.Gx_mode=="INS")&&(0==this.A18AscPctADeb)&&this.Gx_BScreen==0){this.A18AscPctADeb=100}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("CCTCOD","Enabled",0)}else{gx.fn.setCtrlProperty("CCTCOD","Enabled",1)
}}catch(a){}return true};this.standaloneNotModal3L114=function(){return true};this.e123l2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e133l113_client=function(){this.executeServerEvent("ENTER",true)};this.e143l113_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,16,19,22,24,27,29,32,36,41,42,43,44];this.GXLastCtrlId=44;this.Grid1Container=new gx.grid.grid(this,114,"Level1",40,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt023",[97],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(97,41,"CCTCOD","Centro","","CctCod","char",0,"px",8,8,"left",null,[],97,"CctCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_97","PROMPT_97",46,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(98,42,"CCTNOMCENT","Nome","","CctNomCent","char",0,"px",35,35,"left",null,[],98,"CctNomCent",true,0,false,false);this.Grid1Container.addSingleLineEdit(18,43,"ASCPCTADEB","% a debitar","","AscPctADeb","decimal",0,"px",5,5,"right",null,[],18,"AscPctADeb",true,1,false,false);
this.Grid1Container.addSingleLineEdit(19,44,"ASCVALADEB","Valor","","AscValADeb","decimal",0,"px",10,10,"right",null,[],19,"AscValADeb",true,2,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE3",grid:0};this.GXValidFnc[19]={fld:"TABLE2",grid:0};this.GXValidFnc[22]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[24]={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[27]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[29]={fld:"TABLE4",grid:0};this.GXValidFnc[32]={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:[],ip:[32,24],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[36]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vPERDESABREVTITULO",gxz:"ZV7PerDesAbrevTitulo",gxold:"OV7PerDesAbrevTitulo",gxvar:"AV7PerDesAbrevTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7PerDesAbrevTitulo=a
},v2z:function(a){gx.O.ZV7PerDesAbrevTitulo=a},v2c:function(){gx.fn.setControlValue("vPERDESABREVTITULO",gx.O.AV7PerDesAbrevTitulo,0)},c2v:function(){gx.O.AV7PerDesAbrevTitulo=this.val()},val:function(){return gx.fn.getControlValue("vPERDESABREVTITULO")},nac:function(){return false}};this.GXValidFnc[41]={lvl:114,type:"char",len:8,dec:0,sign:false,ro:0,grid:40,gxgrid:this.Grid1Container,fnc:this.Valid_Cctcod,isvalid:null,fld:"CCTCOD",gxz:"Z97CctCod",gxold:"O97CctCod",gxvar:"A97CctCod",ucs:[],op:[43,42],ip:[43,42,41],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A97CctCod=a
},v2z:function(a){gx.O.Z97CctCod=a},v2c:function(){gx.fn.setGridControlValue("CCTCOD",gx.fn.currentGridRowImpl(40),gx.O.A97CctCod,0)},c2v:function(){gx.O.A97CctCod=this.val()},val:function(){return gx.fn.getGridControlValue("CCTCOD",gx.fn.currentGridRowImpl(40))},nac:function(){return false}};this.GXValidFnc[42]={lvl:114,type:"char",len:35,dec:0,sign:false,ro:1,grid:40,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CCTNOMCENT",gxz:"Z98CctNomCent",gxold:"O98CctNomCent",gxvar:"A98CctNomCent",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A98CctNomCent=a
},v2z:function(a){gx.O.Z98CctNomCent=a},v2c:function(){gx.fn.setGridControlValue("CCTNOMCENT",gx.fn.currentGridRowImpl(40),gx.O.A98CctNomCent,0)},c2v:function(){gx.O.A98CctNomCent=this.val()},val:function(){return gx.fn.getGridControlValue("CCTNOMCENT",gx.fn.currentGridRowImpl(40))},nac:function(){return false}};this.GXValidFnc[43]={lvl:114,type:"decimal",len:5,dec:1,sign:false,pic:"ZZ9.9",ro:0,grid:40,gxgrid:this.Grid1Container,fnc:this.Valid_Ascpctadeb,isvalid:null,rgrid:[],fld:"ASCPCTADEB",gxz:"Z18AscPctADeb",gxold:"O18AscPctADeb",gxvar:"A18AscPctADeb",ucs:[],op:[44],ip:[44,43],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A18AscPctADeb=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z18AscPctADeb=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("ASCPCTADEB",gx.fn.currentGridRowImpl(40),gx.O.A18AscPctADeb,1,",")},c2v:function(){gx.O.A18AscPctADeb=this.val()},val:function(){return gx.fn.getGridDecimalValue("ASCPCTADEB",gx.fn.currentGridRowImpl(40),".",",")},nac:function(){return false}};this.GXValidFnc[44]={lvl:114,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:1,grid:40,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"ASCVALADEB",gxz:"Z19AscValADeb",gxold:"O19AscValADeb",gxvar:"A19AscValADeb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A19AscValADeb=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z19AscValADeb=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("ASCVALADEB",gx.fn.currentGridRowImpl(40),gx.O.A19AscValADeb,2,",")},c2v:function(){gx.O.A19AscValADeb=this.val()},val:function(){return gx.fn.getGridDecimalValue("ASCVALADEB",gx.fn.currentGridRowImpl(40),".",",")},nac:function(){return false}};this.A57AssNro=0;this.Z57AssNro=0;this.O57AssNro=0;this.A11AexNroExer="";this.Z11AexNroExer="";this.O11AexNroExer="";this.AV7PerDesAbrevTitulo="";
this.ZV7PerDesAbrevTitulo="";this.OV7PerDesAbrevTitulo="";this.Z97CctCod="";this.O97CctCod="";this.Z98CctNomCent="";this.O98CctNomCent="";this.Z18AscPctADeb=0;this.O18AscPctADeb=0;this.Z19AscValADeb=0;this.O19AscValADeb=0;this.A97CctCod="";this.A18AscPctADeb=0;this.A19AscValADeb=0;this.A98CctNomCent="";this.A17AscCampo1L="";this.AV9UsuCodCorr="";this.AV10UsuCodUnidDepositaria=0;this.AV8PerDesLongoTitulo="";this.Gx_BScreen=0;this.A14AexValTota=0;this.ServerEvents=["e123l2_client","e133l113_client","e143l113_client"];
this.setPrompt("PROMPT_97",[41]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.A14AexValTota={id:"AEXVALTOTA",grid:0,type:"decimal"};this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.A17AscCampo1L={id:"ASCCAMPO1L",grid:40,type:"char"};this.SetStandaloneVars()}timt023.prototype=new gx.GxObject;gx.setParentObj(new timt023());