Exemplo n.º 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();
        }
Exemplo n.º 2
0
        public FrmAllTeacherSetting(FrmMakeShift frm, DateTime fDate, DateTime tDate)
        {
            InitializeComponent();
            jaWeekday = new Hashtable();
            jaWeekday["Sunday"] = "日";
            jaWeekday["Monday"] = "月";
            jaWeekday["Tuesday"] = "火";
            jaWeekday["Wednesday"] = "水";
            jaWeekday["Thursday"] = "木";
            jaWeekday["Friday"] = "金";
            jaWeekday["Saturday"] = "土";

            this.frmMakeShift = frm;
            this.fromDate_ = fDate;
            this.toDate_ = tDate;
            this.staffIds = null;
            this.staffAvaiDate = this.frmMakeShift.staffAvaiDate;

            initForm();

            //event
            dgvStaff.CellMouseClick += dgvStaff_CellMouseClick;
        }
Exemplo n.º 3
0
        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]);
        }
Exemplo n.º 4
0
 private void ShowFormMakeShift()
 {
     FrmMakeShift makeShift_Screen = new FrmMakeShift();
     makeShift_Screen.ShowDialog();
 }
Exemplo n.º 5
0
        public CreateSchedule(FrmMakeShift frm)
        {
            Weekday = new Hashtable();
            Weekday["Sunday"] = 6;
            Weekday["Monday"] = 0;
            Weekday["Tuesday"] = 1;
            Weekday["Wednesday"] = 2;
            Weekday["Thursday"] = 3;
            Weekday["Friday"] = 4;
            Weekday["Saturday"] = 5;

            this.frmMakeShift = frm;
            this.staffAvaiDate = frm.getStaffAvaiDate();
            initData();
            initPopulation();
            //initPopulation();
            //DebugLogger.Write("Mark: " + calculateMark(schedules[0]) + "\n");
            //evaluate();
            //
            //crossoverOperation();
            //Console.Write("Mark: " + marks[arranged[0]]);
        }