gx.evt.autoSkip=false;function tmit006(){this.ServerClass="TMit006";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A333EdiNomSemA=gx.fn.getControlValue("EDINOMSEMA");this.Gx_date=gx.fn.getDateValue("vTODAY");this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.AV7IndEdiDupl=gx.fn.getControlValue("vINDEDIDUPL");this.AV18MsgEditora=gx.fn.getControlValue("vMSGEDITORA");this.AV15HstCodEstacao=gx.fn.getControlValue("vHSTCODESTACAO");
this.AV8UsuCodCorr=gx.fn.getControlValue("vUSUCODCORR");this.AV16HstTipEntidade=gx.fn.getControlValue("vHSTTIPENTIDADE");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Edinro=function(){gx.ajax.validSrvEvt("dyncall","valid_Edinro",["gx.O.AV8UsuCodCorr","gx.O.AV16HstTipEntidade","gx.O.AV15HstCodEstacao","gx.O.A334EdiNro","gx.O.A333EdiNomSemA","gx.O.A329EdiNomAbre","gx.O.A332EdiNomComp","gx.O.A326EdiDesEnde","gx.O.A330EdiNomBair","gx.O.A336EdiNroCEP","gx.O.A331EdiNomCida","gx.O.A324EdiCodUF","gx.O.A337EdiNroFone","gx.O.A328EdiNom1Con","gx.O.A335EdiNro1Fon","gx.O.A323EdiCodEMai","gx.O.A327EdiDesUrl",'gx.date.urlDate(gx.O.A325EdiDatAtua,"DMY")'],["A333EdiNomSemA","A329EdiNomAbre","A332EdiNomComp","A326EdiDesEnde","A330EdiNomBair","A336EdiNroCEP","A331EdiNomCida","A324EdiCodUF","A337EdiNroFone","A328EdiNom1Con","A335EdiNro1Fon","A323EdiCodEMai","A327EdiDesUrl","A325EdiDatAtua","Gx_mode","Z334EdiNro","Z333EdiNomSemA","Z329EdiNomAbre","Z332EdiNomComp","Z326EdiDesEnde","Z330EdiNomBair","Z336EdiNroCEP","Z331EdiNomCida","Z324EdiCodUF","Z337EdiNroFone","Z328EdiNom1Con","Z335EdiNro1Fon","Z323EdiCodEMai","Z327EdiDesUrl","Z325EdiDatAtua","O332EdiNomComp","O329EdiNomAbre",["BTN_ENTER2","Enabled"]]);
return true};this.Valid_Edinomabre=function(){try{var a=gx.util.balloon.getNew("EDINOMABRE");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Edinomcomp=function(){try{var a=gx.util.balloon.getNew("EDINOMCOMP");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e114t139_client=function(){this.clearMessages();if(this.Gx_mode=="UPD"){gx.popup.openUrl(gx.http.formatLink("himh022",[this.A334EdiNro,"EDITORA##"]),["A334EdiNro",""])
}else{this.addMessage("Selecione uma editora para emitir uma carta")}this.refreshOutputs([])};this.e124t139_client=function(){this.clearMessages();if(!(0==this.A334EdiNro)){this.AV16HstTipEntidade="O";gx.popup.openUrl(gx.http.formatLink("himh073",[this.AV16HstTipEntidade,this.A334EdiNro]),["AV16HstTipEntidade","A334EdiNro"])}else{this.addMessage("Selecione uma editora para ver o Log")}this.refreshOutputs([{av:"AV16HstTipEntidade",fld:"vHSTTIPENTIDADE"}])};this.e144t2_client=function(){this.executeServerEvent("'APAGA EDITORA'",false)
};this.e154t2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e164t2_client=function(){this.executeServerEvent("'GET PENSA-B'",false)};this.e174t139_client=function(){this.executeServerEvent("ENTER",true)};this.e184t139_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[4,7,22,28,31,33,36,41,43,46,48,51,53,56,58,61,63,66,68,71,73,76,78,81,83,86,88,91,93,96,98,101,103];this.GXLastCtrlId=103;this.GXValidFnc[4]={fld:"TABLE1",grid:0};this.GXValidFnc[7]={fld:"TABLE4",grid:0};
this.GXValidFnc[22]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[28]={fld:"TABLE2",grid:0};this.GXValidFnc[31]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[33]={fld:"TABLE3",grid:0};this.GXValidFnc[36]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Edinro,isvalid:null,rgrid:[],fld:"EDINRO",gxz:"Z334EdiNro",gxold:"O334EdiNro",gxvar:"A334EdiNro",ucs:[],op:[103,98,93,88,83,78,73,63,68,58,53,48,43],ip:[103,98,93,88,83,78,73,63,68,58,53,48,43,36],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A334EdiNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z334EdiNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("EDINRO",gx.O.A334EdiNro,0)},c2v:function(){gx.O.A334EdiNro=this.val()},val:function(){return gx.fn.getIntegerValue("EDINRO",".")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[43]={lvl:0,type:"char",len:70,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Edinomabre,isvalid:null,fld:"EDINOMABRE",gxz:"Z329EdiNomAbre",gxold:"O329EdiNomAbre",gxvar:"A329EdiNomAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A329EdiNomAbre=a
},v2z:function(a){gx.O.Z329EdiNomAbre=a},v2c:function(){gx.fn.setControlValue("EDINOMABRE",gx.O.A329EdiNomAbre,0)},c2v:function(){gx.O.A329EdiNomAbre=this.val()},val:function(){return gx.fn.getControlValue("EDINOMABRE")},nac:function(){return false}};this.GXValidFnc[46]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[48]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Edinomcomp,isvalid:null,fld:"EDINOMCOMP",gxz:"Z332EdiNomComp",gxold:"O332EdiNomComp",gxvar:"A332EdiNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A332EdiNomComp=a
},v2z:function(a){gx.O.Z332EdiNomComp=a},v2c:function(){gx.fn.setControlValue("EDINOMCOMP",gx.O.A332EdiNomComp,0)},c2v:function(){gx.O.A332EdiNomComp=this.val()},val:function(){return gx.fn.getControlValue("EDINOMCOMP")},nac:function(){return false}};this.GXValidFnc[51]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[53]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDIDESENDE",gxz:"Z326EdiDesEnde",gxold:"O326EdiDesEnde",gxvar:"A326EdiDesEnde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A326EdiDesEnde=a
},v2z:function(a){gx.O.Z326EdiDesEnde=a},v2c:function(){gx.fn.setControlValue("EDIDESENDE",gx.O.A326EdiDesEnde,0)},c2v:function(){gx.O.A326EdiDesEnde=this.val()},val:function(){return gx.fn.getControlValue("EDIDESENDE")},nac:function(){return false}};this.GXValidFnc[56]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[58]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDINOMBAIR",gxz:"Z330EdiNomBair",gxold:"O330EdiNomBair",gxvar:"A330EdiNomBair",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A330EdiNomBair=a
},v2z:function(a){gx.O.Z330EdiNomBair=a},v2c:function(){gx.fn.setControlValue("EDINOMBAIR",gx.O.A330EdiNomBair,0)},c2v:function(){gx.O.A330EdiNomBair=this.val()},val:function(){return gx.fn.getControlValue("EDINOMBAIR")},nac:function(){return false}};this.GXValidFnc[61]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[63]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDINOMCIDA",gxz:"Z331EdiNomCida",gxold:"O331EdiNomCida",gxvar:"A331EdiNomCida",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A331EdiNomCida=a
},v2z:function(a){gx.O.Z331EdiNomCida=a},v2c:function(){gx.fn.setControlValue("EDINOMCIDA",gx.O.A331EdiNomCida,0)},c2v:function(){gx.O.A331EdiNomCida=this.val()},val:function(){return gx.fn.getControlValue("EDINOMCIDA")},nac:function(){return false}};this.GXValidFnc[66]={fld:"TEXTBLOCK14",format:0,grid:0};this.GXValidFnc[68]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDINROCEP",gxz:"Z336EdiNroCEP",gxold:"O336EdiNroCEP",gxvar:"A336EdiNroCEP",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A336EdiNroCEP=a
},v2z:function(a){gx.O.Z336EdiNroCEP=a},v2c:function(){gx.fn.setControlValue("EDINROCEP",gx.O.A336EdiNroCEP,0)},c2v:function(){gx.O.A336EdiNroCEP=this.val()},val:function(){return gx.fn.getControlValue("EDINROCEP")},nac:function(){return false}};this.GXValidFnc[71]={fld:"TEXTBLOCK15",format:0,grid:0};this.GXValidFnc[73]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDICODUF",gxz:"Z324EdiCodUF",gxold:"O324EdiCodUF",gxvar:"A324EdiCodUF",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A324EdiCodUF=a
},v2z:function(a){gx.O.Z324EdiCodUF=a},v2c:function(){gx.fn.setControlValue("EDICODUF",gx.O.A324EdiCodUF,0)},c2v:function(){gx.O.A324EdiCodUF=this.val()},val:function(){return gx.fn.getControlValue("EDICODUF")},nac:function(){return false}};this.GXValidFnc[76]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[78]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDINROFONE",gxz:"Z337EdiNroFone",gxold:"O337EdiNroFone",gxvar:"A337EdiNroFone",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A337EdiNroFone=a
},v2z:function(a){gx.O.Z337EdiNroFone=a},v2c:function(){gx.fn.setControlValue("EDINROFONE",gx.O.A337EdiNroFone,0)},c2v:function(){gx.O.A337EdiNroFone=this.val()},val:function(){return gx.fn.getControlValue("EDINROFONE")},nac:function(){return false}};this.GXValidFnc[81]={fld:"TEXTBLOCK11",format:0,grid:0};this.GXValidFnc[83]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDINOM1CON",gxz:"Z328EdiNom1Con",gxold:"O328EdiNom1Con",gxvar:"A328EdiNom1Con",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A328EdiNom1Con=a
},v2z:function(a){gx.O.Z328EdiNom1Con=a},v2c:function(){gx.fn.setControlValue("EDINOM1CON",gx.O.A328EdiNom1Con,0)},c2v:function(){gx.O.A328EdiNom1Con=this.val()},val:function(){return gx.fn.getControlValue("EDINOM1CON")},nac:function(){return false}};this.GXValidFnc[86]={fld:"TEXTBLOCK16",format:0,grid:0};this.GXValidFnc[88]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDINRO1FON",gxz:"Z335EdiNro1Fon",gxold:"O335EdiNro1Fon",gxvar:"A335EdiNro1Fon",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A335EdiNro1Fon=a
},v2z:function(a){gx.O.Z335EdiNro1Fon=a},v2c:function(){gx.fn.setControlValue("EDINRO1FON",gx.O.A335EdiNro1Fon,0)},c2v:function(){gx.O.A335EdiNro1Fon=this.val()},val:function(){return gx.fn.getControlValue("EDINRO1FON")},nac:function(){return false}};this.GXValidFnc[91]={fld:"TEXTBLOCK12",format:0,grid:0};this.GXValidFnc[93]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDICODEMAI",gxz:"Z323EdiCodEMai",gxold:"O323EdiCodEMai",gxvar:"A323EdiCodEMai",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A323EdiCodEMai=a
},v2z:function(a){gx.O.Z323EdiCodEMai=a},v2c:function(){gx.fn.setControlValue("EDICODEMAI",gx.O.A323EdiCodEMai,0)},c2v:function(){gx.O.A323EdiCodEMai=this.val()},val:function(){return gx.fn.getControlValue("EDICODEMAI")},nac:function(){return false}};this.GXValidFnc[96]={fld:"TEXTBLOCK13",format:0,grid:0};this.GXValidFnc[98]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDIDESURL",gxz:"Z327EdiDesUrl",gxold:"O327EdiDesUrl",gxvar:"A327EdiDesUrl",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A327EdiDesUrl=a
},v2z:function(a){gx.O.Z327EdiDesUrl=a},v2c:function(){gx.fn.setControlValue("EDIDESURL",gx.O.A327EdiDesUrl,0)},c2v:function(){gx.O.A327EdiDesUrl=this.val()},val:function(){return gx.fn.getControlValue("EDIDESURL")},nac:function(){return false}};this.GXValidFnc[101]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[103]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EDIDATATUA",gxz:"Z325EdiDatAtua",gxold:"O325EdiDatAtua",gxvar:"A325EdiDatAtua",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A325EdiDatAtua=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z325EdiDatAtua=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("EDIDATATUA",gx.O.A325EdiDatAtua,0)},c2v:function(){gx.O.A325EdiDatAtua=this.val()},val:function(){return gx.fn.getControlValue("EDIDATATUA")},nac:function(){return false}};this.A334EdiNro=0;this.Z334EdiNro=0;this.O334EdiNro=0;this.A329EdiNomAbre="";this.Z329EdiNomAbre="";this.O329EdiNomAbre="";this.A332EdiNomComp="";this.Z332EdiNomComp="";this.O332EdiNomComp="";this.A326EdiDesEnde="";this.Z326EdiDesEnde="";
this.O326EdiDesEnde="";this.A330EdiNomBair="";this.Z330EdiNomBair="";this.O330EdiNomBair="";this.A331EdiNomCida="";this.Z331EdiNomCida="";this.O331EdiNomCida="";this.A336EdiNroCEP="";this.Z336EdiNroCEP="";this.O336EdiNroCEP="";this.A324EdiCodUF="";this.Z324EdiCodUF="";this.O324EdiCodUF="";this.A337EdiNroFone="";this.Z337EdiNroFone="";this.O337EdiNroFone="";this.A328EdiNom1Con="";this.Z328EdiNom1Con="";this.O328EdiNom1Con="";this.A335EdiNro1Fon="";this.Z335EdiNro1Fon="";this.O335EdiNro1Fon="";this.A323EdiCodEMai="";
this.Z323EdiCodEMai="";this.O323EdiCodEMai="";this.A327EdiDesUrl="";this.Z327EdiDesUrl="";this.O327EdiDesUrl="";this.A325EdiDatAtua=gx.date.nullDate();this.Z325EdiDatAtua=gx.date.nullDate();this.O325EdiDatAtua=gx.date.nullDate();this.AV8UsuCodCorr="";this.AV16HstTipEntidade="";this.AV17IpStation="";this.AV15HstCodEstacao="";this.AV7IndEdiDupl="";this.AV18MsgEditora="";this.A333EdiNomSemA="";this.Gx_BScreen=0;this.Gx_date=gx.date.nullDate();this.Gx_mode="";this.ServerEvents=["e144t2_client","e154t2_client","e164t2_client","e174t139_client","e184t139_client"];
this.EnterCtrl=["BTN_ENTER2"];this.VarControlMap.A333EdiNomSemA={id:"EDINOMSEMA",grid:0,type:"char"};this.VarControlMap.Gx_date={id:"vTODAY",grid:0,type:"date"};this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.AV7IndEdiDupl={id:"vINDEDIDUPL",grid:0,type:"char"};this.VarControlMap.AV18MsgEditora={id:"vMSGEDITORA",grid:0,type:"char"};this.VarControlMap.AV15HstCodEstacao={id:"vHSTCODESTACAO",grid:0,type:"char"};this.VarControlMap.AV8UsuCodCorr={id:"vUSUCODCORR",grid:0,type:"char"};
this.VarControlMap.AV16HstTipEntidade={id:"vHSTTIPENTIDADE",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars();this.LvlOlds[139]=["O332EdiNomComp","O329EdiNomAbre"]}tmit006.prototype=new gx.GxObject;gx.setParentObj(new tmit006());