Ext.namespace('DsTruck'); DsTruck.MsChFeeGetRowClass = function (feeStatus) { if (feeStatus == 2) { return 'feestatus_refer'; } else if (feeStatus == 0) { return 'feestatus_pass'; } else if (feeStatus == 6) { return 'feestatus_nopass'; } else if (feeStatus == 8 || feeStatus == 9) { return 'feestatus_settle'; } return ''; } DsTruck.FinanceGetRowClass = function (FinanceStatus) { if (FinanceStatus == 1) { return 'feestatus_refer'; } else if (FinanceStatus == 3) { return 'feestatus_pass'; } else if (FinanceStatus == 2 || FinanceStatus == 5) { return 'feestatus_nopass'; } else if ( FinanceStatus == 4) { return 'feestatus_settle'; } return ''; }