gx.evt.autoSkip=false;function gx01r3(){this.ServerClass="Gx01R3";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV9pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV10pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".");this.AV11pDoeNroSequencia=gx.fn.getIntegerValue("vPDOENROSEQUENCIA",".");this.AV12pCurCod=gx.fn.getIntegerValue("vPCURCOD",".");this.AV13pDcpNro=gx.fn.getIntegerValue("vPDCPNRO",".")};this.e13ai2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e14ai1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,28,32,33,34,35,36,37,38,41];this.GXLastCtrlId=41;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx01r3",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",32,0,"px",17,"px",null,"","");
this.Grid1Container.addSingleLineEdit(169,33,"CURCOD","Curso","","CurCod","int",0,"px",5,5,"right",null,[],169,"CurCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(186,34,"DCPNRO","Disciplina","","DcpNro","int",0,"px",4,4,"right",null,[],186,"DcpNro",true,0,false,false);this.Grid1Container.addComboBox(182,35,"DCETIPBIBL","Tipo de bibliografia","DceTipBibl","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(258,36,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",false,0,false,false);
this.Grid1Container.addSingleLineEdit(922,37,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",false,0,false,false);this.Grid1Container.addSingleLineEdit(281,38,"DOENROSEQU","Nro seqüência exemplar","","DoeNroSequ","int",0,"px",4,4,"right",null,[],281,"DoeNroSequ",false,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:"TEXTBLOCKCURCOD",format:0,grid:0};
this.GXValidFnc[14]={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:"vCCURCOD",gxz:"ZV6cCurCod",gxold:"OV6cCurCod",gxvar:"AV6cCurCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cCurCod=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cCurCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCCURCOD",gx.O.AV6cCurCod,0)},c2v:function(){gx.O.AV6cCurCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCCURCOD",".")
},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKDCPNRO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDCPNRO",gxz:"ZV7cDcpNro",gxold:"OV7cDcpNro",gxvar:"AV7cDcpNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cDcpNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV7cDcpNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDCPNRO",gx.O.AV7cDcpNro,0)
},c2v:function(){gx.O.AV7cDcpNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCDCPNRO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKDCETIPBIBLIOGRAFIA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCDCETIPBIBLIOGRAFIA",gxz:"ZV8cDceTipBibliografia",gxold:"OV8cDceTipBibliografia",gxvar:"AV8cDceTipBibliografia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV8cDceTipBibliografia=a
},v2z:function(a){gx.O.ZV8cDceTipBibliografia=a},v2c:function(){gx.fn.setComboBoxValue("vCDCETIPBIBLIOGRAFIA",gx.O.AV8cDceTipBibliografia)},c2v:function(){gx.O.AV8cDceTipBibliografia=this.val()},val:function(){return gx.fn.getControlValue("vCDCETIPBIBLIOGRAFIA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"GROUP2",grid:0};this.GXValidFnc[28]={fld:"TABLE3",grid:0};this.GXValidFnc[32]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:31,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(31))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CURCOD",gxz:"Z169CurCod",gxold:"O169CurCod",gxvar:"A169CurCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A169CurCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z169CurCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CURCOD",gx.fn.currentGridRowImpl(31),gx.O.A169CurCod,0)},c2v:function(){gx.O.A169CurCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("CURCOD",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DCPNRO",gxz:"Z186DcpNro",gxold:"O186DcpNro",gxvar:"A186DcpNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A186DcpNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z186DcpNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DCPNRO",gx.fn.currentGridRowImpl(31),gx.O.A186DcpNro,0)},c2v:function(){gx.O.A186DcpNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DCPNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"DCETIPBIBL",gxz:"Z182DceTipBibl",gxold:"O182DceTipBibl",gxvar:"A182DceTipBibl",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A182DceTipBibl=a
},v2z:function(a){gx.O.Z182DceTipBibl=a},v2c:function(){gx.fn.setGridComboBoxValue("DCETIPBIBL",gx.fn.currentGridRowImpl(31),gx.O.A182DceTipBibl)},c2v:function(){gx.O.A182DceTipBibl=this.val()},val:function(){return gx.fn.getGridControlValue("DCETIPBIBL",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],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.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(31),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(31),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOENROSEQU",gxz:"Z281DoeNroSequ",gxold:"O281DoeNroSequ",gxvar:"A281DoeNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A281DoeNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z281DoeNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOENROSEQU",gx.fn.currentGridRowImpl(31),gx.O.A281DoeNroSequ,0)},c2v:function(){gx.O.A281DoeNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOENROSEQU",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[41]={fld:"TABLE4",grid:0};this.AV6cCurCod=0;this.ZV6cCurCod=0;this.OV6cCurCod=0;this.AV7cDcpNro=0;this.ZV7cDcpNro=0;this.OV7cDcpNro=0;this.AV8cDceTipBibliografia="";
this.ZV8cDceTipBibliografia="";this.OV8cDceTipBibliografia="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z169CurCod=0;this.O169CurCod=0;this.Z186DcpNro=0;this.O186DcpNro=0;this.Z182DceTipBibl="";this.O182DceTipBibl="";this.Z258DocNro=0;this.O258DocNro=0;this.Z922UndCod=0;this.O922UndCod=0;this.Z281DoeNroSequ=0;this.O281DoeNroSequ=0;this.AV9pDocNro=0;this.AV10pUndCod=0;this.AV11pDoeNroSequencia=0;this.AV12pCurCod=0;this.AV13pDcpNro=0;this.AV5LinkSelection="";this.A169CurCod=0;this.A186DcpNro=0;
this.A182DceTipBibl="";this.A258DocNro=0;this.A922UndCod=0;this.A281DoeNroSequ=0;this.ServerEvents=["e13ai2_client","e14ai1_client"];this.VarControlMap.AV9pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV10pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV11pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV12pCurCod={id:"vPCURCOD",grid:0,type:"int"};this.VarControlMap.AV13pDcpNro={id:"vPDCPNRO",grid:0,type:"int"};this.VarControlMap.AV9pDocNro={id:"vPDOCNRO",grid:0,type:"int"};
this.VarControlMap.AV10pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV11pDoeNroSequencia={id:"vPDOENROSEQUENCIA",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar({rfrVar:"AV9pDocNro"});this.Grid1Container.addRefreshingVar({rfrVar:"AV10pUndCod"});this.Grid1Container.addRefreshingVar({rfrVar:"AV11pDoeNroSequencia"});
this.SetStandaloneVars()}gx01r3.prototype=new gx.GxObject;gx.setParentObj(new gx01r3());