Пример #1
0
 private void lvborrQuer_Click(object sender, EventArgs e)
 {
     if (lvborrQuer.SelectedItems.Count <= 0)
     {
         return;
     }
     BorrMethod.GetArchinfo(lvborrQuer, toolslb_box, toolslb_archno, toolslb_File);
 }
Пример #2
0
        private void butQuer_Click(object sender, EventArgs e)
        {
            if (!istxt())
            {
                return;
            }
            string col = comborrbcol.Text.Trim();
            string czf = comborrbczf.Text.Trim();
            string gjz = txtborrgjz.Text.Trim();
            string dt1 = dateborrtime1.Value.ToString();
            string dt2 = dateborrtime2.Value.ToString();

            try {
                butborrQuer.Enabled = false;
                BorrMethod.Getdata(lvborrQuer, col, czf, gjz, dt1, dt2, chkborrgjz.Checked, chkborrtime.Checked);
                string str = "查询:" + col + "->" + czf + "->" + gjz;
                Common.WriteBorrLog("0", "0", 0, str);
            } catch {
            } finally {
                butborrQuer.Enabled = true;
            }
        }
Пример #3
0
        private void butborrDc_Click(object sender, EventArgs e)
        {
            if (lvborrQuer.Items.Count <= 0)
            {
                MessageBox.Show("未发现数据!");
                return;
            }
            string file = "";

            if (saveFile.ShowDialog() == DialogResult.OK)
            {
                file = saveFile.FileName;
            }
            else
            {
                file = "";
            }
            if (file.Trim().Length <= 0)
            {
                return;
            }
            try {
                butborrQuer.Enabled = false;
                butborrDc.Enabled   = false;
                if (!BorrMethod.SaveFile(lvborrQuer, file))
                {
                    return;
                }
                string str = "导出数据:" + lvborrQuer.Items.Count + "字段:" + comborrbcol.Text.Trim() + "-> 操作符:" + comborrbczf.Text.Trim() +
                             "-> 关键字:" + txtborrgjz.Text.Trim() + " -> 时间:" + dateborrtime1.Text + "-" + dateborrtime2.Text;
                Common.WriteBorrLog("0", "0", 0, str);
            } catch (Exception ex) {
                MessageBox.Show("导出失败:" + ex.ToString());
            } finally {
                butborrQuer.Enabled = true;
                butborrDc.Enabled   = true;
            }
        }
Пример #4
0
 private void FrmBorr_Shown(object sender, EventArgs e)
 {
     BorrMethod.Getinfo(lvborrQuer, comborrbcol);
     ftp = new HFTP();
     ftp.PercentChane += new HFTP.PChangedHandle(Downjd);
 }