Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Control\PV\PVHistoryCollectData.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PVHistoryCollectData.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.PV.PVHistoryCollectData" %> <%--<div id="GetPVHistoryCollect<%= PKId %>"> </div> <script type="text/javascript"> $(function () { GetPVHistoryCollect<%= PKId %>(); }); </script> ????????????--%> <% var pv = CreateInstance.PVHistoryDao.Where(l => l.PVGuid == PKId && l.PVType == this.PVType && l.PVTarget == this.PVTarget && l.UserGuid == this.UserCode) .ToList() .FirstResult(); if (pv != null) { %> <a href="#??????" class="btn add_fav" onclick="PVHistoryDelete('<%= pv.Guid %>')">??????</a> <% } else { %> <a href="#???" class="btn add_fav" onclick="PVHistoryCollectAdd('<%= this.PKId %>','<%= this.PVTarget %>','<%= this.PVType %>');">??????</a> <% } %> <script type="text/javascript"> function PVHistoryCollectAdd(pkid, pvTarget, pvType) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.PVHistoryAdd", data: "PKId=" + pkid + "&PVTarget=" + pvTarget + "&PVType=" + pvType, async: true, dataType: 'json', success: function (result) { GetPVHistoryCollect<%= PKId %>(); }, beforeSend: function () { }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; Global.Error(message); } }); } function PVHistoryDelete(guid) { if (!confirm("?????????")) { return; } $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.PVHistoryDelete", data: "PKId=" + guid, async: true, dataType: 'json', success: function (result) { GetPVHistoryCollect<%= PKId %>(); }, beforeSend: function () { }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de