Exemple #1
0
        /// <summary>
        /// 根据创建时间获取审核历史信息
        /// </summary>
        /// <param name="date"></param>
        /// <returns></returns>
        public ProcessHistory GetProcessHistory(string articleID, DateTime date)
        {
            Article article                  = ArticleHelper.GetArticle(articleID);
            List <ProcessHistory> list       = StrToList(article.FlowXml);
            MyListHelper          listHelper = new MyListHelper();

            listHelper.date = date;
            ProcessHistory aph = list.Find(listHelper.MatchByDate);

            return(aph);
        }
Exemple #2
0
        /// <summary>
        /// 根据审核历史信息ID获取审核历史信息
        /// </summary>
        /// <param name="adviceID"></param>
        /// <param name="historyID"></param>
        /// <returns></returns>
        public ProcessHistory GetAdviceProcessHistory(string adviceID, string historyID)
        {
            Advice a = AdviceHelper.GetAdvice(adviceID);
            List <ProcessHistory> list       = StrToList(a.FlowXml);
            MyListHelper          listHelper = new MyListHelper();

            listHelper.HistoryID = historyID;
            ProcessHistory aph = list.Find(listHelper.MatchByID);

            return(aph);
        }
Exemple #3
0
        /// <summary>
        /// 根据审核历史信息ID获取审核历史信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ProcessHistory GetArticleProcessHistory(string articleID, string historyID)
        {
            Article article                  = ArticleHelper.GetArticle(articleID);
            List <ProcessHistory> list       = StrToList(article.FlowXml);
            MyListHelper          listHelper = new MyListHelper();

            listHelper.HistoryID = historyID;
            ProcessHistory aph = list.Find(listHelper.MatchByID);

            return(aph);
        }