You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
5.0 KiB
JavaScript
137 lines
5.0 KiB
JavaScript
Ext.onReady(function () {
|
|
fnGetMessTip();
|
|
|
|
setInterval(function () {
|
|
fnGetMessTip();
|
|
}, 60000) //每1000毫秒(即1秒) 执行一次本段代码
|
|
});
|
|
|
|
function fnGetMessTip() {
|
|
var _store = Ext.create('DsExt.ux.RefTableStore', {
|
|
fields: [
|
|
{ name: 'RECEXPENSE', type: 'string' },
|
|
{ name: 'RECPAYMENT', type: 'string' },
|
|
{ name: 'RECINVOICE', type: 'string' },
|
|
{ name: 'CHFEEAUDIT', type: 'string' },
|
|
{ name: 'INDEXSP', type: 'string' },
|
|
{ name: 'GOODSAUDIT', type: 'string' },
|
|
{ name: 'COSTAUDIT', type: 'string' },
|
|
{ name: 'SENEXPENSE', type: 'string' },
|
|
{ name: 'SENPAYMENT', type: 'string' },
|
|
{ name: 'SENINVOICE', type: 'string' }
|
|
],
|
|
proxy: { url: '/MvcShipping/MsMessTip/GetMessTip' },
|
|
scope: this
|
|
});
|
|
_store.load();
|
|
|
|
_store.on("load", function (_store) {
|
|
document.getElementById("lblRecExpense").innerHTML = _store.getAt(0).get("RECEXPENSE");
|
|
document.getElementById("lblRecPayment").innerHTML = _store.getAt(0).get("RECPAYMENT");
|
|
document.getElementById("lblRecInvoice").innerHTML = _store.getAt(0).get("RECINVOICE");
|
|
document.getElementById("lblRecOpCtnBsCard").innerHTML = _store.getAt(0).get("CHFEEAUDIT");
|
|
document.getElementById("lblRecBLIssue").innerHTML = _store.getAt(0).get("INDEXSP");
|
|
document.getElementById("lblRecOpCtnApplyGoodsAudit").innerHTML = _store.getAt(0).get("GOODSAUDIT");
|
|
document.getElementById("lblRecOpCtnApplyCostAudit").innerHTML = _store.getAt(0).get("COSTAUDIT");
|
|
document.getElementById("lblSenExpense").innerHTML = _store.getAt(0).get("SENEXPENSE");
|
|
document.getElementById("lblSenPayment").innerHTML = _store.getAt(0).get("SENPAYMENT");
|
|
document.getElementById("lblSenInvoice").innerHTML = _store.getAt(0).get("SENINVOICE");
|
|
});
|
|
}
|
|
|
|
function fnOpen(mod) {
|
|
var MainCenter = window.parent.panelEdit.MainCenter;
|
|
var children = MainCenter.items;
|
|
var finded = false;
|
|
var id = "";
|
|
var title = "";
|
|
var url = "";
|
|
|
|
switch (mod) {
|
|
case "modFeeAudit":
|
|
title = "审核审批-应收应付费用审核";
|
|
url = "Account/Chfee_Audit";
|
|
break;
|
|
case "modPayFeeAudit":
|
|
title = "审核审批-付费审批";
|
|
url = "Account/Chfee_payapplication/Audit";
|
|
break;
|
|
case "modInvoiceAudit":
|
|
title = "审核审批-发票审核";
|
|
url = "Account/Chfee_invoiceapplication/Audit";
|
|
break;
|
|
case "modOpCtnBsCard":
|
|
title = "审核审批-业务卡费用";
|
|
url = "MvcContainer/MsOpCtnBsCard/ChfeeAudit";
|
|
break;
|
|
case "modBLIssue":
|
|
title = "审核审批-特殊放单";
|
|
url = "MvcShipping/MsOp_BLISSUE/Index_SP";
|
|
break;
|
|
case "modOpCtnApplyGoodsAudit":
|
|
mod = "modOpCtnApply";
|
|
title = "审核审批-适货审核";
|
|
url = "MvcContainer/MsOpCtnApply/GoodsAudit";
|
|
break;
|
|
case "modOpCtnApplyCostAudit":
|
|
mod = "modOpCtnApply";
|
|
title = "审核审批-成本审核";
|
|
url = "MvcContainer/MsOpCtnApply/CostAudit";
|
|
break;
|
|
case "modOrderManagement":
|
|
title = "海运出口-委托管理";
|
|
url = "MvcShipping/MsOpSeae";
|
|
break;
|
|
case "modPaySettlementApplication":
|
|
title = "海运出口-付费申请";
|
|
url = "Account/Chfee_payapplication";
|
|
break;
|
|
case "modInvoiceApplication":
|
|
title = "海运出口-发票申请";
|
|
url = "Account/Chfee_invoiceapplication";
|
|
break;
|
|
}
|
|
|
|
for (var i = 0, len = children.length; i < len; i++) {
|
|
if (children.items[i].id) {
|
|
if (children.items[i].id == 'pnl' + mod) {
|
|
MainCenter.setActiveTab(i);
|
|
finded = true;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
if (finded == false) {
|
|
var paneltabitems = new Ext.Panel({
|
|
id: 'pnl' + mod,
|
|
layout: "fit",
|
|
region: "center",
|
|
autoScroll: true,
|
|
frame: false,
|
|
closable: true,
|
|
bodyStyle: {
|
|
// background: 'rgba(0, 0, 0, 1) none repeat scroll 0 0 !important'
|
|
},
|
|
title: title,
|
|
html: ' <iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="' + url + '"> </iframe>'
|
|
});
|
|
MainCenter.add(paneltabitems);
|
|
MainCenter.setActiveTab(paneltabitems);
|
|
MainCenter.doLayout();
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
pnl +
|
|
|
|
应收应付费用审核 modFeeAudit
|
|
付费审批 modPayFeeAudit
|
|
发票审核 modInvoiceAudit
|
|
|
|
应收应付 modOrderManagement
|
|
付费申请 modPaySettlementApplication
|
|
发票申请 modInvoiceApplication
|
|
*/
|
|
} |