gx.evt.autoSkip=false;function tmit007(){this.ServerClass="TMit007";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A646PerDesSemA=gx.fn.getControlValue("PERDESSEMA");this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.A635PerCodIdio=gx.fn.getControlValue("PERCODIDIO");this.A653PerNroCcn=gx.fn.getControlValue("PERNROCCN");this.A634PerCodEdit=gx.fn.getIntegerValue("PERCODEDIT",".");this.A633PerCodClas=gx.fn.getControlValue("PERCODCLAS");
this.A654PerNroIssn=gx.fn.getControlValue("PERNROISSN");this.A639PerDes1Cam=gx.fn.getControlValue("PERDES1CAM");this.A641PerDes2Cam=gx.fn.getControlValue("PERDES2CAM");this.A881TipCod=gx.fn.getControlValue("TIPCOD");this.A638PerCodTipo=gx.fn.getControlValue("PERCODTIPO");this.A648PerIndCont=gx.fn.getControlValue("PERINDCONT");this.A632PerCodArea=gx.fn.getControlValue("PERCODAREA");this.A637PerCodPais=gx.fn.getControlValue("PERCODPAIS");this.A647PerDesSubT=gx.fn.getControlValue("PERDESSUBT");this.A651PerNomLoca=gx.fn.getControlValue("PERNOMLOCA");
this.A645PerDesRedu=gx.fn.getControlValue("PERDESREDU");this.A636PerCodIndi=gx.fn.getControlValue("PERCODINDI");this.A553NpuCod=gx.fn.getControlValue("NPUCOD");this.A684PrdDes=gx.fn.getControlValue("PRDDES");this.A554NpuDesNive=gx.fn.getControlValue("NPUDESNIVE");this.A649PerNomAbre=gx.fn.getControlValue("PERNOMABRE");this.A650PerNomComp=gx.fn.getControlValue("PERNOMCOMP");this.Gx_mode=gx.fn.getControlValue("vMODE");this.AV12Origem=gx.fn.getControlValue("vORIGEM")};this.Valid_Pernro=function(){gx.ajax.validSrvEvt("dyncall","Valid_Pernro",["gx.O.A652PerNro","gx.O.A646PerDesSemA","gx.O.A643PerDesLong","gx.O.A642PerDesAbre","gx.O.A653PerNroCcn","gx.O.A634PerCodEdit","gx.O.A633PerCodClas","gx.O.A655PerQtdDias","gx.O.A654PerNroIssn","gx.O.A640PerDes1Men","gx.O.A644PerDesObse","gx.O.A639PerDes1Cam","gx.O.A641PerDes2Cam","gx.O.A881TipCod","gx.O.A635PerCodIdio","gx.O.A638PerCodTipo","gx.O.A648PerIndCont","gx.O.A632PerCodArea","gx.O.A637PerCodPais","gx.O.A647PerDesSubT","gx.O.A651PerNomLoca","gx.O.A645PerDesRedu","gx.O.A636PerCodIndi","gx.O.A683PrdCod","gx.O.A553NpuCod"],["A649PerNomAbre","A650PerNomComp","A643PerDesLong","A642PerDesAbre","A653PerNroCcn","A634PerCodEdit","A683PrdCod","A633PerCodClas","A655PerQtdDias","A654PerNroIssn","A640PerDes1Men","A644PerDesObse","A639PerDes1Cam","A641PerDes2Cam","A881TipCod","A882TipDes","A635PerCodIdio","A638PerCodTipo","A648PerIndCont","A632PerCodArea","A637PerCodPais","A553NpuCod","A554NpuDesNive","A647PerDesSubT","A651PerNomLoca","A645PerDesRedu","A636PerCodIndi","A646PerDesSemA","A684PrdDes","Gx_mode","Z652PerNro","Z649PerNomAbre","Z650PerNomComp","Z643PerDesLong","Z642PerDesAbre","Z653PerNroCcn","Z634PerCodEdit","Z683PrdCod","Z633PerCodClas","Z655PerQtdDias","Z654PerNroIssn","Z640PerDes1Men","Z644PerDesObse","Z639PerDes1Cam","Z641PerDes2Cam","Z881TipCod","Z882TipDes","Z635PerCodIdio","Z638PerCodTipo","Z648PerIndCont","Z632PerCodArea","Z637PerCodPais","Z553NpuCod","Z554NpuDesNive","Z647PerDesSubT","Z651PerNomLoca","Z645PerDesRedu","Z636PerCodIndi","Z646PerDesSemA","Z684PrdDes","O643PerDesLong",["BTN_GET","Enabled"],["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Perdeslong=function(){gx.ajax.validSrvEvt("dyncall","Valid_Perdeslong",["gx.O.A643PerDesLong","gx.O.A646PerDesSemA"],["A646PerDesSemA"]);return true};this.Valid_Perdesabre=function(){try{var a=gx.util.balloon.getNew("PERDESABRE");this.AnyError=0;if((""==this.A643PerDesLong)||(""==this.A642PerDesAbre)){try{a.setError("Informe o título completo e abreviado");this.AnyError=1}catch(b){}}}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Prdcod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Prdcod",["gx.O.A683PrdCod","gx.O.A684PrdDes"],["A684PrdDes"]);
return true};this.e114u140_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("himh015.aspx",["PE"]),[""]);this.refreshOutputs([])};this.e134u2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e144u2_client=function(){this.executeServerEvent("'MENU PRINCIPAL'",true)};this.e154u140_client=function(){this.executeServerEvent("ENTER",true)};this.e164u140_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[4,7,10,33,36,39,41,45,47,50,52,55,57,60,62,65,67,70,72];
this.GXLastCtrlId=72;this.GXValidFnc[4]={fld:"TABLE2",grid:0};this.GXValidFnc[7]={fld:"TABLE4",grid:0};this.GXValidFnc[10]={fld:"TABLE3",grid:0};this.GXValidFnc[33]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[36]={fld:"TABLE1",grid:0};this.GXValidFnc[39]={fld:"TEXTBLOCK21",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Pernro,isvalid:null,rgrid:[],fld:"PERNRO",gxz:"Z652PerNro",gxold:"O652PerNro",gxvar:"A652PerNro",ucs:[],op:[57,67,72,62,52,47],ip:[57,67,72,62,52,47,41],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A652PerNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z652PerNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("PERNRO",gx.O.A652PerNro,0)},c2v:function(){gx.O.A652PerNro=this.val()},val:function(){return gx.fn.getIntegerValue("PERNRO",".")},nac:function(){return false}};this.GXValidFnc[45]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[47]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Perdeslong,isvalid:null,fld:"PERDESLONG",gxz:"Z643PerDesLong",gxold:"O643PerDesLong",gxvar:"A643PerDesLong",ucs:[],op:[],ip:[47],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A643PerDesLong=a
},v2z:function(a){gx.O.Z643PerDesLong=a},v2c:function(){gx.fn.setControlValue("PERDESLONG",gx.O.A643PerDesLong,0)},c2v:function(){gx.O.A643PerDesLong=this.val()},val:function(){return gx.fn.getControlValue("PERDESLONG")},nac:function(){return false}};this.GXValidFnc[50]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[52]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Perdesabre,isvalid:null,fld:"PERDESABRE",gxz:"Z642PerDesAbre",gxold:"O642PerDesAbre",gxvar:"A642PerDesAbre",ucs:[],op:[52,47],ip:[52,47],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A642PerDesAbre=a
},v2z:function(a){gx.O.Z642PerDesAbre=a},v2c:function(){gx.fn.setControlValue("PERDESABRE",gx.O.A642PerDesAbre,0)},c2v:function(){gx.O.A642PerDesAbre=this.val()},val:function(){return gx.fn.getControlValue("PERDESABRE")},nac:function(){return false}};this.GXValidFnc[55]={fld:"TEXTBLOCK26",format:0,grid:0};this.GXValidFnc[57]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Prdcod,isvalid:null,fld:"PRDCOD",gxz:"Z683PrdCod",gxold:"O683PrdCod",gxvar:"A683PrdCod",ucs:[],op:[],ip:[57],nacdep:[],ctrltype:"dyncombo",v2v:function(a){gx.O.A683PrdCod=a
},v2z:function(a){gx.O.Z683PrdCod=a},v2c:function(){gx.fn.setComboBoxValue("PRDCOD",gx.O.A683PrdCod)},c2v:function(){gx.O.A683PrdCod=this.val()},val:function(){return gx.fn.getControlValue("PRDCOD")},nac:function(){return false}};this.GXValidFnc[60]={fld:"TEXTBLOCK24",format:0,grid:0};this.GXValidFnc[62]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"PERQTDDIAS",gxz:"Z655PerQtdDias",gxold:"O655PerQtdDias",gxvar:"A655PerQtdDias",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A655PerQtdDias=gx.num.intval(a)
},v2z:function(a){gx.O.Z655PerQtdDias=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("PERQTDDIAS",gx.O.A655PerQtdDias,0)},c2v:function(){gx.O.A655PerQtdDias=this.val()},val:function(){return gx.fn.getIntegerValue("PERQTDDIAS",".")},nac:function(){return false}};this.GXValidFnc[65]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[67]={lvl:0,type:"char",len:150,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERDESOBSE",gxz:"Z644PerDesObse",gxold:"O644PerDesObse",gxvar:"A644PerDesObse",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A644PerDesObse=a
},v2z:function(a){gx.O.Z644PerDesObse=a},v2c:function(){gx.fn.setControlValue("PERDESOBSE",gx.O.A644PerDesObse,0)},c2v:function(){gx.O.A644PerDesObse=this.val()},val:function(){return gx.fn.getControlValue("PERDESOBSE")},nac:function(){return false}};this.GXValidFnc[70]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[72]={lvl:0,type:"char",len:200,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERDES1MEN",gxz:"Z640PerDes1Men",gxold:"O640PerDes1Men",gxvar:"A640PerDes1Men",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A640PerDes1Men=a
},v2z:function(a){gx.O.Z640PerDes1Men=a},v2c:function(){gx.fn.setControlValue("PERDES1MEN",gx.O.A640PerDes1Men,0)},c2v:function(){gx.O.A640PerDes1Men=this.val()},val:function(){return gx.fn.getControlValue("PERDES1MEN")},nac:function(){return false}};this.A652PerNro=0;this.Z652PerNro=0;this.O652PerNro=0;this.A643PerDesLong="";this.Z643PerDesLong="";this.O643PerDesLong="";this.A642PerDesAbre="";this.Z642PerDesAbre="";this.O642PerDesAbre="";this.A683PrdCod="";this.Z683PrdCod="";this.O683PrdCod="";this.A655PerQtdDias=0;
this.Z655PerQtdDias=0;this.O655PerQtdDias=0;this.A644PerDesObse="";this.Z644PerDesObse="";this.O644PerDesObse="";this.A640PerDes1Men="";this.Z640PerDes1Men="";this.O640PerDes1Men="";this.AV9UsuCodCorr="";this.AV7IndLiber="";this.Gx_msg="";this.AV12Origem="";this.A646PerDesSemA="";this.Gx_BScreen=0;this.A649PerNomAbre="";this.A650PerNomComp="";this.A653PerNroCcn="";this.A634PerCodEdit=0;this.A684PrdDes="";this.A633PerCodClas="";this.A654PerNroIssn="";this.A639PerDes1Cam="";this.A641PerDes2Cam="";this.A881TipCod="";
this.A882TipDes="";this.A635PerCodIdio="";this.A638PerCodTipo="";this.A648PerIndCont="";this.A632PerCodArea="";this.A637PerCodPais="";this.A553NpuCod="";this.A554NpuDesNive="";this.A647PerDesSubT="";this.A651PerNomLoca="";this.A645PerDesRedu="";this.A636PerCodIndi="";this.ServerEvents=["e134u2_client","e144u2_client","e154u140_client","e164u140_client"];this.EnterCtrl=["BTN_ENTER2"];this.VarControlMap.A646PerDesSemA={id:"PERDESSEMA",grid:0,type:"char"};this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};
this.VarControlMap.A635PerCodIdio={id:"PERCODIDIO",grid:0,type:"char"};this.VarControlMap.A653PerNroCcn={id:"PERNROCCN",grid:0,type:"char"};this.VarControlMap.A634PerCodEdit={id:"PERCODEDIT",grid:0,type:"int"};this.VarControlMap.A633PerCodClas={id:"PERCODCLAS",grid:0,type:"char"};this.VarControlMap.A654PerNroIssn={id:"PERNROISSN",grid:0,type:"char"};this.VarControlMap.A639PerDes1Cam={id:"PERDES1CAM",grid:0,type:"char"};this.VarControlMap.A641PerDes2Cam={id:"PERDES2CAM",grid:0,type:"char"};this.VarControlMap.A881TipCod={id:"TIPCOD",grid:0,type:"char"};
this.VarControlMap.A638PerCodTipo={id:"PERCODTIPO",grid:0,type:"char"};this.VarControlMap.A648PerIndCont={id:"PERINDCONT",grid:0,type:"char"};this.VarControlMap.A632PerCodArea={id:"PERCODAREA",grid:0,type:"char"};this.VarControlMap.A637PerCodPais={id:"PERCODPAIS",grid:0,type:"char"};this.VarControlMap.A647PerDesSubT={id:"PERDESSUBT",grid:0,type:"char"};this.VarControlMap.A651PerNomLoca={id:"PERNOMLOCA",grid:0,type:"char"};this.VarControlMap.A645PerDesRedu={id:"PERDESREDU",grid:0,type:"char"};this.VarControlMap.A636PerCodIndi={id:"PERCODINDI",grid:0,type:"char"};
this.VarControlMap.A553NpuCod={id:"NPUCOD",grid:0,type:"char"};this.VarControlMap.A684PrdDes={id:"PRDDES",grid:0,type:"char"};this.VarControlMap.A554NpuDesNive={id:"NPUDESNIVE",grid:0,type:"char"};this.VarControlMap.A649PerNomAbre={id:"PERNOMABRE",grid:0,type:"char"};this.VarControlMap.A650PerNomComp={id:"PERNOMCOMP",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.AV12Origem={id:"vORIGEM",grid:0,type:"char"};this.SetStandaloneVars();this.LvlOlds[140]=["O643PerDesLong"]
}tmit007.prototype=new gx.GxObject;gx.setParentObj(new tmit007());