Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\GuangWai\Control\PV\PVHistoryCollectData.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.PV.PVHistoryCollectData" %> <%--<div id="GetPVHistoryCollect<%= PKId %>"> </div> <script type="text/javascript"> $(function () { GetPVHistoryCollect<%= PKId %>(); }); </script> ????????????--%> <style type="text/css"> .box .head .more a:hover, .mbox .head .more a:hover { color: #333; text-decoration: underline; } </style> <% 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 %>')"><i class="icon icon-star" style="vertical-align:middle;margin-top:-5px;"></i> ??????</a> <% } else { %> <a href="#???" class="btn add_fav ahblack" onclick="PVHistoryCollectAdd('<%= this.PKId %>','<%= this.PVTarget %>','<%= this.PVType %>');"><i class="icon icon-star" style="vertical-align:middle;margin-top:-5px;"></i> ??????</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