gx.evt.autoSkip=false;function tnpt003(){this.ServerClass="TNpt003";this.PackageName="";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Docnro=function(){try{var a=gx.util.balloon.getNew("DOCNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dvonrovolu=function(){gx.ajax.validSrvEvt("dyncall","valid_Dvonrovolu",["gx.O.A258DocNro","gx.O.A317DvoNroVolu"],[]);
return true};this.Valid_Darnrosequ=function(){gx.ajax.validSrvEvt("dyncall","valid_Darnrosequ",["gx.O.A258DocNro","gx.O.A317DvoNroVolu","gx.O.A173DarNroSequ","gx.O.A174DarTxtArti"],["A174DarTxtArti","Gx_mode","Z258DocNro","Z317DvoNroVolu","Z173DarNroSequ","Z174DarTxtArti","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);return true};this.Valid_Dentipenti=function(){try{if(gx.fn.currentGridRowImpl(40)===0){return true}var a=gx.util.balloon.getNew("DENTIPENTI",gx.fn.currentGridRowImpl(40));
this.AnyError=0;this.sMode142=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(142,40);this.standaloneModal1F142();this.standaloneNotModal1F142()}catch(b){}try{this.Gx_mode=this.sMode142;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dennroseqe=function(){try{if(gx.fn.currentGridRowImpl(40)===0){return true}var a=gx.util.balloon.getNew("DENNROSEQE",gx.fn.currentGridRowImpl(40));this.AnyError=0;this.sMode142=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(142,40);if(gx.fn.gridDuplicateKey(43)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));
this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode142;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Dencodenti=function(){this.sMode142=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(142,40);gx.ajax.validSrvEvt("dyncall","valid_Dencodenti",["gx.O.A258DocNro","gx.O.A317DvoNroVolu","gx.O.A173DarNroSequ","gx.O.A191DenTipEnti","gx.O.A194DenNroSeqE","gx.O.A189DenCodEnti","gx.O.A190DenNomEnti"],["A190DenNomEnti"]);this.Gx_mode=this.sMode142;return true};this.standaloneModal1F142=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DENTIPENTI","Enabled",0)
}else{gx.fn.setCtrlProperty("DENTIPENTI","Enabled",1)}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("DENNROSEQE","Enabled",0)}else{gx.fn.setCtrlProperty("DENNROSEQE","Enabled",1)}}catch(a){}return true};this.standaloneNotModal1F142=function(){return true};this.e111f141_client=function(){this.executeServerEvent("ENTER",true)};this.e121f141_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,15,18,20,23,25,28,30,34,36,41,42,43,44,45,53];this.GXLastCtrlId=53;
this.Grid1Container=new gx.grid.grid(this,142,"Level1",40,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tnpt003",[191,194],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_142",41,"vNRCDDELETED_142","","","nRcdDeleted_142","int",0,"px",4,4,"right",null,[],"nRcdDeleted_142","nRcdDeleted_142",true,0,false,false);this.Grid1Container.addComboBox(191,42,"DENTIPENTI","Tipo entidade","DenTipEnti","char",null,1,true,false,0,"px");
this.Grid1Container.addSingleLineEdit(194,43,"DENNROSEQE","Nro sequência","","DenNroSeqE","int",0,"px",3,3,"right",null,[],194,"DenNroSeqE",true,0,false,false);this.Grid1Container.addSingleLineEdit(189,44,"DENCODENTI","Código entidade","","DenCodEnti","int",0,"px",7,7,"right",null,[],189,"DenCodEnti",true,0,false,false);this.Grid1Container.addSingleLineEdit(190,45,"DENNOMENTI","Nome","","DenNomEnti","char",0,"px",250,250,"left",null,[],190,"DenNomEnti",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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Docnro,isvalid:null,rgrid:[this.Grid1Container],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("DOCNRO",gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getIntegerValue("DOCNRO",".")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Dvonrovolu,isvalid:null,rgrid:[this.Grid1Container],fld:"DVONROVOLU",gxz:"Z317DvoNroVolu",gxold:"O317DvoNroVolu",gxvar:"A317DvoNroVolu",ucs:[],op:[],ip:[25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A317DvoNroVolu=gx.num.intval(a)
},v2z:function(a){gx.O.Z317DvoNroVolu=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DVONROVOLU",gx.O.A317DvoNroVolu,0)},c2v:function(){gx.O.A317DvoNroVolu=this.val()},val:function(){return gx.fn.getIntegerValue("DVONROVOLU",".")},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:0,grid:0,gxgrid:null,fnc:this.Valid_Darnrosequ,isvalid:null,rgrid:[this.Grid1Container],fld:"DARNROSEQU",gxz:"Z173DarNroSequ",gxold:"O173DarNroSequ",gxvar:"A173DarNroSequ",ucs:[],op:[36],ip:[36,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A173DarNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z173DarNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("DARNROSEQU",gx.O.A173DarNroSequ,0)},c2v:function(){gx.O.A173DarNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("DARNROSEQU",".")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"vchar",len:36864,dec:250,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"DARTXTARTI",gxz:"Z174DarTxtArti",gxold:"O174DarTxtArti",gxvar:"A174DarTxtArti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A174DarTxtArti=a
},v2z:function(a){gx.O.Z174DarTxtArti=a},v2c:function(){gx.fn.setControlValue("DARTXTARTI",gx.O.A174DarTxtArti,0)},c2v:function(){gx.O.A174DarTxtArti=this.val()},val:function(){return gx.fn.getControlValue("DARTXTARTI")},nac:function(){return false}};this.GXValidFnc[41]={lvl:142,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:40,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_142",gxz:"ZnRcdDeleted_142",gxold:"OnRcdDeleted_142",gxvar:"nRcdDeleted_142",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_142=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_142=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_142",gx.fn.currentGridRowImpl(40),gx.O.nRcdDeleted_142,0)},c2v:function(){gx.O.nRcdDeleted_142=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_142",gx.fn.currentGridRowImpl(40),".")},nac:function(){return false}};this.GXValidFnc[42]={lvl:142,type:"char",len:2,dec:0,sign:false,ro:0,grid:40,gxgrid:this.Grid1Container,fnc:this.Valid_Dentipenti,isvalid:null,fld:"DENTIPENTI",gxz:"Z191DenTipEnti",gxold:"O191DenTipEnti",gxvar:"A191DenTipEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A191DenTipEnti=a
},v2z:function(a){gx.O.Z191DenTipEnti=a},v2c:function(){gx.fn.setGridComboBoxValue("DENTIPENTI",gx.fn.currentGridRowImpl(40),gx.O.A191DenTipEnti)},c2v:function(){gx.O.A191DenTipEnti=this.val()},val:function(){return gx.fn.getGridControlValue("DENTIPENTI",gx.fn.currentGridRowImpl(40))},nac:function(){return false}};this.GXValidFnc[43]={lvl:142,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:40,gxgrid:this.Grid1Container,fnc:this.Valid_Dennroseqe,isvalid:null,rgrid:[],fld:"DENNROSEQE",gxz:"Z194DenNroSeqE",gxold:"O194DenNroSeqE",gxvar:"A194DenNroSeqE",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A194DenNroSeqE=gx.num.intval(a)
},v2z:function(a){gx.O.Z194DenNroSeqE=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DENNROSEQE",gx.fn.currentGridRowImpl(40),gx.O.A194DenNroSeqE,0)},c2v:function(){gx.O.A194DenNroSeqE=this.val()},val:function(){return gx.fn.getGridIntegerValue("DENNROSEQE",gx.fn.currentGridRowImpl(40),".")},nac:function(){return false}};this.GXValidFnc[44]={lvl:142,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:40,gxgrid:this.Grid1Container,fnc:this.Valid_Dencodenti,isvalid:null,rgrid:[],fld:"DENCODENTI",gxz:"Z189DenCodEnti",gxold:"O189DenCodEnti",gxvar:"A189DenCodEnti",ucs:[],op:[45],ip:[45,44,43,42,30,25,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A189DenCodEnti=gx.num.intval(a)
},v2z:function(a){gx.O.Z189DenCodEnti=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DENCODENTI",gx.fn.currentGridRowImpl(40),gx.O.A189DenCodEnti,0)},c2v:function(){gx.O.A189DenCodEnti=this.val()},val:function(){return gx.fn.getGridIntegerValue("DENCODENTI",gx.fn.currentGridRowImpl(40),".")},nac:function(){return false}};this.GXValidFnc[45]={lvl:142,type:"char",len:250,dec:0,sign:false,ro:1,grid:40,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DENNOMENTI",gxz:"Z190DenNomEnti",gxold:"O190DenNomEnti",gxvar:"A190DenNomEnti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A190DenNomEnti=a
},v2z:function(a){gx.O.Z190DenNomEnti=a},v2c:function(){gx.fn.setGridControlValue("DENNOMENTI",gx.fn.currentGridRowImpl(40),gx.O.A190DenNomEnti,0)},c2v:function(){gx.O.A190DenNomEnti=this.val()},val:function(){return gx.fn.getGridControlValue("DENNOMENTI",gx.fn.currentGridRowImpl(40))},nac:function(){return false}};this.GXValidFnc[53]={fld:"PROMPT_258_317",grid:141};this.A258DocNro=0;this.Z258DocNro=0;this.O258DocNro=0;this.A317DvoNroVolu=0;this.Z317DvoNroVolu=0;this.O317DvoNroVolu=0;this.A173DarNroSequ=0;
this.Z173DarNroSequ=0;this.O173DarNroSequ=0;this.A174DarTxtArti="";this.Z174DarTxtArti="";this.O174DarTxtArti="";this.ZnRcdDeleted_142=0;this.OnRcdDeleted_142=0;this.Z191DenTipEnti="";this.O191DenTipEnti="";this.Z194DenNroSeqE=0;this.O194DenNroSeqE=0;this.Z189DenCodEnti=0;this.O189DenCodEnti=0;this.Z190DenNomEnti="";this.O190DenNomEnti="";this.A191DenTipEnti="";this.A194DenNroSeqE=0;this.A190DenNomEnti="";this.A189DenCodEnti=0;this.ServerEvents=["e111f141_client","e121f141_client"];this.setPrompt("PROMPT_258_317",[20,25]);
this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}tnpt003.prototype=new gx.GxObject;gx.setParentObj(new tnpt003());