Exemplo n.º 1
0
 private void dataGridViewVacation_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     //e.ColumnIndex 0: 員工編號
     //e.ColumnIndex 1: 員工名稱
     if (e.ColumnIndex == 0 || e.ColumnIndex == 1)
     {
         MemberSearchForm memberSearchForm = new MemberSearchForm(this, 4, e.RowIndex, 0);
         memberSearchForm.ShowDialog();
     }
 }
Exemplo n.º 2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            MemberSearchForm searchform = new MemberSearchForm(this);

            searchform.Show();
        }
Exemplo n.º 3
0
        private void btnSearchOnsite_Click(object sender, EventArgs e)
        {
            MemberSearchForm searchForm = new MemberSearchForm(this.textBoxOnsite);

            searchForm.ShowDialog();
        }
Exemplo n.º 4
0
        private void btnSearchSecurity_Click(object sender, EventArgs e)
        {
            MemberSearchForm searchForm = new MemberSearchForm(this.textBoxSecurity);

            searchForm.ShowDialog();
        }
Exemplo n.º 5
0
        //private void btnCalculateByDuration_Click(object sender, EventArgs e)
        //{
        //    DayCompute dayCompute = new DayCompute(dateTimeStart.Value, Convert.ToInt32(numericDuration.Value));

        //    SetupDayComputer(dayCompute);


        //    DateTime FinishDate =  dayCompute.CountByDuration(dateTimeStart.Value, Convert.ToInt32(numericDuration.Value));
        //    dateTimeFinish.Value = FinishDate;
        //    numericDays.Value = FinishDate.Subtract(dateTimeStart.Value).Days + 1;
        //}



        //private void btnCalculateByFinish_Click(object sender, EventArgs e)
        //{
        //    DayCompute dayCompute = new DayCompute(dateTimeStart.Value, Convert.ToInt32(numericDuration.Value));
        //    SetupDayComputer(dayCompute);

        //    int duration = dateTimeFinish.Value.Date.Subtract(dateTimeStart.Value.Date).Days;
        //    numericDays.Value = duration + 1;
        //    numericDuration.Value = dayCompute.CountByFinishDay(dateTimeStart.Value, dateTimeFinish.Value);
        //}

        //private void btnCalculateByTotalDays_Click(object sender, EventArgs e)
        //{
        //    DayCompute dayCompute = new DayCompute(dateTimeStart.Value, Convert.ToInt32(numericDuration.Value));
        //    SetupDayComputer(dayCompute);

        //    dateTimeFinish.Value = dateTimeStart.Value.AddDays(Convert.ToInt32(numericDays.Value) - 1);
        //    numericDuration.Value = dayCompute.CountByFinishDay(dateTimeStart.Value, dateTimeFinish.Value);
        //}

        private void btnSearchSponsor_Click(object sender, EventArgs e)
        {
            MemberSearchForm searchForm = new MemberSearchForm(this.textBoxResponsible);

            searchForm.ShowDialog();
        }