gx.evt.autoSkip=false;function himh068(){this.ServerClass="HImh068";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.AV16UsbCod=gx.fn.getControlValue("vUSBCOD")};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;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e115c2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e125c2_client=function(){this.executeServerEvent("'ABRE RELATORIO'",true)};this.e155c1_client=function(){this.executeServerEvent("ENTER",true)};this.e165c2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,16,17,18,19,20];this.GXLastCtrlId=20;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",15,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh068",[],false,1,false,true,3,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(787,16,"USBCOD","Cadastro","","UsbCod","char",0,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(786,17,"USBNOM","Nome","","UsbNom","char",0,"px",50,50,"left",null,[],786,"UsbNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(364,18,"EPTNROSEQU","Sequência","","EptNroSequ","int",0,"px",10,10,"right","e125c2_client",[],364,"EptNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(362,19,"EPTDATRETI","Retirada","","EptDatReti","dtime",0,"px",16,10,"right","e125c2_client",[],362,"EptDatReti",true,5,false,false);
this.Grid1Container.addSingleLineEdit(361,20,"EPTCODUSUA","Operador","","EptCodUsua","char",0,"px",6,6,"left",null,[],361,"EptCodUsua",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[16]={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:[17],ip:[17,16],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.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:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:1,grid:15,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EPTNROSEQU",gxz:"Z364EptNroSequ",gxold:"O364EptNroSequ",gxvar:"A364EptNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A364EptNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z364EptNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EPTNROSEQU",gx.fn.currentGridRowImpl(15),gx.O.A364EptNroSequ,0)},c2v:function(){gx.O.A364EptNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("EPTNROSEQU",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[19]={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[20]={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.Z787UsbCod="";this.O787UsbCod="";this.Z786UsbNom="";this.O786UsbNom="";this.Z364EptNroSequ=0;this.O364EptNroSequ=0;this.Z362EptDatReti=gx.date.nullDate();this.O362EptDatReti=gx.date.nullDate();
this.Z361EptCodUsua="";this.O361EptCodUsua="";this.AV16UsbCod="";this.A787UsbCod="";this.A786UsbNom="";this.A364EptNroSequ=0;this.A362EptDatReti=gx.date.nullDate();this.A361EptCodUsua="";this.ServerEvents=["e115c2_client","e125c2_client","e155c1_client","e165c2_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV16UsbCod={id:"vUSBCOD",grid:0,type:"char"};this.VarControlMap.AV16UsbCod={id:"vUSBCOD",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV16UsbCod"});this.SetStandaloneVars()
}himh068.prototype=new gx.GxObject;gx.setParentObj(new himh068());