gx.evt.autoSkip=false;function himh024(){this.ServerClass="HImh024";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV27TipEntid=gx.fn.getControlValue("vTIPENTID");this.AV112ParmCodEntidade=gx.fn.getControlValue("vPARMCODENTIDADE")};this.Valid_Docnro=function(){try{if(gx.fn.currentGridRowImpl(12)===0){return true}var a=gx.util.balloon.getNew("DOCNRO",gx.fn.currentGridRowImpl(12));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()
}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Tidcod=function(){try{if(gx.fn.currentGridRowImpl(12)===0){return true}var a=gx.util.balloon.getNew("TIDCOD",gx.fn.currentGridRowImpl(12));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e110b2_client=function(){this.executeServerEvent("'EXPORTAR SELECAO'",false)};this.e130b2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e150b2_client=function(){this.executeServerEvent("'VOLTAR'",true,arguments[0])
};this.e160b1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,10,13,14,15,16,17,18,19];this.GXLastCtrlId=19;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",12,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh024",[],false,1,true,true,15,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");this.Grid1Container.addCheckBox("Op",13,"vOP","","","Op","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit(258,14,"DOCNRO","Doc","","DocNro","int",46,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(863,15,"TIDCOD","Tipo","","TidCod","char",43,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(242,16,"DOCDESL1TI","Título","","DocDesL1Ti","char",410,"px",250,250,"left",null,[],242,"DocDesL1Ti",true,0,false,false);this.Grid1Container.addSingleLineEdit("Descomplem",17,"vDESCOMPLEM","Complemento","","DesComplem","char",160,"px",30,30,"left",null,[],"Descomplem","DesComplem",true,0,false,false);this.Grid1Container.addSingleLineEdit(113,18,"CEDNROITEM","Item","","CedNroItem","int",46,"px",6,6,"right",null,[],113,"CedNroItem",true,0,false,false);
this.Grid1Container.addSingleLineEdit(112,19,"CEDNROARTI","Artigo","","CedNroArti","int",38,"px",4,4,"right",null,[],112,"CedNroArti",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[13]={lvl:2,type:"char",len:1,dec:0,sign:true,ro:0,grid:12,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vOP",gxz:"ZV125Op",gxold:"OV125Op",gxvar:"AV125Op",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV125Op=a
},v2z:function(a){gx.O.ZV125Op=a},v2c:function(){gx.fn.setGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(12),gx.O.AV125Op,"S")},c2v:function(){gx.O.AV125Op=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(12),"S","N")},nac:function(){return false}};this.GXValidFnc[14]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:12,gxgrid:this.Grid1Container,fnc:this.Valid_Docnro,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[15,16],ip:[16,15,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(12),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(12),".")},nac:function(){return false}};this.GXValidFnc[15]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:12,gxgrid:this.Grid1Container,fnc:this.Valid_Tidcod,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(12),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(12))},nac:function(){return false}};this.GXValidFnc[16]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:12,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(12),gx.O.A242DocDesL1Ti,0)},c2v:function(){gx.O.A242DocDesL1Ti=this.val()},val:function(){return gx.fn.getGridControlValue("DOCDESL1TI",gx.fn.currentGridRowImpl(12))},nac:function(){return false}};this.GXValidFnc[17]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:12,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDESCOMPLEM",gxz:"ZV9DesComplem",gxold:"OV9DesComplem",gxvar:"AV9DesComplem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9DesComplem=a
},v2z:function(a){gx.O.ZV9DesComplem=a},v2c:function(){gx.fn.setGridControlValue("vDESCOMPLEM",gx.fn.currentGridRowImpl(12),gx.O.AV9DesComplem,0)},c2v:function(){gx.O.AV9DesComplem=this.val()},val:function(){return gx.fn.getGridControlValue("vDESCOMPLEM",gx.fn.currentGridRowImpl(12))},nac:function(){return false}};this.GXValidFnc[18]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:12,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CEDNROITEM",gxz:"Z113CedNroItem",gxold:"O113CedNroItem",gxvar:"A113CedNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A113CedNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.Z113CedNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CEDNROITEM",gx.fn.currentGridRowImpl(12),gx.O.A113CedNroItem,0)},c2v:function(){gx.O.A113CedNroItem=this.val()},val:function(){return gx.fn.getGridIntegerValue("CEDNROITEM",gx.fn.currentGridRowImpl(12),".")},nac:function(){return false}};this.GXValidFnc[19]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:12,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CEDNROARTI",gxz:"Z112CedNroArti",gxold:"O112CedNroArti",gxvar:"A112CedNroArti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A112CedNroArti=gx.num.intval(a)
},v2z:function(a){gx.O.Z112CedNroArti=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CEDNROARTI",gx.fn.currentGridRowImpl(12),gx.O.A112CedNroArti,0)},c2v:function(){gx.O.A112CedNroArti=this.val()},val:function(){return gx.fn.getGridIntegerValue("CEDNROARTI",gx.fn.currentGridRowImpl(12),".")},nac:function(){return false}};this.ZV125Op="";this.OV125Op="";this.Z258DocNro=0;this.O258DocNro=0;this.Z863TidCod="";this.O863TidCod="";this.Z242DocDesL1Ti="";this.O242DocDesL1Ti="";this.ZV9DesComplem="";
this.OV9DesComplem="";this.Z113CedNroItem=0;this.O113CedNroItem=0;this.Z112CedNroArti=0;this.O112CedNroArti=0;this.AV27TipEntid="";this.AV112ParmCodEntidade="";this.A871TidIndModo="";this.A764ScdCodEnti="";this.A768ScdTipEnti="";this.AV125Op="";this.A258DocNro=0;this.A863TidCod="";this.A242DocDesL1Ti="";this.AV9DesComplem="";this.A113CedNroItem=0;this.A112CedNroArti=0;this.ServerEvents=["e110b2_client","e130b2_client","e150b2_client","e160b1_client"];this.VarControlMap.AV27TipEntid={id:"vTIPENTID",grid:0,type:"char"};
this.VarControlMap.AV112ParmCodEntidade={id:"vPARMCODENTIDADE",grid:0,type:"char"};this.VarControlMap.AV27TipEntid={id:"vTIPENTID",grid:0,type:"char"};this.VarControlMap.AV112ParmCodEntidade={id:"vPARMCODENTIDADE",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV27TipEntid"});this.Grid1Container.addRefreshingVar({rfrVar:"AV112ParmCodEntidade"});this.SetStandaloneVars()}himh024.prototype=new gx.GxObject;gx.setParentObj(new himh024());