gx.evt.autoSkip=false;function gx0362(){this.ServerClass="Gx0362";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV9pAssNro=gx.fn.getIntegerValue("vPASSNRO",".");this.AV10pAexNroExercicio=gx.fn.getControlValue("vPAEXNROEXERCICIO");this.AV11pCctCod=gx.fn.getControlValue("vPCCTCOD")};this.e138y2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e148y1_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,28,32,33,34,35,36,37,40];this.GXLastCtrlId=40;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0362",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",32,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(97,33,"CCTCOD","Centro de custo","","CctCod","char",0,"px",8,8,"left",null,[],97,"CctCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(18,34,"ASCPCTADEB","Pct a debitar","Selecionar","AscPctADeb","decimal",0,"px",5,5,"right",null,[],18,"AscPctADeb",true,1,false,false);this.Grid1Container.addSingleLineEdit(17,35,"ASCCAMPO1L","Campo livre 1","","AscCampo1L","char",0,"px",30,30,"left",null,[],17,"AscCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(57,36,"ASSNRO","Assinatura","","AssNro","int",0,"px",5,5,"right",null,[],57,"AssNro",false,0,false,false);this.Grid1Container.addSingleLineEdit(11,37,"AEXNROEXER","Exercício","","AexNroExer","char",0,"px",4,4,"left",null,[],11,"AexNroExer",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:"TEXTBLOCKCCTCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCCTCOD",gxz:"ZV6cCctCod",gxold:"OV6cCctCod",gxvar:"AV6cCctCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cCctCod=a},v2z:function(a){gx.O.ZV6cCctCod=a
},v2c:function(){gx.fn.setControlValue("vCCCTCOD",gx.O.AV6cCctCod,0)},c2v:function(){gx.O.AV6cCctCod=this.val()},val:function(){return gx.fn.getControlValue("vCCCTCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKASCPCTADEBITAR",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"decimal",len:5,dec:1,sign:false,pic:"ZZ9.9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCASCPCTADEBITAR",gxz:"ZV7cAscPctADebitar",gxold:"OV7cAscPctADebitar",gxvar:"AV7cAscPctADebitar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cAscPctADebitar=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV7cAscPctADebitar=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCASCPCTADEBITAR",gx.O.AV7cAscPctADebitar,1,",")},c2v:function(){gx.O.AV7cAscPctADebitar=this.val()},val:function(){return gx.fn.getDecimalValue("vCASCPCTADEBITAR",".",",")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKASCCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCASCCAMPO1LIVRE",gxz:"ZV8cAscCampo1Livre",gxold:"OV8cAscCampo1Livre",gxvar:"AV8cAscCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cAscCampo1Livre=a
},v2z:function(a){gx.O.ZV8cAscCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCASCCAMPO1LIVRE",gx.O.AV8cAscCampo1Livre,0)},c2v:function(){gx.O.AV8cAscCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCASCCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[27]={fld:"GROUP2",grid:0};this.GXValidFnc[28]={fld:"TABLE3",grid:0};this.GXValidFnc[32]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:31,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(31))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CCTCOD",gxz:"Z97CctCod",gxold:"O97CctCod",gxvar:"A97CctCod",ucs:[],op:[],ip:[],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(31),gx.O.A97CctCod,0)},c2v:function(){gx.O.A97CctCod=this.val()},val:function(){return gx.fn.getGridControlValue("CCTCOD",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"decimal",len:5,dec:1,sign:false,pic:"ZZ9.9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASCPCTADEB",gxz:"Z18AscPctADeb",gxold:"O18AscPctADeb",gxvar:"A18AscPctADeb",ucs:[],op:[],ip:[],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(31),gx.O.A18AscPctADeb,1,",")},c2v:function(){gx.O.A18AscPctADeb=this.val()},val:function(){return gx.fn.getGridDecimalValue("ASCPCTADEB",gx.fn.currentGridRowImpl(31),".",",")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASCCAMPO1L",gxz:"Z17AscCampo1L",gxold:"O17AscCampo1L",gxvar:"A17AscCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A17AscCampo1L=a
},v2z:function(a){gx.O.Z17AscCampo1L=a},v2c:function(){gx.fn.setGridControlValue("ASCCAMPO1L",gx.fn.currentGridRowImpl(31),gx.O.A17AscCampo1L,0)},c2v:function(){gx.O.A17AscCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("ASCCAMPO1L",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],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.setGridControlValue("ASSNRO",gx.fn.currentGridRowImpl(31),gx.O.A57AssNro,0)},c2v:function(){gx.O.A57AssNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("ASSNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:4,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"AEXNROEXER",gxz:"Z11AexNroExer",gxold:"O11AexNroExer",gxvar:"A11AexNroExer",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A11AexNroExer=a
},v2z:function(a){gx.O.Z11AexNroExer=a},v2c:function(){gx.fn.setGridControlValue("AEXNROEXER",gx.fn.currentGridRowImpl(31),gx.O.A11AexNroExer,0)},c2v:function(){gx.O.A11AexNroExer=this.val()},val:function(){return gx.fn.getGridControlValue("AEXNROEXER",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[40]={fld:"TABLE4",grid:0};this.AV6cCctCod="";this.ZV6cCctCod="";this.OV6cCctCod="";this.AV7cAscPctADebitar=0;this.ZV7cAscPctADebitar=0;this.OV7cAscPctADebitar=0;this.AV8cAscCampo1Livre="";
this.ZV8cAscCampo1Livre="";this.OV8cAscCampo1Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z97CctCod="";this.O97CctCod="";this.Z18AscPctADeb=0;this.O18AscPctADeb=0;this.Z17AscCampo1L="";this.O17AscCampo1L="";this.Z57AssNro=0;this.O57AssNro=0;this.Z11AexNroExer="";this.O11AexNroExer="";this.AV9pAssNro=0;this.AV10pAexNroExercicio="";this.AV11pCctCod="";this.AV5LinkSelection="";this.A97CctCod="";this.A18AscPctADeb=0;this.A17AscCampo1L="";this.A57AssNro=0;this.A11AexNroExer="";this.ServerEvents=["e138y2_client","e148y1_client"];
this.VarControlMap.AV9pAssNro={id:"vPASSNRO",grid:0,type:"int"};this.VarControlMap.AV10pAexNroExercicio={id:"vPAEXNROEXERCICIO",grid:0,type:"char"};this.VarControlMap.AV11pCctCod={id:"vPCCTCOD",grid:0,type:"char"};this.VarControlMap.AV9pAssNro={id:"vPASSNRO",grid:0,type:"int"};this.VarControlMap.AV10pAexNroExercicio={id:"vPAEXNROEXERCICIO",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);
this.Grid1Container.addRefreshingVar({rfrVar:"AV9pAssNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV10pAexNroExercicio"});this.SetStandaloneVars()}gx0362.prototype=new gx.GxObject;gx.setParentObj(new gx0362());