gx.evt.autoSkip=false;function himh142(){this.ServerClass="HImh142";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.addKeyListener("6","e116n2_client");this.SetStandaloneVars=function(){};this.e116n2_client=function(){this.executeServerEvent("'INSERIR'",false)};this.e126n2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e166n2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e176n2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[3,12,16,19,21,23,27,28,29,30];this.GXLastCtrlId=30;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh142",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Grdnrosetor",27,"vGRDNROSETOR","Nro","","GrdNroSetor","int",0,"px",4,4,"right",null,[],"Grdnrosetor","GrdNroSetor",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grdnomsetor",28,"vGRDNOMSETOR","Nome","","GrdNomSetor","char",0,"px",40,40,"left",null,[],"Grdnomsetor","GrdNomSetor",true,0,false,false);this.Grid1Container.addBitmap("&Imgeditar","vIMGEDITAR",29,0,"px",17,"px",null,"","");this.Grid1Container.addBitmap("&Imgexcluir","vIMGEXCLUIR",30,0,"px",17,"px",null,"","");this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE1",grid:0};
this.GXValidFnc[19]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vLTRNRO",gxz:"ZV35LtrNro",gxold:"OV35LtrNro",gxvar:"AV35LtrNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV35LtrNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV35LtrNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vLTRNRO",gx.O.AV35LtrNro,0)},c2v:function(){gx.O.AV35LtrNro=this.val()
},val:function(){return gx.fn.getIntegerValue("vLTRNRO",".")},nac:function(){return false}};this.GXValidFnc[23]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vLTRNOM",gxz:"ZV36LtrNom",gxold:"OV36LtrNom",gxvar:"AV36LtrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV36LtrNom=a},v2z:function(a){gx.O.ZV36LtrNom=a},v2c:function(){gx.fn.setControlValue("vLTRNOM",gx.O.AV36LtrNom,0)},c2v:function(){gx.O.AV36LtrNom=this.val()},val:function(){return gx.fn.getControlValue("vLTRNOM")
},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROSETOR",gxz:"ZV30GrdNroSetor",gxold:"OV30GrdNroSetor",gxvar:"AV30GrdNroSetor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV30GrdNroSetor=gx.num.intval(a)},v2z:function(a){gx.O.ZV30GrdNroSetor=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROSETOR",gx.fn.currentGridRowImpl(26),gx.O.AV30GrdNroSetor,0)
},c2v:function(){gx.O.AV30GrdNroSetor=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROSETOR",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNOMSETOR",gxz:"ZV31GrdNomSetor",gxold:"OV31GrdNomSetor",gxvar:"AV31GrdNomSetor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31GrdNomSetor=a},v2z:function(a){gx.O.ZV31GrdNomSetor=a
},v2c:function(){gx.fn.setGridControlValue("vGRDNOMSETOR",gx.fn.currentGridRowImpl(26),gx.O.AV31GrdNomSetor,0)},c2v:function(){gx.O.AV31GrdNomSetor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMSETOR",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV25ImgEditar",gxold:"OV25ImgEditar",gxvar:"AV25ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV25ImgEditar=a
},v2z:function(a){gx.O.ZV25ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV25ImgEditar=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEXCLUIR",gxz:"ZV26ImgExcluir",gxold:"OV26ImgExcluir",gxvar:"AV26ImgExcluir",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26ImgExcluir=a
},v2z:function(a){gx.O.ZV26ImgExcluir=a},v2c:function(){},c2v:function(){gx.O.AV26ImgExcluir=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEXCLUIR",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.AV35LtrNro=0;this.ZV35LtrNro=0;this.OV35LtrNro=0;this.AV36LtrNom="";this.ZV36LtrNom="";this.OV36LtrNom="";this.ZV30GrdNroSetor=0;this.OV30GrdNroSetor=0;this.ZV31GrdNomSetor="";this.OV31GrdNomSetor="";this.ZV25ImgEditar="";this.OV25ImgEditar="";this.ZV26ImgExcluir="";this.OV26ImgExcluir="";
this.AV30GrdNroSetor=0;this.AV31GrdNomSetor="";this.AV25ImgEditar="";this.AV26ImgExcluir="";this.ServerEvents=["e116n2_client","e126n2_client","e166n2_client","e176n2_client"];this.VarControlMap.AV32QtdSetores={id:"vQTDSETORES",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[21]);this.Grid1Container.addRefreshingVar({rfrVar:"AV32QtdSetores"});this.SetStandaloneVars()}himh142.prototype=new gx.GxObject;gx.setParentObj(new himh142());