gx.evt.autoSkip=false;function himh278(){this.ServerClass="HImh278";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.A333EdiNomSemA=gx.fn.getControlValue("EDINOMSEMA")};this.Valid_Edinomcomp=function(){try{if(gx.fn.currentGridRowImpl(36)===0){return true}var a=gx.util.balloon.getNew("EDINOMCOMP",gx.fn.currentGridRowImpl(36));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.Valid_Edinomabre=function(){try{if(gx.fn.currentGridRowImpl(36)===0){return true}var a=gx.util.balloon.getNew("EDINOMABRE",gx.fn.currentGridRowImpl(36));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e17jh1_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh015",["ED"]),[""]);this.refreshOutputs([])};this.e11jh2_client=function(){this.executeServerEvent("'NOVO'",false)};this.e12jh2_client=function(){this.executeServerEvent("'SEM USO'",false)
};this.e13jh2_client=function(){this.executeServerEvent("'IR PARA'",false)};this.e18jh1_client=function(){this.executeServerEvent("ENTER",true)};this.e19jh1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,21,25,28,31,33,37,38,39,40,41];this.GXLastCtrlId=41;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",36,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh278",[],false,1,true,true,18,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addBitmap("&Imagemeditar","vIMAGEMEDITAR",37,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(332,38,"EDINOMCOMP","Nome","","EdiNomComp","char",410,"px",100,100,"left",null,[],332,"EdiNomComp",true,0,false,false);this.Grid1Container.addSingleLineEdit(329,39,"EDINOMABRE","Nome abreviado","","EdiNomAbre","char",200,"px",70,70,"left",null,[],329,"EdiNomAbre",true,0,false,false);this.Grid1Container.addSingleLineEdit(334,40,"EDINRO","Editora","","EdiNro","int",45,"px",5,5,"right",null,[],334,"EdiNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(331,41,"EDINOMCIDA","Cidade","","EdiNomCida","char",185,"px",35,35,"left",null,[],331,"EdiNomCida",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE4",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[21]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRNROEDITORANAVEGAR",gxz:"ZV19ScrNroEditoraNavegar",gxold:"OV19ScrNroEditoraNavegar",gxvar:"AV19ScrNroEditoraNavegar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19ScrNroEditoraNavegar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV19ScrNroEditoraNavegar=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRNROEDITORANAVEGAR",gx.O.AV19ScrNroEditoraNavegar,0)},c2v:function(){gx.O.AV19ScrNroEditoraNavegar=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRNROEDITORANAVEGAR",".")},nac:function(){return false}};this.GXValidFnc[25]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[28]={fld:"TABLE3",grid:0};this.GXValidFnc[31]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[33]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vEDINOMCONTENDO",gxz:"ZV5EdiNomContendo",gxold:"OV5EdiNomContendo",gxvar:"AV5EdiNomContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5EdiNomContendo=a
},v2z:function(a){gx.O.ZV5EdiNomContendo=a},v2c:function(){gx.fn.setControlValue("vEDINOMCONTENDO",gx.O.AV5EdiNomContendo,0)},c2v:function(){gx.O.AV5EdiNomContendo=this.val()},val:function(){return gx.fn.getControlValue("vEDINOMCONTENDO")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMAGEMEDITAR",gxz:"ZV17ImagemEditar",gxold:"OV17ImagemEditar",gxvar:"AV17ImagemEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17ImagemEditar=a
},v2z:function(a){gx.O.ZV17ImagemEditar=a},v2c:function(){},c2v:function(){gx.O.AV17ImagemEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMAGEMEDITAR",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:this.Valid_Edinomcomp,isvalid:null,fld:"EDINOMCOMP",gxz:"Z332EdiNomComp",gxold:"O332EdiNomComp",gxvar:"A332EdiNomComp",ucs:[],op:[],ip:[39,38],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A332EdiNomComp=a
},v2z:function(a){gx.O.Z332EdiNomComp=a},v2c:function(){gx.fn.setGridControlValue("EDINOMCOMP",gx.fn.currentGridRowImpl(36),gx.O.A332EdiNomComp,0)},c2v:function(){gx.O.A332EdiNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("EDINOMCOMP",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:70,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:this.Valid_Edinomabre,isvalid:null,fld:"EDINOMABRE",gxz:"Z329EdiNomAbre",gxold:"O329EdiNomAbre",gxvar:"A329EdiNomAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A329EdiNomAbre=a
},v2z:function(a){gx.O.Z329EdiNomAbre=a},v2c:function(){gx.fn.setGridControlValue("EDINOMABRE",gx.fn.currentGridRowImpl(36),gx.O.A329EdiNomAbre,0)},c2v:function(){gx.O.A329EdiNomAbre=this.val()},val:function(){return gx.fn.getGridControlValue("EDINOMABRE",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EDINRO",gxz:"Z334EdiNro",gxold:"O334EdiNro",gxvar:"A334EdiNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A334EdiNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z334EdiNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EDINRO",gx.fn.currentGridRowImpl(36),gx.O.A334EdiNro,0)},c2v:function(){gx.O.A334EdiNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("EDINRO",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EDINOMCIDA",gxz:"Z331EdiNomCida",gxold:"O331EdiNomCida",gxvar:"A331EdiNomCida",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A331EdiNomCida=a
},v2z:function(a){gx.O.Z331EdiNomCida=a},v2c:function(){gx.fn.setGridControlValue("EDINOMCIDA",gx.fn.currentGridRowImpl(36),gx.O.A331EdiNomCida,0)},c2v:function(){gx.O.A331EdiNomCida=this.val()},val:function(){return gx.fn.getGridControlValue("EDINOMCIDA",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.AV19ScrNroEditoraNavegar=0;this.ZV19ScrNroEditoraNavegar=0;this.OV19ScrNroEditoraNavegar=0;this.AV5EdiNomContendo="";this.ZV5EdiNomContendo="";this.OV5EdiNomContendo="";this.ZV17ImagemEditar="";
this.OV17ImagemEditar="";this.Z332EdiNomComp="";this.O332EdiNomComp="";this.Z329EdiNomAbre="";this.O329EdiNomAbre="";this.Z334EdiNro=0;this.O334EdiNro=0;this.Z331EdiNomCida="";this.O331EdiNomCida="";this.A333EdiNomSemA="";this.AV17ImagemEditar="";this.A332EdiNomComp="";this.A329EdiNomAbre="";this.A334EdiNro=0;this.A331EdiNomCida="";this.ServerEvents=["e11jh2_client","e12jh2_client","e13jh2_client","e18jh1_client","e19jh1_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.A333EdiNomSemA={id:"EDINOMSEMA",grid:0,type:"char"};
this.VarControlMap.AV8CharDB={id:"vCHARDB",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[33]);this.Grid1Container.addRefreshingVar({rfrVar:"AV8CharDB"});this.SetStandaloneVars()}himh278.prototype=new gx.GxObject;gx.setParentObj(new himh278());