Example #1
0
        public string GetAccountName(string id)
        {
            string name;
            string accountID = "";

            if (StartState == "-1")
            {
                accountID = ProcessHistoryHelper.GetAdviceProcessHistory(ArticleID, id).ProcessAccountID;
            }
            else
            {
                accountID = ProcessHistoryHelper.GetArticleProcessHistory(ArticleID, id).ProcessAccountID;
            }
            if (We7Helper.IsEmptyID(accountID))
            {
                name = "管理员";
            }
            else
            {
                name = AccountHelper.GetAccount(accountID, new string[] { "LastName" }).LastName;
            }
            if (name == null || name == "")
            {
                name = "未知用户";
            }
            return(name);
        }
Example #2
0
        public string GetRemark(string id)
        {
            string remark = "";

            if (StartState == "-1")
            {
                remark = ProcessHistoryHelper.GetAdviceProcessHistory(AdviceID, id).Remark;
            }
            else
            {
                remark = ProcessHistoryHelper.GetArticleProcessHistory(ArticleID, id).Remark;
            }

            if (remark != "")
            {
                remark = ",并发表意见:<p>" + remark + "</p>";
            }
            return(remark);
        }