gx.evt.autoSkip=false;function hmih038(){this.ServerClass="HMih038";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.A74AutNro=gx.fn.getIntegerValue("AUTNRO",".")};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(30)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(30));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e117q2_client=function(){this.executeServerEvent("'LAST'",false)};this.e127q2_client=function(){this.executeServerEvent("'FIRST'",false)};this.e137q2_client=function(){this.executeServerEvent("'NEXT'",false)};this.e177q2_client=function(){this.executeServerEvent("'PREVIOUS'",true,arguments[0])};this.e147q2_client=function(){this.executeServerEvent("HOME.CLICK",true)};this.e157q2_client=function(){this.executeServerEvent("GO.CLICK",true)};this.e167q2_client=function(){this.executeServerEvent("'VOLTAR'",false)
};this.e197q1_client=function(){this.executeServerEvent("ENTER",true)};this.e207q2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,9,21,26,27,31,32,33,34];this.GXLastCtrlId=34;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",30,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hmih038",[],false,1,false,true,10,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(258,31,"DOCNRO","Docum.","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(863,32,"TIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(451,33,"FUNDESABRE","Função","","FunDesAbre","char",0,"px",12,12,"left",null,[],451,"FunDesAbre",true,0,false,false);this.Subfile1Container.addSingleLineEdit(242,34,"DOCDESL1TI","Título","","DocDesL1Ti","char",500,"px",250,250,"left",null,[],242,"DocDesL1Ti",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};
this.GXValidFnc[6]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={fld:"HOME",grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:7,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vIRPARA",gxz:"ZV26IrPara",gxold:"OV26IrPara",gxvar:"AV26IrPara",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26IrPara=a},v2z:function(a){gx.O.ZV26IrPara=a},v2c:function(){gx.fn.setControlValue("vIRPARA",gx.O.AV26IrPara,0)},c2v:function(){gx.O.AV26IrPara=this.val()
},val:function(){return gx.fn.getControlValue("vIRPARA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"GO",grid:0};this.GXValidFnc[31]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:30,gxgrid:this.Subfile1Container,fnc:this.Valid_Docnro,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[32,34,33],ip:[32,34,33,31],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(30),gx.O.A258DocNro,1)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Subfile1Container,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(30),gx.O.A863TidCod,1)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:12,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"FUNDESABRE",gxz:"Z451FunDesAbre",gxold:"O451FunDesAbre",gxvar:"A451FunDesAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A451FunDesAbre=a
},v2z:function(a){gx.O.Z451FunDesAbre=a},v2c:function(){gx.fn.setGridControlValue("FUNDESABRE",gx.fn.currentGridRowImpl(30),gx.O.A451FunDesAbre,1)},c2v:function(){gx.O.A451FunDesAbre=this.val()},val:function(){return gx.fn.getGridControlValue("FUNDESABRE",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Subfile1Container,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(30),gx.O.A242DocDesL1Ti,1)},c2v:function(){gx.O.A242DocDesL1Ti=this.val()},val:function(){return gx.fn.getGridControlValue("DOCDESL1TI",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.AV26IrPara="";this.ZV26IrPara="";this.OV26IrPara="";this.Z258DocNro=0;this.O258DocNro=0;this.Z863TidCod="";this.O863TidCod="";this.Z451FunDesAbre="";this.O451FunDesAbre="";this.Z242DocDesL1Ti="";
this.O242DocDesL1Ti="";this.A74AutNro=0;this.A450FunCod=0;this.A258DocNro=0;this.A863TidCod="";this.A451FunDesAbre="";this.A242DocDesL1Ti="";this.A176DauNroSequ=0;this.ServerEvents=["e117q2_client","e127q2_client","e137q2_client","e177q2_client","e147q2_client","e157q2_client","e167q2_client","e197q1_client","e207q2_client"];this.EnterCtrl=["BTN_ENTER1"];this.VarControlMap.A74AutNro={id:"AUTNRO",grid:0,type:"int"};this.VarControlMap.A74AutNro={id:"AUTNRO",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar({rfrVar:"A74AutNro"});
this.SetStandaloneVars()}hmih038.prototype=new gx.GxObject;gx.setParentObj(new hmih038());