Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\JS\zh-CN\ListPublic.js
??//???Ready????? //?????????? $(function () { if (typeof (GoSearch) != "undefined") { if (typeof (GOSEARCHDEFINE) == "undefined") { GoSearch(); } } else if (typeof (Search) != "undefined") { if (GOSEARCHDEFINE == null) { Search(); } } }); //???????? $(function () { if (typeof (Search) != "undefined") { $("#ulViewDefine").sortable({ placeholder: 'ui-state-highlight', stop: function () { //???????????????Sort?????? var objSort = $("#ulViewDefine [type=hidden][name=Sort]"); for (var i = 0; i <= objSort.length - 1; i++) { objSort[i].value = i.toString(); } } }); $("#ulViewDefine").disableSelection(); } }); //?????????????? function ViewDefine(send) { $.map($("#frmViewDefine [name=Sort]"), function (item, index) { item.value = index + 1; }); ManagerViewDefineAjax.ViewDefine($("#frmViewDefine"), send, function (dto) { $("#divViewDefine").hide(); Search(); }); }; //??? function Sort(val, event) { if (event.ctrlKey == false) { //????????trl??????? var order = document.getElementById("frmQuery").Orders.value; if (order != val.toString()) { document.getElementById("frmQuery").Orders.value = val.toString(); Search(); } } else { var order = document.getElementById("frmQuery").Orders.value; //??rder????? a+b-??a+,b-} var orders = new Array(); var temp = ""; for (var i = 0; i <= order.length - 1; i++) { var tempchar = order.substring(i, i + 1); if (tempchar != "+" && tempchar != "-") { if (tempchar != ",") { //???????????? temp += tempchar; } } else { //????? temp += tempchar; orders = orders.concat(temp); temp = ""; } } //????????? orders = orders.concat(val); var neworder = ""; //?????????????????????????????????? for (var i = 0; i <= orders.length - 1; i++) { //???????? var field = orders[i].substring(0, orders[i].length - 1) if (field + "+" == val || field + "-" == val) { //?????????????????? neworder += val; break; } neworder = neworder + orders[i]; neworder = neworder + ","; } if (neworder != val.toString()) { document.getElementById("frmQuery").Orders.value = neworder; Search(); } } }; //???????? function GetSummary(summaryDiv, control, param) { var tr = summaryDiv.parentNode; var table = tr.parentNode; if (typeof (table.rows[tr.rowIndex + 1]) == "undefined" || table.rows[tr.rowIndex + 1].getAttribute("name") != "add") { var newTr = table.insertRow(tr.rowIndex + 1); newTr.setAttribute("name", "add"); //????????? var newTd = document.createElement("td"); newTd.className = "summaryTd"; newTd.colSpan = tr.cells.length newTd.innerHTML = '???????????...'; newTr.appendChild(newTd); var summary = Global.Ajax( { ajaxUrl: "/ajax.aspx", ajaxData:"template=" + control + "" + "&" + param, ajaxAsync: false }, null); newTd.innerHTML = summary.Html; } else { //table.deleteRow(tr.rowIndex + 1); if (table.rows[tr.rowIndex + 1].style.display == "none") { table.rows[tr.rowIndex + 1].style.display = ""; } else { table.rows[tr.rowIndex + 1].style.display = "none"; } } }; function GoBatchDelete() { var items = null; if (typeof (arguments[0]) != "undefined") { items = $("#" + arguments[0] + " .trsel:checked"); } else { items = $("#list .trsel:checked"); } var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { if (confirm("?????????????????") == true) { if (typeof (arguments[1]) != "undefined") { var result = eval(arguments[1] + "(this, key)"); } else { var result = BatchDelete(this, key); } } } else { alert("????????????????"); } }; function GoRecycle() { window.location.href = 'recycle.aspx'; return false; } function GoAdvancedSearch() { var search = $("#divSearch"); if (search.css("display") == "none") { //?????? var left = search.css("left"); if (left == "0px" || left == "auto") { search.css("left", (window.document.body.offsetWidth - search.width()) / 2 + "px"); } search.fadeIn(); } else { search.hide(); } }; function GoColumn() { if ($("#divViewDefine").css("display") == "none") { $("#divViewDefine").fadeIn(); } else { $("#divViewDefine").hide(); } }; $(document).ready(function () { //????????????????? $("#dvMsgHead").bind("mousedown", function (event) { var offset = $(this).offset(); _x = event.clientX - offset.left; _y = event.clientY - offset.top; var parent = this.parentNode; $(document).bind("mousemove", function (event) { _xx = event.clientX - _x + 10; _yy = event.clientY - _y - 50; $(parent).css({ "left": (_xx) + "px", "top": (_yy + 2) + "px" }); }).bind("mouseup", function () { $(document).unbind("mousemove").unbind("mouseup"); }); }); }); function dragTable(o, r) { //o.firstChild.onmousedown = function () { return false; }; o.onmousedown = function (a) { var d = document; if (!a) a = window.event; if (o.setCapture) o.setCapture(); else if (window.captureEvents) window.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP); var o_w = o.parentNode.offsetLeft; d.onmousemove = function (a) { if (!a) a = window.event; o.parentNode.style.width = a.clientX - o_w; }; d.onmouseup = function () { if (o.releaseCapture) o.releaseCapture(); else if (window.captureEvents) window.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP); d.onmousemove = null; d.onmouseup = null; }; }; } //??????????? function CheckedAllSelect(trSelAll) { var chks = $(trSelAll.attr("lang")); var allSelect = true; //??????????? for (var i = 0; i <= chks.length - 1; i++) { if (chks[i].checked != true) { allSelect = false; break; } } //?????????????????????? if (allSelect == true) { $(".trSelAll").attr("checked", "checked"); } else { $(".trSelAll").removeAttr("checked"); } } function ListInit() { var trSelAll = $(".trSelAll"); trSelAll.bind("click", function () { if (this.checked == true) { $(this.lang).attr("checked", "checked"); } else { $(this.lang).removeAttr("checked"); } CheckedAllSelect(trSelAll); }); if (typeof (trSelAll.attr("lang")) != "undefined") { var chks = $(trSelAll.attr("lang")); for (var i = 0; i <= chks.length - 1; i++) { //???????????????????????????? if (chks[i].checked == true) { $(chks[i]).parent().parent().removeClass().addClass("trselected"); } if (chks[i].watch) { chks[i].watch("checked", function (id, oldval, newval) { if (newval == "checked") { $(this).parent().parent().removeClass().addClass("trselected"); } else { $(this).parent().parent().removeClass("trselected"); } CheckedAllSelect(trSelAll); return newval; }); chks[i].onclick = function () { if (this.checked) { $(this).parent().parent().removeClass().addClass("trselected"); } else { $(this).parent().parent().removeClass("trselected"); }; CheckedAllSelect(trSelAll); }; } else { chks[i].onpropertychange = function () { if (this.checked) { $(this).parent().parent().removeClass().addClass("trselected"); } else { $(this).parent().parent().removeClass("trselected"); } CheckedAllSelect(trSelAll); } } CheckedAllSelect(trSelAll); }; } $(".listContainer table tr[class!=thead]").bind("mouseover", function () { if (this.className != 'trselected') { this.className = 'trover'; } }).bind("mouseout", function () { if (this.className != 'trselected') { this.className = 'trout'; } }); //???Title??? if ($(".listContainer .tooltip").length > 0) { $(".listContainer .tooltip").tipsy({ fade: true }); } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de