gx.evt.autoSkip=false;function gx01u3(){this.ServerClass="Gx01U3";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV9pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV10pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV11pDoeNroSequencia=gx.fn.getIntegerValue("vPDOENROSEQUENCIA",".");this.AV12pCctCod=gx.fn.getControlValue("vPCCTCOD")};this.e138z2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e148z1_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,38,41];this.GXLastCtrlId=41;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx01u3",[],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(94,34,"CCEPCTADEB","Percentual a debitar","Selecionar","CcePctADeb","decimal",0,"px",5,5,"right",null,[],94,"CcePctADeb",true,1,false,false);this.Grid1Container.addSingleLineEdit(93,35,"CCECAMPO1L","Campo livre","","CceCampo1L","char",0,"px",10,10,"left",null,[],93,"CceCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(258,36,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",false,0,false,false);
this.Grid1Container.addSingleLineEdit(922,37,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",false,0,false,false);this.Grid1Container.addSingleLineEdit(281,38,"DOENROSEQU","Nro seqüência exemplar","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",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:"TEXTBLOCKCCEPCTADEBITAR",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:"vCCCEPCTADEBITAR",gxz:"ZV7cCcePctADebitar",gxold:"OV7cCcePctADebitar",gxvar:"AV7cCcePctADebitar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cCcePctADebitar=gx.fn.toDecimalValue(a,",",".")},v2z:function(a){gx.O.ZV7cCcePctADebitar=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCCCEPCTADEBITAR",gx.O.AV7cCcePctADebitar,1,",")
},c2v:function(){gx.O.AV7cCcePctADebitar=this.val()},val:function(){return gx.fn.getDecimalValue("vCCCEPCTADEBITAR",".",",")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKCCECAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCCECAMPO1LIVRE",gxz:"ZV8cCceCampo1Livre",gxold:"OV8cCceCampo1Livre",gxvar:"AV8cCceCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cCceCampo1Livre=a
},v2z:function(a){gx.O.ZV8cCceCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCCCECAMPO1LIVRE",gx.O.AV8cCceCampo1Livre,0)},c2v:function(){gx.O.AV8cCceCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCCCECAMPO1LIVRE")},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:"CCEPCTADEB",gxz:"Z94CcePctADeb",gxold:"O94CcePctADeb",gxvar:"A94CcePctADeb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A94CcePctADeb=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z94CcePctADeb=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CCEPCTADEB",gx.fn.currentGridRowImpl(31),gx.O.A94CcePctADeb,1,",")},c2v:function(){gx.O.A94CcePctADeb=this.val()},val:function(){return gx.fn.getGridDecimalValue("CCEPCTADEB",gx.fn.currentGridRowImpl(31),".",",")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CCECAMPO1L",gxz:"Z93CceCampo1L",gxold:"O93CceCampo1L",gxvar:"A93CceCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A93CceCampo1L=a
},v2z:function(a){gx.O.Z93CceCampo1L=a},v2c:function(){gx.fn.setGridControlValue("CCECAMPO1L",gx.fn.currentGridRowImpl(31),gx.O.A93CceCampo1L,0)},c2v:function(){gx.O.A93CceCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("CCECAMPO1L",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,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(31),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],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(31),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,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(31),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TABLE4",grid:0};this.AV6cCctCod="";this.ZV6cCctCod="";this.OV6cCctCod="";this.AV7cCcePctADebitar=0;this.ZV7cCcePctADebitar=0;this.OV7cCcePctADebitar=0;
this.AV8cCceCampo1Livre="";this.ZV8cCceCampo1Livre="";this.OV8cCceCampo1Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z97CctCod="";this.O97CctCod="";this.Z94CcePctADeb=0;this.O94CcePctADeb=0;this.Z93CceCampo1L="";this.O93CceCampo1L="";this.Z258DocNro=0;this.O258DocNro=0;this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.AV9pDocNro=0;this.AV10pUndCod=0;this.AV11pDoeNroSequencia=0;this.AV12pCctCod="";this.AV5LinkSelection="";this.A97CctCod="";this.A94CcePctADeb=0;
this.A93CceCampo1L="";this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.ServerEvents=["e138z2_client","e148z1_client"];this.VarControlMap.AV9pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV10pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV11pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV12pCctCod={id:"vPCCTCOD",grid:0,type:"char"};this.VarControlMap.AV9pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV10pUndCod={id:"vPUNDCOD",grid:0,type:"int"};
this.VarControlMap.AV11pDoeNroSequencia={id:"vPDOENROSEQUENCIA",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({rfrVar:"AV9pDocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV10pUndCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV11pDoeNroSequencia"});this.SetStandaloneVars()}gx01u3.prototype=new gx.GxObject;
gx.setParentObj(new gx01u3());