gx.evt.autoSkip=false;function gx00b0(){this.ServerClass="Gx00B0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pTiuCod=gx.fn.getControlValue("vPTIUCOD")};this.e139d2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149d1_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,44,47,48,52,53,54,55,56,57,58,61];
this.GXLastCtrlId=61;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00b0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(883,53,"TIUCOD","Tipo de leitor","","TiuCod","char",0,"px",3,3,"left",null,[],883,"TiuCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(884,54,"TIUDES","Descrição","Selecionar","TiuDes","char",0,"px",30,30,"left",null,[],884,"TiuDes",true,0,false,false);this.Grid1Container.addSingleLineEdit(889,55,"TIUQTDMAXD","Qtd Max de documentos","","TiuQtdMaxD","int",0,"px",5,5,"right",null,[],889,"TiuQtdMaxD",true,0,false,false);this.Grid1Container.addComboBox(888,56,"TIUINDPAGA","Paga multa","TiuIndPaga","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(885,57,"TIUDESCAMP","Campo livre","","TiuDesCamp","char",0,"px",20,20,"left",null,[],885,"TiuDesCamp",true,0,false,false);
this.Grid1Container.addSingleLineEdit(890,58,"TIUQTDRENO","Qtd. renovações permitidas","","TiuQtdReno","int",0,"px",2,2,"right",null,[],890,"TiuQtdReno",true,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:"TEXTBLOCKTIUCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIUCOD",gxz:"ZV6cTiuCod",gxold:"OV6cTiuCod",gxvar:"AV6cTiuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cTiuCod=a
},v2z:function(a){gx.O.ZV6cTiuCod=a},v2c:function(){gx.fn.setControlValue("vCTIUCOD",gx.O.AV6cTiuCod,0)},c2v:function(){gx.O.AV6cTiuCod=this.val()},val:function(){return gx.fn.getControlValue("vCTIUCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKTIUDES",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIUDES",gxz:"ZV7cTiuDes",gxold:"OV7cTiuDes",gxvar:"AV7cTiuDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cTiuDes=a
},v2z:function(a){gx.O.ZV7cTiuDes=a},v2c:function(){gx.fn.setControlValue("vCTIUDES",gx.O.AV7cTiuDes,0)},c2v:function(){gx.O.AV7cTiuDes=this.val()},val:function(){return gx.fn.getControlValue("vCTIUDES")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKTIUQTDMAXDOCUMENTOS",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:"vCTIUQTDMAXDOCUMENTOS",gxz:"ZV8cTiuQtdMaxDocumentos",gxold:"OV8cTiuQtdMaxDocumentos",gxvar:"AV8cTiuQtdMaxDocumentos",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cTiuQtdMaxDocumentos=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cTiuQtdMaxDocumentos=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTIUQTDMAXDOCUMENTOS",gx.O.AV8cTiuQtdMaxDocumentos,0)},c2v:function(){gx.O.AV8cTiuQtdMaxDocumentos=this.val()},val:function(){return gx.fn.getIntegerValue("vCTIUQTDMAXDOCUMENTOS",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKTIUINDPAGAMULTA",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIUINDPAGAMULTA",gxz:"ZV9cTiuIndPagaMulta",gxold:"OV9cTiuIndPagaMulta",gxvar:"AV9cTiuIndPagaMulta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV9cTiuIndPagaMulta=a
},v2z:function(a){gx.O.ZV9cTiuIndPagaMulta=a},v2c:function(){gx.fn.setComboBoxValue("vCTIUINDPAGAMULTA",gx.O.AV9cTiuIndPagaMulta)},c2v:function(){gx.O.AV9cTiuIndPagaMulta=this.val()},val:function(){return gx.fn.getControlValue("vCTIUINDPAGAMULTA")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKTIUDESCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIUDESCAMPO1LIVRE",gxz:"ZV10cTiuDesCampo1Livre",gxold:"OV10cTiuDesCampo1Livre",gxvar:"AV10cTiuDesCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cTiuDesCampo1Livre=a
},v2z:function(a){gx.O.ZV10cTiuDesCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCTIUDESCAMPO1LIVRE",gx.O.AV10cTiuDesCampo1Livre,0)},c2v:function(){gx.O.AV10cTiuDesCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCTIUDESCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKTIUQTDRENOVACOESPERMITIDAS",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCTIUQTDRENOVACOESPERMITIDAS",gxz:"ZV11cTiuQtdRenovacoesPermitidas",gxold:"OV11cTiuQtdRenovacoesPermitidas",gxvar:"AV11cTiuQtdRenovacoesPermitidas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cTiuQtdRenovacoesPermitidas=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11cTiuQtdRenovacoesPermitidas=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTIUQTDRENOVACOESPERMITIDAS",gx.O.AV11cTiuQtdRenovacoesPermitidas,0)},c2v:function(){gx.O.AV11cTiuQtdRenovacoesPermitidas=this.val()},val:function(){return gx.fn.getIntegerValue("vCTIUQTDRENOVACOESPERMITIDAS",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKTIUTIPRETIRADAEXEMPLARES",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIUTIPRETIRADAEXEMPLARES",gxz:"ZV12cTiuTipRetiradaExemplares",gxold:"OV12cTiuTipRetiradaExemplares",gxvar:"AV12cTiuTipRetiradaExemplares",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV12cTiuTipRetiradaExemplares=a
},v2z:function(a){gx.O.ZV12cTiuTipRetiradaExemplares=a},v2c:function(){gx.fn.setComboBoxValue("vCTIUTIPRETIRADAEXEMPLARES",gx.O.AV12cTiuTipRetiradaExemplares)},c2v:function(){gx.O.AV12cTiuTipRetiradaExemplares=this.val()},val:function(){return gx.fn.getControlValue("vCTIUTIPRETIRADAEXEMPLARES")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,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(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A883TiuCod,0)},c2v:function(){gx.O.A883TiuCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIUCOD",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIUDES",gxz:"Z884TiuDes",gxold:"O884TiuDes",gxvar:"A884TiuDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A884TiuDes=a
},v2z:function(a){gx.O.Z884TiuDes=a},v2c:function(){gx.fn.setGridControlValue("TIUDES",gx.fn.currentGridRowImpl(51),gx.O.A884TiuDes,0)},c2v:function(){gx.O.A884TiuDes=this.val()},val:function(){return gx.fn.getGridControlValue("TIUDES",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TIUQTDMAXD",gxz:"Z889TiuQtdMaxD",gxold:"O889TiuQtdMaxD",gxvar:"A889TiuQtdMaxD",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A889TiuQtdMaxD=gx.num.intval(a)
},v2z:function(a){gx.O.Z889TiuQtdMaxD=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TIUQTDMAXD",gx.fn.currentGridRowImpl(51),gx.O.A889TiuQtdMaxD,0)},c2v:function(){gx.O.A889TiuQtdMaxD=this.val()},val:function(){return gx.fn.getGridIntegerValue("TIUQTDMAXD",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIUINDPAGA",gxz:"Z888TiuIndPaga",gxold:"O888TiuIndPaga",gxvar:"A888TiuIndPaga",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A888TiuIndPaga=a
},v2z:function(a){gx.O.Z888TiuIndPaga=a},v2c:function(){gx.fn.setGridComboBoxValue("TIUINDPAGA",gx.fn.currentGridRowImpl(51),gx.O.A888TiuIndPaga)},c2v:function(){gx.O.A888TiuIndPaga=this.val()},val:function(){return gx.fn.getGridControlValue("TIUINDPAGA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIUDESCAMP",gxz:"Z885TiuDesCamp",gxold:"O885TiuDesCamp",gxvar:"A885TiuDesCamp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A885TiuDesCamp=a
},v2z:function(a){gx.O.Z885TiuDesCamp=a},v2c:function(){gx.fn.setGridControlValue("TIUDESCAMP",gx.fn.currentGridRowImpl(51),gx.O.A885TiuDesCamp,0)},c2v:function(){gx.O.A885TiuDesCamp=this.val()},val:function(){return gx.fn.getGridControlValue("TIUDESCAMP",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TIUQTDRENO",gxz:"Z890TiuQtdReno",gxold:"O890TiuQtdReno",gxvar:"A890TiuQtdReno",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A890TiuQtdReno=gx.num.intval(a)
},v2z:function(a){gx.O.Z890TiuQtdReno=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TIUQTDRENO",gx.fn.currentGridRowImpl(51),gx.O.A890TiuQtdReno,0)},c2v:function(){gx.O.A890TiuQtdReno=this.val()},val:function(){return gx.fn.getGridIntegerValue("TIUQTDRENO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[61]={fld:"TABLE4",grid:0};this.AV6cTiuCod="";this.ZV6cTiuCod="";this.OV6cTiuCod="";this.AV7cTiuDes="";this.ZV7cTiuDes="";this.OV7cTiuDes="";this.AV8cTiuQtdMaxDocumentos=0;
this.ZV8cTiuQtdMaxDocumentos=0;this.OV8cTiuQtdMaxDocumentos=0;this.AV9cTiuIndPagaMulta="";this.ZV9cTiuIndPagaMulta="";this.OV9cTiuIndPagaMulta="";this.AV10cTiuDesCampo1Livre="";this.ZV10cTiuDesCampo1Livre="";this.OV10cTiuDesCampo1Livre="";this.AV11cTiuQtdRenovacoesPermitidas=0;this.ZV11cTiuQtdRenovacoesPermitidas=0;this.OV11cTiuQtdRenovacoesPermitidas=0;this.AV12cTiuTipRetiradaExemplares="";this.ZV12cTiuTipRetiradaExemplares="";this.OV12cTiuTipRetiradaExemplares="";this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z883TiuCod="";this.O883TiuCod="";this.Z884TiuDes="";this.O884TiuDes="";this.Z889TiuQtdMaxD=0;this.O889TiuQtdMaxD=0;this.Z888TiuIndPaga="";this.O888TiuIndPaga="";this.Z885TiuDesCamp="";this.O885TiuDesCamp="";this.Z890TiuQtdReno=0;this.O890TiuQtdReno=0;this.AV13pTiuCod="";this.A894TiuTipReti="";this.AV5LinkSelection="";this.A883TiuCod="";this.A884TiuDes="";this.A889TiuQtdMaxD=0;this.A888TiuIndPaga="";this.A885TiuDesCamp="";this.A890TiuQtdReno=0;this.ServerEvents=["e139d2_client","e149d1_client"];
this.VarControlMap.AV13pTiuCod={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(this.GXValidFnc[44]);this.SetStandaloneVars()}gx00b0.prototype=new gx.GxObject;
gx.setParentObj(new gx00b0());