gx.evt.autoSkip=false;function gx0380(){this.ServerClass="Gx0380";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pAssNro=gx.fn.getIntegerValue("vPASSNRO",".")};this.e13cl2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14cl1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,58,59,60,61,64];
this.GXLastCtrlId=64;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0380",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(57,53,"ASSNRO","Assinatura","Selecionar","AssNro","int",0,"px",5,5,"right",null,[],57,"AssNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(51,54,"ASSDATINIC","Data assinatura","","AssDatInic","date",0,"px",10,10,"right",null,[],51,"AssDatInic",true,0,false,false);this.Grid1Container.addSingleLineEdit(50,55,"ASSDATENCE","Encerramento","","AssDatEnce","date",0,"px",10,10,"right",null,[],50,"AssDatEnce",true,0,false,false);this.Grid1Container.addSingleLineEdit(652,56,"PERNRO","Periódico","","PerNro","int",0,"px",5,5,"right",null,[],652,"PerNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(899,57,"TPACOD","Tipo de aquisição","","TpaCod","char",0,"px",3,3,"left",null,[],899,"TpaCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(46,58,"ASSCAMPO1L","Campo livre 1","","AssCampo1L","char",0,"px",15,15,"left",null,[],46,"AssCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(47,59,"ASSCAMPO2L","Campo livre 2","","AssCampo2L","char",0,"px",15,15,"left",null,[],47,"AssCampo2L",true,0,false,false);this.Grid1Container.addSingleLineEdit(49,60,"ASSCODASSI","Código assinante","","AssCodAssi","char",0,"px",15,15,"left",null,[],49,"AssCodAssi",true,0,false,false);this.Grid1Container.addSingleLineEdit(53,61,"ASSINDCANC","Cancelada","","AssIndCanc","char",0,"px",2,1,"left",null,[],53,"AssIndCanc",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:"TEXTBLOCKASSNRO",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:"vCASSNRO",gxz:"ZV6cAssNro",gxold:"OV6cAssNro",gxvar:"AV6cAssNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cAssNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cAssNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCASSNRO",gx.O.AV6cAssNro,0)},c2v:function(){gx.O.AV6cAssNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCASSNRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKASSDATINICIOASSINATURA",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCASSDATINICIOASSINATURA",gxz:"ZV7cAssDatInicioAssinatura",gxold:"OV7cAssDatInicioAssinatura",gxvar:"AV7cAssDatInicioAssinatura",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.AV7cAssDatInicioAssinatura=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV7cAssDatInicioAssinatura=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCASSDATINICIOASSINATURA",gx.O.AV7cAssDatInicioAssinatura,0)},c2v:function(){gx.O.AV7cAssDatInicioAssinatura=this.val()},val:function(){return gx.fn.getControlValue("vCASSDATINICIOASSINATURA")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKASSDATENCERRAMENTOASSINATURA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCASSDATENCERRAMENTOASSINATURA",gxz:"ZV8cAssDatEncerramentoAssinatura",gxold:"OV8cAssDatEncerramentoAssinatura",gxvar:"AV8cAssDatEncerramentoAssinatura",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.AV8cAssDatEncerramentoAssinatura=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cAssDatEncerramentoAssinatura=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCASSDATENCERRAMENTOASSINATURA",gx.O.AV8cAssDatEncerramentoAssinatura,0)},c2v:function(){gx.O.AV8cAssDatEncerramentoAssinatura=this.val()},val:function(){return gx.fn.getControlValue("vCASSDATENCERRAMENTOASSINATURA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKPERNRO",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:"vCPERNRO",gxz:"ZV9cPerNro",gxold:"OV9cPerNro",gxvar:"AV9cPerNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cPerNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cPerNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPERNRO",gx.O.AV9cPerNro,0)},c2v:function(){gx.O.AV9cPerNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCPERNRO",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKTPACOD",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTPACOD",gxz:"ZV10cTpaCod",gxold:"OV10cTpaCod",gxvar:"AV10cTpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cTpaCod=a
},v2z:function(a){gx.O.ZV10cTpaCod=a},v2c:function(){gx.fn.setControlValue("vCTPACOD",gx.O.AV10cTpaCod,0)},c2v:function(){gx.O.AV10cTpaCod=this.val()},val:function(){return gx.fn.getControlValue("vCTPACOD")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKASSCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCASSCAMPO1LIVRE",gxz:"ZV11cAssCampo1Livre",gxold:"OV11cAssCampo1Livre",gxvar:"AV11cAssCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cAssCampo1Livre=a
},v2z:function(a){gx.O.ZV11cAssCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCASSCAMPO1LIVRE",gx.O.AV11cAssCampo1Livre,0)},c2v:function(){gx.O.AV11cAssCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCASSCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKASSCAMPO2LIVRE",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCASSCAMPO2LIVRE",gxz:"ZV12cAssCampo2Livre",gxold:"OV12cAssCampo2Livre",gxvar:"AV12cAssCampo2Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cAssCampo2Livre=a
},v2z:function(a){gx.O.ZV12cAssCampo2Livre=a},v2c:function(){gx.fn.setControlValue("vCASSCAMPO2LIVRE",gx.O.AV12cAssCampo2Livre,0)},c2v:function(){gx.O.AV12cAssCampo2Livre=this.val()},val:function(){return gx.fn.getControlValue("vCASSCAMPO2LIVRE")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,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(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"ASSNRO",gxz:"Z57AssNro",gxold:"O57AssNro",gxvar:"A57AssNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A57AssNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z57AssNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("ASSNRO",gx.fn.currentGridRowImpl(51),gx.O.A57AssNro,0)},c2v:function(){gx.O.A57AssNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("ASSNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASSDATINIC",gxz:"Z51AssDatInic",gxold:"O51AssDatInic",gxvar:"A51AssDatInic",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.A51AssDatInic=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z51AssDatInic=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("ASSDATINIC",gx.fn.currentGridRowImpl(51),gx.O.A51AssDatInic,0)},c2v:function(){gx.O.A51AssDatInic=this.val()},val:function(){return gx.fn.getGridControlValue("ASSDATINIC",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASSDATENCE",gxz:"Z50AssDatEnce",gxold:"O50AssDatEnce",gxvar:"A50AssDatEnce",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.A50AssDatEnce=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z50AssDatEnce=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("ASSDATENCE",gx.fn.currentGridRowImpl(51),gx.O.A50AssDatEnce,0)},c2v:function(){gx.O.A50AssDatEnce=this.val()},val:function(){return gx.fn.getGridControlValue("ASSDATENCE",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PERNRO",gxz:"Z652PerNro",gxold:"O652PerNro",gxvar:"A652PerNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A652PerNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z652PerNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PERNRO",gx.fn.currentGridRowImpl(51),gx.O.A652PerNro,0)},c2v:function(){gx.O.A652PerNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("PERNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TPACOD",gxz:"Z899TpaCod",gxold:"O899TpaCod",gxvar:"A899TpaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A899TpaCod=a
},v2z:function(a){gx.O.Z899TpaCod=a},v2c:function(){gx.fn.setGridControlValue("TPACOD",gx.fn.currentGridRowImpl(51),gx.O.A899TpaCod,0)},c2v:function(){gx.O.A899TpaCod=this.val()},val:function(){return gx.fn.getGridControlValue("TPACOD",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASSCAMPO1L",gxz:"Z46AssCampo1L",gxold:"O46AssCampo1L",gxvar:"A46AssCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A46AssCampo1L=a
},v2z:function(a){gx.O.Z46AssCampo1L=a},v2c:function(){gx.fn.setGridControlValue("ASSCAMPO1L",gx.fn.currentGridRowImpl(51),gx.O.A46AssCampo1L,0)},c2v:function(){gx.O.A46AssCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("ASSCAMPO1L",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASSCAMPO2L",gxz:"Z47AssCampo2L",gxold:"O47AssCampo2L",gxvar:"A47AssCampo2L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A47AssCampo2L=a
},v2z:function(a){gx.O.Z47AssCampo2L=a},v2c:function(){gx.fn.setGridControlValue("ASSCAMPO2L",gx.fn.currentGridRowImpl(51),gx.O.A47AssCampo2L,0)},c2v:function(){gx.O.A47AssCampo2L=this.val()},val:function(){return gx.fn.getGridControlValue("ASSCAMPO2L",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASSCODASSI",gxz:"Z49AssCodAssi",gxold:"O49AssCodAssi",gxvar:"A49AssCodAssi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A49AssCodAssi=a
},v2z:function(a){gx.O.Z49AssCodAssi=a},v2c:function(){gx.fn.setGridControlValue("ASSCODASSI",gx.fn.currentGridRowImpl(51),gx.O.A49AssCodAssi,0)},c2v:function(){gx.O.A49AssCodAssi=this.val()},val:function(){return gx.fn.getGridControlValue("ASSCODASSI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[61]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"ASSINDCANC",gxz:"Z53AssIndCanc",gxold:"O53AssIndCanc",gxvar:"A53AssIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A53AssIndCanc=a
},v2z:function(a){gx.O.Z53AssIndCanc=a},v2c:function(){gx.fn.setGridControlValue("ASSINDCANC",gx.fn.currentGridRowImpl(51),gx.O.A53AssIndCanc,0)},c2v:function(){gx.O.A53AssIndCanc=this.val()},val:function(){return gx.fn.getGridControlValue("ASSINDCANC",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[64]={fld:"TABLE4",grid:0};this.AV6cAssNro=0;this.ZV6cAssNro=0;this.OV6cAssNro=0;this.AV7cAssDatInicioAssinatura=gx.date.nullDate();this.ZV7cAssDatInicioAssinatura=gx.date.nullDate();
this.OV7cAssDatInicioAssinatura=gx.date.nullDate();this.AV8cAssDatEncerramentoAssinatura=gx.date.nullDate();this.ZV8cAssDatEncerramentoAssinatura=gx.date.nullDate();this.OV8cAssDatEncerramentoAssinatura=gx.date.nullDate();this.AV9cPerNro=0;this.ZV9cPerNro=0;this.OV9cPerNro=0;this.AV10cTpaCod="";this.ZV10cTpaCod="";this.OV10cTpaCod="";this.AV11cAssCampo1Livre="";this.ZV11cAssCampo1Livre="";this.OV11cAssCampo1Livre="";this.AV12cAssCampo2Livre="";this.ZV12cAssCampo2Livre="";this.OV12cAssCampo2Livre="";
this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z57AssNro=0;this.O57AssNro=0;this.Z51AssDatInic=gx.date.nullDate();this.O51AssDatInic=gx.date.nullDate();this.Z50AssDatEnce=gx.date.nullDate();this.O50AssDatEnce=gx.date.nullDate();this.Z652PerNro=0;this.O652PerNro=0;this.Z899TpaCod="";this.O899TpaCod="";this.Z46AssCampo1L="";this.O46AssCampo1L="";this.Z47AssCampo2L="";this.O47AssCampo2L="";this.Z49AssCodAssi="";this.O49AssCodAssi="";this.Z53AssIndCanc="";this.O53AssIndCanc="";this.AV13pAssNro=0;
this.AV5LinkSelection="";this.A57AssNro=0;this.A51AssDatInic=gx.date.nullDate();this.A50AssDatEnce=gx.date.nullDate();this.A652PerNro=0;this.A899TpaCod="";this.A46AssCampo1L="";this.A47AssCampo2L="";this.A49AssCodAssi="";this.A53AssIndCanc="";this.ServerEvents=["e13cl2_client","e14cl1_client"];this.VarControlMap.AV13pAssNro={id:"vPASSNRO",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(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[44]);this.SetStandaloneVars()}gx0380.prototype=new gx.GxObject;gx.setParentObj(new gx0380());