gx.evt.autoSkip=false;function timt107(){this.ServerClass="TImt107";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A1151EqpIndObri=gx.fn.getControlValue("EQPINDOBRI");this.A1152EqpInd1=gx.fn.getControlValue("EQPIND1");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Eqtnrosequ=function(){try{var a=gx.util.balloon.getNew("EQTNROSEQU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.Valid_Eqpnrosequ=function(){gx.ajax.validSrvEvt("dyncall","Valid_Eqpnrosequ",["gx.O.A1130EqtNroSequ","gx.O.A1138EqpNroSequ","gx.O.A1139EqpDscPerg","gx.O.A1140EqpDscText","gx.O.A1141EqpIndStat","gx.O.A1142EqpTipApre","gx.O.A1143EqpQtdNota","gx.O.A1151EqpIndObri","gx.O.A1152EqpInd1"],["A1139EqpDscPerg","A1140EqpDscText","A1141EqpIndStat","A1142EqpTipApre","A1143EqpQtdNota","A1151EqpIndObri","A1152EqpInd1","Gx_mode","Z1130EqtNroSequ","Z1138EqpNroSequ","Z1139EqpDscPerg","Z1140EqpDscText","Z1141EqpIndStat","Z1142EqpTipApre","Z1143EqpQtdNota","Z1151EqpIndObri","Z1152EqpInd1",["BUTTON1","Enabled"]]);
return true};this.Valid_Eqpdscperg=function(){try{var a=gx.util.balloon.getNew("EQPDSCPERG");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Eqptipapre=function(){try{var a=gx.util.balloon.getNew("EQPTIPAPRE");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Eqpqtdnota=function(){try{var a=gx.util.balloon.getNew("EQPQTDNOTA");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.e1165172_client=function(){this.clearMessages();if(this.Gx_mode=="UPD"){if(this.A1142EqpTipApre=="B"||this.A1142EqpTipApre=="C"){gx.popup.openUrl(gx.http.formatLink("himh307.aspx",[this.A1130EqtNroSequ,this.A1138EqpNroSequ]),[])}else{this.addMessage("Recurso não disponível para este tipo de pergunta")}}else{this.addMessage("Finalize a gravação da pergunta para ter acesso a este recurso")}this.refreshOutputs([])};this.e13652_client=function(){this.executeServerEvent("'NOVO'",false)
};this.e14652_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e1565172_client=function(){this.executeServerEvent("ENTER",true)};this.e1665172_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,17,20,22,25,27,30,32,35,37,40,42,45,47,50,52];this.GXLastCtrlId=52;this.GXValidFnc[2]={fld:"TABLE3",grid:0};this.GXValidFnc[15]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[17]={fld:"TABLE2",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCKEQTNROSEQUENCIA",format:0,grid:0};
this.GXValidFnc[22]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Eqtnrosequ,isvalid:null,rgrid:[],fld:"EQTNROSEQU",gxz:"Z1130EqtNroSequ",gxold:"O1130EqtNroSequ",gxvar:"A1130EqtNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1130EqtNroSequ=gx.num.intval(a)},v2z:function(a){gx.O.Z1130EqtNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("EQTNROSEQU",gx.O.A1130EqtNroSequ,0)},c2v:function(){gx.O.A1130EqtNroSequ=this.val()
},val:function(){return gx.fn.getIntegerValue("EQTNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[25]={fld:"TEXTBLOCKEQPNROSEQUENCIA",format:0,grid:0};this.GXValidFnc[27]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Eqpnrosequ,isvalid:null,rgrid:[],fld:"EQPNROSEQU",gxz:"Z1138EqpNroSequ",gxold:"O1138EqpNroSequ",gxvar:"A1138EqpNroSequ",ucs:[],op:[52,47,42,37,32],ip:[52,47,42,37,32,27,22],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1138EqpNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z1138EqpNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("EQPNROSEQU",gx.O.A1138EqpNroSequ,0)},c2v:function(){gx.O.A1138EqpNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("EQPNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[30]={fld:"TEXTBLOCKEQPDSCPERGUNTA",format:0,grid:0};this.GXValidFnc[32]={lvl:0,type:"svchar",len:400,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Eqpdscperg,isvalid:null,fld:"EQPDSCPERG",gxz:"Z1139EqpDscPerg",gxold:"O1139EqpDscPerg",gxvar:"A1139EqpDscPerg",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1139EqpDscPerg=a
},v2z:function(a){gx.O.Z1139EqpDscPerg=a},v2c:function(){gx.fn.setControlValue("EQPDSCPERG",gx.O.A1139EqpDscPerg,0)},c2v:function(){gx.O.A1139EqpDscPerg=this.val()},val:function(){return gx.fn.getControlValue("EQPDSCPERG")},nac:function(){return false}};this.GXValidFnc[35]={fld:"TEXTBLOCKEQPDSCTEXTOAJUDA",format:0,grid:0};this.GXValidFnc[37]={lvl:0,type:"char",len:180,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQPDSCTEXT",gxz:"Z1140EqpDscText",gxold:"O1140EqpDscText",gxvar:"A1140EqpDscText",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1140EqpDscText=a
},v2z:function(a){gx.O.Z1140EqpDscText=a},v2c:function(){gx.fn.setControlValue("EQPDSCTEXT",gx.O.A1140EqpDscText,0)},c2v:function(){gx.O.A1140EqpDscText=this.val()},val:function(){return gx.fn.getControlValue("EQPDSCTEXT")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TEXTBLOCKEQPINDSTATUS",format:0,grid:0};this.GXValidFnc[42]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQPINDSTAT",gxz:"Z1141EqpIndStat",gxold:"O1141EqpIndStat",gxvar:"A1141EqpIndStat",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1141EqpIndStat=a
},v2z:function(a){gx.O.Z1141EqpIndStat=a},v2c:function(){gx.fn.setComboBoxValue("EQPINDSTAT",gx.O.A1141EqpIndStat)},c2v:function(){gx.O.A1141EqpIndStat=this.val()},val:function(){return gx.fn.getControlValue("EQPINDSTAT")},nac:function(){return false}};this.GXValidFnc[45]={fld:"TEXTBLOCKEQPTIPAPRESENTACAO",format:0,grid:0};this.GXValidFnc[47]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Eqptipapre,isvalid:null,fld:"EQPTIPAPRE",gxz:"Z1142EqpTipApre",gxold:"O1142EqpTipApre",gxvar:"A1142EqpTipApre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1142EqpTipApre=a
},v2z:function(a){gx.O.Z1142EqpTipApre=a},v2c:function(){gx.fn.setComboBoxValue("EQPTIPAPRE",gx.O.A1142EqpTipApre)},c2v:function(){gx.O.A1142EqpTipApre=this.val()},val:function(){return gx.fn.getControlValue("EQPTIPAPRE")},nac:function(){return false}};this.GXValidFnc[50]={fld:"TEXTBLOCKEQPQTDNOTAS",format:0,grid:0};this.GXValidFnc[52]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Eqpqtdnota,isvalid:null,rgrid:[],fld:"EQPQTDNOTA",gxz:"Z1143EqpQtdNota",gxold:"O1143EqpQtdNota",gxvar:"A1143EqpQtdNota",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1143EqpQtdNota=gx.num.intval(a)
},v2z:function(a){gx.O.Z1143EqpQtdNota=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("EQPQTDNOTA",gx.O.A1143EqpQtdNota,0)},c2v:function(){gx.O.A1143EqpQtdNota=this.val()},val:function(){return gx.fn.getIntegerValue("EQPQTDNOTA",".")},nac:function(){return false}};this.A1130EqtNroSequ=0;this.Z1130EqtNroSequ=0;this.O1130EqtNroSequ=0;this.A1138EqpNroSequ=0;this.Z1138EqpNroSequ=0;this.O1138EqpNroSequ=0;this.A1139EqpDscPerg="";this.Z1139EqpDscPerg="";this.O1139EqpDscPerg="";this.A1140EqpDscText="";
this.Z1140EqpDscText="";this.O1140EqpDscText="";this.A1141EqpIndStat="";this.Z1141EqpIndStat="";this.O1141EqpIndStat="";this.A1142EqpTipApre="";this.Z1142EqpTipApre="";this.O1142EqpTipApre="";this.A1143EqpQtdNota=0;this.Z1143EqpQtdNota=0;this.O1143EqpQtdNota=0;this.AV7UsuCod="";this.A1151EqpIndObri="";this.A1152EqpInd1="";this.Gx_mode="";this.ServerEvents=["e13652_client","e14652_client","e1565172_client","e1665172_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.A1151EqpIndObri={id:"EQPINDOBRI",grid:0,type:"char"};
this.VarControlMap.A1152EqpInd1={id:"EQPIND1",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt107.prototype=new gx.GxObject;gx.setParentObj(new timt107());