gx.evt.autoSkip=false;function gx03h2(){this.ServerClass="Gx03H2";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV11pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV12pTiuCod=gx.fn.getControlValue("vPTIUCOD");this.AV13pCaeCod=gx.fn.getIntegerValue("vPCAECOD",".")};this.e13al2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14al1_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,38,42,43,44,45,46,47,48,49,52];this.GXLastCtrlId=52;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",41,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx03h2",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",42,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(79,43,"CAECOD","Código","","CaeCod","int",0,"px",3,3,"right",null,[],79,"CaeCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(108,44,"CECQTDPRAZ","Prazo permitido (Dias/Horas)","Selecionar","CecQtdPraz","int",0,"px",3,3,"right",null,[],108,"CecQtdPraz",true,0,false,false);this.Grid1Container.addSingleLineEdit(107,45,"CECQTDMAXI","Qtd. máxima itens por categoria","","CecQtdMaxI","int",0,"px",4,4,"right",null,[],107,"CecQtdMaxI",true,0,false,false);this.Grid1Container.addSingleLineEdit(109,46,"CECQTDSUSP","Qtd. dias de suspensão","","CecQtdSusp","int",0,"px",4,4,"right",null,[],109,"CecQtdSusp",true,0,false,false);
this.Grid1Container.addComboBox(110,47,"CECTIPPRAZ","Tipo de prazo (Dias/Horas)","CecTipPraz","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(922,48,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",false,0,false,false);this.Grid1Container.addSingleLineEdit(883,49,"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:"TEXTBLOCKCECQTDPRAZOPERMITIDO",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:"vCCECQTDPRAZOPERMITIDO",gxz:"ZV7cCecQtdPrazoPermitido",gxold:"OV7cCecQtdPrazoPermitido",gxvar:"AV7cCecQtdPrazoPermitido",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cCecQtdPrazoPermitido=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cCecQtdPrazoPermitido=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCECQTDPRAZOPERMITIDO",gx.O.AV7cCecQtdPrazoPermitido,0)},c2v:function(){gx.O.AV7cCecQtdPrazoPermitido=this.val()},val:function(){return gx.fn.getIntegerValue("vCCECQTDPRAZOPERMITIDO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKCECQTDMAXITENS",format:0,grid:0};this.GXValidFnc[24]={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:"vCCECQTDMAXITENS",gxz:"ZV8cCecQtdMaxItens",gxold:"OV8cCecQtdMaxItens",gxvar:"AV8cCecQtdMaxItens",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cCecQtdMaxItens=gx.num.intval(a)
},v2z:function(a){gx.O.ZV8cCecQtdMaxItens=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCECQTDMAXITENS",gx.O.AV8cCecQtdMaxItens,0)},c2v:function(){gx.O.AV8cCecQtdMaxItens=this.val()},val:function(){return gx.fn.getIntegerValue("vCCECQTDMAXITENS",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKCECQTDSUSPENSAODIAS",format:0,grid:0};this.GXValidFnc[29]={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:"vCCECQTDSUSPENSAODIAS",gxz:"ZV9cCecQtdSuspensaoDias",gxold:"OV9cCecQtdSuspensaoDias",gxvar:"AV9cCecQtdSuspensaoDias",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cCecQtdSuspensaoDias=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cCecQtdSuspensaoDias=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCECQTDSUSPENSAODIAS",gx.O.AV9cCecQtdSuspensaoDias,0)},c2v:function(){gx.O.AV9cCecQtdSuspensaoDias=this.val()},val:function(){return gx.fn.getIntegerValue("vCCECQTDSUSPENSAODIAS",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKCECTIPPRAZO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCECTIPPRAZO",gxz:"ZV10cCecTipPrazo",gxold:"OV10cCecTipPrazo",gxvar:"AV10cCecTipPrazo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV10cCecTipPrazo=a
},v2z:function(a){gx.O.ZV10cCecTipPrazo=a},v2c:function(){gx.fn.setComboBoxValue("vCCECTIPPRAZO",gx.O.AV10cCecTipPrazo)},c2v:function(){gx.O.AV10cCecTipPrazo=this.val()},val:function(){return gx.fn.getControlValue("vCCECTIPPRAZO")},nac:function(){return false}};this.GXValidFnc[37]={fld:"GROUP2",grid:0};this.GXValidFnc[38]={fld:"TABLE3",grid:0};this.GXValidFnc[42]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:41,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(41))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:41,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(41),gx.O.A79CaeCod,0)},c2v:function(){gx.O.A79CaeCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CAECOD",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CECQTDPRAZ",gxz:"Z108CecQtdPraz",gxold:"O108CecQtdPraz",gxvar:"A108CecQtdPraz",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A108CecQtdPraz=gx.num.intval(a)
},v2z:function(a){gx.O.Z108CecQtdPraz=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CECQTDPRAZ",gx.fn.currentGridRowImpl(41),gx.O.A108CecQtdPraz,0)},c2v:function(){gx.O.A108CecQtdPraz=this.val()},val:function(){return gx.fn.getGridIntegerValue("CECQTDPRAZ",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CECQTDMAXI",gxz:"Z107CecQtdMaxI",gxold:"O107CecQtdMaxI",gxvar:"A107CecQtdMaxI",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A107CecQtdMaxI=gx.num.intval(a)
},v2z:function(a){gx.O.Z107CecQtdMaxI=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CECQTDMAXI",gx.fn.currentGridRowImpl(41),gx.O.A107CecQtdMaxI,0)},c2v:function(){gx.O.A107CecQtdMaxI=this.val()},val:function(){return gx.fn.getGridIntegerValue("CECQTDMAXI",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CECQTDSUSP",gxz:"Z109CecQtdSusp",gxold:"O109CecQtdSusp",gxvar:"A109CecQtdSusp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A109CecQtdSusp=gx.num.intval(a)
},v2z:function(a){gx.O.Z109CecQtdSusp=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CECQTDSUSP",gx.fn.currentGridRowImpl(41),gx.O.A109CecQtdSusp,0)},c2v:function(){gx.O.A109CecQtdSusp=this.val()},val:function(){return gx.fn.getGridIntegerValue("CECQTDSUSP",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CECTIPPRAZ",gxz:"Z110CecTipPraz",gxold:"O110CecTipPraz",gxvar:"A110CecTipPraz",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A110CecTipPraz=a
},v2z:function(a){gx.O.Z110CecTipPraz=a},v2c:function(){gx.fn.setGridComboBoxValue("CECTIPPRAZ",gx.fn.currentGridRowImpl(41),gx.O.A110CecTipPraz)},c2v:function(){gx.O.A110CecTipPraz=this.val()},val:function(){return gx.fn.getGridControlValue("CECTIPPRAZ",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:41,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(41),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:41,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(41),gx.O.A883TiuCod,0)},c2v:function(){gx.O.A883TiuCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIUCOD",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[52]={fld:"TABLE4",grid:0};this.AV6cCaeCod=0;this.ZV6cCaeCod=0;this.OV6cCaeCod=0;this.AV7cCecQtdPrazoPermitido=0;this.ZV7cCecQtdPrazoPermitido=0;this.OV7cCecQtdPrazoPermitido=0;this.AV8cCecQtdMaxItens=0;
this.ZV8cCecQtdMaxItens=0;this.OV8cCecQtdMaxItens=0;this.AV9cCecQtdSuspensaoDias=0;this.ZV9cCecQtdSuspensaoDias=0;this.OV9cCecQtdSuspensaoDias=0;this.AV10cCecTipPrazo="";this.ZV10cCecTipPrazo="";this.OV10cCecTipPrazo="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z79CaeCod=0;this.O79CaeCod=0;this.Z108CecQtdPraz=0;this.O108CecQtdPraz=0;this.Z107CecQtdMaxI=0;this.O107CecQtdMaxI=0;this.Z109CecQtdSusp=0;this.O109CecQtdSusp=0;this.Z110CecTipPraz="";this.O110CecTipPraz="";this.Z922UndCod=0;this.O922UndCod=0;
this.Z883TiuCod="";this.O883TiuCod="";this.AV11pUndCod=0;this.AV12pTiuCod="";this.AV13pCaeCod=0;this.AV5LinkSelection="";this.A79CaeCod=0;this.A108CecQtdPraz=0;this.A107CecQtdMaxI=0;this.A109CecQtdSusp=0;this.A110CecTipPraz="";this.A922UndCod=0;this.A883TiuCod="";this.ServerEvents=["e13al2_client","e14al1_client"];this.VarControlMap.AV11pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV12pTiuCod={id:"vPTIUCOD",grid:0,type:"char"};this.VarControlMap.AV13pCaeCod={id:"vPCAECOD",grid:0,type:"int"};
this.VarControlMap.AV11pUndCod={id:"vPUNDCOD",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({rfrVar:"AV11pUndCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV12pTiuCod"});
this.SetStandaloneVars()}gx03h2.prototype=new gx.GxObject;gx.setParentObj(new gx03h2());