Newer
Older
GHFX_REFACTOR / FrmBACKORACLE.cs
wxn on 2 Nov 2016 1 KB 提交
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Xml;
using DevComponents.DotNetBar;

namespace Cyberpipe
{
    public partial class FrmBACKORACLE : Office2007Form
    {
        public FrmBACKORACLE()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            //备份
            buttonBackOracle.Enabled = false;

            textBox1.AppendText("数据库备份进行中,请等待...");

            BackUpDB.GSOBackOracle bkupOracle = new BackUpDB.GSOBackOracle(Utility.backupurl);
            
            bkupOracle.Timeout = 1000 * 1000;

            textBox1.Text = bkupOracle.BackOracle(Utility.dbdatabase, Utility.userID, Utility.DBPassword, textBoxDirectoryPath.Text.Trim());//"C:\\backup");

            buttonBackOracle.Enabled = true;
          
        }

        private void buttonclose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmBACKORACLE_Load(object sender, EventArgs e)
        {
            textBoxDirectoryPath.Text = Utility.backuppath;
        }


    }
}