gx.evt.autoSkip=false;function tgst019(){this.ServerClass="Tgst019";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Hstnrosequ=function(){gx.ajax.validSrvEvt("dyncall","valid_Hstnrosequ",["gx.O.A476HstNroSequ","gx.O.A477HstTipEnti","gx.O.A470HstCodEnti","gx.O.A472HstCodUsua",'gx.date.urlDate(gx.O.A473HstDatOcor,"DMY")',"gx.O.A474HstHorOcor","gx.O.A471HstCodEsta","gx.O.A475HstIndExpo","gx.O.A478HstTipOcor"],["A477HstTipEnti","A470HstCodEnti","A472HstCodUsua","A473HstDatOcor","A474HstHorOcor","A471HstCodEsta","A475HstIndExpo","A478HstTipOcor","Gx_mode","Z476HstNroSequ","Z477HstTipEnti","Z470HstCodEnti","Z472HstCodUsua","Z473HstDatOcor","Z474HstHorOcor","Z471HstCodEsta","Z475HstIndExpo","Z478HstTipOcor","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Hdenrolinh=function(){try{if(gx.fn.currentGridRowImpl(65)===0){return true}var a=gx.util.balloon.getNew("HDENROLINH",gx.fn.currentGridRowImpl(65));this.AnyError=0;this.sMode97=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(97,65);this.standaloneModal2T97();this.standaloneNotModal2T97();if(gx.fn.gridDuplicateKey(67)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode97;if(a==null){return true}return a.show()
}catch(b){}return true};this.standaloneModal2T97=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("HDENROLINH","Enabled",0)}else{gx.fn.setCtrlProperty("HDENROLINH","Enabled",1)}}catch(a){}return true};this.standaloneNotModal2T97=function(){return true};this.e112t96_client=function(){this.clearMessages();this.refreshOutputs([])};this.e122t96_client=function(){this.executeServerEvent("ENTER",true)};this.e132t96_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];
this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41,44,46,49,51,54,56,59,61,66,67,68];this.GXLastCtrlId=68;this.Grid1Container=new gx.grid.grid(this,97,"Level1",65,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tgst019",[469],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_97",66,"vNRCDDELETED_97","","","nRcdDeleted_97","int",0,"px",4,4,"right",null,[],"nRcdDeleted_97","nRcdDeleted_97",true,0,false,false);
this.Grid1Container.addSingleLineEdit(469,67,"HDENROLINH","Nr. linha","","HdeNroLinh","int",0,"px",2,2,"right",null,[],469,"HdeNroLinh",true,0,false,false);this.Grid1Container.addSingleLineEdit(468,68,"HDEDESATUA","Descrição","","HdeDesAtua","char",0,"px",45,45,"left",null,[],468,"HdeDesAtua",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:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Hstnrosequ,isvalid:null,rgrid:[this.Grid1Container],fld:"HSTNROSEQU",gxz:"Z476HstNroSequ",gxold:"O476HstNroSequ",gxvar:"A476HstNroSequ",ucs:[],op:[61,56,51,46,41,36,31,26],ip:[61,56,51,46,41,36,31,26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A476HstNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z476HstNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("HSTNROSEQU",gx.O.A476HstNroSequ,0)},c2v:function(){gx.O.A476HstNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("HSTNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"HSTTIPENTI",gxz:"Z477HstTipEnti",gxold:"O477HstTipEnti",gxvar:"A477HstTipEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A477HstTipEnti=a
},v2z:function(a){gx.O.Z477HstTipEnti=a},v2c:function(){gx.fn.setComboBoxValue("HSTTIPENTI",gx.O.A477HstTipEnti)},c2v:function(){gx.O.A477HstTipEnti=this.val()},val:function(){return gx.fn.getControlValue("HSTTIPENTI")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"HSTCODENTI",gxz:"Z470HstCodEnti",gxold:"O470HstCodEnti",gxvar:"A470HstCodEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A470HstCodEnti=gx.num.intval(a)
},v2z:function(a){gx.O.Z470HstCodEnti=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("HSTCODENTI",gx.O.A470HstCodEnti,0)},c2v:function(){gx.O.A470HstCodEnti=this.val()},val:function(){return gx.fn.getIntegerValue("HSTCODENTI",".")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:6,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"HSTCODUSUA",gxz:"Z472HstCodUsua",gxold:"O472HstCodUsua",gxvar:"A472HstCodUsua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A472HstCodUsua=a
},v2z:function(a){gx.O.Z472HstCodUsua=a},v2c:function(){gx.fn.setControlValue("HSTCODUSUA",gx.O.A472HstCodUsua,0)},c2v:function(){gx.O.A472HstCodUsua=this.val()},val:function(){return gx.fn.getControlValue("HSTCODUSUA")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"HSTDATOCOR",gxz:"Z473HstDatOcor",gxold:"O473HstDatOcor",gxvar:"A473HstDatOcor",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.A473HstDatOcor=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z473HstDatOcor=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("HSTDATOCOR",gx.O.A473HstDatOcor,0)},c2v:function(){gx.O.A473HstDatOcor=this.val()},val:function(){return gx.fn.getControlValue("HSTDATOCOR")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"HSTHOROCOR",gxz:"Z474HstHorOcor",gxold:"O474HstHorOcor",gxvar:"A474HstHorOcor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A474HstHorOcor=a
},v2z:function(a){gx.O.Z474HstHorOcor=a},v2c:function(){gx.fn.setControlValue("HSTHOROCOR",gx.O.A474HstHorOcor,0)},c2v:function(){gx.O.A474HstHorOcor=this.val()},val:function(){return gx.fn.getControlValue("HSTHOROCOR")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"HSTCODESTA",gxz:"Z471HstCodEsta",gxold:"O471HstCodEsta",gxvar:"A471HstCodEsta",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A471HstCodEsta=a
},v2z:function(a){gx.O.Z471HstCodEsta=a},v2c:function(){gx.fn.setControlValue("HSTCODESTA",gx.O.A471HstCodEsta,0)},c2v:function(){gx.O.A471HstCodEsta=this.val()},val:function(){return gx.fn.getControlValue("HSTCODESTA")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"HSTINDEXPO",gxz:"Z475HstIndExpo",gxold:"O475HstIndExpo",gxvar:"A475HstIndExpo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A475HstIndExpo=a
},v2z:function(a){gx.O.Z475HstIndExpo=a},v2c:function(){gx.fn.setControlValue("HSTINDEXPO",gx.O.A475HstIndExpo,0)},c2v:function(){gx.O.A475HstIndExpo=this.val()},val:function(){return gx.fn.getControlValue("HSTINDEXPO")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"HSTTIPOCOR",gxz:"Z478HstTipOcor",gxold:"O478HstTipOcor",gxvar:"A478HstTipOcor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A478HstTipOcor=a
},v2z:function(a){gx.O.Z478HstTipOcor=a},v2c:function(){gx.fn.setComboBoxValue("HSTTIPOCOR",gx.O.A478HstTipOcor)},c2v:function(){gx.O.A478HstTipOcor=this.val()},val:function(){return gx.fn.getControlValue("HSTTIPOCOR")},nac:function(){return false}};this.GXValidFnc[66]={lvl:97,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:65,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_97",gxz:"ZnRcdDeleted_97",gxold:"OnRcdDeleted_97",gxvar:"nRcdDeleted_97",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_97=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_97=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_97",gx.fn.currentGridRowImpl(65),gx.O.nRcdDeleted_97,0)},c2v:function(){gx.O.nRcdDeleted_97=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_97",gx.fn.currentGridRowImpl(65),".")},nac:function(){return false}};this.GXValidFnc[67]={lvl:97,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:65,gxgrid:this.Grid1Container,fnc:this.Valid_Hdenrolinh,isvalid:null,rgrid:[],fld:"HDENROLINH",gxz:"Z469HdeNroLinh",gxold:"O469HdeNroLinh",gxvar:"A469HdeNroLinh",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A469HdeNroLinh=gx.num.intval(a)
},v2z:function(a){gx.O.Z469HdeNroLinh=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("HDENROLINH",gx.fn.currentGridRowImpl(65),gx.O.A469HdeNroLinh,0)},c2v:function(){gx.O.A469HdeNroLinh=this.val()},val:function(){return gx.fn.getGridIntegerValue("HDENROLINH",gx.fn.currentGridRowImpl(65),".")},nac:function(){return false}};this.GXValidFnc[68]={lvl:97,type:"char",len:45,dec:0,sign:false,ro:0,grid:65,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HDEDESATUA",gxz:"Z468HdeDesAtua",gxold:"O468HdeDesAtua",gxvar:"A468HdeDesAtua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A468HdeDesAtua=a
},v2z:function(a){gx.O.Z468HdeDesAtua=a},v2c:function(){gx.fn.setGridControlValue("HDEDESATUA",gx.fn.currentGridRowImpl(65),gx.O.A468HdeDesAtua,0)},c2v:function(){gx.O.A468HdeDesAtua=this.val()},val:function(){return gx.fn.getGridControlValue("HDEDESATUA",gx.fn.currentGridRowImpl(65))},nac:function(){return false}};this.A476HstNroSequ=0;this.Z476HstNroSequ=0;this.O476HstNroSequ=0;this.A477HstTipEnti="";this.Z477HstTipEnti="";this.O477HstTipEnti="";this.A470HstCodEnti=0;this.Z470HstCodEnti=0;this.O470HstCodEnti=0;
this.A472HstCodUsua="";this.Z472HstCodUsua="";this.O472HstCodUsua="";this.A473HstDatOcor=gx.date.nullDate();this.Z473HstDatOcor=gx.date.nullDate();this.O473HstDatOcor=gx.date.nullDate();this.A474HstHorOcor="";this.Z474HstHorOcor="";this.O474HstHorOcor="";this.A471HstCodEsta="";this.Z471HstCodEsta="";this.O471HstCodEsta="";this.A475HstIndExpo="";this.Z475HstIndExpo="";this.O475HstIndExpo="";this.A478HstTipOcor="";this.Z478HstTipOcor="";this.O478HstTipOcor="";this.ZnRcdDeleted_97=0;this.OnRcdDeleted_97=0;
this.Z469HdeNroLinh=0;this.O469HdeNroLinh=0;this.Z468HdeDesAtua="";this.O468HdeDesAtua="";this.A469HdeNroLinh=0;this.A468HdeDesAtua="";this.ServerEvents=["e122t96_client","e132t96_client"];this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tgst019.prototype=new gx.GxObject;gx.setParentObj(new tgst019());