gx.evt.autoSkip=false;function gx00k0(){this.ServerClass="Gx00K0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV11pT02TrnCod=gx.fn.getControlValue("vPT02TRNCOD");this.AV12pT02TipDoctoUsuario=gx.fn.getControlValue("vPT02TIPDOCTOUSUARIO");this.AV13pT02DocUsbNro=gx.fn.getControlValue("vPT02DOCUSBNRO")};this.e139j2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e149j1_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,38,42,43,44,45,46,47,50];this.GXLastCtrlId=50;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",41,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00k0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",42,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(849,43,"T02TRNCOD","T02TrnCod","","T02TrnCod","char",0,"px",16,16,"left",null,[],849,"T02TrnCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(848,44,"T02TIPDOCT","Tipo documento/usuário","","T02TipDoct","char",0,"px",3,3,"left",null,[],848,"T02TipDoct",true,0,false,false);this.Grid1Container.addSingleLineEdit(845,45,"T02DOCUSBN","T02DocUsbNro","","T02DocUsbN","char",0,"px",14,14,"left",null,[],845,"T02DocUsbN",true,0,false,false);this.Grid1Container.addSingleLineEdit(847,46,"T02QTDEMPR","T02QtdEmprestada","Selecionar","T02QtdEmpr","int",0,"px",5,5,"right",null,[],847,"T02QtdEmpr",true,0,false,false);
this.Grid1Container.addSingleLineEdit(846,47,"T02QTDCOMP","T02QtdComplementar","","T02QtdComp","int",0,"px",5,5,"right",null,[],846,"T02QtdComp",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKT02TRNCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:16,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCT02TRNCOD",gxz:"ZV6cT02TrnCod",gxold:"OV6cT02TrnCod",gxvar:"AV6cT02TrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cT02TrnCod=a
},v2z:function(a){gx.O.ZV6cT02TrnCod=a},v2c:function(){gx.fn.setControlValue("vCT02TRNCOD",gx.O.AV6cT02TrnCod,0)},c2v:function(){gx.O.AV6cT02TrnCod=this.val()},val:function(){return gx.fn.getControlValue("vCT02TRNCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKT02TIPDOCTOUSUARIO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCT02TIPDOCTOUSUARIO",gxz:"ZV7cT02TipDoctoUsuario",gxold:"OV7cT02TipDoctoUsuario",gxvar:"AV7cT02TipDoctoUsuario",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cT02TipDoctoUsuario=a
},v2z:function(a){gx.O.ZV7cT02TipDoctoUsuario=a},v2c:function(){gx.fn.setControlValue("vCT02TIPDOCTOUSUARIO",gx.O.AV7cT02TipDoctoUsuario,0)},c2v:function(){gx.O.AV7cT02TipDoctoUsuario=this.val()},val:function(){return gx.fn.getControlValue("vCT02TIPDOCTOUSUARIO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKT02DOCUSBNRO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCT02DOCUSBNRO",gxz:"ZV8cT02DocUsbNro",gxold:"OV8cT02DocUsbNro",gxvar:"AV8cT02DocUsbNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cT02DocUsbNro=a
},v2z:function(a){gx.O.ZV8cT02DocUsbNro=a},v2c:function(){gx.fn.setControlValue("vCT02DOCUSBNRO",gx.O.AV8cT02DocUsbNro,0)},c2v:function(){gx.O.AV8cT02DocUsbNro=this.val()},val:function(){return gx.fn.getControlValue("vCT02DOCUSBNRO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKT02QTDEMPRESTADA",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCT02QTDEMPRESTADA",gxz:"ZV9cT02QtdEmprestada",gxold:"OV9cT02QtdEmprestada",gxvar:"AV9cT02QtdEmprestada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cT02QtdEmprestada=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cT02QtdEmprestada=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCT02QTDEMPRESTADA",gx.O.AV9cT02QtdEmprestada,0)},c2v:function(){gx.O.AV9cT02QtdEmprestada=this.val()},val:function(){return gx.fn.getIntegerValue("vCT02QTDEMPRESTADA",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKT02QTDCOMPLEMENTAR",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCT02QTDCOMPLEMENTAR",gxz:"ZV10cT02QtdComplementar",gxold:"OV10cT02QtdComplementar",gxvar:"AV10cT02QtdComplementar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cT02QtdComplementar=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cT02QtdComplementar=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCT02QTDCOMPLEMENTAR",gx.O.AV10cT02QtdComplementar,0)},c2v:function(){gx.O.AV10cT02QtdComplementar=this.val()},val:function(){return gx.fn.getIntegerValue("vCT02QTDCOMPLEMENTAR",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"GROUP2",grid:0};this.GXValidFnc[38]={fld:"TABLE3",grid:0};this.GXValidFnc[42]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"char",len:16,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"T02TRNCOD",gxz:"Z849T02TrnCod",gxold:"O849T02TrnCod",gxvar:"A849T02TrnCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A849T02TrnCod=a
},v2z:function(a){gx.O.Z849T02TrnCod=a},v2c:function(){gx.fn.setGridControlValue("T02TRNCOD",gx.fn.currentGridRowImpl(41),gx.O.A849T02TrnCod,0)},c2v:function(){gx.O.A849T02TrnCod=this.val()},val:function(){return gx.fn.getGridControlValue("T02TRNCOD",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[44]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"T02TIPDOCT",gxz:"Z848T02TipDoct",gxold:"O848T02TipDoct",gxvar:"A848T02TipDoct",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A848T02TipDoct=a
},v2z:function(a){gx.O.Z848T02TipDoct=a},v2c:function(){gx.fn.setGridControlValue("T02TIPDOCT",gx.fn.currentGridRowImpl(41),gx.O.A848T02TipDoct,0)},c2v:function(){gx.O.A848T02TipDoct=this.val()},val:function(){return gx.fn.getGridControlValue("T02TIPDOCT",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[45]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"T02DOCUSBN",gxz:"Z845T02DocUsbN",gxold:"O845T02DocUsbN",gxvar:"A845T02DocUsbN",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A845T02DocUsbN=a
},v2z:function(a){gx.O.Z845T02DocUsbN=a},v2c:function(){gx.fn.setGridControlValue("T02DOCUSBN",gx.fn.currentGridRowImpl(41),gx.O.A845T02DocUsbN,0)},c2v:function(){gx.O.A845T02DocUsbN=this.val()},val:function(){return gx.fn.getGridControlValue("T02DOCUSBN",gx.fn.currentGridRowImpl(41))},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"T02QTDEMPR",gxz:"Z847T02QtdEmpr",gxold:"O847T02QtdEmpr",gxvar:"A847T02QtdEmpr",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A847T02QtdEmpr=gx.num.intval(a)
},v2z:function(a){gx.O.Z847T02QtdEmpr=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("T02QTDEMPR",gx.fn.currentGridRowImpl(41),gx.O.A847T02QtdEmpr,0)},c2v:function(){gx.O.A847T02QtdEmpr=this.val()},val:function(){return gx.fn.getGridIntegerValue("T02QTDEMPR",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:41,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"T02QTDCOMP",gxz:"Z846T02QtdComp",gxold:"O846T02QtdComp",gxvar:"A846T02QtdComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A846T02QtdComp=gx.num.intval(a)
},v2z:function(a){gx.O.Z846T02QtdComp=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("T02QTDCOMP",gx.fn.currentGridRowImpl(41),gx.O.A846T02QtdComp,0)},c2v:function(){gx.O.A846T02QtdComp=this.val()},val:function(){return gx.fn.getGridIntegerValue("T02QTDCOMP",gx.fn.currentGridRowImpl(41),".")},nac:function(){return false}};this.GXValidFnc[50]={fld:"TABLE4",grid:0};this.AV6cT02TrnCod="";this.ZV6cT02TrnCod="";this.OV6cT02TrnCod="";this.AV7cT02TipDoctoUsuario="";this.ZV7cT02TipDoctoUsuario="";
this.OV7cT02TipDoctoUsuario="";this.AV8cT02DocUsbNro="";this.ZV8cT02DocUsbNro="";this.OV8cT02DocUsbNro="";this.AV9cT02QtdEmprestada=0;this.ZV9cT02QtdEmprestada=0;this.OV9cT02QtdEmprestada=0;this.AV10cT02QtdComplementar=0;this.ZV10cT02QtdComplementar=0;this.OV10cT02QtdComplementar=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z849T02TrnCod="";this.O849T02TrnCod="";this.Z848T02TipDoct="";this.O848T02TipDoct="";this.Z845T02DocUsbN="";this.O845T02DocUsbN="";this.Z847T02QtdEmpr=0;this.O847T02QtdEmpr=0;
this.Z846T02QtdComp=0;this.O846T02QtdComp=0;this.AV11pT02TrnCod="";this.AV12pT02TipDoctoUsuario="";this.AV13pT02DocUsbNro="";this.AV5LinkSelection="";this.A849T02TrnCod="";this.A848T02TipDoct="";this.A845T02DocUsbN="";this.A847T02QtdEmpr=0;this.A846T02QtdComp=0;this.ServerEvents=["e139j2_client","e149j1_client"];this.VarControlMap.AV11pT02TrnCod={id:"vPT02TRNCOD",grid:0,type:"char"};this.VarControlMap.AV12pT02TipDoctoUsuario={id:"vPT02TIPDOCTOUSUARIO",grid:0,type:"char"};this.VarControlMap.AV13pT02DocUsbNro={id:"vPT02DOCUSBNRO",grid:0,type:"char"};
this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.SetStandaloneVars()}gx00k0.prototype=new gx.GxObject;gx.setParentObj(new gx00k0());