public Report(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>(); //新竹的要把語文詳列。 if (Program.Mode == ModuleMode.HsinChu) DetailDomain.Add("語文"); DetailDomain.Add("彈性課程"); DetailDomain.Add(""); PrintAbsences = printSetting.AcceptAbsences.PeriodOptionsFromString(); // 取得學生ID List<string> sidList = (from xx in students select xx.StudentID).ToList(); // 取得學生放在UDT的排名資料 _StudRankData = DAL.UDTTransfer.GetDataFromUDTDict(sidList); // 需產生匯入檔 if (CheckExportFile) ExportInputFile(); }
public PrintForm(List<string> studentIds) { InitializeComponent(); StudentIDs = studentIds; Preference = new ReportPreference(ConfigName, Prc.學生多元入學高中在校成績證明書); MasterWorker.DoWork += new DoWorkEventHandler(MasterWorker_DoWork); MasterWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(MasterWorker_RunWorkerCompleted); 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; chkRankFilter.Checked = Preference.FilterRankScope; intRankStart.Value = Preference.RankStart; intRankEnd.Value = Preference.RankEnd; rtnPDF.Checked = Preference.ConvertToPDF; 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("JointAdmissionModule"))) DALMessage += Assembly.GetName().Version; DALMessage += "』"; this.Text += DALMessage; }
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>(); //新竹的要把語文詳列。 if (Program.Mode == ModuleMode.HsinChu) DetailDomain.Add("語文"); DetailDomain.Add("彈性課程"); DetailDomain.Add(""); PrintAbsences = printSetting.AcceptAbsences.PeriodOptionsFromString(); }
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>(); //新竹的要把語文詳列。 if (Program.Mode == ModuleMode.HsinChu) { DetailDomain.Add("語文"); } DetailDomain.Add("彈性課程"); DetailDomain.Add(""); PrintAbsences = printSetting.AcceptAbsences.PeriodOptionsFromString(); }
public MergeDataSource(List<ReportStudent> students, ReportPreference preference) { Students = students; Preference = preference; Index = -1; }
public MergeDataSource(List <ReportStudent> students, ReportPreference preference) { Students = students; Preference = preference; Index = -1; }
public PrintForm(List <string> studentIds) { InitializeComponent(); StudentIDs = studentIds; Preference = new ReportPreference(ConfigName, Prc.學生多元入學高中在校成績證明書); MasterWorker.DoWork += new DoWorkEventHandler(MasterWorker_DoWork); MasterWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(MasterWorker_RunWorkerCompleted); 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; chkRankFilter.Checked = Preference.FilterRankScope; intRankStart.Value = Preference.RankStart; intRankEnd.Value = Preference.RankEnd; rtnPDF.Checked = Preference.ConvertToPDF; 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("JointAdmissionModule"))) { DALMessage += Assembly.GetName().Version; } DALMessage += "』"; this.Text += DALMessage; }