gx.evt.autoSkip=false;function tpet020(){this.ServerClass="Tpet020";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.Valid_Assnro=function(){try{var a=gx.util.balloon.getNew("ASSNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Aexnroexer=function(){try{var a=gx.util.balloon.getNew("AEXNROEXER");
this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asfnrosequ=function(){try{var a=gx.util.balloon.getNew("ASFNROSEQU");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Asftipfasc=function(){gx.ajax.validSrvEvt("dyncall","Valid_Asftipfasc",["gx.O.A57AssNro","gx.O.A11AexNroExer","gx.O.A31AsfNroSequ","gx.O.A34AsfTipFasc","gx.O.A32AsfNroUltD"],["A32AsfNroUltD","Gx_mode","Z57AssNro","Z11AexNroExer","Z31AsfNroSequ","Z34AsfTipFasc","Z32AsfNroUltD","O32AsfNroUltD","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Asfnroultd=function(){try{var a=gx.util.balloon.getNew("ASFNROULTD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dsfnrosequ=function(){try{if(gx.fn.currentGridRowImpl(45)===0){return true}var a=gx.util.balloon.getNew("DSFNROSEQU",gx.fn.currentGridRowImpl(45));this.AnyError=0;this.sMode150=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(150,45);this.standaloneModal58150();this.standaloneNotModal58150();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.sMode150;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal58150=function(){this.A32AsfNroUltD=gx.fn.serialRule("A32AsfNroUltD","A294DsfNroSequ",45,1,this);try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DSFNROSEQU","Enabled",0)}else{gx.fn.setCtrlProperty("DSFNROSEQU","Enabled",1)}}catch(a){}return true};this.standaloneNotModal58150=function(){try{gx.fn.setCtrlProperty("ASFNROULTD","Enabled",0)}catch(a){}try{gx.fn.setCtrlProperty("ASFNROULTD","Enabled",0)
}catch(a){}return true};this.e1158143_client=function(){this.clearMessages();this.refreshOutputs([])};this.e1258143_client=function(){this.executeServerEvent("ENTER",true)};this.e1358143_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,33,35,39,41,46,47,48];this.GXLastCtrlId=48;this.Grid1Container=new gx.grid.grid(this,150,"Level1",45,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tpet020",[294],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit("nRcdDeleted_150",46,"vNRCDDELETED_150","","","nRcdDeleted_150","int",0,"px",4,4,"right",null,[],"nRcdDeleted_150","nRcdDeleted_150",true,0,false,false);this.Grid1Container.addSingleLineEdit(294,47,"DSFNROSEQU","Nro sequência","","DsfNroSequ","int",0,"px",3,3,"right",null,[],294,"DsfNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(293,48,"DSFDESFASC","Descrição","","DsfDesFasc","char",0,"px",80,80,"left",null,[],293,"DsfDesFasc",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:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Assnro,isvalid:null,rgrid:[this.Grid1Container],fld:"ASSNRO",gxz:"Z57AssNro",gxold:"O57AssNro",gxvar:"A57AssNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A57AssNro=gx.num.intval(a)},v2z:function(a){gx.O.Z57AssNro=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("ASSNRO",gx.O.A57AssNro,0)},c2v:function(){gx.O.A57AssNro=this.val()},val:function(){return gx.fn.getIntegerValue("ASSNRO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:4,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Aexnroexer,isvalid:null,fld:"AEXNROEXER",gxz:"Z11AexNroExer",gxold:"O11AexNroExer",gxvar:"A11AexNroExer",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A11AexNroExer=a
},v2z:function(a){gx.O.Z11AexNroExer=a},v2c:function(){gx.fn.setControlValue("AEXNROEXER",gx.O.A11AexNroExer,0)},c2v:function(){gx.O.A11AexNroExer=this.val()},val:function(){return gx.fn.getControlValue("AEXNROEXER")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Asfnrosequ,isvalid:null,rgrid:[this.Grid1Container],fld:"ASFNROSEQU",gxz:"Z31AsfNroSequ",gxold:"O31AsfNroSequ",gxvar:"A31AsfNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A31AsfNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z31AsfNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ASFNROSEQU",gx.O.A31AsfNroSequ,0)},c2v:function(){gx.O.A31AsfNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("ASFNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"char",len:2,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Asftipfasc,isvalid:null,fld:"ASFTIPFASC",gxz:"Z34AsfTipFasc",gxold:"O34AsfTipFasc",gxvar:"A34AsfTipFasc",ucs:[],op:[41],ip:[41,35,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A34AsfTipFasc=a
},v2z:function(a){gx.O.Z34AsfTipFasc=a},v2c:function(){gx.fn.setControlValue("ASFTIPFASC",gx.O.A34AsfTipFasc,0)},c2v:function(){gx.O.A34AsfTipFasc=this.val()},val:function(){return gx.fn.getControlValue("ASFTIPFASC")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Asfnroultd,isvalid:null,rgrid:[],fld:"ASFNROULTD",gxz:"Z32AsfNroUltD",gxold:"O32AsfNroUltD",gxvar:"A32AsfNroUltD",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A32AsfNroUltD=gx.num.intval(a)
},v2z:function(a){gx.O.Z32AsfNroUltD=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ASFNROULTD",gx.O.A32AsfNroUltD,0)},c2v:function(){gx.O.A32AsfNroUltD=this.val()},val:function(){return gx.fn.getIntegerValue("ASFNROULTD",".")},nac:function(){return false}};this.GXValidFnc[46]={lvl:150,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_150",gxz:"ZnRcdDeleted_150",gxold:"OnRcdDeleted_150",gxvar:"nRcdDeleted_150",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_150=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_150=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_150",gx.fn.currentGridRowImpl(45),gx.O.nRcdDeleted_150,0)},c2v:function(){gx.O.nRcdDeleted_150=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_150",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:150,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:45,gxgrid:this.Grid1Container,fnc:this.Valid_Dsfnrosequ,isvalid:null,rgrid:[],fld:"DSFNROSEQU",gxz:"Z294DsfNroSequ",gxold:"O294DsfNroSequ",gxvar:"A294DsfNroSequ",ucs:[],op:[47,41],ip:[47,41],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A294DsfNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z294DsfNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DSFNROSEQU",gx.fn.currentGridRowImpl(45),gx.O.A294DsfNroSequ,0)},c2v:function(){gx.O.A294DsfNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DSFNROSEQU",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[48]={lvl:150,type:"char",len:80,dec:0,sign:false,ro:0,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DSFDESFASC",gxz:"Z293DsfDesFasc",gxold:"O293DsfDesFasc",gxvar:"A293DsfDesFasc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A293DsfDesFasc=a
},v2z:function(a){gx.O.Z293DsfDesFasc=a},v2c:function(){gx.fn.setGridControlValue("DSFDESFASC",gx.fn.currentGridRowImpl(45),gx.O.A293DsfDesFasc,0)},c2v:function(){gx.O.A293DsfDesFasc=this.val()},val:function(){return gx.fn.getGridControlValue("DSFDESFASC",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.A57AssNro=0;this.Z57AssNro=0;this.O57AssNro=0;this.A11AexNroExer="";this.Z11AexNroExer="";this.O11AexNroExer="";this.A31AsfNroSequ=0;this.Z31AsfNroSequ=0;this.O31AsfNroSequ=0;this.A34AsfTipFasc="";
this.Z34AsfTipFasc="";this.O34AsfTipFasc="";this.A32AsfNroUltD=0;this.Z32AsfNroUltD=0;this.O32AsfNroUltD=0;this.ZnRcdDeleted_150=0;this.OnRcdDeleted_150=0;this.Z294DsfNroSequ=0;this.O294DsfNroSequ=0;this.Z293DsfDesFasc="";this.O293DsfDesFasc="";this.A294DsfNroSequ=0;this.A293DsfDesFasc="";this.Gx_BScreen=0;this.ServerEvents=["e1258143_client","e1358143_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_BScreen={id:"vGXBSCREEN",grid:0,type:"int"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.SetStandaloneVars();this.LvlOlds[143]=["O32AsfNroUltD"]}tpet020.prototype=new gx.GxObject;gx.setParentObj(new tpet020());