Ejemplo n.º 1
0
        public ReportEnglish(List <ReportStudent> students, ReportPreference printSetting)
        {
            Students = students;
            Students.Sort(delegate(ReportStudent x, ReportStudent y)
            {
                return(x.OrderString.CompareTo(y.OrderString));
            });

            PrintSetting = printSetting;

            DetailDomain = new List <string>();


            DetailDomain.Add("彈性課程");
            DetailDomain.Add("");

            PrintAbsences = printSetting.AcceptAbsences.PeriodOptionsFromString();
        }
Ejemplo n.º 2
0
 public MergeDataSource(List <ReportStudent> students, ReportPreference preference)
 {
     Students   = students;
     Preference = preference;
     Index      = -1;
 }
Ejemplo n.º 3
0
        public PrintForm(List <string> studentIds)
        {
            InitializeComponent();

            StudentIDs                       = studentIds;
            Preference                       = new ReportPreference(ConfigName, Properties.Resources.高雄學生免試入學高中在校成績證明書);
            MasterWorker.DoWork             += new DoWorkEventHandler(MasterWorker_DoWork);
            MasterWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(MasterWorker_RunWorkerCompleted);

            ConvertToPDF_Worker.DoWork += new DoWorkEventHandler(ConvertToPDF_Worker_DoWork);
            ConvertToPDF_Worker.WorkerReportsProgress = true;
            ConvertToPDF_Worker.RunWorkerCompleted   += new RunWorkerCompletedEventHandler(ConvertToPDF_Worker_RunWorkerCompleted);

            ConvertToPDF_Worker.ProgressChanged += delegate(object sender, ProgressChangedEventArgs e)
            {
                FISCA.Presentation.MotherForm.SetStatusBarMessage(e.UserState.ToString(), e.ProgressPercentage);
            };

            //rbDomainOnly.Checked = (Preference.ListMethod == ListMethod.DomainOnly);
            //rbSubjectOnly.Checked = (Preference.ListMethod == ListMethod.SubjectOnly);
            //chkRank.Checked = Preference.PrintRank;
            //chkPercentage.Checked = Preference.PrintRankPercentage;
            txtGraduateDate.Text     = Preference.GraduateDate;
            txtEntranceDate.Text     = Preference.EntranceDate;
            txtFinalComputeDate.Text = Preference.FinalComputeDate;
            //chkRankFilter.Checked = Preference.FilterRankScope;
            //intRankStart.Value = Preference.RankStart;
            //intRankEnd.Value = Preference.RankEnd;
            rtnPDF.Checked          = Preference.ConvertToPDF;
            chkUploadEpaper.Checked = Preference.isUploadEPaper;

            OneFileSave.Checked = Preference.OneFileSave;

            chk1Up.Checked   = false;
            chk1Down.Checked = false;
            chk2Up.Checked   = false;
            chk2Down.Checked = false;
            chk3Up.Checked   = false;
            chk3Down.Checked = false;
            foreach (int each in Preference.PrintSemesters)
            {
                if (each == 1)
                {
                    chk1Up.Checked = true;
                }
                if (each == 2)
                {
                    chk1Down.Checked = true;
                }
                if (each == 3)
                {
                    chk2Up.Checked = true;
                }
                if (each == 4)
                {
                    chk2Down.Checked = true;
                }
                if (each == 5)
                {
                    chk3Up.Checked = true;
                }
                if (each == 6)
                {
                    chk3Down.Checked = true;
                }
            }

            //intRankStart.Enabled = chkRankFilter.Checked;
            //intRankEnd.Enabled = chkRankFilter.Checked;
            // 只能印領域
            //rbDomainOnly.Checked = true;
            //checkExportFile.Checked = true;

            string DALMessage = "『";

            foreach (Assembly Assembly in AppDomain.CurrentDomain.GetAssemblies().Where(x => x.GetName().Name.Equals("KH_StudentScoreSummaryReport")))
            {
                DALMessage += Assembly.GetName().Version;
            }
            DALMessage += "』";
            this.Text  += DALMessage;
        }