gx.evt.autoSkip=false;function hlartigo(){this.ServerClass="HLArtigo";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV14DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV25UndCodAux=gx.fn.getIntegerValue("vUNDCODAUX",".");this.AV26DoeNroSequenciaAux=gx.fn.getIntegerValue("vDOENROSEQUENCIAAUX",".");this.AV15DvoNroVolume=gx.fn.getIntegerValue("vDVONROVOLUME",".")};this.Validv_Nroartigoapagar=function(){try{var a=gx.util.balloon.getNew("vNROARTIGOAPAGAR");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11262_client=function(){this.executeServerEvent("ENTER",true)};this.e12262_client=function(){this.executeServerEvent("'NOVO'",false)};this.e13262_client=function(){this.executeServerEvent("'APAGAR ARTIGO'",false)};this.e14262_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e17262_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,16,18,25,26,29,32];
this.GXLastCtrlId=32;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",24,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hlartigo",[],false,1,false,true,15,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");this.Subfile1Container.addSingleLineEdit("Nroartigo",25,"vNROARTIGO","Nro","","NroArtigo","int",0,"px",4,4,"right",null,[],"Nroartigo","NroArtigo",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Destitulo",26,"vDESTITULO","Título","","DesTitulo","char",0,"px",85,85,"left",null,[],"Destitulo","DesTitulo",true,0,false,false);
this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Validv_Nroartigoapagar,isvalid:null,rgrid:[],fld:"vNROARTIGOAPAGAR",gxz:"ZV27NroArtigoApagar",gxold:"OV27NroArtigoApagar",gxvar:"AV27NroArtigoApagar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27NroArtigoApagar=gx.num.intval(a)},v2z:function(a){gx.O.ZV27NroArtigoApagar=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vNROARTIGOAPAGAR",gx.O.AV27NroArtigoApagar,0)
},c2v:function(){gx.O.AV27NroArtigoApagar=this.val()},val:function(){return gx.fn.getIntegerValue("vNROARTIGOAPAGAR",".")},nac:function(){return false}};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[25]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROARTIGO",gxz:"ZV20NroArtigo",gxold:"OV20NroArtigo",gxvar:"AV20NroArtigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20NroArtigo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV20NroArtigo=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNROARTIGO",gx.fn.currentGridRowImpl(24),gx.O.AV20NroArtigo,0)},c2v:function(){gx.O.AV20NroArtigo=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROARTIGO",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:85,dec:0,sign:false,ro:0,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDESTITULO",gxz:"ZV17DesTitulo",gxold:"OV17DesTitulo",gxvar:"AV17DesTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17DesTitulo=a
},v2z:function(a){gx.O.ZV17DesTitulo=a},v2c:function(){gx.fn.setGridControlValue("vDESTITULO",gx.fn.currentGridRowImpl(24),gx.O.AV17DesTitulo,0)},c2v:function(){gx.O.AV17DesTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDESTITULO",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.GXValidFnc[29]={fld:"TABLE2",grid:0};this.GXValidFnc[32]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNROMAIORARTIGO",gxz:"ZV19NroMaiorArtigo",gxold:"OV19NroMaiorArtigo",gxvar:"AV19NroMaiorArtigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19NroMaiorArtigo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV19NroMaiorArtigo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vNROMAIORARTIGO",gx.O.AV19NroMaiorArtigo,0)},c2v:function(){gx.O.AV19NroMaiorArtigo=this.val()},val:function(){return gx.fn.getIntegerValue("vNROMAIORARTIGO",".")},nac:function(){return false}};this.AV27NroArtigoApagar=0;this.ZV27NroArtigoApagar=0;this.OV27NroArtigoApagar=0;this.ZV20NroArtigo=0;this.OV20NroArtigo=0;this.ZV17DesTitulo="";this.OV17DesTitulo="";this.AV19NroMaiorArtigo=0;this.ZV19NroMaiorArtigo=0;
this.OV19NroMaiorArtigo=0;this.AV14DocNro=0;this.AV25UndCodAux=0;this.AV26DoeNroSequenciaAux=0;this.AV15DvoNroVolume=0;this.AV20NroArtigo=0;this.AV17DesTitulo="";this.A112CedNroArti=0;this.A113CedNroItem=0;this.A258DocNro=0;this.A116CedVal1Ind="";this.A114CedNroRepC=0;this.A115CedNroSeqC=0;this.A766ScdNroRepS=0;this.A767ScdNroSeqS=0;this.A765ScdNroAgru=0;this.A764ScdCodEnti="";this.A171CvdNro=0;this.A172CvdValCont="";this.ServerEvents=["e11262_client","e12262_client","e13262_client","e14262_client","e17262_client"];
this.EnterCtrl=["BTN_ENTER1"];this.VarControlMap.AV14DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV25UndCodAux={id:"vUNDCODAUX",grid:0,type:"int"};this.VarControlMap.AV26DoeNroSequenciaAux={id:"vDOENROSEQUENCIAAUX",grid:0,type:"int"};this.VarControlMap.AV15DvoNroVolume={id:"vDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV26DoeNroSequenciaAux={id:"vDOENROSEQUENCIAAUX",grid:0,type:"int"};this.VarControlMap.AV25UndCodAux={id:"vUNDCODAUX",grid:0,type:"int"};this.VarControlMap.AV31IndEstiloCatalogacao={id:"vINDESTILOCATALOGACAO",grid:0,type:"int"};
this.VarControlMap.A172CvdValCont={id:"CVDVALCONT",grid:0,type:"vchar"};this.VarControlMap.A764ScdCodEnti={id:"SCDCODENTI",grid:0,type:"char"};this.VarControlMap.A766ScdNroRepS={id:"SCDNROREPS",grid:0,type:"int"};this.VarControlMap.A767ScdNroSeqS={id:"SCDNROSEQS",grid:0,type:"int"};this.VarControlMap.A765ScdNroAgru={id:"SCDNROAGRU",grid:0,type:"int"};this.VarControlMap.A114CedNroRepC={id:"CEDNROREPC",grid:0,type:"int"};this.VarControlMap.A115CedNroSeqC={id:"CEDNROSEQC",grid:0,type:"int"};this.VarControlMap.A112CedNroArti={id:"CEDNROARTI",grid:0,type:"int"};
this.VarControlMap.A113CedNroItem={id:"CEDNROITEM",grid:0,type:"int"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.AV22QtdArtigos={id:"vQTDARTIGOS",grid:0,type:"int"};this.VarControlMap.AV15DvoNroVolume={id:"vDVONROVOLUME",grid:0,type:"int"};this.VarControlMap.AV14DocNro={id:"vDOCNRO",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar({rfrVar:"AV26DoeNroSequenciaAux"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV25UndCodAux"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV31IndEstiloCatalogacao"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A172CvdValCont"});this.Subfile1Container.addRefreshingVar({rfrVar:"A764ScdCodEnti"});this.Subfile1Container.addRefreshingVar({rfrVar:"A766ScdNroRepS"});this.Subfile1Container.addRefreshingVar({rfrVar:"A767ScdNroSeqS"});this.Subfile1Container.addRefreshingVar({rfrVar:"A765ScdNroAgru"});this.Subfile1Container.addRefreshingVar({rfrVar:"A114CedNroRepC"});this.Subfile1Container.addRefreshingVar({rfrVar:"A115CedNroSeqC"});this.Subfile1Container.addRefreshingVar({rfrVar:"A112CedNroArti"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A113CedNroItem"});this.Subfile1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV22QtdArtigos"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV15DvoNroVolume"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV14DocNro"});this.SetStandaloneVars()}hlartigo.prototype=new gx.GxObject;gx.setParentObj(new hlartigo());