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