예제 #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);
        }
예제 #2
0
 //返回应接走总数
 public string ShouldGo()
 {
     return(AllStateAmountInDays.ToString());
 }