gx.evt.autoSkip=false;function himh214(){this.ServerClass="HImh214";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.autoRefresh=true;this.SetStandaloneVars=function(){};this.Validv_Parmnrotombo=function(){try{var a=gx.util.balloon.getNew("vPARMNROTOMBO");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;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e12gz2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e13gz1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,5,14,17,20,22,26,27,28,29,30,31,32,33,34];this.GXLastCtrlId=34;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh214",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(258,26,"DOCNRO","Doc.","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(922,27,"UNDCOD","Un.","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(281,28,"DOENROSEQU","Ex.","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(316,29,"DVONROTOMO","Dupl.","","DvoNroTomo","int",0,"px",2,2,"right",null,[],316,"DvoNroTomo",true,0,false,false);
this.Grid1Container.addSingleLineEdit(863,30,"TIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddsctitulosubtitulo",31,"vGRDDSCTITULOSUBTITULO","Título","","GrdDscTituloSubTitulo","char",410,"px",250,250,"left",null,[],"Grddsctitulosubtitulo","GrdDscTituloSubTitulo",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdnomautor",32,"vGRDNOMAUTOR","Autor","","GrdNomAutor","char",410,"px",100,100,"left",null,[],"Grdnomautor","GrdNomAutor",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Grddscedicao",33,"vGRDDSCEDICAO","Ed.","","GrdDscEdicao","char",40,"px",20,20,"left",null,[],"Grddscedicao","GrdDscEdicao",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grddscchamada",34,"vGRDDSCCHAMADA","Chamada","","GrdDscChamada","char",185,"px",35,35,"left",null,[],"Grddscchamada","GrdDscChamada",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[5]={fld:"TABLE2",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK1",format:0,grid:0};
this.GXValidFnc[17]={fld:"TABLE3",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[22]={lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Validv_Parmnrotombo,isvalid:null,rgrid:[this.Grid1Container],fld:"vPARMNROTOMBO",gxz:"ZV5ParmNroTombo",gxold:"OV5ParmNroTombo",gxvar:"AV5ParmNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5ParmNroTombo=gx.num.intval(a)},v2z:function(a){gx.O.ZV5ParmNroTombo=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("vPARMNROTOMBO",gx.O.AV5ParmNroTombo,0)},c2v:function(){gx.O.AV5ParmNroTombo=this.val()},val:function(){return gx.fn.getIntegerValue("vPARMNROTOMBO",".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:this.Valid_Docnro,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[30],ip:[30,26],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[27]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(25),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOENROSEQU",gx.fn.currentGridRowImpl(25),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DVONROTOMO",gxz:"Z316DvoNroTomo",gxold:"O316DvoNroTomo",gxvar:"A316DvoNroTomo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A316DvoNroTomo=gx.num.intval(a)
},v2z:function(a){gx.O.Z316DvoNroTomo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DVONROTOMO",gx.fn.currentGridRowImpl(25),gx.O.A316DvoNroTomo,0)},c2v:function(){gx.O.A316DvoNroTomo=this.val()},val:function(){return gx.fn.getGridIntegerValue("DVONROTOMO",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIDCOD",gxz:"Z863TidCod",gxold:"O863TidCod",gxvar:"A863TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A863TidCod=a
},v2z:function(a){gx.O.Z863TidCod=a},v2c:function(){gx.fn.setGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(25),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCTITULOSUBTITULO",gxz:"ZV14GrdDscTituloSubTitulo",gxold:"OV14GrdDscTituloSubTitulo",gxvar:"AV14GrdDscTituloSubTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV14GrdDscTituloSubTitulo=a
},v2z:function(a){gx.O.ZV14GrdDscTituloSubTitulo=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCTITULOSUBTITULO",gx.fn.currentGridRowImpl(25),gx.O.AV14GrdDscTituloSubTitulo,0)},c2v:function(){gx.O.AV14GrdDscTituloSubTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCTITULOSUBTITULO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDNOMAUTOR",gxz:"ZV10GrdNomAutor",gxold:"OV10GrdNomAutor",gxvar:"AV10GrdNomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10GrdNomAutor=a
},v2z:function(a){gx.O.ZV10GrdNomAutor=a},v2c:function(){gx.fn.setGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(25),gx.O.AV10GrdNomAutor,0)},c2v:function(){gx.O.AV10GrdNomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDNOMAUTOR",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCEDICAO",gxz:"ZV15GrdDscEdicao",gxold:"OV15GrdDscEdicao",gxvar:"AV15GrdDscEdicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15GrdDscEdicao=a
},v2z:function(a){gx.O.ZV15GrdDscEdicao=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCEDICAO",gx.fn.currentGridRowImpl(25),gx.O.AV15GrdDscEdicao,0)},c2v:function(){gx.O.AV15GrdDscEdicao=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCEDICAO",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDDSCCHAMADA",gxz:"ZV6GrdDscChamada",gxold:"OV6GrdDscChamada",gxvar:"AV6GrdDscChamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6GrdDscChamada=a
},v2z:function(a){gx.O.ZV6GrdDscChamada=a},v2c:function(){gx.fn.setGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(25),gx.O.AV6GrdDscChamada,0)},c2v:function(){gx.O.AV6GrdDscChamada=this.val()},val:function(){return gx.fn.getGridControlValue("vGRDDSCCHAMADA",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.AV5ParmNroTombo=0;this.ZV5ParmNroTombo=0;this.OV5ParmNroTombo=0;this.Z258DocNro=0;this.O258DocNro=0;this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;
this.Z316DvoNroTomo=0;this.O316DvoNroTomo=0;this.Z863TidCod="";this.O863TidCod="";this.ZV14GrdDscTituloSubTitulo="";this.OV14GrdDscTituloSubTitulo="";this.ZV10GrdNomAutor="";this.OV10GrdNomAutor="";this.ZV15GrdDscEdicao="";this.OV15GrdDscEdicao="";this.ZV6GrdDscChamada="";this.OV6GrdDscChamada="";this.A242DocDesL1Ti="";this.A315DvoNroTomb=0;this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.A316DvoNroTomo=0;this.A863TidCod="";this.AV14GrdDscTituloSubTitulo="";this.AV10GrdNomAutor="";this.AV15GrdDscEdicao="";
this.AV6GrdDscChamada="";this.ServerEvents=["e12gz2_client","e13gz1_client"];this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[22]);this.Grid1Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.SetStandaloneVars()}himh214.prototype=new gx.GxObject;gx.setParentObj(new himh214());