private void supportStatMenuItem_Click(object sender, EventArgs e) { if (this.supportstat_wind == null) { LeaveRangeDialog dlg = new LeaveRangeDialog(this); dlg.Text = "กำหนดขอบเขตการแสดงข้อมูลการปฏิบัติงาน(Support)"; if (dlg.ShowDialog() == DialogResult.OK) { SupportStatWindow wind = new SupportStatWindow(this, dlg.user_from, dlg.user_to, dlg.date_from, dlg.date_to); wind.MdiParent = this; wind.Show(); } } else { this.supportstat_wind.Activate(); } }
private void toolStripRange_Click(object sender, EventArgs e) { LeaveRangeDialog dlg = new LeaveRangeDialog(this.main_form); dlg.Text = "กำหนดขอบเขตการแสดงข้อมูลการปฏิบัติงาน(Support)"; dlg.user_from = this.current_user_from; dlg.user_to = this.current_user_to; dlg.date_from = this.current_date_from; dlg.date_to = this.current_date_to; if (dlg.ShowDialog() == DialogResult.OK) { this.current_user_from = dlg.user_from; this.current_user_to = dlg.user_to; this.current_date_from = dlg.date_from; this.current_date_to = dlg.date_to; this.GetNote(); } }
private void leaveSummaryMenuItem_Click(object sender, EventArgs e) { if (this.leave_wind == null) { LeaveRangeDialog dlg = new LeaveRangeDialog(this); if (dlg.ShowDialog() == DialogResult.OK) { LeaveWindow wind = new LeaveWindow(this, dlg.user_from, dlg.user_to, dlg.date_from, dlg.date_to); wind.MdiParent = this; wind.Show(); } } else { this.leave_wind.Activate(); } }
private void toolStripRange_Click(object sender, EventArgs e) { LeaveRangeDialog dlg = new LeaveRangeDialog(this.main_form, this.current_user_from, this.current_user_to, this.current_date_from, this.current_date_to); if (dlg.ShowDialog() == DialogResult.OK) { this.current_user_from = dlg.user_from; this.current_user_to = dlg.user_to; this.current_date_from = dlg.date_from; this.current_date_to = dlg.date_to; this.LoadEventAndFill(); } }