Esempio n. 1
0
    ///<summary>
    ///取得最佳回答采纳率
    ///</summary>
    /// <returns></returns>
    public string getAdoption()
    {
        double adopCount = b_Ans.IsExistInt(2);
        double count     = b_Ans.getnum();

        return(((adopCount / count) * 100).ToString("0.00") + "%");
    }
Esempio n. 2
0
        public VM_AskInfo()
        {
            int ansSum = ansBll.getnum();

            Adoption     = ansSum == 0 ? "0.00%" : (ansBll.IsExistInt(1) / ansSum * 100).ToString("0.00%");
            SolvedCount  = askBll.IsExistInt("Status=2");
            SolvingCount = askBll.IsExistInt("Status=1");
            UserCount    = buser.GetUserNameListTotal("");
        }