private void btnSearchByCourseTypeWithDate_Click(object sender, EventArgs e)
        {
            CourseTypeSelectForm frmCourseTypeSelect = new CourseTypeSelectForm();
            DateTime beginDate = dtRefundBeginDate.Value;
            beginDate = new DateTime(beginDate.Year, beginDate.Month, beginDate.Day, 0, 0, 0);
            DateTime endDate = dtRefundEndDate.Value;
            endDate = new DateTime(endDate.Year, endDate.Month, endDate.Day, 0, 0, 0);
            if (UserType == 0)
            {
                frmCourseTypeSelect.isPrivate = true;
                frmCourseTypeSelect.userName = this.UserName;
                if (frmCourseTypeSelect.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                this.leaveCourseTableAdapter.FillByUserNameCourseTypeWithDate(leaveCourseDataSet.LeaveCourse, frmCourseTypeSelect.CourseTypeId, beginDate, endDate, this.UserName);
            }
            else
            {
                if (frmCourseTypeSelect.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                this.leaveCourseTableAdapter.FillByCourseTypeWithDate(leaveCourseDataSet.LeaveCourse, frmCourseTypeSelect.CourseTypeId, beginDate, endDate);
            }

            txtShowRange.Text = frmCourseTypeSelect.CourseTypeName + "    " + beginDate.ToShortDateString() + " - " + endDate.ToShortDateString();
        }
 private void btnSearchByCourseType_Click(object sender, EventArgs e)
 {
     CourseTypeSelectForm frmCourseTypeSelect = new CourseTypeSelectForm();
     if (UserType == 0)
     {
         frmCourseTypeSelect.isPrivate = true;
         frmCourseTypeSelect.userName = this.UserName;
         if (frmCourseTypeSelect.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         this.studentDepositListTableAdapter.FillByUserNameCourseType(this.depositListDataSet.StudentDepositList, frmCourseTypeSelect.CourseTypeId, this.UserName);
     }
     else
     {
         if (frmCourseTypeSelect.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         this.studentDepositListTableAdapter.FillByCourseType(this.depositListDataSet.StudentDepositList, frmCourseTypeSelect.CourseTypeId);
     }
     txtShowRange.Text = frmCourseTypeSelect.CourseTypeName;
 }
        private void btnSearchByCourseType_Click(object sender, EventArgs e)
        {
            CourseTypeSelectForm frmCourseTypeSelect = new CourseTypeSelectForm();
            if (frmCourseTypeSelect.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            studentsTableAdapter.FillByCourseType(studentsDataSet.Students,
                frmCourseTypeSelect.CourseTypeId);
            this.Text = "学生资料管理 - [" + frmCourseTypeSelect.CourseTypeName + "]";
            txtShowRange.Text = frmCourseTypeSelect.CourseTypeName;
        }