/// <summary> /// 经费管理 增加NEW提示功能 /// </summary> /// <param name="ret"></param> /// <param name="node"></param> private void AddPageStatus(Dictionary<string, DemoPageStatus> ret, XmlNode node) { string url = GetAttributeValue(node.Attributes, "NavigateUrl"); string text = GetAttributeValue(node.Attributes, "Text"); DemoPageStatus status = DemoPageStatus.Default; //if (GetStatusCore(node, "IsNew")) // status = DemoPageStatus.New; //else if (GetStatusCore(node, "IsUpdated")) // status = DemoPageStatus.Updated; if (text == "经费管理" || text == "预算申报") { //--对于团委管理员来说,如果有未审批的预算申请,则需要用NEW进行提示 if (budgetApply > 0 && authenUser.RoleName == AuthenUserType.TW_Finance) status = DemoPageStatus.New; //--对于团支部管理员来说,如果有已审批的预算申请,则需要用NEW进行提示 if (budgetApplyAudit > 0 && authenUser.RoleName == AuthenUserType.TZB_Admin) status = DemoPageStatus.New; } if (text == "团委概况" || text == "最新动态") { if(nfAdapter.GetNotificationRows(AuthUser.YouthGroup, null).Count > 0) status = DemoPageStatus.New; } ret.Add(GetStatusKey(text, url), status); }
private void AddPageStatus(Dictionary <string, DemoPageStatus> ret, XmlNode node) { string url = GetAttributeValue(node.Attributes, "NavigateUrl"); string text = GetAttributeValue(node.Attributes, "Text"); DemoPageStatus status = DemoPageStatus.Default; if (GetStatusCore(node, "IsNew")) { status = DemoPageStatus.New; } else if (GetStatusCore(node, "IsUpdated")) { status = DemoPageStatus.Updated; } ret.Add(GetStatusKey(text, url), status); }