gx.evt.autoSkip=false;function tmit009(){this.ServerClass="TMit009";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV16IndPchDupl=gx.fn.getControlValue("vINDPCHDUPL");this.A617PchDesSemA=gx.fn.getControlValue("PCHDESSEMA");this.Gx_mode=gx.fn.getControlValue("vMODE");this.Gx_msg=gx.fn.getControlValue("vMSG");this.AV20ParTipForm=gx.fn.getControlValue("vPARTIPFORM")};this.Valid_Pchnro=function(){gx.ajax.validSrvEvt("dyncall","valid_Pchnro",["gx.O.A193PchNro","gx.O.A192PchDes","gx.O.A617PchDesSemA"],["A192PchDes","A617PchDesSemA","AV16IndPchDupl","Gx_mode","Z193PchNro","Z192PchDes","Z617PchDesSemA","ZV16IndPchDupl",["A192PchDes","Enabled"],["BTN_GET","Enabled"],["BTN_ENTER1","Enabled"]]);
return true};this.Valid_Pchdes=function(){gx.ajax.validSrvEvt("dyncall","valid_Pchdes",["gx.O.A193PchNro","gx.O.A617PchDesSemA","gx.O.Gx_mode","gx.O.A192PchDes","gx.O.AV16IndPchDupl"],["A192PchDes","A617PchDesSemA","A193PchNro","AV16IndPchDupl"]);return true};this.e134w9_client=function(){this.clearMessages();if(this.AV20ParTipForm=="A"){}if(this.AV20ParTipForm=="M"){this.Gx_msg="Em desenvolvimento...";gx.fn.setCtrlProperty("STATUS","Visible",1);gx.fn.setCtrlProperty("STATUS","Caption",'<script>alert("'+this.Gx_msg+'")<\/script>');
this.addMessage(this.Gx_msg)}this.refreshOutputs([{ctrl:"STATUS",prop:"Caption"},{ctrl:"STATUS",prop:"Visible"},{av:"Gx_msg",fld:"vMSG"}])};this.e194w9_client=function(){this.clearMessages();this.refreshOutputs([])};this.e114w9_client=function(){this.clearMessages();if(this.Gx_mode=="UPD"){}this.refreshOutputs([])};this.e124w9_client=function(){this.clearMessages();this.refreshOutputs([])};this.e144w9_client=function(){this.clearMessages();this.refreshOutputs([])};this.e154w9_client=function(){this.clearMessages();
this.refreshOutputs([])};this.e174w2_client=function(){this.executeServerEvent("'APAGA PALAVRA-CHAVE'",false)};this.e184w2_client=function(){this.executeServerEvent("GO.CLICK",true)};this.e204w9_client=function(){this.executeServerEvent("ENTER",true)};this.e214w9_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,8,21,26,27,33,36,40,45,48,61];this.GXLastCtrlId=61;this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={fld:"HOME",grid:0};
this.GXValidFnc[26]={lvl:0,type:"char",len:7,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vIRPARA",gxz:"ZV23IrPara",gxold:"OV23IrPara",gxvar:"AV23IrPara",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV23IrPara=a},v2z:function(a){gx.O.ZV23IrPara=a},v2c:function(){gx.fn.setControlValue("vIRPARA",gx.O.AV23IrPara,0)},c2v:function(){gx.O.AV23IrPara=this.val()},val:function(){return gx.fn.getControlValue("vIRPARA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"GO",grid:0};
this.GXValidFnc[33]={fld:"TABLE3",grid:0};this.GXValidFnc[36]={fld:"TABLE4",grid:0};this.GXValidFnc[40]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Pchnro,isvalid:null,rgrid:[],fld:"PCHNRO",gxz:"Z193PchNro",gxold:"O193PchNro",gxvar:"A193PchNro",ucs:[],op:[45],ip:[45,40],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A193PchNro=gx.num.intval(a)},v2z:function(a){gx.O.Z193PchNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("PCHNRO",gx.O.A193PchNro,0)
},c2v:function(){gx.O.A193PchNro=this.val()},val:function(){return gx.fn.getIntegerValue("PCHNRO",".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:0,type:"char",len:60,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Pchdes,isvalid:null,fld:"PCHDES",gxz:"Z192PchDes",gxold:"O192PchDes",gxvar:"A192PchDes",ucs:[],op:[40,45],ip:[45],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A192PchDes=a},v2z:function(a){gx.O.Z192PchDes=a},v2c:function(){gx.fn.setControlValue("PCHDES",gx.O.A192PchDes,0)
},c2v:function(){gx.O.A192PchDes=this.val()},val:function(){return gx.fn.getControlValue("PCHDES")},nac:function(){return(this.Gx_mode=="UPD")}};this.GXValidFnc[48]={fld:"TABLE5",grid:0};this.GXValidFnc[61]={fld:"STATUS",format:0,grid:0};this.AV23IrPara="";this.ZV23IrPara="";this.OV23IrPara="";this.A193PchNro=0;this.Z193PchNro=0;this.O193PchNro=0;this.A192PchDes="";this.Z192PchDes="";this.O192PchDes="";this.AV20ParTipForm="";this.AV16IndPchDupl="";this.A617PchDesSemA="";this.Gx_msg="";this.Gx_mode="";
this.ServerEvents=["e174w2_client","e184w2_client","e204w9_client","e214w9_client"];this.EnterCtrl=["BTN_ENTER1"];this.VarControlMap.AV16IndPchDupl={id:"vINDPCHDUPL",grid:0,type:"char"};this.VarControlMap.A617PchDesSemA={id:"PCHDESSEMA",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.Gx_msg={id:"vMSG",grid:0,type:"char"};this.VarControlMap.AV20ParTipForm={id:"vPARTIPFORM",grid:0,type:"char"};this.SetStandaloneVars()}tmit009.prototype=new gx.GxObject;
gx.setParentObj(new tmit009());