gx.evt.autoSkip=false;function hmih078backup(){this.ServerClass="HMih078backup";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Validv_Tidcod=function(){try{var a=gx.util.balloon.getNew("vTIDCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e17dz2_client=function(){this.clearMessages();this.refreshOutputs([])};this.e18dz2_client=function(){this.clearMessages();this.refreshOutputs([])
};this.e11dz2_client=function(){this.executeServerEvent("'PROXIMA'",false)};this.e16dz2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e13dz2_client=function(){this.executeServerEvent("'PRIMEIRA'",false)};this.e19dz2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,10,13,16,18,22,24,28,30,32,34,38,39,40,41,44,46,48];this.GXLastCtrlId=48;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",37,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hmih078backup",[],false,1,true,true,40,true,false,false,"",0,"px","Novo registro",true,false,true,null,null,false,"");
this.Subfile1Container.addSingleLineEdit("Docdestitulo",38,"vDOCDESTITULO","Título","","DocDesTitulo","char",410,"px",80,80,"left",null,[],"Docdestitulo","DocDesTitulo",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Nomautor",39,"vNOMAUTOR","Autor","","NomAutor","char",410,"px",250,250,"left",null,[],"Nomautor","NomAutor",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Chamada",40,"vCHAMADA","Chamada","","Chamada","char",160,"px",30,30,"left",null,[],"Chamada","Chamada",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Docnro",41,"vDOCNRO","Doc","","DocNro","int",46,"px",6,6,"right",null,[],"Docnro","DocNro",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE2",grid:0};this.GXValidFnc[16]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[18]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vUNDCOD",gxz:"ZV34UndCod",gxold:"OV34UndCod",gxvar:"AV34UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV34UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV34UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setComboBoxValue("vUNDCOD",gx.O.AV34UndCod)},c2v:function(){gx.O.AV34UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Tidcod,isvalid:null,fld:"vTIDCOD",gxz:"ZV12TidCod",gxold:"OV12TidCod",gxvar:"AV12TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"dyncombo",v2v:function(a){gx.O.AV12TidCod=a
},v2z:function(a){gx.O.ZV12TidCod=a},v2c:function(){gx.fn.setComboBoxValue("vTIDCOD",gx.O.AV12TidCod)},c2v:function(){gx.O.AV12TidCod=this.val()},val:function(){return gx.fn.getControlValue("vTIDCOD")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:45,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCTITULOINICIAL",gxz:"ZV13DscTituloInicial",gxold:"OV13DscTituloInicial",gxvar:"AV13DscTituloInicial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV13DscTituloInicial=a
},v2z:function(a){gx.O.ZV13DscTituloInicial=a},v2c:function(){gx.fn.setControlValue("vDSCTITULOINICIAL",gx.O.AV13DscTituloInicial,0)},c2v:function(){gx.O.AV13DscTituloInicial=this.val()},val:function(){return gx.fn.getControlValue("vDSCTITULOINICIAL")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[34]={fld:"IMAGE1",grid:0};this.GXValidFnc[38]={lvl:2,type:"char",len:80,dec:0,sign:false,ro:0,grid:37,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDOCDESTITULO",gxz:"ZV11DocDesTitulo",gxold:"OV11DocDesTitulo",gxvar:"AV11DocDesTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11DocDesTitulo=a
},v2z:function(a){gx.O.ZV11DocDesTitulo=a},v2c:function(){gx.fn.setGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(37),gx.O.AV11DocDesTitulo,0)},c2v:function(){gx.O.AV11DocDesTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCDESTITULO",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:0,grid:37,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vNOMAUTOR",gxz:"ZV27NomAutor",gxold:"OV27NomAutor",gxvar:"AV27NomAutor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27NomAutor=a
},v2z:function(a){gx.O.ZV27NomAutor=a},v2c:function(){gx.fn.setGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(37),gx.O.AV27NomAutor,0)},c2v:function(){gx.O.AV27NomAutor=this.val()},val:function(){return gx.fn.getGridControlValue("vNOMAUTOR",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:0,grid:37,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vCHAMADA",gxz:"ZV26Chamada",gxold:"OV26Chamada",gxvar:"AV26Chamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26Chamada=a
},v2z:function(a){gx.O.ZV26Chamada=a},v2c:function(){gx.fn.setGridControlValue("vCHAMADA",gx.fn.currentGridRowImpl(37),gx.O.AV26Chamada,0)},c2v:function(){gx.O.AV26Chamada=this.val()},val:function(){return gx.fn.getGridControlValue("vCHAMADA",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:37,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vDOCNRO",gxz:"ZV18DocNro",gxold:"OV18DocNro",gxvar:"AV18DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV18DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vDOCNRO",gx.fn.currentGridRowImpl(37),gx.O.AV18DocNro,0)},c2v:function(){gx.O.AV18DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vDOCNRO",gx.fn.currentGridRowImpl(37),".")},nac:function(){return false}};this.GXValidFnc[44]={fld:"MENSAGEM1",format:0,grid:0};this.GXValidFnc[46]={fld:"MENSAGEM2",format:0,grid:0};this.GXValidFnc[48]={fld:"MENSAGEM3",format:0,grid:0};this.AV34UndCod=0;this.ZV34UndCod=0;
this.OV34UndCod=0;this.AV12TidCod="";this.ZV12TidCod="";this.OV12TidCod="";this.AV13DscTituloInicial="";this.ZV13DscTituloInicial="";this.OV13DscTituloInicial="";this.ZV11DocDesTitulo="";this.OV11DocDesTitulo="";this.ZV27NomAutor="";this.OV27NomAutor="";this.ZV26Chamada="";this.OV26Chamada="";this.ZV18DocNro=0;this.OV18DocNro=0;this.AV11DocDesTitulo="";this.AV27NomAutor="";this.AV26Chamada="";this.AV18DocNro=0;this.A258DocNro=0;this.A863TidCod="";this.A249DocDesTitu="";this.A235DocCodAuto="";this.A234DocCodAssu="";
this.A242DocDesL1Ti="";this.A871TidIndModo="";this.A922UndCod=0;this.A925UndNomComp="";this.ServerEvents=["e11dz2_client","e16dz2_client","e13dz2_client","e19dz2_client"];this.VarControlMap.AV33IndModeloApresentacao={id:"vINDMODELOAPRESENTACAO",grid:0,type:"char"};this.VarControlMap.A871TidIndModo={id:"TIDINDMODO",grid:0,type:"char"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.VarControlMap.AV14ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.VarControlMap.A235DocCodAuto={id:"DOCCODAUTO",grid:0,type:"char"};
this.VarControlMap.A234DocCodAssu={id:"DOCCODASSU",grid:0,type:"char"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.VarControlMap.A249DocDesTitu={id:"DOCDESTITU",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar({rfrVar:"AV33IndModeloApresentacao"});this.Subfile1Container.addRefreshingVar({rfrVar:"A871TidIndModo"});this.Subfile1Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.Subfile1Container.addRefreshingVar({rfrVar:"AV14ParTipForm"});this.Subfile1Container.addRefreshingVar({rfrVar:"A235DocCodAuto"});
this.Subfile1Container.addRefreshingVar({rfrVar:"A234DocCodAssu"});this.Subfile1Container.addRefreshingVar(this.GXValidFnc[18]);this.Subfile1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.Subfile1Container.addRefreshingVar({rfrVar:"A249DocDesTitu"});this.SetStandaloneVars()}hmih078backup.prototype=new gx.GxObject;gx.setParentObj(new hmih078backup());