Exemple #1
0
        public string SetHaveAttended(bool isForClass)
        {
            string retval = "0";

            if (StuAttendAmountInDays > 0)
            {
                if (isForClass)
                {
                    retval = AllStateAmountInDays.ToString() + "  (" +
                             ((float)AllStateAmountInDays / (float)StuAttendAmountInDays).ToString("0.00%") + ")";
                }
                else
                {
                    retval = AllStateAmountInDays.ToString() + "  (" +
                             ((float)AllStateAmountInDays / (float)StuAttendAmountInDays).ToString("0.00%") + ")";
                }
            }
            return(retval);
        }
Exemple #2
0
 //返回应接走总数
 public string ShouldGo()
 {
     return(AllStateAmountInDays.ToString());
 }