gx.evt.autoSkip=false;function hmih057(){this.ServerClass="HMih057";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV29UsbCodEntrada=gx.fn.getControlValue("vUSBCODENTRADA");this.AV15IndOrigem=gx.fn.getControlValue("vINDORIGEM")};this.Valid_Resnrovolu=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true}var a=gx.util.balloon.getNew("RESNROVOLU",gx.fn.currentGridRowImpl(25));this.AnyError=0}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(25));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e155b2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e115b2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e125b2_client=function(){this.executeServerEvent("'DESATIVAR'",false)
};this.e165b2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,10,13,16,18,20,22,26,27,28,29,30,31,32,33,34];this.GXLastCtrlId=34;this.SubfileContainer=new gx.grid.grid(this,2,"WbpLvl2",25,"Subfile","Subfile","SubfileContainer",this.CmpContext,this.IsMasterPage,"hmih057",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.SubfileContainer.addCheckBox("Checar",26,"vCHECAR","","","Checar","char","S","N",null,true,false,0,"px");
this.SubfileContainer.addSingleLineEdit(724,27,"RESDATVALI","Validade","","ResDatVali","date",0,"px",10,10,"right",null,[],724,"ResDatVali",true,0,false,false);this.SubfileContainer.addSingleLineEdit(727,28,"RESNROSEQ","Nro","","ResNroSeq","int",0,"px",6,6,"right",null,[],727,"ResNroSeq",true,0,false,false);this.SubfileContainer.addSingleLineEdit(729,29,"RESNROVOLU","Item","","ResNroVolu","int",0,"px",6,6,"right",null,[],729,"ResNroVolu",true,0,false,false);this.SubfileContainer.addSingleLineEdit(1129,30,"RESDSCESPE","","","ResDscEspe","char",0,"px",100,100,"left",null,[],1129,"ResDscEspe",true,0,false,false);
this.SubfileContainer.addSingleLineEdit("Docdestitulo",31,"vDOCDESTITULO","Título","","DocDesTitulo","char",410,"px",80,80,"left",null,[],"Docdestitulo","DocDesTitulo",true,0,false,false);this.SubfileContainer.addSingleLineEdit(258,32,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.SubfileContainer.addSingleLineEdit(779,33,"SETCOD","Unid.","","SetCod","int",0,"px",6,6,"right",null,[],779,"SetCod",true,0,false,false);this.SubfileContainer.addComboBox(725,34,"RESINDAVIS","Aviso","ResIndAvis","char",null,0,true,false,0,"px");
this.setGrid(this.SubfileContainer);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE2",grid:0};this.GXValidFnc[16]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[18]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vUSBNOM",gxz:"ZV22UsbNom",gxold:"OV22UsbNom",gxvar:"AV22UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22UsbNom=a},v2z:function(a){gx.O.ZV22UsbNom=a
},v2c:function(){gx.fn.setControlValue("vUSBNOM",gx.O.AV22UsbNom,0)},c2v:function(){gx.O.AV22UsbNom=this.val()},val:function(){return gx.fn.getControlValue("vUSBNOM")},nac:function(){return false}};this.GXValidFnc[20]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[22]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV23UndCod",gxold:"OV23UndCod",gxvar:"AV23UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV23UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vUNDCOD",gx.O.AV23UndCod,0)},c2v:function(){gx.O.AV23UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:25,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"vCHECAR",gxz:"ZV24Checar",gxold:"OV24Checar",gxvar:"AV24Checar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV24Checar=a
},v2z:function(a){gx.O.ZV24Checar=a},v2c:function(){gx.fn.setGridCheckBoxValue("vCHECAR",gx.fn.currentGridRowImpl(25),gx.O.AV24Checar,"S")},c2v:function(){gx.O.AV24Checar=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vCHECAR",gx.fn.currentGridRowImpl(25),"S","N")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:25,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"RESDATVALI",gxz:"Z724ResDatVali",gxold:"O724ResDatVali",gxvar:"A724ResDatVali",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A724ResDatVali=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z724ResDatVali=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("RESDATVALI",gx.fn.currentGridRowImpl(25),gx.O.A724ResDatVali,0)},c2v:function(){gx.O.A724ResDatVali=this.val()},val:function(){return gx.fn.getGridControlValue("RESDATVALI",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:25,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,rgrid:[],fld:"RESNROSEQ",gxz:"Z727ResNroSeq",gxold:"O727ResNroSeq",gxvar:"A727ResNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A727ResNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z727ResNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RESNROSEQ",gx.fn.currentGridRowImpl(25),gx.O.A727ResNroSeq,0)},c2v:function(){gx.O.A727ResNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROSEQ",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:25,gxgrid:this.SubfileContainer,fnc:this.Valid_Resnrovolu,isvalid:null,rgrid:[],fld:"RESNROVOLU",gxz:"Z729ResNroVolu",gxold:"O729ResNroVolu",gxvar:"A729ResNroVolu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A729ResNroVolu=gx.num.intval(a)
},v2z:function(a){gx.O.Z729ResNroVolu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RESNROVOLU",gx.fn.currentGridRowImpl(25),gx.O.A729ResNroVolu,0)},c2v:function(){gx.O.A729ResNroVolu=this.val()},val:function(){return gx.fn.getGridIntegerValue("RESNROVOLU",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:25,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"RESDSCESPE",gxz:"Z1129ResDscEspe",gxold:"O1129ResDscEspe",gxvar:"A1129ResDscEspe",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1129ResDscEspe=a
},v2z:function(a){gx.O.Z1129ResDscEspe=a},v2c:function(){gx.fn.setGridControlValue("RESDSCESPE",gx.fn.currentGridRowImpl(25),gx.O.A1129ResDscEspe,0)},c2v:function(){gx.O.A1129ResDscEspe=this.val()},val:function(){return gx.fn.getGridControlValue("RESDSCESPE",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:0,grid:25,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"vDOCDESTITULO",gxz:"ZV17DocDesTitulo",gxold:"OV17DocDesTitulo",gxvar:"AV17DocDesTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17DocDesTitulo=a
},v2z:function(a){gx.O.ZV17DocDesTitulo=a},v2c:function(){gx.fn.setGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(25),gx.O.AV17DocDesTitulo,0)},c2v:function(){gx.O.AV17DocDesTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:25,gxgrid:this.SubfileContainer,fnc:this.Valid_Docnro,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(25),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:25,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,rgrid:[],fld:"SETCOD",gxz:"Z779SetCod",gxold:"O779SetCod",gxvar:"A779SetCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A779SetCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z779SetCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SETCOD",gx.fn.currentGridRowImpl(25),gx.O.A779SetCod,0)},c2v:function(){gx.O.A779SetCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("SETCOD",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:25,gxgrid:this.SubfileContainer,fnc:null,isvalid:null,fld:"RESINDAVIS",gxz:"Z725ResIndAvis",gxold:"O725ResIndAvis",gxvar:"A725ResIndAvis",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A725ResIndAvis=a
},v2z:function(a){gx.O.Z725ResIndAvis=a},v2c:function(){gx.fn.setGridComboBoxValue("RESINDAVIS",gx.fn.currentGridRowImpl(25),gx.O.A725ResIndAvis)},c2v:function(){gx.O.A725ResIndAvis=this.val()},val:function(){return gx.fn.getGridControlValue("RESINDAVIS",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.AV22UsbNom="";this.ZV22UsbNom="";this.OV22UsbNom="";this.AV23UndCod=0;this.ZV23UndCod=0;this.OV23UndCod=0;this.ZV24Checar="";this.OV24Checar="";this.Z724ResDatVali=gx.date.nullDate();
this.O724ResDatVali=gx.date.nullDate();this.Z727ResNroSeq=0;this.O727ResNroSeq=0;this.Z729ResNroVolu=0;this.O729ResNroVolu=0;this.Z1129ResDscEspe="";this.O1129ResDscEspe="";this.ZV17DocDesTitulo="";this.OV17DocDesTitulo="";this.Z258DocNro=0;this.O258DocNro=0;this.Z779SetCod=0;this.O779SetCod=0;this.Z725ResIndAvis="";this.O725ResIndAvis="";this.AV29UsbCodEntrada="";this.AV15IndOrigem="";this.A726ResIndCanc="";this.A242DocDesL1Ti="";this.A728ResNroTomo=0;this.A787UsbCod="";this.AV24Checar="";this.A724ResDatVali=gx.date.nullDate();
this.A727ResNroSeq=0;this.A729ResNroVolu=0;this.A1129ResDscEspe="";this.AV17DocDesTitulo="";this.A258DocNro=0;this.A779SetCod=0;this.A725ResIndAvis="";this.A786UsbNom="";this.A122CfgCod="";this.A127CfgValCont="";this.ServerEvents=["e155b2_client","e115b2_client","e125b2_client","e165b2_client"];this.VarControlMap.AV29UsbCodEntrada={id:"vUSBCODENTRADA",grid:0,type:"char"};this.VarControlMap.AV15IndOrigem={id:"vINDORIGEM",grid:0,type:"char"};this.VarControlMap.AV12UsbCod={id:"vUSBCOD",grid:0,type:"char"};
this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.SubfileContainer.addRefreshingVar({rfrVar:"AV12UsbCod"});this.SubfileContainer.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.SetStandaloneVars()}hmih057.prototype=new gx.GxObject;gx.setParentObj(new hmih057());