gx.evt.autoSkip=false;function hmih098(){this.ServerClass="HMih098";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV5ParmNroDocumento=gx.fn.getIntegerValue("vPARMNRODOCUMENTO",".");this.AV8ParmTipLeitor=gx.fn.getControlValue("vPARMTIPLEITOR")};this.e14hk2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15hk2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[4,7,10,14,15,16,17,18,19];this.GXLastCtrlId=19;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",13,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih098",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Grdnrodocumento",14,"vGRDNRODOCUMENTO","Documento","","GrdNroDocumento","int",0,"px",6,6,"right",null,[],"Grdnrodocumento","GrdNroDocumento",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdnrounidade",15,"vGRDNROUNIDADE","Unidade","","GrdNroUnidade","int",0,"px",3,3,"right",null,[],"Grdnrounidade","GrdNroUnidade",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnroexemplar",16,"vGRDNROEXEMPLAR","Ex.","","GrdNroExemplar","int",0,"px",4,4,"right",null,[],"Grdnroexemplar","GrdNroExemplar",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnroitem",17,"vGRDNROITEM","Item","","GrdNroItem","int",0,"px",6,6,"right",null,[],"Grdnroitem","GrdNroItem",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdnroduplicata",18,"vGRDNRODUPLICATA","Duplicata","","GrdNroDuplicata","int",0,"px",2,2,"right",null,[],"Grdnroduplicata","GrdNroDuplicata",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddscstatus",19,"vGRDDSCSTATUS","Situação","","GrdDscStatus","char",0,"px",21,21,"left",null,[],"Grddscstatus","GrdDscStatus",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[4]={fld:"TABLE1",grid:0};this.GXValidFnc[7]={fld:"TABLE2",grid:0};
this.GXValidFnc[10]={lvl:0,type:"svchar",len:1024,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCORIENTACOES",gxz:"ZV17DscOrientacoes",gxold:"OV17DscOrientacoes",gxvar:"AV17DscOrientacoes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17DscOrientacoes=a},v2z:function(a){gx.O.ZV17DscOrientacoes=a},v2c:function(){gx.fn.setControlValue("vDSCORIENTACOES",gx.O.AV17DscOrientacoes,1)},c2v:function(){gx.O.AV17DscOrientacoes=this.val()},val:function(){return gx.fn.getControlValue("vDSCORIENTACOES")
},nac:function(){return false}};this.GXValidFnc[14]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNRODOCUMENTO",gxz:"ZV9GrdNroDocumento",gxold:"OV9GrdNroDocumento",gxvar:"AV9GrdNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9GrdNroDocumento=gx.num.intval(a)},v2z:function(a){gx.O.ZV9GrdNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(13),gx.O.AV9GrdNroDocumento,0)
},c2v:function(){gx.O.AV9GrdNroDocumento=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNRODOCUMENTO",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[15]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROUNIDADE",gxz:"ZV10GrdNroUnidade",gxold:"OV10GrdNroUnidade",gxvar:"AV10GrdNroUnidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10GrdNroUnidade=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10GrdNroUnidade=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROUNIDADE",gx.fn.currentGridRowImpl(13),gx.O.AV10GrdNroUnidade,0)},c2v:function(){gx.O.AV10GrdNroUnidade=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROUNIDADE",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[16]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROEXEMPLAR",gxz:"ZV11GrdNroExemplar",gxold:"OV11GrdNroExemplar",gxvar:"AV11GrdNroExemplar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11GrdNroExemplar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11GrdNroExemplar=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROEXEMPLAR",gx.fn.currentGridRowImpl(13),gx.O.AV11GrdNroExemplar,0)},c2v:function(){gx.O.AV11GrdNroExemplar=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROEXEMPLAR",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[17]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROITEM",gxz:"ZV12GrdNroItem",gxold:"OV12GrdNroItem",gxvar:"AV12GrdNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12GrdNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.ZV12GrdNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROITEM",gx.fn.currentGridRowImpl(13),gx.O.AV12GrdNroItem,0)},c2v:function(){gx.O.AV12GrdNroItem=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROITEM",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[18]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNRODUPLICATA",gxz:"ZV13GrdNroDuplicata",gxold:"OV13GrdNroDuplicata",gxvar:"AV13GrdNroDuplicata",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13GrdNroDuplicata=gx.num.intval(a)
},v2z:function(a){gx.O.ZV13GrdNroDuplicata=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNRODUPLICATA",gx.fn.currentGridRowImpl(13),gx.O.AV13GrdNroDuplicata,0)},c2v:function(){gx.O.AV13GrdNroDuplicata=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNRODUPLICATA",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[19]={lvl:2,type:"char",len:21,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCSTATUS",gxz:"ZV14GrdDscStatus",gxold:"OV14GrdDscStatus",gxvar:"AV14GrdDscStatus",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14GrdDscStatus=a
},v2z:function(a){gx.O.ZV14GrdDscStatus=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCSTATUS",gx.fn.currentGridRowImpl(13),gx.O.AV14GrdDscStatus,0)},c2v:function(){gx.O.AV14GrdDscStatus=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCSTATUS",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.AV17DscOrientacoes="";this.ZV17DscOrientacoes="";this.OV17DscOrientacoes="";this.ZV9GrdNroDocumento=0;this.OV9GrdNroDocumento=0;this.ZV10GrdNroUnidade=0;this.OV10GrdNroUnidade=0;
this.ZV11GrdNroExemplar=0;this.OV11GrdNroExemplar=0;this.ZV12GrdNroItem=0;this.OV12GrdNroItem=0;this.ZV13GrdNroDuplicata=0;this.OV13GrdNroDuplicata=0;this.ZV14GrdDscStatus="";this.OV14GrdDscStatus="";this.AV5ParmNroDocumento=0;this.AV8ParmTipLeitor="";this.AV9GrdNroDocumento=0;this.AV10GrdNroUnidade=0;this.AV11GrdNroExemplar=0;this.AV12GrdNroItem=0;this.AV13GrdNroDuplicata=0;this.AV14GrdDscStatus="";this.ServerEvents=["e14hk2_client","e15hk2_client"];this.VarControlMap.AV5ParmNroDocumento={id:"vPARMNRODOCUMENTO",grid:0,type:"int"};
this.VarControlMap.AV8ParmTipLeitor={id:"vPARMTIPLEITOR",grid:0,type:"char"};this.VarControlMap.AV16SdtRolExemplares={id:"vSDTROLEXEMPLARES",grid:0,type:"CollSdtItemDeDocumentoParaOrdenacao"};this.Grid1Container.addRefreshingVar({rfrVar:"AV16SdtRolExemplares"});this.SetStandaloneVars()}hmih098.prototype=new gx.GxObject;gx.setParentObj(new hmih098());