예제 #1
0
파일: MainForm.cs 프로젝트: wee2tee/SN_Net
 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();
     }
 }
예제 #2
0
        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();
            }
        }
예제 #3
0
파일: MainForm.cs 프로젝트: wee2tee/SN_Net
 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();
     }
 }
예제 #4
0
        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();
            }
        }