gx.evt.autoSkip=false;function himh059(){this.ServerClass="HImh059";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV12DatAquisIni=gx.fn.getDateValue("vDATAQUISINI");this.AV11DatAquisFim=gx.fn.getDateValue("vDATAQUISFIM");this.AV55IndTodosTipoAquis=gx.fn.getControlValue("vINDTODOSTIPOAQUIS");this.AV77RolTipAquisicao=gx.fn.getControlValue("vROLTIPAQUISICAO");this.AV56IndTodosTipoDoc=gx.fn.getControlValue("vINDTODOSTIPODOC");this.AV78RolTipDocumento=gx.fn.getControlValue("vROLTIPDOCUMENTO");
this.AV57IndTodosUnidades=gx.fn.getControlValue("vINDTODOSUNIDADES");this.AV97UndCodSele=gx.fn.getIntegerValue("vUNDCODSELE",".");this.AV121IndExibirNulos=gx.fn.getControlValue("vINDEXIBIRNULOS");this.AV38IndOrdemExibicao=gx.fn.getControlValue("vINDORDEMEXIBICAO");this.AV124ForCod=gx.fn.getIntegerValue("vFORCOD",".")};this.Validv_Docnro=function(){try{var a=gx.util.balloon.getNew("vDOCNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Undcod=function(){try{var a=gx.util.balloon.getNew("vUNDCOD");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Validv_Nroexemplar=function(){try{var a=gx.util.balloon.getNew("vNROEXEMPLAR");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11512_client=function(){this.executeServerEvent("ENTER",true)};this.e12512_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e16512_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];
this.GXCtrlIds=[3,12,16,17,18,19,20,21,22,23,24,25,28];this.GXLastCtrlId=28;this.Grid2Container=new gx.grid.grid(this,2,"WbpLvl2",15,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"himh059",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid2Container.addSingleLineEdit("Docnro",16,"vDOCNRO","Doc","","DocNro","int",0,"px",6,6,"right",null,[],"Docnro","DocNro",true,0,false,false);this.Grid2Container.addSingleLineEdit("Undcod",17,"vUNDCOD","Un","","UndCod","int",0,"px",3,3,"right",null,[],"Undcod","UndCod",true,0,false,false);
this.Grid2Container.addSingleLineEdit("Nroexemplar",18,"vNROEXEMPLAR","Ex","","NroExemplar","int",0,"px",4,4,"right",null,[],"Nroexemplar","NroExemplar",true,0,false,false);this.Grid2Container.addSingleLineEdit("Docdesl1titulo",19,"vDOCDESL1TITULO","Título","","DocDesL1Titulo","char",0,"px",250,250,"left",null,[],"Docdesl1titulo","DocDesL1Titulo",true,0,false,false);this.Grid2Container.addSingleLineEdit("Nomautor",20,"vNOMAUTOR","Autor","","NomAutor","char",0,"px",250,250,"left",null,[],"Nomautor","NomAutor",true,0,false,false);
this.Grid2Container.addSingleLineEdit("Tidcod",21,"vTIDCOD","Tipo","","TidCod","char",0,"px",3,3,"left",null,[],"Tidcod","TidCod",true,0,false,false);this.Grid2Container.addSingleLineEdit("Qtditensdoexemplar",22,"vQTDITENSDOEXEMPLAR","Qt.itens no exemplar","","QtdItensDoExemplar","int",0,"px",6,6,"right",null,[],"Qtditensdoexemplar","QtdItensDoExemplar",true,0,false,false);this.Grid2Container.addSingleLineEdit("Doevalor",23,"vDOEVALOR","Vl.exemplar","","DoeValor","decimal",0,"px",14,12,"right",null,[],"Doevalor","DoeValor",true,2,false,false);
this.Grid2Container.addSingleLineEdit("Qtditens",24,"vQTDITENS","Qt.itens no período","","QtdItens","int",0,"px",6,6,"right",null,[],"Qtditens","QtdItens",true,0,false,false);this.Grid2Container.addSingleLineEdit("Valitens",25,"vVALITENS","Vl.itens","","ValItens","decimal",0,"px",14,12,"right",null,[],"Valitens","ValItens",true,2,false,false);this.setGrid(this.Grid2Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[16]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:15,gxgrid:this.Grid2Container,fnc:this.Validv_Docnro,isvalid:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV5DocNro",gxold:"OV5DocNro",gxvar:"AV5DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV5DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCNRO",gx.fn.currentGridRowImpl(15),gx.O.AV5DocNro,0)},c2v:function(){gx.O.AV5DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNRO",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[17]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:15,gxgrid:this.Grid2Container,fnc:this.Validv_Undcod,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV96UndCod",gxold:"OV96UndCod",gxvar:"AV96UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV96UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV96UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vUNDCOD",gx.fn.currentGridRowImpl(15),gx.O.AV96UndCod,0)},c2v:function(){gx.O.AV96UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("vUNDCOD",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[18]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:15,gxgrid:this.Grid2Container,fnc:this.Validv_Nroexemplar,isvalid:null,rgrid:[],fld:"vNROEXEMPLAR",gxz:"ZV108NroExemplar",gxold:"OV108NroExemplar",gxvar:"AV108NroExemplar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV108NroExemplar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV108NroExemplar=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNROEXEMPLAR",gx.fn.currentGridRowImpl(15),gx.O.AV108NroExemplar,0)},c2v:function(){gx.O.AV108NroExemplar=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROEXEMPLAR",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[19]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vDOCDESL1TITULO",gxz:"ZV109DocDesL1Titulo",gxold:"OV109DocDesL1Titulo",gxvar:"AV109DocDesL1Titulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV109DocDesL1Titulo=a
},v2z:function(a){gx.O.ZV109DocDesL1Titulo=a},v2c:function(){gx.fn.setGridControlValue("vDOCDESL1TITULO",gx.fn.currentGridRowImpl(15),gx.O.AV109DocDesL1Titulo,0)},c2v:function(){gx.O.AV109DocDesL1Titulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCDESL1TITULO",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vNOMAUTOR",gxz:"ZV114NomAutor",gxold:"OV114NomAutor",gxvar:"AV114NomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV114NomAutor=a
},v2z:function(a){gx.O.ZV114NomAutor=a},v2c:function(){gx.fn.setGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(15),gx.O.AV114NomAutor,0)},c2v:function(){gx.O.AV114NomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:15,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vTIDCOD",gxz:"ZV79TidCod",gxold:"OV79TidCod",gxvar:"AV79TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV79TidCod=a
},v2z:function(a){gx.O.ZV79TidCod=a},v2c:function(){gx.fn.setGridControlValue("vTIDCOD",gx.fn.currentGridRowImpl(15),gx.O.AV79TidCod,0)},c2v:function(){gx.O.AV79TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("vTIDCOD",gx.fn.currentGridRowImpl(15))},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:15,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"vQTDITENSDOEXEMPLAR",gxz:"ZV125QtdItensDoExemplar",gxold:"OV125QtdItensDoExemplar",gxvar:"AV125QtdItensDoExemplar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV125QtdItensDoExemplar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV125QtdItensDoExemplar=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vQTDITENSDOEXEMPLAR",gx.fn.currentGridRowImpl(15),gx.O.AV125QtdItensDoExemplar,0)},c2v:function(){gx.O.AV125QtdItensDoExemplar=this.val()},val:function(){return gx.fn.getGridIntegerValue("vQTDITENSDOEXEMPLAR",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"decimal",len:12,dec:2,sign:false,pic:"ZZZ,ZZZ,ZZ9.99",ro:1,grid:15,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vDOEVALOR",gxz:"ZV110DoeValor",gxold:"OV110DoeValor",gxvar:"AV110DoeValor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV110DoeValor=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV110DoeValor=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vDOEVALOR",gx.fn.currentGridRowImpl(15),gx.O.AV110DoeValor,2,",")},c2v:function(){gx.O.AV110DoeValor=this.val()},val:function(){return gx.fn.getGridDecimalValue("vDOEVALOR",gx.fn.currentGridRowImpl(15),".",",")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:15,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"vQTDITENS",gxz:"ZV67QtdItens",gxold:"OV67QtdItens",gxvar:"AV67QtdItens",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV67QtdItens=gx.num.intval(a)
},v2z:function(a){gx.O.ZV67QtdItens=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vQTDITENS",gx.fn.currentGridRowImpl(15),gx.O.AV67QtdItens,0)},c2v:function(){gx.O.AV67QtdItens=this.val()},val:function(){return gx.fn.getGridIntegerValue("vQTDITENS",gx.fn.currentGridRowImpl(15),".")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"decimal",len:12,dec:2,sign:false,pic:"ZZZ,ZZZ,ZZ9.99",ro:1,grid:15,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vVALITENS",gxz:"ZV126ValItens",gxold:"OV126ValItens",gxvar:"AV126ValItens",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV126ValItens=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV126ValItens=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vVALITENS",gx.fn.currentGridRowImpl(15),gx.O.AV126ValItens,2,",")},c2v:function(){gx.O.AV126ValItens=this.val()},val:function(){return gx.fn.getGridDecimalValue("vVALITENS",gx.fn.currentGridRowImpl(15),".",",")},nac:function(){return false}};this.GXValidFnc[28]={lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCTOTAIS",gxz:"ZV118DscTotais",gxold:"OV118DscTotais",gxvar:"AV118DscTotais",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV118DscTotais=a
},v2z:function(a){gx.O.ZV118DscTotais=a},v2c:function(){gx.fn.setControlValue("vDSCTOTAIS",gx.O.AV118DscTotais,0)},c2v:function(){gx.O.AV118DscTotais=this.val()},val:function(){return gx.fn.getControlValue("vDSCTOTAIS")},nac:function(){return false}};this.ZV5DocNro=0;this.OV5DocNro=0;this.ZV96UndCod=0;this.OV96UndCod=0;this.ZV108NroExemplar=0;this.OV108NroExemplar=0;this.ZV109DocDesL1Titulo="";this.OV109DocDesL1Titulo="";this.ZV114NomAutor="";this.OV114NomAutor="";this.ZV79TidCod="";this.OV79TidCod="";
this.ZV125QtdItensDoExemplar=0;this.OV125QtdItensDoExemplar=0;this.ZV110DoeValor=0;this.OV110DoeValor=0;this.ZV67QtdItens=0;this.OV67QtdItens=0;this.ZV126ValItens=0;this.OV126ValItens=0;this.AV118DscTotais="";this.ZV118DscTotais="";this.OV118DscTotais="";this.AV12DatAquisIni=gx.date.nullDate();this.AV11DatAquisFim=gx.date.nullDate();this.AV55IndTodosTipoAquis="";this.AV77RolTipAquisicao="";this.AV56IndTodosTipoDoc="";this.AV78RolTipDocumento="";this.AV57IndTodosUnidades="";this.AV97UndCodSele=0;this.AV121IndExibirNulos="";
this.AV38IndOrdemExibicao="";this.AV124ForCod=0;this.AV5DocNro=0;this.AV96UndCod=0;this.AV108NroExemplar=0;this.AV109DocDesL1Titulo="";this.AV114NomAutor="";this.AV79TidCod="";this.AV125QtdItensDoExemplar=0;this.AV110DoeValor=0;this.AV67QtdItens=0;this.AV126ValItens=0;this.A38AspDatVenc=gx.date.nullDate();this.A57AssNro=0;this.A43AspValAPag=0;this.A281DoeNroSequ=0;this.A922UndCod=0;this.A258DocNro=0;this.A96DoeValor=0;this.A280DoeNroAssi=0;this.A242DocDesL1Ti="";this.A863TidCod="";this.A871TidIndModo="";
this.ServerEvents=["e11512_client","e12512_client","e16512_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV12DatAquisIni={id:"vDATAQUISINI",grid:0,type:"date"};this.VarControlMap.AV11DatAquisFim={id:"vDATAQUISFIM",grid:0,type:"date"};this.VarControlMap.AV55IndTodosTipoAquis={id:"vINDTODOSTIPOAQUIS",grid:0,type:"char"};this.VarControlMap.AV77RolTipAquisicao={id:"vROLTIPAQUISICAO",grid:0,type:"char"};this.VarControlMap.AV56IndTodosTipoDoc={id:"vINDTODOSTIPODOC",grid:0,type:"char"};this.VarControlMap.AV78RolTipDocumento={id:"vROLTIPDOCUMENTO",grid:0,type:"char"};
this.VarControlMap.AV57IndTodosUnidades={id:"vINDTODOSUNIDADES",grid:0,type:"char"};this.VarControlMap.AV97UndCodSele={id:"vUNDCODSELE",grid:0,type:"int"};this.VarControlMap.AV121IndExibirNulos={id:"vINDEXIBIRNULOS",grid:0,type:"char"};this.VarControlMap.AV38IndOrdemExibicao={id:"vINDORDEMEXIBICAO",grid:0,type:"char"};this.VarControlMap.AV124ForCod={id:"vFORCOD",grid:0,type:"int"};this.VarControlMap.AV121IndExibirNulos={id:"vINDEXIBIRNULOS",grid:0,type:"char"};this.VarControlMap.A43AspValAPag={id:"ASPVALAPAG",grid:0,type:"decimal"};
this.VarControlMap.A280DoeNroAssi={id:"DOENROASSI",grid:0,type:"int"};this.VarControlMap.A96DoeValor={id:"DOEVALOR",grid:0,type:"decimal"};this.VarControlMap.A871TidIndModo={id:"TIDINDMODO",grid:0,type:"char"};this.VarControlMap.A863TidCod={id:"TIDCOD",grid:0,type:"char"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.VarControlMap.AV66QtdExemplares={id:"vQTDEXEMPLARES",grid:0,type:"int"};this.Grid2Container.addRefreshingVar({rfrVar:"AV121IndExibirNulos"});this.Grid2Container.addRefreshingVar({rfrVar:"A43AspValAPag"});
this.Grid2Container.addRefreshingVar({rfrVar:"A280DoeNroAssi"});this.Grid2Container.addRefreshingVar({rfrVar:"A96DoeValor"});this.Grid2Container.addRefreshingVar({rfrVar:"A871TidIndModo"});this.Grid2Container.addRefreshingVar({rfrVar:"A863TidCod"});this.Grid2Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.Grid2Container.addRefreshingVar({rfrVar:"AV66QtdExemplares"});this.SetStandaloneVars()}himh059.prototype=new gx.GxObject;gx.setParentObj(new himh059());