// 座號排序使用
        private int SeatNoCompare(DAL.StudDiplomaInfoJuniorDiplomaNumber x, DAL.StudDiplomaInfoJuniorDiplomaNumber y)
        {
            int SeatNoX = 0, SeatNoY = 0;

            if (x.SeatNo > 0)
            {
                SeatNoX = x.SeatNo;
            }
            else
            {
                SeatNoX = 100;
            }

            if (y.SeatNo > 0)
            {
                SeatNoY = y.SeatNo;
            }
            else
            {
                SeatNoY = 100;
            }

            return(SeatNoX.CompareTo(SeatNoY));
        }
 // 學號排序使用
 private int StudentNumberCompare(DAL.StudDiplomaInfoJuniorDiplomaNumber x, DAL.StudDiplomaInfoJuniorDiplomaNumber y)
 {
     return(x.StudentNumber.CompareTo(y.StudentNumber));
 }