Esempio n. 1
0
 /// <summary> 编辑
 /// </summary>
 void UCAutoBackupSet_EditEvent(object sender, EventArgs e)
 {
     if (dgvtasklist.CurrentRow == null)
     {
         return;
     }
     try
     {
         int currRowIndex         = dgvtasklist.CurrentRow.Index;
         frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
         frm.OpType             = 1;
         frm.Text               = "自动备份设置-编辑";
         frm.auto_backup_set_id = dgvtasklist.CurrentRow.Cells["auto_backup_set_id"].Value.ToString();
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             dgvtasklist.CurrentCell = dgvtasklist.Rows[currRowIndex].Cells[0];
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("自动备份设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Esempio n. 2
0
        /// <summary> 新增
        /// </summary>
        void UCAutoBackupSet_AddEvent(object sender, EventArgs e)
        {
            frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();

            frm.isAdd = true;
            DialogResult result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                BindData(where);
                if (dgvAccList.RowCount > 0)
                {
                    dgvtasklist.CurrentCell = dgvtasklist.Rows[dgvtasklist.RowCount - 1].Cells[0];
                }
            }
        }
Esempio n. 3
0
        /// <summary> 编辑
        /// </summary>
        void UCAutoBackupSet_EditEvent(object sender, EventArgs e)
        {
            if (dgvtasklist.CurrentRow == null)
            {
                return;
            }
            int currRowIndex         = dgvtasklist.CurrentRow.Index;
            frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();

            frm.isAdd = false;
            frm.auto_backup_set_id = dgvtasklist.CurrentRow.Cells["auto_backup_set_id"].Value.ToString();
            DialogResult result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                BindData(where);
                dgvtasklist.CurrentCell = dgvtasklist.Rows[currRowIndex].Cells[0];
            }
        }
Esempio n. 4
0
 /// <summary> 查看
 /// </summary>
 void dgvtasklist_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvtasklist.CurrentRow == null)
     {
         return;
     }
     try
     {
         int currRowIndex         = dgvtasklist.CurrentRow.Index;
         frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
         frm.OpType             = 2;
         frm.Text               = "自动备份设置-查看";
         frm.auto_backup_set_id = dgvtasklist.CurrentRow.Cells["auto_backup_set_id"].Value.ToString();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("自动备份设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Esempio n. 5
0
 /// <summary> 新增
 /// </summary>
 void UCAutoBackupSet_AddEvent(object sender, EventArgs e)
 {
     try
     {
         frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
         frm.OpType = 0;
         frm.Text   = "自动备份设置-新增";
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             if (dgvtasklist.RowCount > 0)
             {
                 dgvtasklist.CurrentCell = dgvtasklist.Rows[dgvtasklist.RowCount - 1].Cells[0];
             }
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("自动备份设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Esempio n. 6
0
 /// <summary> 新增
 /// </summary>
 void UCAutoBackupSet_AddEvent(object sender, EventArgs e)
 {
     try
     {
         frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
         frm.OpType = 0;
         frm.Text = "自动备份设置-新增";
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             if (dgvtasklist.RowCount > 0)
             {
                 dgvtasklist.CurrentCell = dgvtasklist.Rows[dgvtasklist.RowCount - 1].Cells[0];
             }
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("自动备份设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Esempio n. 7
0
 /// <summary> 查看
 /// </summary>
 void dgvtasklist_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvtasklist.CurrentRow == null)
     {
         return;
     }
     try
     {
         int currRowIndex = dgvtasklist.CurrentRow.Index;
         frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
         frm.OpType = 2;
         frm.Text = "自动备份设置-查看";
         frm.auto_backup_set_id = dgvtasklist.CurrentRow.Cells["auto_backup_set_id"].Value.ToString();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("自动备份设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Esempio n. 8
0
 /// <summary> 编辑
 /// </summary>
 void UCAutoBackupSet_EditEvent(object sender, EventArgs e)
 {
     if (dgvtasklist.CurrentRow == null)
     {
         return;
     }
     try
     {
         int currRowIndex = dgvtasklist.CurrentRow.Index;
         frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
         frm.OpType = 1;
         frm.Text = "自动备份设置-编辑";
         frm.auto_backup_set_id = dgvtasklist.CurrentRow.Cells["auto_backup_set_id"].Value.ToString();
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             BindData(where);
             dgvtasklist.CurrentCell = dgvtasklist.Rows[currRowIndex].Cells[0];
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("自动备份设置", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Esempio n. 9
0
 /// <summary> 新增
 /// </summary>
 void UCAutoBackupSet_AddEvent(object sender, EventArgs e)
 {
     frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
     frm.isAdd = true;
     DialogResult result = frm.ShowDialog();
     if (result == DialogResult.OK)
     {
         BindData(where);
         if (dgvAccList.RowCount > 0)
         {
             dgvtasklist.CurrentCell = dgvtasklist.Rows[dgvtasklist.RowCount - 1].Cells[0];
         }
     }
 }
Esempio n. 10
0
 /// <summary> 编辑
 /// </summary>
 void UCAutoBackupSet_EditEvent(object sender, EventArgs e)
 {
     if (dgvtasklist.CurrentRow == null)
     {
         return;
     }
     int currRowIndex = dgvtasklist.CurrentRow.Index;
     frmAutoBackupSetEdit frm = new frmAutoBackupSetEdit();
     frm.isAdd = false;
     frm.auto_backup_set_id = dgvtasklist.CurrentRow.Cells["auto_backup_set_id"].Value.ToString();
     DialogResult result = frm.ShowDialog();
     if (result == DialogResult.OK)
     {
         BindData(where);
         dgvtasklist.CurrentCell = dgvtasklist.Rows[currRowIndex].Cells[0];
     }
 }