gx.evt.autoSkip=false;function taqt005(){this.ServerClass="TAqt005";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_BScreen=gx.fn.getIntegerValue("vGXBSCREEN",".");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Slcnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Slcnro",["gx.O.A819SlcNro"],[]);return true};this.Valid_Slbnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Slbnro",["gx.O.A819SlcNro","gx.O.A797SlbNro",'gx.date.urlDate(gx.O.A795SlbDatMovi,"DMY")',"gx.O.A798SlbQtdMovi","gx.O.A800SlbValUnit","gx.O.A799SlbTipMovi","gx.O.A796SlbIndCanc","gx.O.A794SlbCampo1L","gx.O.A548MtcCod"],["A795SlbDatMovi","A798SlbQtdMovi","A800SlbValUnit","A799SlbTipMovi","A796SlbIndCanc","A548MtcCod","A794SlbCampo1L","A549Mtcdes","Gx_mode","Z819SlcNro","Z797SlbNro","Z795SlbDatMovi","Z798SlbQtdMovi","Z800SlbValUnit","Z799SlbTipMovi","Z796SlbIndCanc","Z548MtcCod","Z794SlbCampo1L","Z549Mtcdes",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Mtccod=function(){gx.ajax.validSrvEvt("dyncall","valid_Mtccod",["gx.O.A548MtcCod","gx.O.A549Mtcdes"],["A549Mtcdes"]);return true};this.e112777_client=function(){this.clearMessages();this.refreshOutputs([])};this.e122777_client=function(){this.executeServerEvent("ENTER",true)};this.e132777_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,29,31,34,36,39,41,44,46,49,51,54,56,59,61,64,66,74,75];this.GXLastCtrlId=75;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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Slcnro,isvalid:null,rgrid:[],fld:"SLCNRO",gxz:"Z819SlcNro",gxold:"O819SlcNro",gxvar:"A819SlcNro",ucs:[],op:[],ip:[20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A819SlcNro=gx.num.intval(a)},v2z:function(a){gx.O.Z819SlcNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("SLCNRO",gx.O.A819SlcNro,0)
},c2v:function(){gx.O.A819SlcNro=this.val()},val:function(){return gx.fn.getIntegerValue("SLCNRO",".")},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_Slbnro,isvalid:null,rgrid:[],fld:"SLBNRO",gxz:"Z797SlbNro",gxold:"O797SlbNro",gxvar:"A797SlbNro",ucs:[],op:[56,66,51,46,41,36,31],ip:[56,66,51,46,41,36,31,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A797SlbNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z797SlbNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("SLBNRO",gx.O.A797SlbNro,0)},c2v:function(){gx.O.A797SlbNro=this.val()},val:function(){return gx.fn.getIntegerValue("SLBNRO",".")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SLBDATMOVI",gxz:"Z795SlbDatMovi",gxold:"O795SlbDatMovi",gxvar:"A795SlbDatMovi",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.A795SlbDatMovi=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z795SlbDatMovi=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("SLBDATMOVI",gx.O.A795SlbDatMovi,0)},c2v:function(){gx.O.A795SlbDatMovi=this.val()},val:function(){return gx.fn.getControlValue("SLBDATMOVI")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"SLBQTDMOVI",gxz:"Z798SlbQtdMovi",gxold:"O798SlbQtdMovi",gxvar:"A798SlbQtdMovi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A798SlbQtdMovi=gx.num.intval(a)
},v2z:function(a){gx.O.Z798SlbQtdMovi=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("SLBQTDMOVI",gx.O.A798SlbQtdMovi,0)},c2v:function(){gx.O.A798SlbQtdMovi=this.val()},val:function(){return gx.fn.getIntegerValue("SLBQTDMOVI",".")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SLBVALUNIT",gxz:"Z800SlbValUnit",gxold:"O800SlbValUnit",gxvar:"A800SlbValUnit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A800SlbValUnit=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z800SlbValUnit=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("SLBVALUNIT",gx.O.A800SlbValUnit,2,",")},c2v:function(){gx.O.A800SlbValUnit=this.val()},val:function(){return gx.fn.getDecimalValue("SLBVALUNIT",".",",")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SLBTIPMOVI",gxz:"Z799SlbTipMovi",gxold:"O799SlbTipMovi",gxvar:"A799SlbTipMovi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A799SlbTipMovi=a
},v2z:function(a){gx.O.Z799SlbTipMovi=a},v2c:function(){gx.fn.setComboBoxValue("SLBTIPMOVI",gx.O.A799SlbTipMovi)},c2v:function(){gx.O.A799SlbTipMovi=this.val()},val:function(){return gx.fn.getControlValue("SLBTIPMOVI")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SLBINDCANC",gxz:"Z796SlbIndCanc",gxold:"O796SlbIndCanc",gxvar:"A796SlbIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A796SlbIndCanc=a
},v2z:function(a){gx.O.Z796SlbIndCanc=a},v2c:function(){gx.fn.setComboBoxValue("SLBINDCANC",gx.O.A796SlbIndCanc)},c2v:function(){gx.O.A796SlbIndCanc=this.val()},val:function(){return gx.fn.getControlValue("SLBINDCANC")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Mtccod,isvalid:null,rgrid:[],fld:"MTCCOD",gxz:"Z548MtcCod",gxold:"O548MtcCod",gxvar:"A548MtcCod",ucs:[],op:[61],ip:[61,56],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A548MtcCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z548MtcCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("MTCCOD",gx.O.A548MtcCod,0)},c2v:function(){gx.O.A548MtcCod=this.val()},val:function(){return gx.fn.getIntegerValue("MTCCOD",".")},nac:function(){return false}};this.GXValidFnc[59]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[61]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"MTCDES",gxz:"Z549Mtcdes",gxold:"O549Mtcdes",gxvar:"A549Mtcdes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A549Mtcdes=a
},v2z:function(a){gx.O.Z549Mtcdes=a},v2c:function(){gx.fn.setControlValue("MTCDES",gx.O.A549Mtcdes,0)},c2v:function(){gx.O.A549Mtcdes=this.val()},val:function(){return gx.fn.getControlValue("MTCDES")},nac:function(){return false}};this.GXValidFnc[64]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[66]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SLBCAMPO1L",gxz:"Z794SlbCampo1L",gxold:"O794SlbCampo1L",gxvar:"A794SlbCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A794SlbCampo1L=a
},v2z:function(a){gx.O.Z794SlbCampo1L=a},v2c:function(){gx.fn.setControlValue("SLBCAMPO1L",gx.O.A794SlbCampo1L,0)},c2v:function(){gx.O.A794SlbCampo1L=this.val()},val:function(){return gx.fn.getControlValue("SLBCAMPO1L")},nac:function(){return false}};this.GXValidFnc[74]={fld:"PROMPT_819",grid:77};this.GXValidFnc[75]={fld:"PROMPT_548",grid:77};this.A819SlcNro=0;this.Z819SlcNro=0;this.O819SlcNro=0;this.A797SlbNro=0;this.Z797SlbNro=0;this.O797SlbNro=0;this.A795SlbDatMovi=gx.date.nullDate();this.Z795SlbDatMovi=gx.date.nullDate();
this.O795SlbDatMovi=gx.date.nullDate();this.A798SlbQtdMovi=0;this.Z798SlbQtdMovi=0;this.O798SlbQtdMovi=0;this.A800SlbValUnit=0;this.Z800SlbValUnit=0;this.O800SlbValUnit=0;this.A799SlbTipMovi="";this.Z799SlbTipMovi="";this.O799SlbTipMovi="";this.A796SlbIndCanc="";this.Z796SlbIndCanc="";this.O796SlbIndCanc="";this.A548MtcCod=0;this.Z548MtcCod=0;this.O548MtcCod=0;this.A549Mtcdes="";this.Z549Mtcdes="";this.O549Mtcdes="";this.A794SlbCampo1L="";this.Z794SlbCampo1L="";this.O794SlbCampo1L="";this.Gx_BScreen=0;
this.ServerEvents=["e122777_client","e132777_client"];this.setPrompt("PROMPT_819",[20]);this.setPrompt("PROMPT_548",[56]);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()}taqt005.prototype=new gx.GxObject;gx.setParentObj(new taqt005());