gx.evt.autoSkip=false;function himh030(){this.ServerClass="HImh030";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.A79CaeCod=gx.fn.getIntegerValue("CAECOD",".")};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(13)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(13));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e110h2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e130h2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e140h2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,10,14,15,16,17,18];this.GXLastCtrlId=18;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",13,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh030",[],false,1,false,true,15,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(258,14,"DOCNRO","Doc","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(922,15,"UNDCOD","Unid.","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(281,16,"DOENROSEQU","Exe","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(863,17,"TIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(242,18,"DOCDESL1TI","Título","","DocDesL1Ti","char",0,"px",250,250,"left",null,[],242,"DocDesL1Ti",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[14]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:13,gxgrid:this.Grid1Container,fnc:this.Valid_Docnro,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[17,18],ip:[17,18,14],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(13),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[15]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:13,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(13),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[16]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:13,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(13),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(13),".")},nac:function(){return false}};this.GXValidFnc[17]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:13,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(13),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.GXValidFnc[18]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:13,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DOCDESL1TI",gxz:"Z242DocDesL1Ti",gxold:"O242DocDesL1Ti",gxvar:"A242DocDesL1Ti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A242DocDesL1Ti=a
},v2z:function(a){gx.O.Z242DocDesL1Ti=a},v2c:function(){gx.fn.setGridControlValue("DOCDESL1TI",gx.fn.currentGridRowImpl(13),gx.O.A242DocDesL1Ti,0)},c2v:function(){gx.O.A242DocDesL1Ti=this.val()},val:function(){return gx.fn.getGridControlValue("DOCDESL1TI",gx.fn.currentGridRowImpl(13))},nac:function(){return false}};this.Z258DocNro=0;this.O258DocNro=0;this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.Z863TidCod="";this.O863TidCod="";this.Z242DocDesL1Ti="";this.O242DocDesL1Ti="";
this.A79CaeCod=0;this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.A863TidCod="";this.A242DocDesL1Ti="";this.ServerEvents=["e110h2_client","e130h2_client","e140h2_client"];this.VarControlMap.A79CaeCod={id:"CAECOD",grid:0,type:"int"};this.VarControlMap.A79CaeCod={id:"CAECOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"A79CaeCod"});this.SetStandaloneVars()}himh030.prototype=new gx.GxObject;gx.setParentObj(new himh030());