Exemple #1
0
        private void lblPrintSetup_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            AttendanceSetup AS = new AttendanceSetup(GetCD);

            AS.ShowDialog();

            GetCD.Reset();

            //if (config.ShowDialog() == DialogResult.OK)
            //{
            //    LoadPreference();
            //}
        }
Exemple #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (K12.Presentation.NLDPanels.Class.SelectedSource.Count == 0)
            {
                return;
            }

            this.btnSave.Enabled = false;

            //LoadPreference();

            GetCD = new GetConfigData();
            GetCD.SaveAll();
            GetCD.Reset();


            FISCA.Presentation.MotherForm.SetStatusBarMessage("正在初始化班級學生缺曠明細(確認表)...");

            object[] args = new object[] { dateTimeInput1.Value, dateTimeInput2.Value, _sizeIndex, Absence, GetCD.ClassNoData }; //日期起始,結束,紙張大小,列印假別,是否列印無資料班級

            _BGWClassStudentAbsenceDetail                       = new BackgroundWorker();
            _BGWClassStudentAbsenceDetail.DoWork               += new DoWorkEventHandler(_BGWClassStudentAbsenceDetail_DoWork);
            _BGWClassStudentAbsenceDetail.RunWorkerCompleted   += new RunWorkerCompletedEventHandler(_BGWClassStudentAbsenceDetail_RunWorkerCompleted);
            _BGWClassStudentAbsenceDetail.ProgressChanged      += new ProgressChangedEventHandler(_BGWClassStudentAbsenceDetail_ProgressChanged);
            _BGWClassStudentAbsenceDetail.WorkerReportsProgress = true;
            _BGWClassStudentAbsenceDetail.RunWorkerAsync(args);
        }