gx.evt.autoSkip=false;function himh052(){this.ServerClass="HImh052";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.AV15NroTombo=gx.fn.getIntegerValue("vNROTOMBO",".")};this.Valid_Usbcod=function(){try{if(gx.fn.currentGridRowImpl(15)===0){return true}var a=gx.util.balloon.getNew("USBCOD",gx.fn.currentGridRowImpl(15));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e114x2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e134x1_client=function(){this.executeServerEvent("ENTER",true)};this.e144x2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,16,17,18,19,20,21,22,23,24];this.GXLastCtrlId=24;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",15,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh052",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(922,16,"UNDCOD","Unidade","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(786,17,"USBNOM","Leitor","","UsbNom","char",0,"px",50,50,"left",null,[],786,"UsbNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(362,18,"EPTDATRETI","Retirada","","EptDatReti","dtime",0,"px",16,10,"right",null,[],362,"EptDatReti",true,5,false,false);this.Grid1Container.addSingleLineEdit(361,19,"EPTCODUSUA","Operador","","EptCodUsua","char",0,"px",6,6,"left",null,[],361,"EptCodUsua",true,0,false,false);this.Grid1Container.addSingleLineEdit(355,20,"EPIDATDEVP","Dev.prevista","","EpiDatDevP","dtime",0,"px",16,10,"right",null,[],355,"EpiDatDevP",true,5,false,false);
this.Grid1Container.addSingleLineEdit(354,21,"EPIDATDEVE","Dev.efetiva","","EpiDatDevE","dtime",0,"px",16,10,"right",null,[],354,"EpiDatDevE",true,5,false,false);this.Grid1Container.addSingleLineEdit("Codresp",22,"vCODRESP","Operador","","CodResp","char",0,"px",6,6,"left",null,[],"Codresp","CodResp",true,0,false,false);this.Grid1Container.addComboBox(1099,23,"EPITIPEMPR","Tipo","EpiTipEmpr","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(787,24,"USBCOD","Cadastro","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[16]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:15,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(15),gx.O.A922UndCod,0)
},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[17]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBNOM",gxz:"Z786UsbNom",gxold:"O786UsbNom",gxvar:"A786UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A786UsbNom=a},v2z:function(a){gx.O.Z786UsbNom=a},v2c:function(){gx.fn.setGridControlValue("USBNOM",gx.fn.currentGridRowImpl(15),gx.O.A786UsbNom,0)
},c2v:function(){gx.O.A786UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("USBNOM",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[18]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPTDATRETI",gxz:"Z362EptDatReti",gxold:"O362EptDatReti",gxvar:"A362EptDatReti",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.A362EptDatReti=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z362EptDatReti=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("EPTDATRETI",gx.fn.currentGridRowImpl(15),gx.O.A362EptDatReti,0)},c2v:function(){gx.O.A362EptDatReti=this.val()},val:function(){return gx.fn.getGridControlValue("EPTDATRETI",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[19]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPTCODUSUA",gxz:"Z361EptCodUsua",gxold:"O361EptCodUsua",gxvar:"A361EptCodUsua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A361EptCodUsua=a
},v2z:function(a){gx.O.Z361EptCodUsua=a},v2c:function(){gx.fn.setGridControlValue("EPTCODUSUA",gx.fn.currentGridRowImpl(15),gx.O.A361EptCodUsua,0)},c2v:function(){gx.O.A361EptCodUsua=this.val()},val:function(){return gx.fn.getGridControlValue("EPTCODUSUA",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPIDATDEVP",gxz:"Z355EpiDatDevP",gxold:"O355EpiDatDevP",gxvar:"A355EpiDatDevP",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.A355EpiDatDevP=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z355EpiDatDevP=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("EPIDATDEVP",gx.fn.currentGridRowImpl(15),gx.O.A355EpiDatDevP,0)},c2v:function(){gx.O.A355EpiDatDevP=this.val()},val:function(){return gx.fn.getGridControlValue("EPIDATDEVP",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPIDATDEVE",gxz:"Z354EpiDatDevE",gxold:"O354EpiDatDevE",gxvar:"A354EpiDatDevE",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.A354EpiDatDevE=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z354EpiDatDevE=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("EPIDATDEVE",gx.fn.currentGridRowImpl(15),gx.O.A354EpiDatDevE,0)},c2v:function(){gx.O.A354EpiDatDevE=this.val()},val:function(){return gx.fn.getGridControlValue("EPIDATDEVE",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vCODRESP",gxz:"ZV16CodResp",gxold:"OV16CodResp",gxvar:"AV16CodResp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16CodResp=a
},v2z:function(a){gx.O.ZV16CodResp=a},v2c:function(){gx.fn.setGridControlValue("vCODRESP",gx.fn.currentGridRowImpl(15),gx.O.AV16CodResp,0)},c2v:function(){gx.O.AV16CodResp=this.val()},val:function(){return gx.fn.getGridControlValue("vCODRESP",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPITIPEMPR",gxz:"Z1099EpiTipEmpr",gxold:"O1099EpiTipEmpr",gxvar:"A1099EpiTipEmpr",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1099EpiTipEmpr=a
},v2z:function(a){gx.O.Z1099EpiTipEmpr=a},v2c:function(){gx.fn.setGridComboBoxValue("EPITIPEMPR",gx.fn.currentGridRowImpl(15),gx.O.A1099EpiTipEmpr)},c2v:function(){gx.O.A1099EpiTipEmpr=this.val()},val:function(){return gx.fn.getGridControlValue("EPITIPEMPR",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid1Container,fnc:this.Valid_Usbcod,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a
},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setGridControlValue("USBCOD",gx.fn.currentGridRowImpl(15),gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("USBCOD",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.Z922UndCod=0;this.O922UndCod=0;this.Z786UsbNom="";this.O786UsbNom="";this.Z362EptDatReti=gx.date.nullDate();this.O362EptDatReti=gx.date.nullDate();this.Z361EptCodUsua="";this.O361EptCodUsua="";this.Z355EpiDatDevP=gx.date.nullDate();
this.O355EpiDatDevP=gx.date.nullDate();this.Z354EpiDatDevE=gx.date.nullDate();this.O354EpiDatDevE=gx.date.nullDate();this.ZV16CodResp="";this.OV16CodResp="";this.Z1099EpiTipEmpr="";this.O1099EpiTipEmpr="";this.Z787UsbCod="";this.O787UsbCod="";this.AV15NroTombo=0;this.A357EpiDesDado="";this.A356EpiDatReti=gx.date.nullDate();this.A358EpiIndDevo="";this.A359EpiNroTomb=0;this.A364EptNroSequ=0;this.A922UndCod=0;this.A786UsbNom="";this.A362EptDatReti=gx.date.nullDate();this.A361EptCodUsua="";this.A355EpiDatDevP=gx.date.nullDate();
this.A354EpiDatDevE=gx.date.nullDate();this.AV16CodResp="";this.A1099EpiTipEmpr="";this.A787UsbCod="";this.ServerEvents=["e114x2_client","e134x1_client","e144x2_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV15NroTombo={id:"vNROTOMBO",grid:0,type:"int"};this.VarControlMap.AV15NroTombo={id:"vNROTOMBO",grid:0,type:"int"};this.VarControlMap.A357EpiDesDado={id:"EPIDESDADO",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV15NroTombo"});this.Grid1Container.addRefreshingVar({rfrVar:"A357EpiDesDado"});
this.SetStandaloneVars()}himh052.prototype=new gx.GxObject;gx.setParentObj(new himh052());