Пример #1
0
        private void toolStripRangeLeave_Click(object sender, EventArgs e)
        {
            LeaveRange wind = new LeaveRange(this.main_form);

            if (wind.ShowDialog() == DialogResult.OK)
            {
                MessageAlert.Show("บันทึกข้อมูลเรียบร้อย", "", MessageAlertButtons.OK, MessageAlertIcons.INFORMATION);

                if ((wind.dtDateStart.Value.Year == this.curr_year && wind.dtDateStart.Value.Month == this.curr_month) || (wind.dtDateEnd.Value.Year == this.curr_year && wind.dtDateEnd.Value.Month == this.curr_month))
                {
                    this.LoadCalendar(this.curr_month, this.curr_year);
                }
            }
        }
Пример #2
0
        private void btnRangeLeave_Click(object sender, EventArgs e)
        {
            LeaveRange wind = new LeaveRange(this.main_form);

            if (wind.ShowDialog() == DialogResult.OK)
            {
                MessageAlert.Show("บันทึกข้อมูลเรียบร้อย", "", MessageAlertButtons.OK, MessageAlertIcons.INFORMATION);

                //Console.WriteLine(" .. >> wind.dtDateStart.Value.Year : " + wind.dtDateStart.Value.Year);
                //Console.WriteLine(" .. >>> this.year : " + this.year);
                //Console.WriteLine(" .. >> wind.dtDateStart.Value.Month : " + wind.dtDateStart.Value.Month);
                //Console.WriteLine(" .. >>> this.month : " + this.month);

                if ((wind.dtDateStart.Value.Year == (this.year - 543) && wind.dtDateStart.Value.Month == this.month) || (wind.dtDateEnd.Value.Year == (this.year - 543) && wind.dtDateEnd.Value.Month == this.month))
                {
                    //this.LoadCalendar(this.curr_month, this.curr_year);
                    this.btnGo.PerformClick();
                }
            }
        }
Пример #3
0
        private void btnRangeLeave_Click(object sender, EventArgs e)
        {
            LeaveRange wind = new LeaveRange(this.main_form);
            if (wind.ShowDialog() == DialogResult.OK)
            {
                MessageAlert.Show("บันทึกข้อมูลเรียบร้อย", "", MessageAlertButtons.OK, MessageAlertIcons.INFORMATION);

                if ((wind.dtDateStart.Value.Year == this.year && wind.dtDateStart.Value.Month == this.month) || (wind.dtDateEnd.Value.Year == this.year && wind.dtDateEnd.Value.Month == this.month))
                {
                    //this.LoadCalendar(this.curr_month, this.curr_year);
                    this.btnGo.PerformClick();
                }
            }
        }