Ext.namespace('Shipping'); Shipping.FeeGetRowClass = 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 == 3) { return 'feestatus_shenmodify'; } else if (feeStatus == 4) { return 'feestatus_shendelete'; } else if (feeStatus == 8) { return 'feestatus_settlepart'; } else if (feeStatus == 9) { return 'feestatus_settle'; } return ''; } Shipping.FeeGetGridColumnClass = function (feestatusint) { var result = { statusname: '', statuscolor:''}; if (feestatusint == "0:") { result.statusname = "审核通过"; result.statuscolor = Shipping.FeeGetRowClass(0); return result; } else if (feestatusint == "1:") { result.statusname = "录入状态"; result.statuscolor = Shipping.FeeGetRowClass(1); return result; } else if (feestatusint == "2:") { result.statusname = "提交审核"; result.statuscolor = Shipping.FeeGetRowClass(2); return result; } else if (feestatusint == "8:") { result.statusname = "部分结算"; result.statuscolor = Shipping.FeeGetRowClass(8); return result; } else if (feestatusint == "9:") { result.statusname = "结算完毕"; result.statuscolor = Shipping.FeeGetRowClass(9); return result; } else if (feestatusint == "") { result.statusname = "未录入"; result.statuscolor = Shipping.FeeGetRowClass(1); return result; } else if (feestatusint == "3:") { result.statusname = "申请修改"; result.statuscolor = Shipping.FeeGetRowClass(3); return result; } else if (feestatusint == "4:") { result.statusname = "申请删除"; result.statuscolor = Shipping.FeeGetRowClass(4); return result; } else if (feestatusint.indexOf("6:") > -1) { result.statusname = "驳回提交"; result.statuscolor = Shipping.FeeGetRowClass(6); return result; } else if (feestatusint.indexOf("7:") > -1) { result.statusname = "驳回申请"; result.statuscolor = Shipping.FeeGetRowClass(7); return result; } else if (feestatusint.indexOf("1:") > -1) { result.statusname = "部分录入"; result.statuscolor = Shipping.FeeGetRowClass(1); return result; } else if (feestatusint.indexOf("2:") > -1) { result.statusname = "部分提交"; result.statuscolor = Shipping.FeeGetRowClass(2); return result; } else if (feestatusint.indexOf("9:") > -1) { result.statusname = "部分结算"; result.statuscolor = Shipping.FeeGetRowClass(8); return result; } else if (feestatusint.indexOf("8:") > -1) { result.statusname = "部分结算"; result.statuscolor = Shipping.FeeGetRowClass(8); return result; } else if (feestatusint.indexOf("0:") > -1) { result.statusname = "部分审核"; result.statuscolor = Shipping.FeeGetRowClass(0); return result; } else if (feestatusint.indexOf("2:") > -1) { result.statusname = "部分提交"; result.statuscolor = Shipping.FeeGetRowClass(2); return result; } return result; } Shipping.SetFeeGrid = function (meta, value){ statusinfo = Shipping.FeeGetGridColumnClass(value); meta.tdCls = statusinfo.statuscolor; return statusinfo.statusname; } Shipping.FeeGetRowClassFont = function (feeStatus) { if (feeStatus == 2) { return 'feestatus_referF'; } else if (feeStatus == 0) { return 'feestatus_passF'; } else if (feeStatus == 1) { return 'feestatus_newF'; }else if (feeStatus == 6) { return 'feestatus_nopassF'; } else if (feeStatus == 3) { return 'feestatus_shenmodifyF'; } else if (feeStatus == 4) { return 'feestatus_shendeleteF'; } else if (feeStatus == 8 || feeStatus == 9 || feeStatus == 11) { return 'feestatus_settleF'; } return 'NF'; } Shipping.GetRowFontClass = function (feeStatus) { if (feeStatus == 0) { return 'Row_Font_Class';//红色删除线 } return 'NF'; }