Exemple #1
0
 public DialogResult ShowDialog(EditHourDataForm owner, DataTable ngTable, decimal remainHour, bool isHoliday)
 {
     _isHoliday   = isHoliday;
     _remainHour  = remainHour;
     this.NGTable = ngTable;
     _editForm    = (EditHourDataForm)owner;
     return(this.ShowDialog(owner));
 }
Exemple #2
0
 public DialogResult ShowDialog(EditHourDataForm owner, DataTable ngTable, decimal remainHour, bool isHoliday)
 {
     _isHoliday = isHoliday;
     _remainHour = remainHour;
     this.NGTable = ngTable;
     _editForm = (EditHourDataForm)owner;
     return this.ShowDialog(owner);
 }
Exemple #3
0
        public DialogResult ShowDialog(EditHourDataForm owner, BindingSource dataSource, decimal remainHour, bool isHoliday)
        {
            this.IsHoliday        = isHoliday;
            this.DataTable        = owner.CreateDataTable();
            this.RemainHour       = remainHour;
            this.OriBindingSource = dataSource;

            return(this.ShowDialog(owner));
        }
Exemple #4
0
 private void tsmiHourDataFill_Click(object sender, EventArgs e)
 {
     try
     {
         EditHourDataForm form = new EditHourDataForm();
         form.MdiParent = this;
         form.NewHourData();
         form.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemple #5
0
 private void btnEditHourData_Click(object sender, EventArgs e)
 {
     try
     {
         if (bsHourData.DataSource != null && dgvHourData.CurrentRow != null)
         {
             EditHourDataForm  form = new EditHourDataForm();
             DatabaseSet.工時Row row  = (dgvHourData.CurrentRow.DataBoundItem as DataRowView).Row as DatabaseSet.工時Row;
             form.EditHourdata(row.員工編號, row.日期);
             form.MdiParent          = this.MdiParent;
             form.AllowDeleteOldData = true;
             form.Show();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemple #6
0
 private void tsmiHourDataFill_Click(object sender, EventArgs e)
 {
     try
     {
         EditHourDataForm form = new EditHourDataForm();
         form.MdiParent = this;
         form.NewHourData();
         form.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemple #7
0
        public DialogResult ShowDialog(EditHourDataForm owner, BindingSource dataSource, decimal remainHour, bool isHoliday)
        {
            this.IsHoliday = isHoliday;
            this.DataTable = owner.CreateDataTable();
            this.RemainHour = remainHour;
            this.OriBindingSource = dataSource;

            return this.ShowDialog(owner);
        }
Exemple #8
0
 private void btnEditHourData_Click(object sender, EventArgs e)
 {
     try
     {
         if (bsHourData.DataSource != null && dgvHourData.CurrentRow != null)
         {
             EditHourDataForm form = new EditHourDataForm();
             DatabaseSet.�u��Row row = (dgvHourData.CurrentRow.DataBoundItem as DataRowView).Row as DatabaseSet.�u��Row;
             form.EditHourdata(row.���u�s��, row.���);
             form.MdiParent = this.MdiParent;
             form.AllowDeleteOldData = true;
             form.Show();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }