Exemple #1
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 #2
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 #3
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 #4
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);
     }
 }