function GetDate(n, t) { if (n == null) return ""; var i = new Date(parseInt(n.replace("/Date(", "").replace(")/", ""), 10)); return i.format(t) } var dig, dateFormat; ! function () { function t(n) { var r = i[n], u = "exports"; return "object" == typeof r ? r : (r[u] || (r[u] = {}, r[u] = r.call(r[u], t, r[u], r) || r[u]), r[u]) } function n(n, t) { i[n] = t } var i = {}; n("jquery", function () { return jQuery }); n("popup", function (n) { function i() { this.destroyed = !1; this.__popup = t("
").css({ display: "none", position: "absolute", outline: 0 }).attr("tabindex", "-1").html(this.innerHTML).appendTo("body"); this.__backdrop = this.__mask = t("
").css({ opacity: .5, background: "#000" }); this.node = this.__popup[0]; this.backdrop = this.__backdrop[0]; u++ } var t = n("jquery"), u = 0, r = !("minWidth" in t("html")[0].style), f = !r; return t.extend(i.prototype, { node: null, backdrop: null, fixed: !1, destroyed: !0, open: !1, returnValue: "", returnParas: null, isFirstMax: false, autofocus: !0, align: "bottom left", innerHTML: "", className: "ui-popup", show: function (n) { //debugger; var _isFirstMax = this.options.isFirstMax; var _isMax = false; var u, e, o; var obj = this.destroyed ? this : (u = this.__popup, e = this.__backdrop, (this.__activeElement = this.__getActive(), this.open = !0, this.follow = n || this.follow, this.__ready) || ((u.addClass(this.className).attr("role", this.modal ? "alertdialog" : "dialog").css("position", this.fixed ? "fixed" : "absolute"), r || t(window).on("resize", t.proxy(this.reset, this)), this.modal) && (o = { position: "fixed", left: 0, top: 0, width: "100%", height: "100%", overflow: "hidden", userSelect: "none", zIndex: this.zIndex || i.zIndex }, u.addClass(this.className + "-modal"), f || t.extend(o, { position: "absolute", width: t(window).width() + "px", height: t(document).height() + "px" }), e.css(o).attr({ tabindex: "0" }).on("focus", t.proxy(this.focus, this)), this.__mask = e.clone(!0).attr("style", "").insertAfter(u), e.addClass(this.className + "-backdrop").insertBefore(u), this.__ready = !0), u.html() || u.html(this.innerHTML)), u.addClass(this.className + "-show").show(), e.show(), this.reset().focus(), this.__dispatchEvent("show"), this) var _this = this; this._popup.find("[i='min']").click(function () { if (_isMax) { _this._popup.find(".ui-dialog-grid").width("auto"); _this._popup.find(".ui-dialog-grid").height("auto"); _this._popup.find("[i='content']").width(_this.options.width); _this._popup.find("[i='content']").height(_this.options.height); _this.__center(); _isMax = false; } }); this._popup.find("[i='max']").click(function () { if (!_isMax) { _this._popup.find(".ui-dialog-grid").width(t(window).width() - 20); _this._popup.find(".ui-dialog-grid").height(t(document).height()); _this._popup.find("[i='content']").width(t(window).width() - 20); _this._popup.find("[i='content']").height(t(document).height() - 80); _this.__center(); _isMax = true; } }); if (_isFirstMax) { this._popup.find("[i='max']").click(); } return obj; }, showModal: function () { return this.modal = !0, this.show.apply(this, arguments) }, close: function (n, o) { //debugger; this.returnParas = o; return !this.destroyed && this.open && (void 0 !== n && (this.returnValue = n), this.__popup.hide().removeClass(this.className + "-show"), this.__backdrop.hide(), this.open = !1, this.blur(), this.__dispatchEvent("close")), this }, remove: function () { if (this.destroyed) return this; this.__dispatchEvent("beforeremove"); i.current === this && (i.current = null); this.__popup.remove(); this.__backdrop.remove(); this.__mask.remove(); r || t(window).off("resize", this.reset); this.__dispatchEvent("remove"); for (var n in this) delete this[n]; return this }, reset: function () { var n = this.follow; return n ? this.__follow(n) : this.__center(), this.__dispatchEvent("reset"), this }, focus: function () { var f = this.node, r = this.__popup, u = i.current, e = this.zIndex = i.zIndex++, n; return (u && u !== this && u.blur(!1), t.contains(f, this.__getActive())) || (n = r.find("[autofocus]")[0], !this._autofocus && n ? this._autofocus = !0 : n = f, this.__focus(n)), r.css("zIndex", e), i.current = this, r.addClass(this.className + "-focus"), this.__dispatchEvent("focus"), this }, blur: function () { var n = this.__activeElement, t = arguments[0]; return t !== !1 && this.__focus(n), this._autofocus = !1, this.__popup.removeClass(this.className + "-focus"), this.__dispatchEvent("blur"), this }, addEventListener: function (n, t) { return this.__getEventListener(n).push(t), this }, removeEventListener: function (n, t) { for (var r = this.__getEventListener(n), i = 0; i < r.length; i++) t === r[i] && r.splice(i--, 1); return this }, __getEventListener: function (n) { var t = this.__listener; return t || (t = this.__listener = {}), t[n] || (t[n] = []), t[n] }, __dispatchEvent: function (n) { var i = this.__getEventListener(n), t; for (this["on" + n] && this["on" + n](), t = 0; t < i.length; t++) i[t].call(this) }, __focus: function (n) { try { this.autofocus && !/^iframe$/i.test(n.nodeName) && n.focus() } catch (t) { } }, __getActive: function () { try { var n = document.activeElement, t = n.contentDocument; return t && t.activeElement || n } catch (r) { } }, __center: function () { var n = this.__popup, i = t(window), r = t(document), u = this.fixed, f = u ? 0 : r.scrollLeft(), e = u ? 0 : r.scrollTop(), s = i.width(), h = i.height(), c = n.width(), l = n.height(), a = (s - c) / 2 + f, v = 382 * (h - l) / 1e3 + e, o = n[0].style; o.left = Math.max(parseInt(a), f) + "px"; o.top = Math.max(parseInt(v), e) + "px" }, __follow: function (n) { var r = n.parentNode && t(n), f = this.__popup, a; if ((this.__followSkin && f.removeClass(this.__followSkin), r) && (a = r.offset(), a.left * a.top < 0)) return this.__center(); var ot = this, h = this.fixed, b = t(window), k = t(document), st = b.width(), ht = b.height(), d = k.scrollLeft(), g = k.scrollTop(), c = f.width(), l = f.height(), v = r ? r.outerWidth() : 0, y = r ? r.outerHeight() : 0, nt = this.__offset(n), tt = nt.left, it = nt.top, e = h ? tt - d : tt, o = h ? it - g : it, rt = h ? 0 : d, ut = h ? 0 : g, ct = rt + st - c, lt = ut + ht - l, p = {}, i = this.align.split(" "), w = this.className + "-", ft = { top: "bottom", bottom: "top", left: "right", right: "left" }, u = { top: "top", bottom: "top", left: "left", right: "left" }, s = [{ top: o - l, bottom: o + y, left: e - c, right: e + v }, { top: o, bottom: o - l + y, left: e, right: e - c + v }], at = { left: e + v / 2 - c / 2, top: o + y / 2 - l / 2 }, et = { left: [rt, ct], top: [ut, lt] }; t.each(i, function (n, t) { s[n][t] > et[u[t]][1] && (t = i[n] = ft[t]); s[n][t] < et[u[t]][0] && (i[n] = ft[t]) }); i[1] || (u[i[1]] = "left" === u[i[0]] ? "top" : "left", s[1][i[1]] = at[u[i[1]]]); w += i.join("-") + " " + this.className + "-follow"; ot.__followSkin = w; r && f.addClass(w); p[u[i[0]]] = parseInt(s[0][i[0]]); p[u[i[1]]] = parseInt(s[1][i[1]]); f.css(p) }, __offset: function (n) { var f = n.parentNode, r = f ? t(n).offset() : { left: n.pageX, top: n.pageY }, i, u; if (n = f ? n : n.target, i = n.ownerDocument, u = i.defaultView || i.parentWindow, u == window) return r; var s = u.frameElement, e = t(i), h = e.scrollLeft(), c = e.scrollTop(), o = t(s).offset(), l = o.left, a = o.top; return { left: r.left + l - h, top: r.top + a - c } } }), i.zIndex = 1024, i.current = null, i }); n("dialog-config", { backdropBackground: "#000", backdropOpacity: .5, content: 'Loading..<\/span>', title: "", statusbar: "", button: null, ok: null, cancel: null, okValue: "ok", cancelValue: "cancel", cancelDisplay: !0, width: "", height: "", padding: "", skin: "", quickClose: !1, cssUri: "../css/ui-dialog.css", innerHTML: '
<\/div>
<\/div>
<\/div><\/td><\/tr>