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(); }
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; }
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]); }
private void ShowFormMakeShift() { FrmMakeShift makeShift_Screen = new FrmMakeShift(); makeShift_Screen.ShowDialog(); }
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]]); }