|
|
|
|
var u = "";
|
|
|
|
|
var w = "";
|
|
|
|
|
var winWidth = 0;
|
|
|
|
|
var winHeight = 0;
|
|
|
|
|
var imgContainerWidth = 0;
|
|
|
|
|
var imgContainerHeight = 0;
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
$.ajaxSetup({ async: false });
|
|
|
|
|
var paymentAuditing = false;
|
|
|
|
|
var profitAuditing = false;
|
|
|
|
|
var ladingBillAuditing = false;
|
|
|
|
|
var arrearageAnalysis = false;
|
|
|
|
|
var clientAnalysis = false;
|
|
|
|
|
var saleAnalysis = false;
|
|
|
|
|
var generalSituation = true;
|
|
|
|
|
var userSetting = true;
|
|
|
|
|
var divisionNum = 0;
|
|
|
|
|
var btnStr = new Array();
|
|
|
|
|
var liStr = "";
|
|
|
|
|
var module = new Array();
|
|
|
|
|
var modCount = 0;
|
|
|
|
|
|
|
|
|
|
winWidth = document.documentElement.clientWidth;
|
|
|
|
|
winHeight = document.documentElement.clientHeight;
|
|
|
|
|
|
|
|
|
|
$(".logoImg").width(winWidth * 0.3518);
|
|
|
|
|
$(".logoImg").height(winHeight * 0.1703);
|
|
|
|
|
|
|
|
|
|
u = UrlParm.parm("u");
|
|
|
|
|
w = UrlParm.parm("w");
|
|
|
|
|
|
|
|
|
|
document.body.scroll = "no";
|
|
|
|
|
|
|
|
|
|
$("#mask").css("width", winWidth + "px");
|
|
|
|
|
$("#mask").css("height", winHeight + "px");
|
|
|
|
|
|
|
|
|
|
$(".ico").css("display", "none");
|
|
|
|
|
|
|
|
|
|
$("#mainHyperlink").css("width", winWidth * 0.86 + "px");
|
|
|
|
|
$("#mainHyperlink").css("height", winHeight * 0.1823 + "px");
|
|
|
|
|
|
|
|
|
|
imgContainerWidth = winWidth * 0.86;
|
|
|
|
|
imgContainerHeight = winHeight * 0.1823;
|
|
|
|
|
|
|
|
|
|
//判断是否为用户登录(是不是非法入侵)
|
|
|
|
|
//更新Common.Session["Hours"]
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: "../../Handler/SetCheckSign.ashx?action=1&u=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), decrypt(u, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"))) + "&w=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), decrypt(w, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"))),
|
|
|
|
|
cache: false,
|
|
|
|
|
success: function (msg0) {
|
|
|
|
|
$.each(msg0, function (k, item0) {
|
|
|
|
|
if (item0.result == "success") {
|
|
|
|
|
//根据登录用户权限判断加载的图标
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
//url: "../../Handler/UserPopedom.ashx?u=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), decrypt(u, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"))) + "&w=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), decrypt(w, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"))),
|
|
|
|
|
url: "../../Handler/UserPopedom.ashx?action=0",
|
|
|
|
|
cache: false,
|
|
|
|
|
success: function (msg) {
|
|
|
|
|
modCount = 0;
|
|
|
|
|
$.each(msg, function (i, item) {
|
|
|
|
|
if (item.PARENTID != "" && item.PARENTID != undefined) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: "../../Handler/UserPopedom.ashx?action=1&id=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), item.GID),
|
|
|
|
|
cache: false,
|
|
|
|
|
success: function (msg2) {
|
|
|
|
|
$.each(msg2, function (j, item2) {
|
|
|
|
|
if (item2.GID != "" && item2.GID != undefined) {
|
|
|
|
|
module[modCount] = item2.NAME; // +" " + item2.DESCRIPTION;
|
|
|
|
|
modCount++;
|
|
|
|
|
if (item2.GID == "A2250742-3183-48D8-9611-281F403F1C10" || item2.GID == "17488685-B082-4F25-8A2D-8E7C626F6AB2") {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: "../../Handler/UserPopedom.ashx?action=1&id=" + jsencrypt(decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"), item2.GID),
|
|
|
|
|
cache: false,
|
|
|
|
|
success: function (msg3) {
|
|
|
|
|
$.each(msg3, function (l, item3) {
|
|
|
|
|
if (item3.GID != "" && item3.GID != undefined) {
|
|
|
|
|
module[modCount] = item3.NAME; // +" " + item2.DESCRIPTION;
|
|
|
|
|
modCount++;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
paymentAuditing = hasPopedom("modPayFeeAudit", module);
|
|
|
|
|
profitAuditing = hasPopedom("modFeeAudit", module); //modFeeAudit
|
|
|
|
|
ladingBillAuditing = hasPopedom("", module); //
|
|
|
|
|
arrearageAnalysis = hasPopedom("modMsRptNoTotalMonth", module); //modMsRptNoTotal
|
|
|
|
|
clientAnalysis = hasPopedom("modRptOpProfitMonth", module); //modMsRptOpProfit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnGeneralSituation();\" class=\"btnLink\"><img src=\"../../Images/btn15.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
|
|
|
|
|
if (paymentAuditing) {
|
|
|
|
|
divisionNum++;
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnPaymentAuditing();\" class=\"btnLink\"><img src=\"../../Images/btn09.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
}
|
|
|
|
|
if (profitAuditing) {
|
|
|
|
|
divisionNum++;
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnProfitAuditing();\" class=\"btnLink\"><img src=\"../../Images/btn10.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
}
|
|
|
|
|
if (ladingBillAuditing) {
|
|
|
|
|
divisionNum++;
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnLadingBillAuditing();\" class=\"btnLink\"><img src=\"../../Images/btn11.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
}
|
|
|
|
|
if (arrearageAnalysis) {
|
|
|
|
|
divisionNum++;
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnArrearageAnalysis();\" class=\"btnLink\"><img src=\"../../Images/btn12.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
}
|
|
|
|
|
if (clientAnalysis) {
|
|
|
|
|
divisionNum++;
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnClientAnalysis();\" class=\"btnLink\"><img src=\"../../Images/btn13.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
divisionNum++;
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnSaleAnalysis();\" class=\"btnLink\"><img src=\"../../Images/btn14.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
divisionNum++;
|
|
|
|
|
btnStr[divisionNum] = "<a href=\"javascript:fnUserSetting();\" class=\"btnLink\"><img src=\"../../Images/btn16.png\" style=\"width:" + $("#mainHyperlink").height() * 0.7 / 16 + "em;height:" + $("#mainHyperlink").height() * 0.8 / 16 + "em;\" border=\"0\" /></a>";
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i <= divisionNum; i++) {
|
|
|
|
|
liStr += "<li style=\"float:left;width:" + imgContainerWidth * 0.25 / 16 + "em;height:" + imgContainerHeight / 16 + "em;text-align:center;\">" + btnStr[i].toString() + "</li>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#mainHyperlink").html(liStr);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
window.location.href = "/Login/Index";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function hasPopedom(popedom, arrMod) {
|
|
|
|
|
var result = false;
|
|
|
|
|
$.each(arrMod, function (i, item) {
|
|
|
|
|
if (item == popedom) { result = true; }
|
|
|
|
|
});
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnPaymentAuditing() {
|
|
|
|
|
window.location.href = "/MPayment/PaymentList?u=" + encrypt(u, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs")) + "&w=" + encrypt(w, decrypt("8cdd29a091e29cc101042f65", "^id548f@^fueam##54325jfs"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnProfitAuditing() {
|
|
|
|
|
window.location.href = "/Profit/ProfitList?u=" + escape(u) + "&w=" + escape(w);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnLadingBillAuditing() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnArrearageAnalysis() {
|
|
|
|
|
window.location.href = "/Arrearage/ArrearageList?u=" + escape(u) + "&w=" + escape(w);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnClientAnalysis() {
|
|
|
|
|
window.location.href = "/Client/ClientList?u=" + escape(u) + "&w=" + escape(w);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnSaleAnalysis() {
|
|
|
|
|
window.location.href = "/Sale/SaleList?u=" + escape(u) + "&w=" + escape(w);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnGeneralSituation() {
|
|
|
|
|
window.location.href = "/Consignation/ConsignationList?u=" + escape(u) + "&w=" + escape(w);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fnUserSetting() {
|
|
|
|
|
window.location.href = "/User/Index?u=" + escape(u) + "&w=" + escape(w);
|
|
|
|
|
}
|
|
|
|
|
|