gx.evt.autoSkip=false;function timt084(){this.ServerClass="TImt084";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE");this.A555OpuInd1=gx.fn.getControlValue("OPUIND1");this.A556OpuInd2=gx.fn.getControlValue("OPUIND2")};this.Valid_Usucod=function(){gx.ajax.validSrvEvt("dyncall","Valid_Usucod",["gx.O.A968UsuCod","gx.O.A983UsuNom"],["A983UsuNom","Gx_mode","Z968UsuCod","Z983UsuNom","Grid1",["BUTTON2","Enabled"],["BUTTON1","Enabled"]]);
return true};this.Valid_Undcod=function(){this.sMode120=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(120,34);this.standaloneModal3U120();this.standaloneNotModal3U120();if(gx.fn.currentGridRowImpl(34)===0){return true}var a=gx.util.balloon.getNew("UNDCOD",gx.fn.currentGridRowImpl(34));if(gx.fn.gridDuplicateKey(36)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1;return a.show()}gx.ajax.validSrvEvt("dyncall","Valid_Undcod",["gx.O.A922UndCod","gx.O.A925UndNomComp"],["A925UndNomComp"]);
this.Gx_mode=this.sMode120;return true};this.standaloneModal3U120=function(){try{if((this.Gx_mode=="INS")&&(""==this.A557OpuIndMovi)&&this.Gx_BScreen==0){this.A557OpuIndMovi="S"}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("UNDCOD","Enabled",0)}else{gx.fn.setCtrlProperty("UNDCOD","Enabled",1)}}catch(a){}return true};this.standaloneNotModal3U120=function(){return true};this.e123u2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e133u86_client=function(){this.executeServerEvent("ENTER",true)
};this.e143u86_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,23,28,30,35,36,37,38];this.GXLastCtrlId=38;this.Grid1Container=new gx.grid.grid(this,120,"Level1",34,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt084",[922],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_120",35,"vNRCDDELETED_120","","","nRcdDeleted_120","int",16,"px",4,4,"right",null,[],"nRcdDeleted_120","nRcdDeleted_120",true,0,false,false);
this.Grid1Container.addSingleLineEdit(922,36,"UNDCOD","Unidade depositária","","UndCod","int",128,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_922","PROMPT_922",40,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(925,37,"UNDNOMCOMP","Nome","","UndNomComp","char",0,"px",40,40,"left",null,[],925,"UndNomComp",true,0,false,false);this.Grid1Container.addComboBox(557,38,"OPUINDMOVI","Movimentação","OpuIndMovi","char",null,0,true,false,93,"px");
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[20]={fld:"TABLE3",grid:0};this.GXValidFnc[23]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Usucod,isvalid:null,fld:"USUCOD",gxz:"Z968UsuCod",gxold:"O968UsuCod",gxvar:"A968UsuCod",ucs:[],op:[30],ip:[30,23],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[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"USUNOM",gxz:"Z983UsuNom",gxold:"O983UsuNom",gxvar:"A983UsuNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A983UsuNom=a
},v2z:function(a){gx.O.Z983UsuNom=a},v2c:function(){gx.fn.setControlValue("USUNOM",gx.O.A983UsuNom,0)},c2v:function(){gx.O.A983UsuNom=this.val()},val:function(){return gx.fn.getControlValue("USUNOM")},nac:function(){return false}};this.GXValidFnc[35]={lvl:120,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:34,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_120",gxz:"ZnRcdDeleted_120",gxold:"OnRcdDeleted_120",gxvar:"nRcdDeleted_120",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_120=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_120=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_120",gx.fn.currentGridRowImpl(34),gx.O.nRcdDeleted_120,0)},c2v:function(){gx.O.nRcdDeleted_120=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_120",gx.fn.currentGridRowImpl(34),".")},nac:function(){return false}};this.GXValidFnc[36]={lvl:120,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:34,gxgrid:this.Grid1Container,fnc:this.Valid_Undcod,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[38,37],ip:[38,37,36],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(34),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(34),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:120,type:"char",len:40,dec:0,sign:false,ro:1,grid:34,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDNOMCOMP",gxz:"Z925UndNomComp",gxold:"O925UndNomComp",gxvar:"A925UndNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A925UndNomComp=a
},v2z:function(a){gx.O.Z925UndNomComp=a},v2c:function(){gx.fn.setGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(34),gx.O.A925UndNomComp,0)},c2v:function(){gx.O.A925UndNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(34))},nac:function(){return false}};this.GXValidFnc[38]={lvl:120,type:"char",len:1,dec:0,sign:false,ro:0,grid:34,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"OPUINDMOVI",gxz:"Z557OpuIndMovi",gxold:"O557OpuIndMovi",gxvar:"A557OpuIndMovi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A557OpuIndMovi=a
},v2z:function(a){gx.O.Z557OpuIndMovi=a},v2c:function(){gx.fn.setGridComboBoxValue("OPUINDMOVI",gx.fn.currentGridRowImpl(34),gx.O.A557OpuIndMovi)},c2v:function(){gx.O.A557OpuIndMovi=this.val()},val:function(){return gx.fn.getGridControlValue("OPUINDMOVI",gx.fn.currentGridRowImpl(34))},nac:function(){return false}};this.A968UsuCod="";this.Z968UsuCod="";this.O968UsuCod="";this.A983UsuNom="";this.Z983UsuNom="";this.O983UsuNom="";this.ZnRcdDeleted_120=0;this.OnRcdDeleted_120=0;this.Z922UndCod=0;this.O922UndCod=0;
this.Z925UndNomComp="";this.O925UndNomComp="";this.Z557OpuIndMovi="";this.O557OpuIndMovi="";this.A922UndCod=0;this.A557OpuIndMovi="";this.A925UndNomComp="";this.A555OpuInd1="";this.A556OpuInd2="";this.AV7UsuCodCorr="";this.AV8IndLiber="";this.Gx_msg="";this.Gx_BScreen=0;this.ServerEvents=["e123u2_client","e133u86_client","e143u86_client"];this.setPrompt("PROMPT_922",[36]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.VarControlMap.A555OpuInd1={id:"OPUIND1",grid:34,type:"char"};this.VarControlMap.A556OpuInd2={id:"OPUIND2",grid:34,type:"char"};this.SetStandaloneVars()}timt084.prototype=new gx.GxObject;gx.setParentObj(new timt084());