gx.evt.autoSkip=false;function tabt079(){this.ServerClass="TAbt079";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Aconro=function(){gx.ajax.validSrvEvt("dyncall","valid_Aconro",["gx.O.A4AcoNro","gx.O.A3AcoDes"],["A3AcoDes"]);return true};this.Valid_Sacnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Sacnro",["gx.O.A4AcoNro","gx.O.A753SacNro","gx.O.A752SacNom","gx.O.A751SacCampo1L"],["A752SacNom","A751SacCampo1L","A3AcoDes","Gx_mode","Z4AcoNro","Z753SacNro","Z752SacNom","Z751SacCampo1L","Z3AcoDes","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Csanro=function(){try{if(gx.fn.currentGridRowImpl(45)===0){return true}var a=gx.util.balloon.getNew("CSANRO",gx.fn.currentGridRowImpl(45));this.AnyError=0;this.sMode62=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(62,45);this.standaloneModal1W62();this.standaloneNotModal1W62();if(gx.fn.gridDuplicateKey(47)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode62;if(a==null){return true}return a.show()}catch(b){}return true
};this.standaloneModal1W62=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("CSANRO","Enabled",0)}else{gx.fn.setCtrlProperty("CSANRO","Enabled",1)}}catch(a){}return true};this.standaloneNotModal1W62=function(){return true};this.e111w61_client=function(){this.executeServerEvent("ENTER",true)};this.e121w61_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,29,31,34,36,39,41,46,47,48,49,50,58];this.GXLastCtrlId=58;this.Grid1Container=new gx.grid.grid(this,62,"Level1",45,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tabt079",[167],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_62",46,"vNRCDDELETED_62","","","nRcdDeleted_62","int",0,"px",4,4,"right",null,[],"nRcdDeleted_62","nRcdDeleted_62",true,0,false,false);this.Grid1Container.addSingleLineEdit(167,47,"CSANRO","Classificações","","CsaNro","int",0,"px",3,3,"right",null,[],167,"CsaNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(166,48,"CSACODINI","Classificação inicial","","CsaCodIni","char",0,"px",25,25,"left",null,[],166,"CsaCodIni",true,0,false,false);
this.Grid1Container.addSingleLineEdit(165,49,"CSACODFIM","Classificação final","","CsaCodFim","char",0,"px",25,25,"left",null,[],165,"CsaCodFim",true,0,false,false);this.Grid1Container.addSingleLineEdit(164,50,"CSACAMPO1L","Campo livre","","CsaCampo1L","char",0,"px",20,20,"left",null,[],164,"CsaCampo1L",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:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Aconro,isvalid:null,rgrid:[this.Grid1Container],fld:"ACONRO",gxz:"Z4AcoNro",gxold:"O4AcoNro",gxvar:"A4AcoNro",ucs:[],op:[31],ip:[31,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A4AcoNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z4AcoNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ACONRO",gx.O.A4AcoNro,0)},c2v:function(){gx.O.A4AcoNro=this.val()},val:function(){return gx.fn.getIntegerValue("ACONRO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Sacnro,isvalid:null,rgrid:[this.Grid1Container],fld:"SACNRO",gxz:"Z753SacNro",gxold:"O753SacNro",gxvar:"A753SacNro",ucs:[],op:[41,36],ip:[41,36,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A753SacNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z753SacNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("SACNRO",gx.O.A753SacNro,0)},c2v:function(){gx.O.A753SacNro=this.val()},val:function(){return gx.fn.getIntegerValue("SACNRO",".")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"ACODES",gxz:"Z3AcoDes",gxold:"O3AcoDes",gxvar:"A3AcoDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A3AcoDes=a
},v2z:function(a){gx.O.Z3AcoDes=a},v2c:function(){gx.fn.setControlValue("ACODES",gx.O.A3AcoDes,0)},c2v:function(){gx.O.A3AcoDes=this.val()},val:function(){return gx.fn.getControlValue("ACODES")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SACNOM",gxz:"Z752SacNom",gxold:"O752SacNom",gxvar:"A752SacNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A752SacNom=a
},v2z:function(a){gx.O.Z752SacNom=a},v2c:function(){gx.fn.setControlValue("SACNOM",gx.O.A752SacNom,0)},c2v:function(){gx.O.A752SacNom=this.val()},val:function(){return gx.fn.getControlValue("SACNOM")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SACCAMPO1L",gxz:"Z751SacCampo1L",gxold:"O751SacCampo1L",gxvar:"A751SacCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A751SacCampo1L=a
},v2z:function(a){gx.O.Z751SacCampo1L=a},v2c:function(){gx.fn.setControlValue("SACCAMPO1L",gx.O.A751SacCampo1L,0)},c2v:function(){gx.O.A751SacCampo1L=this.val()},val:function(){return gx.fn.getControlValue("SACCAMPO1L")},nac:function(){return false}};this.GXValidFnc[46]={lvl:62,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_62",gxz:"ZnRcdDeleted_62",gxold:"OnRcdDeleted_62",gxvar:"nRcdDeleted_62",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_62=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_62=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_62",gx.fn.currentGridRowImpl(45),gx.O.nRcdDeleted_62,0)},c2v:function(){gx.O.nRcdDeleted_62=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_62",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:62,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:this.Valid_Csanro,isvalid:null,rgrid:[],fld:"CSANRO",gxz:"Z167CsaNro",gxold:"O167CsaNro",gxvar:"A167CsaNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A167CsaNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z167CsaNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CSANRO",gx.fn.currentGridRowImpl(45),gx.O.A167CsaNro,0)},c2v:function(){gx.O.A167CsaNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("CSANRO",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:62,type:"char",len:25,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CSACODINI",gxz:"Z166CsaCodIni",gxold:"O166CsaCodIni",gxvar:"A166CsaCodIni",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A166CsaCodIni=a
},v2z:function(a){gx.O.Z166CsaCodIni=a},v2c:function(){gx.fn.setGridControlValue("CSACODINI",gx.fn.currentGridRowImpl(45),gx.O.A166CsaCodIni,0)},c2v:function(){gx.O.A166CsaCodIni=this.val()},val:function(){return gx.fn.getGridControlValue("CSACODINI",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[49]={lvl:62,type:"char",len:25,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CSACODFIM",gxz:"Z165CsaCodFim",gxold:"O165CsaCodFim",gxvar:"A165CsaCodFim",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A165CsaCodFim=a
},v2z:function(a){gx.O.Z165CsaCodFim=a},v2c:function(){gx.fn.setGridControlValue("CSACODFIM",gx.fn.currentGridRowImpl(45),gx.O.A165CsaCodFim,0)},c2v:function(){gx.O.A165CsaCodFim=this.val()},val:function(){return gx.fn.getGridControlValue("CSACODFIM",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[50]={lvl:62,type:"char",len:20,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CSACAMPO1L",gxz:"Z164CsaCampo1L",gxold:"O164CsaCampo1L",gxvar:"A164CsaCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A164CsaCampo1L=a
},v2z:function(a){gx.O.Z164CsaCampo1L=a},v2c:function(){gx.fn.setGridControlValue("CSACAMPO1L",gx.fn.currentGridRowImpl(45),gx.O.A164CsaCampo1L,0)},c2v:function(){gx.O.A164CsaCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("CSACAMPO1L",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[58]={fld:"PROMPT_4",grid:61};this.A4AcoNro=0;this.Z4AcoNro=0;this.O4AcoNro=0;this.A753SacNro=0;this.Z753SacNro=0;this.O753SacNro=0;this.A3AcoDes="";this.Z3AcoDes="";this.O3AcoDes="";
this.A752SacNom="";this.Z752SacNom="";this.O752SacNom="";this.A751SacCampo1L="";this.Z751SacCampo1L="";this.O751SacCampo1L="";this.ZnRcdDeleted_62=0;this.OnRcdDeleted_62=0;this.Z167CsaNro=0;this.O167CsaNro=0;this.Z166CsaCodIni="";this.O166CsaCodIni="";this.Z165CsaCodFim="";this.O165CsaCodFim="";this.Z164CsaCampo1L="";this.O164CsaCampo1L="";this.A167CsaNro=0;this.A166CsaCodIni="";this.A165CsaCodFim="";this.A164CsaCampo1L="";this.ServerEvents=["e111w61_client","e121w61_client"];this.setPrompt("PROMPT_4",[20]);
this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tabt079.prototype=new gx.GxObject;gx.setParentObj(new tabt079());