gx.evt.autoSkip=false;function tiat002(){this.ServerClass="TIAT002";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Regnroseq=function(){gx.ajax.validSrvEvt("dyncall","valid_Regnroseq",["gx.O.A720RegNroSeq"],["Gx_mode","Z720RegNroSeq","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Retcodetiq=function(){try{if(gx.fn.currentGridRowImpl(25)===0){return true
}var a=gx.util.balloon.getNew("RETCODETIQ",gx.fn.currentGridRowImpl(25));this.AnyError=0;this.sMode102=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(102,25);this.standaloneModal2W102();this.standaloneNotModal2W102();if(gx.fn.gridDuplicateKey(27)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode102;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal2W102=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("RETCODETIQ","Enabled",0)
}else{gx.fn.setCtrlProperty("RETCODETIQ","Enabled",1)}}catch(a){}return true};this.standaloneNotModal2W102=function(){return true};this.e112w101_client=function(){this.executeServerEvent("ENTER",true)};this.e122w101_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,26,27,28,29,30,31,32];this.GXLastCtrlId=32;this.Grid1Container=new gx.grid.grid(this,102,"Level1",25,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tiat002",[730],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_102",26,"vNRCDDELETED_102","","","nRcdDeleted_102","int",0,"px",4,4,"right",null,[],"nRcdDeleted_102","nRcdDeleted_102",true,0,false,false);this.Grid1Container.addSingleLineEdit(730,27,"RETCODETIQ","Etiqueta","","RetCodEtiq","char",0,"px",3,3,"left",null,[],730,"RetCodEtiq",true,0,false,false);this.Grid1Container.addSingleLineEdit(731,28,"RETDES1CON","Campo 1 200","","RetDes1Con","char",0,"px",200,200,"left",null,[],731,"RetDes1Con",true,0,false,false);
this.Grid1Container.addSingleLineEdit(732,29,"RETDES2CON","Campo 2 200","","RetDes2Con","char",0,"px",200,200,"left",null,[],732,"RetDes2Con",true,0,false,false);this.Grid1Container.addSingleLineEdit(733,30,"RETDES3CON","RetDes3Conteudo200","","RetDes3Con","char",0,"px",200,200,"left",null,[],733,"RetDes3Con",true,0,false,false);this.Grid1Container.addSingleLineEdit(734,31,"RETDES4CON","RetDes4Conteudo200","","RetDes4Con","char",0,"px",200,200,"left",null,[],734,"RetDes4Con",true,0,false,false);this.Grid1Container.addSingleLineEdit(735,32,"RETDES5CON","RetDes5Conteudo200","","RetDes5Con","char",0,"px",200,200,"left",null,[],735,"RetDes5Con",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Regnroseq,isvalid:null,rgrid:[this.Grid1Container],fld:"REGNROSEQ",gxz:"Z720RegNroSeq",gxold:"O720RegNroSeq",gxvar:"A720RegNroSeq",ucs:[],op:[],ip:[20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A720RegNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z720RegNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("REGNROSEQ",gx.O.A720RegNroSeq,0)},c2v:function(){gx.O.A720RegNroSeq=this.val()},val:function(){return gx.fn.getIntegerValue("REGNROSEQ",".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:102,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_102",gxz:"ZnRcdDeleted_102",gxold:"OnRcdDeleted_102",gxvar:"nRcdDeleted_102",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_102=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_102=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_102",gx.fn.currentGridRowImpl(25),gx.O.nRcdDeleted_102,0)},c2v:function(){gx.O.nRcdDeleted_102=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_102",gx.fn.currentGridRowImpl(25),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:102,type:"char",len:3,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:this.Valid_Retcodetiq,isvalid:null,fld:"RETCODETIQ",gxz:"Z730RetCodEtiq",gxold:"O730RetCodEtiq",gxvar:"A730RetCodEtiq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A730RetCodEtiq=a
},v2z:function(a){gx.O.Z730RetCodEtiq=a},v2c:function(){gx.fn.setGridControlValue("RETCODETIQ",gx.fn.currentGridRowImpl(25),gx.O.A730RetCodEtiq,0)},c2v:function(){gx.O.A730RetCodEtiq=this.val()},val:function(){return gx.fn.getGridControlValue("RETCODETIQ",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[28]={lvl:102,type:"char",len:200,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RETDES1CON",gxz:"Z731RetDes1Con",gxold:"O731RetDes1Con",gxvar:"A731RetDes1Con",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A731RetDes1Con=a
},v2z:function(a){gx.O.Z731RetDes1Con=a},v2c:function(){gx.fn.setGridControlValue("RETDES1CON",gx.fn.currentGridRowImpl(25),gx.O.A731RetDes1Con,0)},c2v:function(){gx.O.A731RetDes1Con=this.val()},val:function(){return gx.fn.getGridControlValue("RETDES1CON",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[29]={lvl:102,type:"char",len:200,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RETDES2CON",gxz:"Z732RetDes2Con",gxold:"O732RetDes2Con",gxvar:"A732RetDes2Con",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A732RetDes2Con=a
},v2z:function(a){gx.O.Z732RetDes2Con=a},v2c:function(){gx.fn.setGridControlValue("RETDES2CON",gx.fn.currentGridRowImpl(25),gx.O.A732RetDes2Con,0)},c2v:function(){gx.O.A732RetDes2Con=this.val()},val:function(){return gx.fn.getGridControlValue("RETDES2CON",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[30]={lvl:102,type:"char",len:200,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RETDES3CON",gxz:"Z733RetDes3Con",gxold:"O733RetDes3Con",gxvar:"A733RetDes3Con",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A733RetDes3Con=a
},v2z:function(a){gx.O.Z733RetDes3Con=a},v2c:function(){gx.fn.setGridControlValue("RETDES3CON",gx.fn.currentGridRowImpl(25),gx.O.A733RetDes3Con,0)},c2v:function(){gx.O.A733RetDes3Con=this.val()},val:function(){return gx.fn.getGridControlValue("RETDES3CON",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[31]={lvl:102,type:"char",len:200,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RETDES4CON",gxz:"Z734RetDes4Con",gxold:"O734RetDes4Con",gxvar:"A734RetDes4Con",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A734RetDes4Con=a
},v2z:function(a){gx.O.Z734RetDes4Con=a},v2c:function(){gx.fn.setGridControlValue("RETDES4CON",gx.fn.currentGridRowImpl(25),gx.O.A734RetDes4Con,0)},c2v:function(){gx.O.A734RetDes4Con=this.val()},val:function(){return gx.fn.getGridControlValue("RETDES4CON",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.GXValidFnc[32]={lvl:102,type:"char",len:200,dec:0,sign:false,ro:0,grid:25,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"RETDES5CON",gxz:"Z735RetDes5Con",gxold:"O735RetDes5Con",gxvar:"A735RetDes5Con",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A735RetDes5Con=a
},v2z:function(a){gx.O.Z735RetDes5Con=a},v2c:function(){gx.fn.setGridControlValue("RETDES5CON",gx.fn.currentGridRowImpl(25),gx.O.A735RetDes5Con,0)},c2v:function(){gx.O.A735RetDes5Con=this.val()},val:function(){return gx.fn.getGridControlValue("RETDES5CON",gx.fn.currentGridRowImpl(25))},nac:function(){return false}};this.A720RegNroSeq=0;this.Z720RegNroSeq=0;this.O720RegNroSeq=0;this.ZnRcdDeleted_102=0;this.OnRcdDeleted_102=0;this.Z730RetCodEtiq="";this.O730RetCodEtiq="";this.Z731RetDes1Con="";this.O731RetDes1Con="";
this.Z732RetDes2Con="";this.O732RetDes2Con="";this.Z733RetDes3Con="";this.O733RetDes3Con="";this.Z734RetDes4Con="";this.O734RetDes4Con="";this.Z735RetDes5Con="";this.O735RetDes5Con="";this.A730RetCodEtiq="";this.A731RetDes1Con="";this.A732RetDes2Con="";this.A733RetDes3Con="";this.A734RetDes4Con="";this.A735RetDes5Con="";this.ServerEvents=["e112w101_client","e122w101_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()
}tiat002.prototype=new gx.GxObject;gx.setParentObj(new tiat002());