gx.evt.autoSkip=!1; gx.define("fedsobreslog",!0,function(b){this.ServerClass="fedsobreslog";this.PackageName="";this.setObjectType("trn");this.setCmpContext(b);this.ReadonlyForm=true;this.setOnAjaxSessionTimeout("Warn");this.hasEnterEvent=true;this.skipOnEnter=false;this.SetStandaloneVars=function(){this.AV7FEEmpresaId=gx.fn.getIntegerValue("vFEEMPRESAID",".");this.AV8FESobreFecha=gx.fn.getDateValue("vFESOBREFECHA");this.AV9FESobreId=gx.fn.getIntegerValue("vFESOBREID",".");this.AV23Pgmname=gx.fn.getControlValue("vPGMNAME");this.Gx_mode= gx.fn.getControlValue("vMODE")};this.Valid_Feempresaid=function(){gx.ajax.validSrvEvt("dyncall","valid_Feempresaid",["gx.num.urlDecimal(gx.O.A1FEEmpresaId,'.',',')","gx.O.A26FEEmpresaRUC","gx.O.A25FEEmpresaRazSoc","gx.O.CmpContext"],["A26FEEmpresaRUC","A25FEEmpresaRazSoc",["A26FEEmpresaRUC","Link"]]);return true};this.Valid_Fesobrefecha=function(){try{var c=gx.util.balloon.getNew("FESOBREFECHA");this.AnyError=0;if(!((new gx.date.gxdate("")).compare(this.A207FESobreFecha)==0||(new gx.date.gxdate(this.A207FESobreFecha)).compare(gx.date.ymdtod(1E3, 1,1))>=0))try{c.setError("Campo Fecha fuera de rango");this.AnyError=gx.num.trunc(1,0)}catch(a){}}catch(b){}try{return c==null?true:c.show()}catch(d){}return true};this.Valid_Fesobreid=function(){try{var c=gx.util.balloon.getNew("FESOBREID");this.AnyError=0}catch(a){}try{return c==null?true:c.show()}catch(b){}return true};this.Valid_Fesobrelogfechahora=function(){try{if(gx.fn.currentGridRowImpl(37)===0)return true;var c=gx.util.balloon.getNew("FESOBRELOGFECHAHORA",gx.fn.currentGridRowImpl(37));this.AnyError= 0;this.sMode96=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(96,37);this.standaloneModal2I96();this.standaloneNotModal2I96();if(gx.fn.gridDuplicateKey(51)){c.setError(gx.text.format(gx.getMessage("GXM_1004"),"Bitacora","","","","","","","",""));this.AnyError=gx.num.trunc(1,0)}if(!((new gx.date.gxdate("")).compare(this.A586FESobreLogFechaHora)==0||(new gx.date.gxdate(this.A586FESobreLogFechaHora)).compare(gx.date.ymdhmstot(1E3,1,1,0,0,0))>=0))try{c.setError("Campo Fecha Hora fuera de rango");this.AnyError= gx.num.trunc(1,0)}catch(a){}}catch(b){}try{this.Gx_mode=this.sMode96;return c==null?true:c.show()}catch(d){}return true};this.standaloneModal2I96=function(){try{this.Gx_mode!="INS"?gx.fn.setCtrlProperty("FESOBRELOGFECHAHORA","Enabled",0):gx.fn.setCtrlProperty("FESOBRELOGFECHAHORA","Enabled",1)}catch(a){}return true};this.standaloneNotModal2I96=function(){return true};this.e122i2_client=function(){this.executeServerEvent("AFTER TRN",true)};this.e132i2_client=function(){this.executeServerEvent("'DOCANCEL'", false)};this.e142i48_client=function(){this.executeServerEvent("ENTER",true)};this.e152i48_client=function(){this.executeServerEvent("CANCEL",true)};b=this.GXValidFnc=[];this.GXCtrlIds=[2,3,5,6,9,12,13,16,19,22,25,28,31,32,33,34,35,36,40,41,44,47,50,51,53,56,57,60,61,62];this.GXLastCtrlId=62;var a=this.FreestylegridfreeContainer=new gx.grid.grid(this,96,"Bitacora",37,"Freestylegridfree","Freestylegridfree","FreestylegridfreeContainer",this.CmpContext,this.IsMasterPage,"fedsobreslog",[586],true,-1, true,true,0,false,false,false,"",0,"px","Nueva fila",false,false,false,null,null,false,"",false,[1,1,1,1]);a.startRow("","","","","","");a.startCell("","","","","","","","","","");a.startDiv("","0px","0px");a.startTable("Table3",41,"100%");a.addHtmlCode("
");a.startRow("","","","","","");a.startCell("","left","","","","","","","","");a.startTable("Grupolog",44,"0px");a.addHtmlCode("");a.startRow("","","","","","");a.startCell("","left","top","","","","500px","","","");a.startTable("Table4", 47,"0px");a.addHtmlCode("");a.startRow("","","","","","");a.startCell("","","","","","","","1","","");a.addTextBlock("TEXTBLOCKFESOBRELOGFECHAHORA",null);a.addSingleLineEdit(586,51,"FESOBRELOGFECHAHORA","","","FESobreLogFechaHora","dtime",14,"chr",14,14,"right",null,[],586,"FESobreLogFechaHora",true,5,false,false,"ReadonlyAttribute_Trn ReadonlyAttribute_TrnBlue",1,"");a.endCell();a.endRow();a.addHtmlCode("");a.endTable();a.endCell();a.startCell("","left","top","","","","1000px","", "","");a.startTable("Table5",53,"0px");a.addHtmlCode("");a.startRow("","","","","","");a.startCell("","","","","","","","1","","");a.addTextBlock("TEXTBLOCKFESOBRELOGMENSAJE",null);a.addMultipleLineEdit(587,57,"FESOBRELOGMENSAJE","","FESobreLogMensaje","svchar",80,"chr",10,"row","1000",1E3,"left",null,true,false,0,"");a.endCell();a.endRow();a.addHtmlCode("");a.endTable();a.endCell();a.endRow();a.addHtmlCode("");a.endTable();a.endCell();a.endRow();a.addHtmlCode("");a.endTable(); a.endDiv();a.endCell();a.endRow();this.setGrid(a);b[2]={fld:"",grid:0};b[3]={fld:"",grid:0};b[5]={fld:"",grid:0};b[6]={fld:"K2BTABLETRNDATAAREACONTAINER",grid:0};b[9]={fld:"",grid:0};b[12]={fld:"",grid:0};b[13]={fld:"TABLE1",grid:0};b[16]={fld:"TABLE2",grid:0};b[19]={lvl:0,type:"int",len:18,dec:0,sign:false,pic:"ZZZZZZZZZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Feempresaid,isvalid:null,rgrid:[this.FreestylegridfreeContainer],fld:"FEEMPRESAID",gxz:"Z1FEEmpresaId",gxold:"O1FEEmpresaId",gxvar:"A1FEEmpresaId", ucs:[],op:[25,22],ip:[25,22,19],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1FEEmpresaId=gx.num.intval(a)},v2z:function(a){gx.O.Z1FEEmpresaId=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("FEEMPRESAID",gx.O.A1FEEmpresaId,0)},c2v:function(){gx.O.A1FEEmpresaId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("FEEMPRESAID",".")},nac:function(){return 0!=this.AV7FEEmpresaId}};b[22]={lvl:0,type:"int",len:12,dec:0,sign:false,pic:"ZZZZZZZZZZZ9",ro:1,grid:0,gxgrid:null, fnc:null,isvalid:null,rgrid:[],fld:"FEEMPRESARUC",gxz:"Z26FEEmpresaRUC",gxold:"O26FEEmpresaRUC",gxvar:"A26FEEmpresaRUC",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A26FEEmpresaRUC=gx.num.intval(a)},v2z:function(a){gx.O.Z26FEEmpresaRUC=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("FEEMPRESARUC",gx.O.A26FEEmpresaRUC,0)},c2v:function(){gx.O.A26FEEmpresaRUC=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("FEEMPRESARUC",".")},nac:gx.falseFn};b[25]= {lvl:0,type:"svchar",len:150,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"FEEMPRESARAZSOC",gxz:"Z25FEEmpresaRazSoc",gxold:"O25FEEmpresaRazSoc",gxvar:"A25FEEmpresaRazSoc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A25FEEmpresaRazSoc=a},v2z:function(a){gx.O.Z25FEEmpresaRazSoc=a},v2c:function(){gx.fn.setControlValue("FEEMPRESARAZSOC",gx.O.A25FEEmpresaRazSoc,0)},c2v:function(){gx.O.A25FEEmpresaRazSoc=this.val()},val:function(){return gx.fn.getControlValue("FEEMPRESARAZSOC")}, nac:gx.falseFn};b[28]={lvl:0,type:"date",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Valid_Fesobrefecha,isvalid:null,rgrid:[this.FreestylegridfreeContainer],fld:"FESOBREFECHA",gxz:"Z207FESobreFecha",gxold:"O207FESobreFecha",gxvar:"A207FESobreFecha",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/99",dec:0},ucs:[],op:[28],ip:[28],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A207FESobreFecha=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.Z207FESobreFecha=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("FESOBREFECHA", gx.O.A207FESobreFecha,0)},c2v:function(){gx.O.A207FESobreFecha=gx.fn.toDatetimeValue(this.val())},val:function(){return gx.fn.getControlValue("FESOBREFECHA")},nac:function(){return(new gx.date.gxdate("")).compare(this.AV8FESobreFecha)!=0}};b[31]={lvl:0,type:"int",len:12,dec:0,sign:false,pic:"ZZZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Fesobreid,isvalid:null,rgrid:[this.FreestylegridfreeContainer],fld:"FESOBREID",gxz:"Z208FESobreId",gxold:"O208FESobreId",gxvar:"A208FESobreId",ucs:[],op:[], ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A208FESobreId=gx.num.intval(a)},v2z:function(a){gx.O.Z208FESobreId=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("FESOBREID",gx.O.A208FESobreId,0)},c2v:function(){gx.O.A208FESobreId=gx.num.intval(this.val())},val:function(){return gx.fn.getIntegerValue("FESOBREID",".")},nac:function(){return 0!=this.AV9FESobreId}};b[32]={fld:"",grid:0};b[33]={fld:"DIV_LEVEL_CONTAINER_FREE",grid:0};b[34]={fld:"DIV_LEVEL_HEADER_FREE",grid:0};b[35]={fld:"TEXTBLOCK_HEADER_FREE", format:0,grid:0};b[36]={fld:"DIV_LEVEL_CONTENT_FREE",grid:0};b[40]={fld:"",grid:37};b[41]={fld:"TABLE3",grid:37};b[44]={fld:"GRUPOLOG",grid:37};b[47]={fld:"TABLE4",grid:37};b[50]={fld:"TEXTBLOCKFESOBRELOGFECHAHORA",format:0,grid:37};b[51]={lvl:96,type:"dtime",len:8,dec:5,sign:false,ro:0,isacc:1,grid:37,gxgrid:this.FreestylegridfreeContainer,fnc:this.Valid_Fesobrelogfechahora,isvalid:null,rgrid:[],fld:"FESOBRELOGFECHAHORA",gxz:"Z586FESobreLogFechaHora",gxold:"O586FESobreLogFechaHora",gxvar:"A586FESobreLogFechaHora", dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/99 99:99",dec:5},ucs:[],op:[51],ip:[51],nacdep:[],ctrltype:"edit",inputType:"text",v2v:function(a){gx.O.A586FESobreLogFechaHora=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.Z586FESobreLogFechaHora=gx.fn.toDatetimeValue(a)},v2c:function(a){gx.fn.setGridControlValue("FESOBRELOGFECHAHORA",a||gx.fn.currentGridRowImpl(37),gx.O.A586FESobreLogFechaHora,0)},c2v:function(){gx.O.A586FESobreLogFechaHora=gx.fn.toDatetimeValue(this.val())},val:function(a){return gx.fn.getGridDateTimeValue("FESOBRELOGFECHAHORA", a||gx.fn.currentGridRowImpl(37))},nac:gx.falseFn};b[53]={fld:"TABLE5",grid:37};b[56]={fld:"TEXTBLOCKFESOBRELOGMENSAJE",format:0,grid:37};b[57]={lvl:96,type:"svchar",len:1E3,dec:0,sign:false,ro:0,isacc:1,multiline:true,grid:37,gxgrid:this.FreestylegridfreeContainer,fnc:null,isvalid:null,rgrid:[],fld:"FESOBRELOGMENSAJE",gxz:"Z587FESobreLogMensaje",gxold:"O587FESobreLogMensaje",gxvar:"A587FESobreLogMensaje",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",inputType:"text",autoCorrect:"1",v2v:function(a){gx.O.A587FESobreLogMensaje= a},v2z:function(a){gx.O.Z587FESobreLogMensaje=a},v2c:function(a){gx.fn.setGridControlValue("FESOBRELOGMENSAJE",a||gx.fn.currentGridRowImpl(37),gx.O.A587FESobreLogMensaje,0);typeof this.dom_hdl=="function"&&this.dom_hdl.call(gx.O)},c2v:function(){gx.O.A587FESobreLogMensaje=this.val()},val:function(a){return gx.fn.getGridControlValue("FESOBRELOGMENSAJE",a||gx.fn.currentGridRowImpl(37))},nac:gx.falseFn};b[60]={fld:"",grid:0};b[61]={fld:"",grid:0};b[62]={fld:"ACTIONSCONTAINERBUTTONS",grid:0};this.O26FEEmpresaRUC= this.Z26FEEmpresaRUC=this.A26FEEmpresaRUC=this.O1FEEmpresaId=this.Z1FEEmpresaId=this.A1FEEmpresaId=0;this.O25FEEmpresaRazSoc=this.Z25FEEmpresaRazSoc=this.A25FEEmpresaRazSoc="";this.A207FESobreFecha=gx.date.nullDate();this.Z207FESobreFecha=gx.date.nullDate();this.O207FESobreFecha=gx.date.nullDate();this.O208FESobreId=this.Z208FESobreId=this.A208FESobreId=0;this.Z586FESobreLogFechaHora=gx.date.nullDate();this.O586FESobreLogFechaHora=gx.date.nullDate();this.O587FESobreLogMensaje=this.Z587FESobreLogMensaje= "";this.A586FESobreLogFechaHora=gx.date.nullDate();this.AV23Pgmname=this.AV20UserActivityType=this.AV19StandardActivityType=this.A587FESobreLogMensaje="";this.AV21IsAuthorized=false;this.AV14Context={};this.AV16BtnTooltip=this.AV15BtnCaption="";this.AV10TrnContext={};this.AV7FEEmpresaId=0;this.AV8FESobreFecha=gx.date.nullDate();this.A1FEEmpresaId=this.AV9FESobreId=0;this.A207FESobreFecha=gx.date.nullDate();this.A26FEEmpresaRUC=this.A208FESobreId=0;this.A25FEEmpresaRazSoc="";this.Events={e122i2_client:["AFTER TRN", true],e132i2_client:["'DOCANCEL'",true],e142i48_client:["ENTER",true],e152i48_client:["CANCEL",true]};this.EnterCtrl=["ENTER"];this.setVCMap("AV7FEEmpresaId","vFEEMPRESAID",0,"int");this.setVCMap("AV8FESobreFecha","vFESOBREFECHA",0,"date");this.setVCMap("AV9FESobreId","vFESOBREID",0,"int");this.setVCMap("AV23Pgmname","vPGMNAME",0,"char");this.setVCMap("Gx_mode","vMODE",0,"char");this.InitStandaloneVars()});