コード例 #1
0
        public FrmEachTeacherSetting(FrmMakeShift frm)
        {
            InitializeComponent();

            WeekDay = new Hashtable();
            WeekDay["Sunday"] = 6;
            WeekDay["Monday"] = 0;
            WeekDay["Tuesday"] = 1;
            WeekDay["Wednesday"] = 2;
            WeekDay["Thursday"] = 3;
            WeekDay["Friday"] = 4;
            WeekDay["Saturday"] = 5;

            JaWeekday = new Hashtable();
            JaWeekday["Sunday"] = "日";
            JaWeekday["Monday"] = "月";
            JaWeekday["Tuesday"] = "火";
            JaWeekday["Wednesday"] = "水";
            JaWeekday["Thursday"] = "木";
            JaWeekday["Friday"] = "金";
            JaWeekday["Saturday"] = "土";

            this.frmMakeShift = frm;
            this.fromDate_ = frm.getFromDate();
            this.toDate_ = frm.getToDate();
            if (frm.getStaffAvaiDate() != null)
            { this.staffAvaiDate = (Hashtable)frm.getStaffAvaiDate().Clone(); }

            DayNumber = this.toDate_.Subtract(this.fromDate_).Days + 1;

            initFrm();
        }
コード例 #2
0
ファイル: FrmSchedule.cs プロジェクト: phuongnq/Chapy
        public FrmSchedule(FrmMakeShift frm)
        {
            InitializeComponent();

            jaWeekday = new Hashtable();
            jaWeekday["Sunday"] = "日";
            jaWeekday["Monday"] = "月";
            jaWeekday["Tuesday"] = "火";
            jaWeekday["Wednesday"] = "水";
            jaWeekday["Thursday"] = "木";
            jaWeekday["Friday"] = "金";
            jaWeekday["Saturday"] = "土";

            this.frmp = frm;
            this.fromDate = frm.getFromDate();
            this.toDate = frm.getToDate();
            CreateSchedule cs = new CreateSchedule(frm);
            this.classIDs = cs.getClassIDs();
            this.classTeacher = cs.getClassTeacher();
            initForm();
            results = cs.getResult(4);
            selecting = 0;
            applyResult(results[0]);
        }