gx.evt.autoSkip=false;function himh046(){this.ServerClass="HImh046";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A57AssNro=gx.fn.getIntegerValue("ASSNRO",".");this.A11AexNroExer=gx.fn.getControlValue("AEXNROEXER")};this.Validv_Assnro=function(){try{var a=gx.util.balloon.getNew("vASSNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e170v2_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("timt023",[this.A57AssNro,this.A11AexNroExer]),["A57AssNro","A11AexNroExer"]);
this.refreshOutputs([])};this.e110v2_client=function(){this.executeServerEvent("ENTER",true)};this.e120v2_client=function(){this.executeServerEvent("'VIGENTE'",false)};this.e130v2_client=function(){this.executeServerEvent("'IR_PARA'",false)};this.e140v2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e180v2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,14,18,22,25,27,29,31,33,37,38,39,40,41,42,43,44,45,46];this.GXLastCtrlId=46;
this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",36,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh046",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.Grid1Container.addCheckBox("Indvigente",37,"vINDVIGENTE","Vig.","","IndVigente","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Aexnroexer",38,"vAEXNROEXER","Exercício","","AexNroExer","char",0,"px",4,4,"left",null,[],"Aexnroexer","AexNroExer",true,0,false,false);
this.Grid1Container.addComboBox("Aexindvigente",39,"vAEXINDVIGENTE","Vigente","AexIndVigente","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Aexdatassi",40,"vAEXDATASSI","Data assinatura","","AexDatAssi","date",0,"px",10,10,"right",null,[],"Aexdatassi","AexDatAssi",true,0,false,false);this.Grid1Container.addSingleLineEdit("Fornomfant",41,"vFORNOMFANT","Fornecedor","","ForNomFant","char",0,"px",15,15,"left",null,[],"Fornomfant","ForNomFant",true,0,false,false);this.Grid1Container.addSingleLineEdit("Aexqtdmes",42,"vAEXQTDMES","Meses vigência","","AexQtdMes","int",0,"px",3,3,"right",null,[],"Aexqtdmes","AexQtdMes",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Aexdatinir",43,"vAEXDATINIR","Inicio","","AexDatIniR","date",0,"px",10,10,"right",null,[],"Aexdatinir","AexDatIniR",true,0,false,false);this.Grid1Container.addSingleLineEdit("Aexdatfimr",44,"vAEXDATFIMR","Fim","","AexDatFimR","date",0,"px",10,10,"right",null,[],"Aexdatfimr","AexDatFimR",true,0,false,false);this.Grid1Container.addSingleLineEdit("Aexvalassi",45,"vAEXVALASSI","Valor","","AexValAssi","decimal",0,"px",11,10,"right",null,[],"Aexvalassi","AexValAssi",true,2,false,false);
this.Grid1Container.addBitmap("&Imglinkcetrocusto","vIMGLINKCETROCUSTO",46,0,"px",17,"px","e170v2_client","","");this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:4,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNROEXER",gxz:"ZV34NroExer",gxold:"OV34NroExer",gxvar:"AV34NroExer",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV34NroExer=a},v2z:function(a){gx.O.ZV34NroExer=a},v2c:function(){gx.fn.setControlValue("vNROEXER",gx.O.AV34NroExer,0)
},c2v:function(){gx.O.AV34NroExer=this.val()},val:function(){return gx.fn.getControlValue("vNROEXER")},nac:function(){return false}};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[22]={fld:"TABLE2",grid:0};this.GXValidFnc[25]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[27]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Validv_Assnro,isvalid:null,rgrid:[],fld:"vASSNRO",gxz:"ZV19AssNro",gxold:"OV19AssNro",gxvar:"AV19AssNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19AssNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV19AssNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vASSNRO",gx.O.AV19AssNro,0)},c2v:function(){gx.O.AV19AssNro=this.val()},val:function(){return gx.fn.getIntegerValue("vASSNRO",".")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vPERDESABREVTITULO",gxz:"ZV42PerDesAbrevTitulo",gxold:"OV42PerDesAbrevTitulo",gxvar:"AV42PerDesAbrevTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV42PerDesAbrevTitulo=a
},v2z:function(a){gx.O.ZV42PerDesAbrevTitulo=a},v2c:function(){gx.fn.setControlValue("vPERDESABREVTITULO",gx.O.AV42PerDesAbrevTitulo,0)},c2v:function(){gx.O.AV42PerDesAbrevTitulo=this.val()},val:function(){return gx.fn.getControlValue("vPERDESABREVTITULO")},nac:function(){return false}};this.GXValidFnc[33]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDSCPERIODICIDADE",gxz:"ZV46DscPeriodicidade",gxold:"OV46DscPeriodicidade",gxvar:"AV46DscPeriodicidade",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV46DscPeriodicidade=a
},v2z:function(a){gx.O.ZV46DscPeriodicidade=a},v2c:function(){gx.fn.setControlValue("vDSCPERIODICIDADE",gx.O.AV46DscPeriodicidade,0)},c2v:function(){gx.O.AV46DscPeriodicidade=this.val()},val:function(){return gx.fn.getControlValue("vDSCPERIODICIDADE")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vINDVIGENTE",gxz:"ZV31IndVigente",gxold:"OV31IndVigente",gxvar:"AV31IndVigente",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV31IndVigente=a
},v2z:function(a){gx.O.ZV31IndVigente=a},v2c:function(){gx.fn.setGridCheckBoxValue("vINDVIGENTE",gx.fn.currentGridRowImpl(36),gx.O.AV31IndVigente,"S")},c2v:function(){gx.O.AV31IndVigente=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vINDVIGENTE",gx.fn.currentGridRowImpl(36),"S","N")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:4,dec:0,sign:false,ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vAEXNROEXER",gxz:"ZV20AexNroExer",gxold:"OV20AexNroExer",gxvar:"AV20AexNroExer",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20AexNroExer=a
},v2z:function(a){gx.O.ZV20AexNroExer=a},v2c:function(){gx.fn.setGridControlValue("vAEXNROEXER",gx.fn.currentGridRowImpl(36),gx.O.AV20AexNroExer,0)},c2v:function(){gx.O.AV20AexNroExer=this.val()},val:function(){return gx.fn.getGridControlValue("vAEXNROEXER",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vAEXINDVIGENTE",gxz:"ZV28AexIndVigente",gxold:"OV28AexIndVigente",gxvar:"AV28AexIndVigente",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV28AexIndVigente=a
},v2z:function(a){gx.O.ZV28AexIndVigente=a},v2c:function(){gx.fn.setGridComboBoxValue("vAEXINDVIGENTE",gx.fn.currentGridRowImpl(36),gx.O.AV28AexIndVigente)},c2v:function(){gx.O.AV28AexIndVigente=this.val()},val:function(){return gx.fn.getGridControlValue("vAEXINDVIGENTE",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vAEXDATASSI",gxz:"ZV21AexDatAssi",gxold:"OV21AexDatAssi",gxvar:"AV21AexDatAssi",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.AV21AexDatAssi=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV21AexDatAssi=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vAEXDATASSI",gx.fn.currentGridRowImpl(36),gx.O.AV21AexDatAssi,0)},c2v:function(){gx.O.AV21AexDatAssi=this.val()},val:function(){return gx.fn.getGridControlValue("vAEXDATASSI",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vFORNOMFANT",gxz:"ZV22ForNomFant",gxold:"OV22ForNomFant",gxvar:"AV22ForNomFant",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22ForNomFant=a
},v2z:function(a){gx.O.ZV22ForNomFant=a},v2c:function(){gx.fn.setGridControlValue("vFORNOMFANT",gx.fn.currentGridRowImpl(36),gx.O.AV22ForNomFant,0)},c2v:function(){gx.O.AV22ForNomFant=this.val()},val:function(){return gx.fn.getGridControlValue("vFORNOMFANT",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[42]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vAEXQTDMES",gxz:"ZV23AexQtdMes",gxold:"OV23AexQtdMes",gxvar:"AV23AexQtdMes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23AexQtdMes=gx.num.intval(a)
},v2z:function(a){gx.O.ZV23AexQtdMes=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vAEXQTDMES",gx.fn.currentGridRowImpl(36),gx.O.AV23AexQtdMes,0)},c2v:function(){gx.O.AV23AexQtdMes=this.val()},val:function(){return gx.fn.getGridIntegerValue("vAEXQTDMES",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vAEXDATINIR",gxz:"ZV24AexDatIniR",gxold:"OV24AexDatIniR",gxvar:"AV24AexDatIniR",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.AV24AexDatIniR=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV24AexDatIniR=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vAEXDATINIR",gx.fn.currentGridRowImpl(36),gx.O.AV24AexDatIniR,0)},c2v:function(){gx.O.AV24AexDatIniR=this.val()},val:function(){return gx.fn.getGridControlValue("vAEXDATINIR",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vAEXDATFIMR",gxz:"ZV25AexDatFimR",gxold:"OV25AexDatFimR",gxvar:"AV25AexDatFimR",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.AV25AexDatFimR=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV25AexDatFimR=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vAEXDATFIMR",gx.fn.currentGridRowImpl(36),gx.O.AV25AexDatFimR,0)},c2v:function(){gx.O.AV25AexDatFimR=this.val()},val:function(){return gx.fn.getGridControlValue("vAEXDATFIMR",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZ,ZZ9.99",ro:0,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vAEXVALASSI",gxz:"ZV26AexValAssi",gxold:"OV26AexValAssi",gxvar:"AV26AexValAssi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26AexValAssi=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV26AexValAssi=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vAEXVALASSI",gx.fn.currentGridRowImpl(36),gx.O.AV26AexValAssi,2,",")},c2v:function(){gx.O.AV26AexValAssi=this.val()},val:function(){return gx.fn.getGridDecimalValue("vAEXVALASSI",gx.fn.currentGridRowImpl(36),".",",")},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGLINKCETROCUSTO",gxz:"ZV44ImgLinkCetroCusto",gxold:"OV44ImgLinkCetroCusto",gxvar:"AV44ImgLinkCetroCusto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV44ImgLinkCetroCusto=a
},v2z:function(a){gx.O.ZV44ImgLinkCetroCusto=a},v2c:function(){},c2v:function(){gx.O.AV44ImgLinkCetroCusto=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGLINKCETROCUSTO",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.AV34NroExer="";this.ZV34NroExer="";this.OV34NroExer="";this.AV19AssNro=0;this.ZV19AssNro=0;this.OV19AssNro=0;this.AV42PerDesAbrevTitulo="";this.ZV42PerDesAbrevTitulo="";this.OV42PerDesAbrevTitulo="";this.AV46DscPeriodicidade="";this.ZV46DscPeriodicidade="";
this.OV46DscPeriodicidade="";this.ZV31IndVigente="";this.OV31IndVigente="";this.ZV20AexNroExer="";this.OV20AexNroExer="";this.ZV28AexIndVigente="";this.OV28AexIndVigente="";this.ZV21AexDatAssi=gx.date.nullDate();this.OV21AexDatAssi=gx.date.nullDate();this.ZV22ForNomFant="";this.OV22ForNomFant="";this.ZV23AexQtdMes=0;this.OV23AexQtdMes=0;this.ZV24AexDatIniR=gx.date.nullDate();this.OV24AexDatIniR=gx.date.nullDate();this.ZV25AexDatFimR=gx.date.nullDate();this.OV25AexDatFimR=gx.date.nullDate();this.ZV26AexValAssi=0;
this.OV26AexValAssi=0;this.ZV44ImgLinkCetroCusto="";this.OV44ImgLinkCetroCusto="";this.A57AssNro=0;this.A6AexDatAssi=gx.date.nullDate();this.A433ForCod=0;this.A7AexDatFimR=gx.date.nullDate();this.A8AexDatInic=gx.date.nullDate();this.A12AexQtdMese=0;this.A13AexQtdParc=0;this.A14AexValTota=0;this.A9AexIndVige="";this.A11AexNroExer="";this.AV31IndVigente="";this.AV20AexNroExer="";this.AV28AexIndVigente="";this.AV21AexDatAssi=gx.date.nullDate();this.AV22ForNomFant="";this.AV23AexQtdMes=0;this.AV24AexDatIniR=gx.date.nullDate();
this.AV25AexDatFimR=gx.date.nullDate();this.AV26AexValAssi=0;this.AV44ImgLinkCetroCusto="";this.A280DoeNroAssi=0;this.A258DocNro=0;this.ServerEvents=["e110v2_client","e120v2_client","e130v2_client","e140v2_client","e180v2_client"];this.EnterCtrl=["BUTTON8"];this.VarControlMap.A57AssNro={id:"ASSNRO",grid:0,type:"int"};this.VarControlMap.A11AexNroExer={id:"AEXNROEXER",grid:0,type:"char"};this.VarControlMap.AV41ForNomCompleto={id:"vFORNOMCOMPLETO",grid:0,type:"char"};this.VarControlMap.A9AexIndVige={id:"AEXINDVIGE",grid:0,type:"char"};
this.VarControlMap.A14AexValTota={id:"AEXVALTOTA",grid:0,type:"decimal"};this.VarControlMap.A13AexQtdParc={id:"AEXQTDPARC",grid:0,type:"int"};this.VarControlMap.A12AexQtdMese={id:"AEXQTDMESE",grid:0,type:"int"};this.VarControlMap.A8AexDatInic={id:"AEXDATINIC",grid:0,type:"date"};this.VarControlMap.A7AexDatFimR={id:"AEXDATFIMR",grid:0,type:"date"};this.VarControlMap.A433ForCod={id:"FORCOD",grid:0,type:"int"};this.VarControlMap.AV13PrimVez={id:"vPRIMVEZ",grid:0,type:"char"};this.VarControlMap.A6AexDatAssi={id:"AEXDATASSI",grid:0,type:"date"};
this.VarControlMap.A11AexNroExer={id:"AEXNROEXER",grid:0,type:"char"};this.Grid1Container.addRefreshingVar({rfrVar:"AV41ForNomCompleto"});this.Grid1Container.addRefreshingVar(this.GXValidFnc[27]);this.Grid1Container.addRefreshingVar({rfrVar:"A9AexIndVige"});this.Grid1Container.addRefreshingVar({rfrVar:"A14AexValTota"});this.Grid1Container.addRefreshingVar({rfrVar:"A13AexQtdParc"});this.Grid1Container.addRefreshingVar({rfrVar:"A12AexQtdMese"});this.Grid1Container.addRefreshingVar({rfrVar:"A8AexDatInic"});
this.Grid1Container.addRefreshingVar({rfrVar:"A7AexDatFimR"});this.Grid1Container.addRefreshingVar({rfrVar:"A433ForCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV13PrimVez"});this.Grid1Container.addRefreshingVar({rfrVar:"A6AexDatAssi"});this.Grid1Container.addRefreshingVar({rfrVar:"A11AexNroExer"});this.Grid1Container.addRefreshingVar({rfrVar:"A57AssNro"});this.SetStandaloneVars()}himh046.prototype=new gx.GxObject;gx.setParentObj(new himh046());