gx.evt.autoSkip=false;function gx00c1(){this.ServerClass="Gx00C1";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pTiuCod=gx.fn.getControlValue("vPTIUCOD");this.AV13pCaeCod=gx.fn.getIntegerValue("vPCAECOD",".")};this.e139e2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149e1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,43,47,48,49,50,51,52,53,56];
this.GXLastCtrlId=56;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00c1",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",47,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(79,48,"CAECOD","Código","","CaeCod","int",0,"px",3,3,"right",null,[],79,"CaeCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(904,49,"TREQTDDIAS","Prazo (Dias/horas) para devolução","Selecionar","TreQtdDias","int",0,"px",3,3,"right",null,[],904,"TreQtdDias",true,0,false,false);
this.Grid1Container.addSingleLineEdit(906,50,"TREQTDTIPD","Qtd. p/ tipo de documento","","TreQtdTipD","int",0,"px",5,5,"right",null,[],906,"TreQtdTipD",true,0,false,false);this.Grid1Container.addSingleLineEdit(901,51,"TRECAMPO1L","Campo livre 1","","TreCampo1L","char",0,"px",20,20,"left",null,[],901,"TreCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(905,52,"TREQTDSUSP","Dias suspensão por atraso","","TreQtdSusp","int",0,"px",4,4,"right",null,[],905,"TreQtdSusp",true,0,false,false);
this.Grid1Container.addSingleLineEdit(883,53,"TIUCOD","Tipo de leitor","","TiuCod","char",0,"px",3,3,"left",null,[],883,"TiuCod",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:"TEXTBLOCKCAECOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCCAECOD",gxz:"ZV6cCaeCod",gxold:"OV6cCaeCod",gxvar:"AV6cCaeCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cCaeCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cCaeCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCAECOD",gx.O.AV6cCaeCod,0)},c2v:function(){gx.O.AV6cCaeCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCCAECOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKTREQTDDIASDEVOLUCAO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCTREQTDDIASDEVOLUCAO",gxz:"ZV7cTreQtdDiasDevolucao",gxold:"OV7cTreQtdDiasDevolucao",gxvar:"AV7cTreQtdDiasDevolucao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cTreQtdDiasDevolucao=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cTreQtdDiasDevolucao=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTREQTDDIASDEVOLUCAO",gx.O.AV7cTreQtdDiasDevolucao,0)},c2v:function(){gx.O.AV7cTreQtdDiasDevolucao=this.val()},val:function(){return gx.fn.getIntegerValue("vCTREQTDDIASDEVOLUCAO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKTREQTDTIPDOCTOS",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCTREQTDTIPDOCTOS",gxz:"ZV8cTreQtdTipDoctos",gxold:"OV8cTreQtdTipDoctos",gxvar:"AV8cTreQtdTipDoctos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cTreQtdTipDoctos=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cTreQtdTipDoctos=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTREQTDTIPDOCTOS",gx.O.AV8cTreQtdTipDoctos,0)},c2v:function(){gx.O.AV8cTreQtdTipDoctos=this.val()},val:function(){return gx.fn.getIntegerValue("vCTREQTDTIPDOCTOS",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKTRECAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTRECAMPO1LIVRE",gxz:"ZV9cTreCampo1Livre",gxold:"OV9cTreCampo1Livre",gxvar:"AV9cTreCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cTreCampo1Livre=a
},v2z:function(a){gx.O.ZV9cTreCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCTRECAMPO1LIVRE",gx.O.AV9cTreCampo1Livre,0)},c2v:function(){gx.O.AV9cTreCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCTRECAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKTREQTDSUSPENSAOATRASODIAS",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCTREQTDSUSPENSAOATRASODIAS",gxz:"ZV10cTreQtdSuspensaoAtrasoDias",gxold:"OV10cTreQtdSuspensaoAtrasoDias",gxvar:"AV10cTreQtdSuspensaoAtrasoDias",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cTreQtdSuspensaoAtrasoDias=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cTreQtdSuspensaoAtrasoDias=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTREQTDSUSPENSAOATRASODIAS",gx.O.AV10cTreQtdSuspensaoAtrasoDias,0)},c2v:function(){gx.O.AV10cTreQtdSuspensaoAtrasoDias=this.val()},val:function(){return gx.fn.getIntegerValue("vCTREQTDSUSPENSAOATRASODIAS",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKTRETIPPRAZO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTRETIPPRAZO",gxz:"ZV11cTreTipPrazo",gxold:"OV11cTreTipPrazo",gxvar:"AV11cTreTipPrazo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV11cTreTipPrazo=a
},v2z:function(a){gx.O.ZV11cTreTipPrazo=a},v2c:function(){gx.fn.setComboBoxValue("vCTRETIPPRAZO",gx.O.AV11cTreTipPrazo)},c2v:function(){gx.O.AV11cTreTipPrazo=this.val()},val:function(){return gx.fn.getControlValue("vCTRETIPPRAZO")},nac:function(){return false}};this.GXValidFnc[42]={fld:"GROUP2",grid:0};this.GXValidFnc[43]={fld:"TABLE3",grid:0};this.GXValidFnc[47]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:46,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(46))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CAECOD",gxz:"Z79CaeCod",gxold:"O79CaeCod",gxvar:"A79CaeCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A79CaeCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z79CaeCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CAECOD",gx.fn.currentGridRowImpl(46),gx.O.A79CaeCod,0)},c2v:function(){gx.O.A79CaeCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CAECOD",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TREQTDDIAS",gxz:"Z904TreQtdDias",gxold:"O904TreQtdDias",gxvar:"A904TreQtdDias",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A904TreQtdDias=gx.num.intval(a)
},v2z:function(a){gx.O.Z904TreQtdDias=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TREQTDDIAS",gx.fn.currentGridRowImpl(46),gx.O.A904TreQtdDias,0)},c2v:function(){gx.O.A904TreQtdDias=this.val()},val:function(){return gx.fn.getGridIntegerValue("TREQTDDIAS",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TREQTDTIPD",gxz:"Z906TreQtdTipD",gxold:"O906TreQtdTipD",gxvar:"A906TreQtdTipD",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A906TreQtdTipD=gx.num.intval(a)
},v2z:function(a){gx.O.Z906TreQtdTipD=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TREQTDTIPD",gx.fn.currentGridRowImpl(46),gx.O.A906TreQtdTipD,0)},c2v:function(){gx.O.A906TreQtdTipD=this.val()},val:function(){return gx.fn.getGridIntegerValue("TREQTDTIPD",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TRECAMPO1L",gxz:"Z901TreCampo1L",gxold:"O901TreCampo1L",gxvar:"A901TreCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A901TreCampo1L=a
},v2z:function(a){gx.O.Z901TreCampo1L=a},v2c:function(){gx.fn.setGridControlValue("TRECAMPO1L",gx.fn.currentGridRowImpl(46),gx.O.A901TreCampo1L,0)},c2v:function(){gx.O.A901TreCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("TRECAMPO1L",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TREQTDSUSP",gxz:"Z905TreQtdSusp",gxold:"O905TreQtdSusp",gxvar:"A905TreQtdSusp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A905TreQtdSusp=gx.num.intval(a)
},v2z:function(a){gx.O.Z905TreQtdSusp=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TREQTDSUSP",gx.fn.currentGridRowImpl(46),gx.O.A905TreQtdSusp,0)},c2v:function(){gx.O.A905TreQtdSusp=this.val()},val:function(){return gx.fn.getGridIntegerValue("TREQTDSUSP",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIUCOD",gxz:"Z883TiuCod",gxold:"O883TiuCod",gxvar:"A883TiuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A883TiuCod=a
},v2z:function(a){gx.O.Z883TiuCod=a},v2c:function(){gx.fn.setGridControlValue("TIUCOD",gx.fn.currentGridRowImpl(46),gx.O.A883TiuCod,0)},c2v:function(){gx.O.A883TiuCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIUCOD",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[56]={fld:"TABLE4",grid:0};this.AV6cCaeCod=0;this.ZV6cCaeCod=0;this.OV6cCaeCod=0;this.AV7cTreQtdDiasDevolucao=0;this.ZV7cTreQtdDiasDevolucao=0;this.OV7cTreQtdDiasDevolucao=0;this.AV8cTreQtdTipDoctos=0;
this.ZV8cTreQtdTipDoctos=0;this.OV8cTreQtdTipDoctos=0;this.AV9cTreCampo1Livre="";this.ZV9cTreCampo1Livre="";this.OV9cTreCampo1Livre="";this.AV10cTreQtdSuspensaoAtrasoDias=0;this.ZV10cTreQtdSuspensaoAtrasoDias=0;this.OV10cTreQtdSuspensaoAtrasoDias=0;this.AV11cTreTipPrazo="";this.ZV11cTreTipPrazo="";this.OV11cTreTipPrazo="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z79CaeCod=0;this.O79CaeCod=0;this.Z904TreQtdDias=0;this.O904TreQtdDias=0;this.Z906TreQtdTipD=0;this.O906TreQtdTipD=0;this.Z901TreCampo1L="";
this.O901TreCampo1L="";this.Z905TreQtdSusp=0;this.O905TreQtdSusp=0;this.Z883TiuCod="";this.O883TiuCod="";this.AV12pTiuCod="";this.AV13pCaeCod=0;this.A907TreTipPraz="";this.AV5LinkSelection="";this.A79CaeCod=0;this.A904TreQtdDias=0;this.A906TreQtdTipD=0;this.A901TreCampo1L="";this.A905TreQtdSusp=0;this.A883TiuCod="";this.ServerEvents=["e139e2_client","e149e1_client"];this.VarControlMap.AV12pTiuCod={id:"vPTIUCOD",grid:0,type:"char"};this.VarControlMap.AV13pCaeCod={id:"vPCAECOD",grid:0,type:"int"};this.VarControlMap.AV12pTiuCod={id:"vPTIUCOD",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(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar({rfrVar:"AV12pTiuCod"});this.SetStandaloneVars()}gx00c1.prototype=new gx.GxObject;gx.setParentObj(new gx00c1());