gx.evt.autoSkip=false;function hmih006(){this.ServerClass="HMih006";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.e14792_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e11792_client=function(){this.executeServerEvent("'IMPRIMIR'",false)};this.e16791_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[8,11,18,21,24,28,29,30,31,32,33,34,35,36,37,40,43];this.GXLastCtrlId=43;
this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",27,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih006",[],false,1,true,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Datretir",28,"vDATRETIR","Retirada","","DatRetir","dtime",106,"px",16,10,"left",null,[],"Datretir","DatRetir",true,5,false,false);this.Grid1Container.addSingleLineEdit("Titulo",29,"vTITULO","Título","","Titulo","char",315,"px",61,61,"left",null,[],"Titulo","Titulo",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Nomautor",30,"vNOMAUTOR","Autor","","NomAutor","char",150,"px",250,250,"left",null,[],"Nomautor","NomAutor",true,0,false,false);this.Grid1Container.addSingleLineEdit("Dscchamada",31,"vDSCCHAMADA","Chamada","","DscChamada","char",0,"px",40,40,"left",null,[],"Dscchamada","DscChamada",true,0,false,false);this.Grid1Container.addSingleLineEdit("Tiddes",32,"vTIDDES","Material","","TidDes","char",0,"px",50,50,"left",null,[],"Tiddes","TidDes",true,0,false,false);this.Grid1Container.addSingleLineEdit("Devprev",33,"vDEVPREV","Dev. prevista","","DevPrev","dtime",106,"px",16,10,"left",null,[],"Devprev","DevPrev",true,5,false,false);
this.Grid1Container.addSingleLineEdit("Devefet",34,"vDEVEFET","Dev. efetiva","","DevEfet","dtime",106,"px",16,10,"left",null,[],"Devefet","DevEfet",true,5,false,false);this.Grid1Container.addComboBox("Epitipemprestimo",35,"vEPITIPEMPRESTIMO","Tipo","EpiTipEmprestimo","char",null,0,true,false,105,"px");this.Grid1Container.addSingleLineEdit("Undcod",36,"vUNDCOD","Unidade","","UndCod","int",0,"px",3,3,"left",null,[],"Undcod","UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit("Nrotombo",37,"vNROTOMBO","Tombo","","NroTombo","int",0,"px",9,9,"right",null,[],"Nrotombo","NroTombo",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[8]={fld:"TABLE2",grid:0};this.GXValidFnc[11]={fld:"TABLE4",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[21]={fld:"TABLE3",grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMLEITOR",gxz:"ZV30NomLeitor",gxold:"OV30NomLeitor",gxvar:"AV30NomLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV30NomLeitor=a},v2z:function(a){gx.O.ZV30NomLeitor=a
},v2c:function(){gx.fn.setControlValue("vNOMLEITOR",gx.O.AV30NomLeitor,0)},c2v:function(){gx.O.AV30NomLeitor=this.val()},val:function(){return gx.fn.getControlValue("vNOMLEITOR")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDATRETIR",gxz:"ZV12DatRetir",gxold:"OV12DatRetir",gxvar:"AV12DatRetir",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12DatRetir=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV12DatRetir=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vDATRETIR",gx.fn.currentGridRowImpl(27),gx.O.AV12DatRetir,0)},c2v:function(){gx.O.AV12DatRetir=this.val()},val:function(){return gx.fn.getGridControlValue("vDATRETIR",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:61,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vTITULO",gxz:"ZV11Titulo",gxold:"OV11Titulo",gxvar:"AV11Titulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11Titulo=a
},v2z:function(a){gx.O.ZV11Titulo=a},v2c:function(){gx.fn.setGridControlValue("vTITULO",gx.fn.currentGridRowImpl(27),gx.O.AV11Titulo,0)},c2v:function(){gx.O.AV11Titulo=this.val()},val:function(){return gx.fn.getGridControlValue("vTITULO",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vNOMAUTOR",gxz:"ZV35NomAutor",gxold:"OV35NomAutor",gxvar:"AV35NomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV35NomAutor=a
},v2z:function(a){gx.O.ZV35NomAutor=a},v2c:function(){gx.fn.setGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(27),gx.O.AV35NomAutor,0)},c2v:function(){gx.O.AV35NomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDSCCHAMADA",gxz:"ZV39DscChamada",gxold:"OV39DscChamada",gxvar:"AV39DscChamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV39DscChamada=a
},v2z:function(a){gx.O.ZV39DscChamada=a},v2c:function(){gx.fn.setGridControlValue("vDSCCHAMADA",gx.fn.currentGridRowImpl(27),gx.O.AV39DscChamada,0)},c2v:function(){gx.O.AV39DscChamada=this.val()},val:function(){return gx.fn.getGridControlValue("vDSCCHAMADA",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vTIDDES",gxz:"ZV33TidDes",gxold:"OV33TidDes",gxvar:"AV33TidDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV33TidDes=a
},v2z:function(a){gx.O.ZV33TidDes=a},v2c:function(){gx.fn.setGridControlValue("vTIDDES",gx.fn.currentGridRowImpl(27),gx.O.AV33TidDes,0)},c2v:function(){gx.O.AV33TidDes=this.val()},val:function(){return gx.fn.getGridControlValue("vTIDDES",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDEVPREV",gxz:"ZV19DevPrev",gxold:"OV19DevPrev",gxvar:"AV19DevPrev",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19DevPrev=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV19DevPrev=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vDEVPREV",gx.fn.currentGridRowImpl(27),gx.O.AV19DevPrev,0)},c2v:function(){gx.O.AV19DevPrev=this.val()},val:function(){return gx.fn.getGridControlValue("vDEVPREV",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDEVEFET",gxz:"ZV13DevEfet",gxold:"OV13DevEfet",gxvar:"AV13DevEfet",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13DevEfet=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV13DevEfet=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vDEVEFET",gx.fn.currentGridRowImpl(27),gx.O.AV13DevEfet,0)},c2v:function(){gx.O.AV13DevEfet=this.val()},val:function(){return gx.fn.getGridControlValue("vDEVEFET",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vEPITIPEMPRESTIMO",gxz:"ZV29EpiTipEmprestimo",gxold:"OV29EpiTipEmprestimo",gxvar:"AV29EpiTipEmprestimo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV29EpiTipEmprestimo=a
},v2z:function(a){gx.O.ZV29EpiTipEmprestimo=a},v2c:function(){gx.fn.setGridComboBoxValue("vEPITIPEMPRESTIMO",gx.fn.currentGridRowImpl(27),gx.O.AV29EpiTipEmprestimo)},c2v:function(){gx.O.AV29EpiTipEmprestimo=this.val()},val:function(){return gx.fn.getGridControlValue("vEPITIPEMPRESTIMO",gx.fn.currentGridRowImpl(27))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV24UndCod",gxold:"OV24UndCod",gxvar:"AV24UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV24UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV24UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vUNDCOD",gx.fn.currentGridRowImpl(27),gx.O.AV24UndCod,0)},c2v:function(){gx.O.AV24UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("vUNDCOD",gx.fn.currentGridRowImpl(27),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:27,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROTOMBO",gxz:"ZV38NroTombo",gxold:"OV38NroTombo",gxvar:"AV38NroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV38NroTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV38NroTombo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNROTOMBO",gx.fn.currentGridRowImpl(27),gx.O.AV38NroTombo,0)},c2v:function(){gx.O.AV38NroTombo=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROTOMBO",gx.fn.currentGridRowImpl(27),".")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TABLE1",grid:0};this.GXValidFnc[43]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCQTDEMPRESTADA",gxz:"ZV31DscQtdEmprestada",gxold:"OV31DscQtdEmprestada",gxvar:"AV31DscQtdEmprestada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31DscQtdEmprestada=a
},v2z:function(a){gx.O.ZV31DscQtdEmprestada=a},v2c:function(){gx.fn.setControlValue("vDSCQTDEMPRESTADA",gx.O.AV31DscQtdEmprestada,0)},c2v:function(){gx.O.AV31DscQtdEmprestada=this.val()},val:function(){return gx.fn.getControlValue("vDSCQTDEMPRESTADA")},nac:function(){return false}};this.AV30NomLeitor="";this.ZV30NomLeitor="";this.OV30NomLeitor="";this.ZV12DatRetir=gx.date.nullDate();this.OV12DatRetir=gx.date.nullDate();this.ZV11Titulo="";this.OV11Titulo="";this.ZV35NomAutor="";this.OV35NomAutor="";
this.ZV39DscChamada="";this.OV39DscChamada="";this.ZV33TidDes="";this.OV33TidDes="";this.ZV19DevPrev=gx.date.nullDate();this.OV19DevPrev=gx.date.nullDate();this.ZV13DevEfet=gx.date.nullDate();this.OV13DevEfet=gx.date.nullDate();this.ZV29EpiTipEmprestimo="";this.OV29EpiTipEmprestimo="";this.ZV24UndCod=0;this.OV24UndCod=0;this.ZV38NroTombo=0;this.OV38NroTombo=0;this.AV31DscQtdEmprestada="";this.ZV31DscQtdEmprestada="";this.OV31DscQtdEmprestada="";this.AV12DatRetir=gx.date.nullDate();this.AV11Titulo="";
this.AV35NomAutor="";this.AV39DscChamada="";this.AV33TidDes="";this.AV19DevPrev=gx.date.nullDate();this.AV13DevEfet=gx.date.nullDate();this.AV29EpiTipEmprestimo="";this.AV24UndCod=0;this.AV38NroTombo=0;this.A353EpiCodBibU="";this.A354EpiDatDevE=gx.date.nullDate();this.A258DocNro=0;this.A242DocDesL1Ti="";this.A253DocNomAuto="";this.A362EptDatReti=gx.date.nullDate();this.A355EpiDatDevP=gx.date.nullDate();this.A359EpiNroTomb=0;this.A922UndCod=0;this.A1099EpiTipEmpr="";this.A868TidDes="";this.A356EpiDatReti=gx.date.nullDate();
this.A364EptNroSequ=0;this.A863TidCod="";this.ServerEvents=["e14792_client","e11792_client","e16791_client"];this.VarControlMap.AV32QtdTotalEmprestada={id:"vQTDTOTALEMPRESTADA",grid:0,type:"int"};this.VarControlMap.A868TidDes={id:"TIDDES",grid:0,type:"char"};this.VarControlMap.A1099EpiTipEmpr={id:"EPITIPEMPR",grid:0,type:"char"};this.VarControlMap.A922UndCod={id:"UNDCOD",grid:0,type:"int"};this.VarControlMap.A359EpiNroTomb={id:"EPINROTOMB",grid:0,type:"int"};this.VarControlMap.A355EpiDatDevP={id:"EPIDATDEVP",grid:0,type:"dtime"};
this.VarControlMap.A362EptDatReti={id:"EPTDATRETI",grid:0,type:"dtime"};this.VarControlMap.A253DocNomAuto={id:"DOCNOMAUTO",grid:0,type:"char"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.A354EpiDatDevE={id:"EPIDATDEVE",grid:0,type:"dtime"};this.VarControlMap.A356EpiDatReti={id:"EPIDATRETI",grid:0,type:"dtime"};this.VarControlMap.A353EpiCodBibU={id:"EPICODBIBU",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV32QtdTotalEmprestada"});
this.Grid1Container.addRefreshingVar({rfrVar:"A868TidDes"});this.Grid1Container.addRefreshingVar({rfrVar:"A1099EpiTipEmpr"});this.Grid1Container.addRefreshingVar({rfrVar:"A922UndCod"});this.Grid1Container.addRefreshingVar({rfrVar:"A359EpiNroTomb"});this.Grid1Container.addRefreshingVar({rfrVar:"A355EpiDatDevP"});this.Grid1Container.addRefreshingVar({rfrVar:"A362EptDatReti"});this.Grid1Container.addRefreshingVar({rfrVar:"A253DocNomAuto"});this.Grid1Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});
this.Grid1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"A354EpiDatDevE"});this.Grid1Container.addRefreshingVar({rfrVar:"A356EpiDatReti"});this.Grid1Container.addRefreshingVar({rfrVar:"A353EpiCodBibU"});this.SetStandaloneVars()}hmih006.prototype=new gx.GxObject;gx.setParentObj(new hmih006());