gx.evt.autoSkip=false;function timt105(){this.ServerClass="TImt105";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_date=gx.fn.getDateValue("vTODAY");this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Eqtnrosequ=function(){gx.ajax.validSrvEvt("dyncall","Valid_Eqtnrosequ",["gx.O.A1130EqtNroSequ",'gx.date.urlDate(gx.O.A1131EqtDatCria,"DMY")',"gx.O.A1132EqtDscTitu","gx.O.A1150EqtDscObje",'gx.date.urlDate(gx.O.A1133EqtDatInic,"DMY")','gx.date.urlDate(gx.O.A1134EqtDatFimP,"DMY")',"gx.O.A1135EqtIndStat","gx.O.A1156EqtTipIden","gx.O.A1157EqtTipDisp","gx.O.A1158EqtQtdResp","gx.O.A1159EqtDscApre","gx.O.A1181EqtTipPart","gx.O.A968UsuCod"],["A1131EqtDatCria","A968UsuCod","A1132EqtDscTitu","A1150EqtDscObje","A1133EqtDatInic","A1134EqtDatFimP","A1135EqtIndStat","A1156EqtTipIden","A1157EqtTipDisp","A1158EqtQtdResp","A1159EqtDscApre","A1181EqtTipPart","Gx_mode","Z1130EqtNroSequ","Z1131EqtDatCria","Z968UsuCod","Z1132EqtDscTitu","Z1150EqtDscObje","Z1133EqtDatInic","Z1134EqtDatFimP","Z1135EqtIndStat","Z1156EqtTipIden","Z1157EqtTipDisp","Z1158EqtQtdResp","Z1159EqtDscApre","Z1181EqtTipPart","Grid1",["BUTTON1","Enabled"]]);
return true};this.Valid_Usucod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Usucod",["gx.O.A968UsuCod"],[]);return true};this.Valid_Eqtdsctitu=function(){try{var a=gx.util.balloon.getNew("EQTDSCTITU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Eqttipiden=function(){try{var a=gx.util.balloon.getNew("EQTTIPIDEN");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Eqttipdisp=function(){try{var a=gx.util.balloon.getNew("EQTTIPDISP");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Eqttippart=function(){try{var a=gx.util.balloon.getNew("EQTTIPPART");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Eqdcodenti=function(){try{if(gx.fn.currentGridRowImpl(87)===0){return true}var a=gx.util.balloon.getNew("EQDCODENTI",gx.fn.currentGridRowImpl(87));this.AnyError=0;this.sMode175=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(175,87);
this.standaloneModal63175();this.standaloneNotModal63175();if(gx.fn.gridDuplicateKey(88)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Disponibilizacao"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode175;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal63175=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("EQDCODENTI","Enabled",0)}else{gx.fn.setCtrlProperty("EQDCODENTI","Enabled",1)}}catch(a){}return true};this.standaloneNotModal63175=function(){return true
};this.e1163170_client=function(){this.clearMessages();gx.popup.openUrl(gx.http.formatLink("hmih103.aspx",[this.A1130EqtNroSequ]),[]);this.refreshOutputs([])};this.e13632_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e14632_client=function(){this.executeServerEvent("'NOVO'",false)};this.e15632_client=function(){this.executeServerEvent("'PERGUNTAS'",false)};this.e1663170_client=function(){this.executeServerEvent("ENTER",true)};this.e1763170_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,17,19,22,24,27,29,32,34,37,39,42,44,47,49,52,54,57,59,62,64,67,69,72,74,77,79,82,84,86,88,89];this.GXLastCtrlId=89;this.Grid1Container=new gx.grid.grid(this,175,"Disponibilizacao",87,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt105",[1153],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(1153,88,"EQDCODENTI","Entidade","","EqdCodEnti","char",0,"px",20,20,"left",null,[],1153,"EqdCodEnti",true,0,false,false);
this.Grid1Container.addBitmap("prompt_1153","PROMPT_1153",90,0,"",0,"",null,"","");this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE3",grid:0};this.GXValidFnc[17]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[19]={fld:"TABLE2",grid:0};this.GXValidFnc[22]={fld:"TEXTBLOCKEQTNROSEQUENCIA",format:0,grid:0};this.GXValidFnc[24]={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:[this.Grid1Container],fld:"EQTNROSEQU",gxz:"Z1130EqtNroSequ",gxold:"O1130EqtNroSequ",gxvar:"A1130EqtNroSequ",ucs:[],op:[34,74,79,84,69,64,59,54,49,44,39,29],ip:[34,74,79,84,69,64,59,54,49,44,39,29,24],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[27]={fld:"TEXTBLOCKEQTDATCRIACAO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQTDATCRIA",gxz:"Z1131EqtDatCria",gxold:"O1131EqtDatCria",gxvar:"A1131EqtDatCria",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.A1131EqtDatCria=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z1131EqtDatCria=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("EQTDATCRIA",gx.O.A1131EqtDatCria,0)},c2v:function(){gx.O.A1131EqtDatCria=this.val()},val:function(){return gx.fn.getControlValue("EQTDATCRIA")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKUSUCOD",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Usucod,isvalid:null,fld:"USUCOD",gxz:"Z968UsuCod",gxold:"O968UsuCod",gxvar:"A968UsuCod",ucs:[],op:[],ip:[34],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A968UsuCod=a
},v2z:function(a){gx.O.Z968UsuCod=a},v2c:function(){gx.fn.setControlValue("USUCOD",gx.O.A968UsuCod,0)},c2v:function(){gx.O.A968UsuCod=this.val()},val:function(){return gx.fn.getControlValue("USUCOD")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKEQTDSCTITULO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:150,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Eqtdsctitu,isvalid:null,fld:"EQTDSCTITU",gxz:"Z1132EqtDscTitu",gxold:"O1132EqtDscTitu",gxvar:"A1132EqtDscTitu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1132EqtDscTitu=a
},v2z:function(a){gx.O.Z1132EqtDscTitu=a},v2c:function(){gx.fn.setControlValue("EQTDSCTITU",gx.O.A1132EqtDscTitu,0)},c2v:function(){gx.O.A1132EqtDscTitu=this.val()},val:function(){return gx.fn.getControlValue("EQTDSCTITU")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKEQTDSCTITULO2",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"vchar",len:1048576,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQTDSCOBJE",gxz:"Z1150EqtDscObje",gxold:"O1150EqtDscObje",gxvar:"A1150EqtDscObje",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1150EqtDscObje=a
},v2z:function(a){gx.O.Z1150EqtDscObje=a},v2c:function(){gx.fn.setControlValue("EQTDSCOBJE",gx.O.A1150EqtDscObje,0)},c2v:function(){gx.O.A1150EqtDscObje=this.val()},val:function(){return gx.fn.getControlValue("EQTDSCOBJE")},nac:function(){return false}};this.GXValidFnc[47]={fld:"TEXTBLOCKEQTDATINICIOPESQUISA",format:0,grid:0};this.GXValidFnc[49]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQTDATINIC",gxz:"Z1133EqtDatInic",gxold:"O1133EqtDatInic",gxvar:"A1133EqtDatInic",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.A1133EqtDatInic=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z1133EqtDatInic=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("EQTDATINIC",gx.O.A1133EqtDatInic,0)},c2v:function(){gx.O.A1133EqtDatInic=this.val()},val:function(){return gx.fn.getControlValue("EQTDATINIC")},nac:function(){return false}};this.GXValidFnc[52]={fld:"TEXTBLOCKEQTDATFIMPESQUISA",format:0,grid:0};this.GXValidFnc[54]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQTDATFIMP",gxz:"Z1134EqtDatFimP",gxold:"O1134EqtDatFimP",gxvar:"A1134EqtDatFimP",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.A1134EqtDatFimP=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z1134EqtDatFimP=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("EQTDATFIMP",gx.O.A1134EqtDatFimP,0)},c2v:function(){gx.O.A1134EqtDatFimP=this.val()},val:function(){return gx.fn.getControlValue("EQTDATFIMP")},nac:function(){return false}};this.GXValidFnc[57]={fld:"TEXTBLOCKEQTINDSTATUS",format:0,grid:0};this.GXValidFnc[59]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQTINDSTAT",gxz:"Z1135EqtIndStat",gxold:"O1135EqtIndStat",gxvar:"A1135EqtIndStat",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1135EqtIndStat=a
},v2z:function(a){gx.O.Z1135EqtIndStat=a},v2c:function(){gx.fn.setComboBoxValue("EQTINDSTAT",gx.O.A1135EqtIndStat)},c2v:function(){gx.O.A1135EqtIndStat=this.val()},val:function(){return gx.fn.getControlValue("EQTINDSTAT")},nac:function(){return false}};this.GXValidFnc[62]={fld:"TEXTBLOCKEQTINDSTATUS2",format:0,grid:0};this.GXValidFnc[64]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Eqttipiden,isvalid:null,fld:"EQTTIPIDEN",gxz:"Z1156EqtTipIden",gxold:"O1156EqtTipIden",gxvar:"A1156EqtTipIden",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1156EqtTipIden=a
},v2z:function(a){gx.O.Z1156EqtTipIden=a},v2c:function(){gx.fn.setComboBoxValue("EQTTIPIDEN",gx.O.A1156EqtTipIden)},c2v:function(){gx.O.A1156EqtTipIden=this.val()},val:function(){return gx.fn.getControlValue("EQTTIPIDEN")},nac:function(){return false}};this.GXValidFnc[67]={fld:"TEXTBLOCKEQTINDSTATUS3",format:0,grid:0};this.GXValidFnc[69]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Eqttipdisp,isvalid:null,fld:"EQTTIPDISP",gxz:"Z1157EqtTipDisp",gxold:"O1157EqtTipDisp",gxvar:"A1157EqtTipDisp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1157EqtTipDisp=a
},v2z:function(a){gx.O.Z1157EqtTipDisp=a},v2c:function(){gx.fn.setComboBoxValue("EQTTIPDISP",gx.O.A1157EqtTipDisp)},c2v:function(){gx.O.A1157EqtTipDisp=this.val()},val:function(){return gx.fn.getControlValue("EQTTIPDISP")},nac:function(){return false}};this.GXValidFnc[72]={fld:"TEXTBLOCKEQTINDSTATUS6",format:0,grid:0};this.GXValidFnc[74]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Eqttippart,isvalid:null,fld:"EQTTIPPART",gxz:"Z1181EqtTipPart",gxold:"O1181EqtTipPart",gxvar:"A1181EqtTipPart",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A1181EqtTipPart=a
},v2z:function(a){gx.O.Z1181EqtTipPart=a},v2c:function(){gx.fn.setComboBoxValue("EQTTIPPART",gx.O.A1181EqtTipPart)},c2v:function(){gx.O.A1181EqtTipPart=this.val()},val:function(){return gx.fn.getControlValue("EQTTIPPART")},nac:function(){return false}};this.GXValidFnc[77]={fld:"TEXTBLOCKEQTINDSTATUS5",format:0,grid:0};this.GXValidFnc[79]={lvl:0,type:"svchar",len:400,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"EQTDSCAPRE",gxz:"Z1159EqtDscApre",gxold:"O1159EqtDscApre",gxvar:"A1159EqtDscApre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1159EqtDscApre=a
},v2z:function(a){gx.O.Z1159EqtDscApre=a},v2c:function(){gx.fn.setControlValue("EQTDSCAPRE",gx.O.A1159EqtDscApre,0)},c2v:function(){gx.O.A1159EqtDscApre=this.val()},val:function(){return gx.fn.getControlValue("EQTDSCAPRE")},nac:function(){return false}};this.GXValidFnc[82]={fld:"TEXTBLOCKEQTINDSTATUS4",format:0,grid:0};this.GXValidFnc[84]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"EQTQTDRESP",gxz:"Z1158EqtQtdResp",gxold:"O1158EqtQtdResp",gxvar:"A1158EqtQtdResp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1158EqtQtdResp=gx.num.intval(a)
},v2z:function(a){gx.O.Z1158EqtQtdResp=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("EQTQTDRESP",gx.O.A1158EqtQtdResp,0)},c2v:function(){gx.O.A1158EqtQtdResp=this.val()},val:function(){return gx.fn.getIntegerValue("EQTQTDRESP",".")},nac:function(){return false}};this.GXValidFnc[86]={fld:"GROUP1",grid:0};this.GXValidFnc[88]={lvl:175,type:"char",len:20,dec:0,sign:false,ro:0,grid:87,gxgrid:this.Grid1Container,fnc:this.Valid_Eqdcodenti,isvalid:null,fld:"EQDCODENTI",gxz:"Z1153EqdCodEnti",gxold:"O1153EqdCodEnti",gxvar:"A1153EqdCodEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1153EqdCodEnti=a
},v2z:function(a){gx.O.Z1153EqdCodEnti=a},v2c:function(){gx.fn.setGridControlValue("EQDCODENTI",gx.fn.currentGridRowImpl(87),gx.O.A1153EqdCodEnti,0)},c2v:function(){gx.O.A1153EqdCodEnti=this.val()},val:function(){return gx.fn.getGridControlValue("EQDCODENTI",gx.fn.currentGridRowImpl(87))},nac:function(){return false}};this.GXValidFnc[89]={fld:"PROMPT_968",grid:170};this.A1130EqtNroSequ=0;this.Z1130EqtNroSequ=0;this.O1130EqtNroSequ=0;this.A1131EqtDatCria=gx.date.nullDate();this.Z1131EqtDatCria=gx.date.nullDate();
this.O1131EqtDatCria=gx.date.nullDate();this.A968UsuCod="";this.Z968UsuCod="";this.O968UsuCod="";this.A1132EqtDscTitu="";this.Z1132EqtDscTitu="";this.O1132EqtDscTitu="";this.A1150EqtDscObje="";this.Z1150EqtDscObje="";this.O1150EqtDscObje="";this.A1133EqtDatInic=gx.date.nullDate();this.Z1133EqtDatInic=gx.date.nullDate();this.O1133EqtDatInic=gx.date.nullDate();this.A1134EqtDatFimP=gx.date.nullDate();this.Z1134EqtDatFimP=gx.date.nullDate();this.O1134EqtDatFimP=gx.date.nullDate();this.A1135EqtIndStat="";
this.Z1135EqtIndStat="";this.O1135EqtIndStat="";this.A1156EqtTipIden="";this.Z1156EqtTipIden="";this.O1156EqtTipIden="";this.A1157EqtTipDisp="";this.Z1157EqtTipDisp="";this.O1157EqtTipDisp="";this.A1181EqtTipPart="";this.Z1181EqtTipPart="";this.O1181EqtTipPart="";this.A1159EqtDscApre="";this.Z1159EqtDscApre="";this.O1159EqtDscApre="";this.A1158EqtQtdResp=0;this.Z1158EqtQtdResp=0;this.O1158EqtQtdResp=0;this.Z1153EqdCodEnti="";this.O1153EqdCodEnti="";this.A1153EqdCodEnti="";this.AV7UsuCod="";this.Gx_BScreen=0;
this.Gx_date=gx.date.nullDate();this.ServerEvents=["e13632_client","e14632_client","e15632_client","e1663170_client","e1763170_client"];this.setPrompt("PROMPT_968",[34]);this.setPrompt("PROMPT_1153",[88]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.Gx_date={id:"vTODAY",grid:0,type:"date"};this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt105.prototype=new gx.GxObject;gx.setParentObj(new timt105());