public SpecialStudentConfig(frmSpecialStudent SpecialStudentForm)
        {
            if (SpecialStudentForm.Fault_3B.Checked==true)
                mReportType = 1;
            if (SpecialStudentForm.Attendance_21.Checked==true)
                mReportType = 2;
            if (SpecialStudentForm.VEScore_60.Checked==true)
                mReportType = 3;
            if (SpecialStudentForm.Fault_3A.Checked==true)
                mReportType = 4;
            if (SpecialStudentForm.Attendance_Half.Checked==true)
                mReportType = 5;
            if (SpecialStudentForm.SpecialStudent.Checked == true)
                mReportType = 6;
            mthisSchoolYear = SpecialStudentForm.intSchoolYear.Value;
            mthisSemester = (SpecialStudentForm.cboSemester.Text == "上學期" ? 1 : 2);
            if (SpecialStudentForm.StudentNumber.Checked==true )
               mSortKey ="StudentNumber";
            else
                mSortKey="SeatNo";
            if ((mReportType == 1) || ( mReportType ==4))
            {
                mSemester = SpecialStudentForm.chkSemester.Checked;
                mMequialD =SpecialStudentForm.chkMequialD.Checked;
            }
            if (mReportType==5)
               {
                if (SpecialStudentForm.txtPeriod.Text!="")
                   mPeriod =Convert.ToInt16(SpecialStudentForm.txtPeriod.Text);
                foreach (ListViewItem var in SpecialStudentForm.AbsenceList.Items )
                {
                    if (var.Checked == true && var.Text!=null)
                    {
                        mAbsenceList.Add(var.Text);

                    }
                }

            }
            if (SpecialStudentForm.chkDate.Checked)
            {
                mDate = true;
                if (SpecialStudentForm.dtStartDate.IsEmpty)
                    mStartDate = null;
                else
                   mStartDate = SpecialStudentForm.dtStartDate.Value;
               if (SpecialStudentForm.dtEndDate.IsEmpty)
                   mEndDate = null;
               else
                   mEndDate = SpecialStudentForm.dtEndDate.Value;
            }
            else
            {
                mDate = false;
                mStartDate = null;
                mEndDate = null;
            }
        }
예제 #2
0
 void SpecicalStudent_Click(object sender, EventArgs e)
 {
     frmSpecialStudent SpecialStudentForm = new frmSpecialStudent();
     SpecialStudentForm.ShowDialog();
 }