gx.evt.autoSkip=false;function hmih058(){this.ServerClass="HMih058";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Validv_Forcod=function(){try{var a=gx.util.balloon.getNew("vFORCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Slcnro=function(){try{if(gx.fn.currentGridRowImpl(31)===0){return true}var a=gx.util.balloon.getNew("SLCNRO",gx.fn.currentGridRowImpl(31));this.AnyError=0;
this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e14802_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e11802_client=function(){this.executeServerEvent("'CONECTAR'",false)};this.e12802_client=function(){this.executeServerEvent("'DESCONECTAR'",false)};this.e17802_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,7,10,13,15,18,20,32,33,34,35];
this.GXLastCtrlId=35;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih058",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(819,32,"SLCNRO","SC","","SlcNro","int",0,"px",6,6,"right",null,[],819,"SlcNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(774,33,"SCTNRO","Seq.","","SctNro","int",0,"px",2,2,"right",null,[],774,"SctNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(811,34,"SLCDSCTITU","Título","","SlcDscTitu","char",0,"px",250,250,"left",null,[],811,"SlcDscTitu",true,0,false,false);this.Grid1Container.addSingleLineEdit(822,35,"SLCQUANTID","Qtd. exemplares","","SlcQuantid","int",0,"px",6,6,"right",null,[],822,"SlcQuantid",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"LOGOMARCA",grid:0};this.GXValidFnc[7]={fld:"TABLE2",grid:0};this.GXValidFnc[10]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK1",format:0,grid:0};
this.GXValidFnc[15]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Forcod,isvalid:null,rgrid:[this.Grid1Container],fld:"vFORCOD",gxz:"ZV5ForCod",gxold:"OV5ForCod",gxvar:"AV5ForCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5ForCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV5ForCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vFORCOD",gx.O.AV5ForCod,0)},c2v:function(){gx.O.AV5ForCod=this.val()},val:function(){return gx.fn.getIntegerValue("vFORCOD",".")
},nac:function(){return false}};this.GXValidFnc[18]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vFORVALSENHA",gxz:"ZV6ForValSenha",gxold:"OV6ForValSenha",gxvar:"AV6ForValSenha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6ForValSenha=a},v2z:function(a){gx.O.ZV6ForValSenha=a},v2c:function(){gx.fn.setControlValue("vFORVALSENHA",gx.O.AV6ForValSenha,0)},c2v:function(){gx.O.AV6ForValSenha=this.val()
},val:function(){return gx.fn.getControlValue("vFORVALSENHA")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:this.Valid_Slcnro,isvalid:null,rgrid:[],fld:"SLCNRO",gxz:"Z819SlcNro",gxold:"O819SlcNro",gxvar:"A819SlcNro",ucs:[],op:[34,35],ip:[34,35,32],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A819SlcNro=gx.num.intval(a)},v2z:function(a){gx.O.Z819SlcNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCNRO",gx.fn.currentGridRowImpl(31),gx.O.A819SlcNro,0)
},c2v:function(){gx.O.A819SlcNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SCTNRO",gxz:"Z774SctNro",gxold:"O774SctNro",gxvar:"A774SctNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A774SctNro=gx.num.intval(a)},v2z:function(a){gx.O.Z774SctNro=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("SCTNRO",gx.fn.currentGridRowImpl(31),gx.O.A774SctNro,0)},c2v:function(){gx.O.A774SctNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SCTNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLCDSCTITU",gxz:"Z811SlcDscTitu",gxold:"O811SlcDscTitu",gxvar:"A811SlcDscTitu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A811SlcDscTitu=a
},v2z:function(a){gx.O.Z811SlcDscTitu=a},v2c:function(){gx.fn.setGridControlValue("SLCDSCTITU",gx.fn.currentGridRowImpl(31),gx.O.A811SlcDscTitu,0)},c2v:function(){gx.O.A811SlcDscTitu=this.val()},val:function(){return gx.fn.getGridControlValue("SLCDSCTITU",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLCQUANTID",gxz:"Z822SlcQuantid",gxold:"O822SlcQuantid",gxvar:"A822SlcQuantid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A822SlcQuantid=gx.num.intval(a)
},v2z:function(a){gx.O.Z822SlcQuantid=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCQUANTID",gx.fn.currentGridRowImpl(31),gx.O.A822SlcQuantid,0)},c2v:function(){gx.O.A822SlcQuantid=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCQUANTID",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.AV5ForCod=0;this.ZV5ForCod=0;this.OV5ForCod=0;this.AV6ForValSenha="";this.ZV6ForValSenha="";this.OV6ForValSenha="";this.Z819SlcNro=0;this.O819SlcNro=0;this.Z774SctNro=0;
this.O774SctNro=0;this.Z811SlcDscTitu="";this.O811SlcDscTitu="";this.Z822SlcQuantid=0;this.O822SlcQuantid=0;this.A770SctCodForn=0;this.A814SlcIndSitu="";this.A815SlcIndTemC="";this.A812SlcNroDocu=0;this.A819SlcNro=0;this.A774SctNro=0;this.A811SlcDscTitu="";this.A822SlcQuantid=0;this.A433ForCod=0;this.A442ForNomAbre="";this.A122CfgCod="";this.A127CfgValCont="";this.ServerEvents=["e14802_client","e11802_client","e12802_client","e17802_client"];this.Grid1Container.addRefreshingVar(this.GXValidFnc[15]);
this.SetStandaloneVars()}hmih058.prototype=new gx.GxObject;gx.setParentObj(new hmih058());