Esempio n. 1
0
    private void GetList()
    {
        StringBuilder sb = new StringBuilder();
        DataTable     dt = tj.GetAvgMoneyListByUser(uID);

        foreach (DataRow dr in dt.Rows)
        {
            string money = StringDelHTML.PriceToStringLow(Convert.ToInt32(dr["AvgMoney"]));
            sb.AppendLine("<dd>" + money + "<span>" + dr["CreateTime"].ToString() + "</span></dd>");
        }
        if (string.IsNullOrEmpty(sb.ToString()))
        {
            sb.Append("<h1 style='text-align: center; margin-top: 20px'>这里什么也没留下 </h1>");
        }
        liststr = sb.ToString();
    }