mirror of
https://git.oceanpay.cc/danial/kami_itunes_june.git
synced 2025-12-18 22:31:24 +00:00
813 lines
27 KiB
C#
813 lines
27 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Diagnostics;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Linq.Expressions;
|
|
using System.Security.Cryptography;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Web;
|
|
using System.Windows.Forms;
|
|
using AppleBatch_June.Forms;
|
|
|
|
namespace AppleBatch_June
|
|
{
|
|
public class FromDBDataQuery : Form
|
|
{
|
|
public Dictionary<string, string> sqlTitle = new Dictionary<string, string>();
|
|
|
|
private string filDs = "";
|
|
|
|
private bool MultithreadingQuery;
|
|
|
|
private IContainer components;
|
|
|
|
private GroupBox groupBox1;
|
|
|
|
private ListView listView1;
|
|
|
|
private TextBox txtKey;
|
|
|
|
private Label label2;
|
|
|
|
private Button button1;
|
|
|
|
private Button button2;
|
|
|
|
private Label label3;
|
|
|
|
private Label label4;
|
|
|
|
private Label label5;
|
|
|
|
private Label label6;
|
|
|
|
private TextBox txtCount;
|
|
|
|
private ContextMenuStrip contextMenuStrip1;
|
|
|
|
private ToolStripMenuItem toolCopy;
|
|
|
|
private Label label7;
|
|
|
|
private Label label1;
|
|
|
|
private Label label8;
|
|
|
|
private Label label9;
|
|
|
|
private Label label10;
|
|
|
|
private TextBox txtPwd;
|
|
|
|
private Label label11;
|
|
|
|
private ToolStripMenuItem 设置显示列ToolStripMenuItem;
|
|
|
|
private CheckBox ckMultithreadingQuery;
|
|
|
|
private Label labTip;
|
|
|
|
public string type { get; set; }
|
|
|
|
public string typeName { get; set; }
|
|
|
|
public FromDBDataQuery()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private int getCount()
|
|
{
|
|
if (int.TryParse(txtCount.Text, out var result))
|
|
{
|
|
return result;
|
|
}
|
|
return 50;
|
|
}
|
|
|
|
private void FromDBDataQuery_Load(object sender, EventArgs e)
|
|
{
|
|
bool multithreadingQuery = (ckMultithreadingQuery.Checked = ((ConfigUtlis.getConfigValue("ckMultithreadingQuery") == "True") ? true : false));
|
|
MultithreadingQuery = multithreadingQuery;
|
|
label4.Text = typeName;
|
|
ColumnHeader columnHeader = new ColumnHeader();
|
|
columnHeader.Text = "序号";
|
|
columnHeader.Width = 60;
|
|
listView1.Columns.Add(columnHeader);
|
|
foreach (KeyValuePair<string, string> item in sqlTitle)
|
|
{
|
|
ColumnHeader columnHeader2 = new ColumnHeader();
|
|
int result = 100;
|
|
string[] array = item.Value.Split('|');
|
|
columnHeader2.Text = array[0];
|
|
if (array.Length >= 2)
|
|
{
|
|
int.TryParse(array[1], out result);
|
|
}
|
|
columnHeader2.Width = result;
|
|
listView1.Columns.Add(columnHeader2);
|
|
filDs = filDs + item.Key + ",";
|
|
}
|
|
filDs += "addTime";
|
|
ColumnHeader columnHeader3 = new ColumnHeader();
|
|
columnHeader3.Text = "时间";
|
|
columnHeader3.Width = 150;
|
|
listView1.Columns.Add(columnHeader3);
|
|
listView1.ColumnClick += lv_ColumnClick;
|
|
string total = "";
|
|
if (SqliteHelper.factory != null)
|
|
{
|
|
DataTable tables = SqliteHelper.QueryTable("itunes_db", ref total, filDs, "type='" + type + "' and (value16 ='" + Tools.GetMD5_32(HttpUtility.UrlEncode(AppSysConfig.userName) + "aaa").Substring(10) + "' or value16 IS NULL ) ", "id desc", "0," + getCount());
|
|
label7.Text = total;
|
|
loadListview(tables);
|
|
}
|
|
else
|
|
{
|
|
MessageBox.Show("无法加载 System.Data.SQLite.dll , 请重新下载,并正确解压,在文件夹中打开");
|
|
Close();
|
|
}
|
|
}
|
|
|
|
private void lv_ColumnClick(object sender, ColumnClickEventArgs e)
|
|
{
|
|
if (listView1.Tag == null)
|
|
{
|
|
listView1.Tag = "1";
|
|
}
|
|
if (listView1.Tag.ToString() == "1")
|
|
{
|
|
listView1.ListViewItemSorter = new ListViewItemComparer(e.Column, 1);
|
|
listView1.Tag = "0";
|
|
}
|
|
else
|
|
{
|
|
listView1.ListViewItemSorter = new ListViewItemComparer(e.Column, 0);
|
|
listView1.Tag = "1";
|
|
}
|
|
listView1.Sort();
|
|
}
|
|
|
|
public void loadListview(DataTable tables)
|
|
{
|
|
listView1.Items.Clear();
|
|
int num = 0;
|
|
string text = "";
|
|
int num2 = 0;
|
|
string guid = AppSysConfig.guid;
|
|
foreach (char c in guid)
|
|
{
|
|
if (num2 % 2 != 0)
|
|
{
|
|
text += c;
|
|
}
|
|
num2++;
|
|
}
|
|
text = text.PadRight(16, 'x');
|
|
List<ListViewItem> list = new List<ListViewItem>();
|
|
foreach (DataRow row in tables.Rows)
|
|
{
|
|
num++;
|
|
ListViewItem listViewItem = new ListViewItem(num.ToString());
|
|
foreach (KeyValuePair<string, string> item in sqlTitle)
|
|
{
|
|
if (txtPwd.Text == AppSysConfig.userPwd)
|
|
{
|
|
string text2 = dectValue(item.Key, row[item.Key].ToString(), text);
|
|
listViewItem.SubItems.Add(text2);
|
|
}
|
|
else
|
|
{
|
|
listViewItem.SubItems.Add("*****");
|
|
}
|
|
}
|
|
listViewItem.SubItems.Add(Tools.GetTimeByTimeStamp(long.Parse(row["addTime"].ToString())).ToString("yyyy-MM-dd HH:mm:ss"));
|
|
list.Add(listViewItem);
|
|
}
|
|
listView1.Items.AddRange(list.ToArray());
|
|
label8.Text = listView1.Items.Count.ToString();
|
|
tables.Dispose();
|
|
}
|
|
|
|
public byte[] CutTail(byte[] byList)
|
|
{
|
|
if (byList.Length == 0)
|
|
{
|
|
return byList;
|
|
}
|
|
int num = 0;
|
|
byte[] array = null;
|
|
for (int num2 = byList.Length - 1; num2 >= 0; num2--)
|
|
{
|
|
if (byList[num2] != 0 && num == 0)
|
|
{
|
|
num = num2;
|
|
if (array == null)
|
|
{
|
|
array = new byte[num + 1];
|
|
}
|
|
array[num] = byList[num2];
|
|
num--;
|
|
}
|
|
else if (array != null)
|
|
{
|
|
array[num] = byList[num2];
|
|
num--;
|
|
}
|
|
}
|
|
return array;
|
|
}
|
|
|
|
public string dectValue(string Key, string value, string guid)
|
|
{
|
|
if (value.StartsWith("key2_"))
|
|
{
|
|
value = DESEncrypt.Decrypt(value.Substring("key2_".Length), Tools.GetMD5_32(Key + "teluns").Substring(16), "awiaaaecaaguegaa").Replace("\0", "");
|
|
}
|
|
if (value.StartsWith("key3_"))
|
|
{
|
|
value = DESEncrypt.Decrypt(value.Substring("key3_".Length), Tools.GetMD5_32(Key + HttpUtility.UrlEncode(AppSysConfig.userName)).Substring(16), "awiBBBecaaguegaa").Replace("\0", "");
|
|
}
|
|
if (value.StartsWith("key4_"))
|
|
{
|
|
value = DESEncrypt.Decrypt(value.Substring("key4_".Length), Tools.GetMD5_32(Key + HttpUtility.UrlEncode(guid)).Substring(16), "WBiASAWaPcAaLsLa").Replace("\0", "");
|
|
}
|
|
return value;
|
|
}
|
|
|
|
private string dectValueNew(string Key, string value, string guid, Dictionary<int, byte[][]> arrayMeys, byte indexRand)
|
|
{
|
|
char[] array = value.ToCharArray();
|
|
if (array.Length >= 5)
|
|
{
|
|
char c = array[3];
|
|
if (array[0] == 'k' && array[1] == 'e' && array[2] == 'y' && (c == '4' || c == '3' || c == '2') && array[4] == '_')
|
|
{
|
|
byte[][] array2 = new byte[2][];
|
|
byte[] array3 = Convert.FromBase64CharArray(array, 5, array.Length - 5);
|
|
int key = c.GetHashCode() + Key.GetHashCode();
|
|
if (arrayMeys.ContainsKey(key))
|
|
{
|
|
int num = 0;
|
|
byte[][] array4 = arrayMeys[key];
|
|
foreach (byte[] array5 in array4)
|
|
{
|
|
byte[] array6 = new byte[array5.Length];
|
|
for (int j = 0; j < array5.Length; j++)
|
|
{
|
|
array6[j] = (byte)(array5[j] ^ (indexRand + 18));
|
|
}
|
|
array2[num] = array6;
|
|
num++;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
array2 = c switch
|
|
{
|
|
'2' => new byte[2][]
|
|
{
|
|
Encoding.UTF8.GetBytes(Tools.GetMD5_32(Key + "teluns").Substring(16)),
|
|
Encoding.UTF8.GetBytes("awiaaaecaaguegaa")
|
|
},
|
|
'3' => new byte[2][]
|
|
{
|
|
Encoding.UTF8.GetBytes(Tools.GetMD5_32(Key + HttpUtility.UrlEncode(AppSysConfig.userName)).Substring(16)),
|
|
Encoding.UTF8.GetBytes("awiBBBecaaguegaa")
|
|
},
|
|
'4' => new byte[2][]
|
|
{
|
|
Encoding.UTF8.GetBytes(Tools.GetMD5_32(Key + HttpUtility.UrlEncode(guid)).Substring(16)),
|
|
Encoding.UTF8.GetBytes("WBiASAWaPcAaLsLa")
|
|
},
|
|
_ => new byte[2][]
|
|
{
|
|
Encoding.UTF8.GetBytes(Tools.GetMD5_32(Key + "teluns").Substring(16)),
|
|
Encoding.UTF8.GetBytes("awiaaaecaaguegaa")
|
|
},
|
|
};
|
|
lock (arrayMeys)
|
|
{
|
|
if (!arrayMeys.ContainsKey(key))
|
|
{
|
|
byte[][] array7 = new byte[2][];
|
|
int num2 = 0;
|
|
byte[][] array4 = array2;
|
|
foreach (byte[] array8 in array4)
|
|
{
|
|
byte[] array9 = new byte[array8.Length];
|
|
for (int k = 0; k < array8.Length; k++)
|
|
{
|
|
array9[k] = (byte)(array8[k] ^ (indexRand + 18));
|
|
}
|
|
array7[num2] = array9;
|
|
num2++;
|
|
}
|
|
arrayMeys.Add(key, array7);
|
|
}
|
|
}
|
|
}
|
|
using Aes aes = Aes.Create();
|
|
aes.Key = array2[0];
|
|
aes.IV = array2[1];
|
|
aes.Mode = CipherMode.CBC;
|
|
aes.Padding = PaddingMode.Zeros;
|
|
using ICryptoTransform cryptoTransform = aes.CreateDecryptor();
|
|
byte[] byList = cryptoTransform.TransformFinalBlock(array3, 0, array3.Length);
|
|
Array.Clear(array2[0], 0, array2[0].Length);
|
|
Array.Clear(array2[1], 0, array2[1].Length);
|
|
array2[0] = null;
|
|
array2[1] = null;
|
|
array2 = null;
|
|
return Encoding.UTF8.GetString(CutTail(byList));
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
public byte[] Decrypt(byte[] toEncryptArray, byte[] keyArray, byte[] ivArray)
|
|
{
|
|
using Aes aes = Aes.Create();
|
|
aes.Key = keyArray;
|
|
aes.IV = ivArray;
|
|
aes.Mode = CipherMode.CBC;
|
|
aes.Padding = PaddingMode.Zeros;
|
|
using ICryptoTransform cryptoTransform = aes.CreateDecryptor();
|
|
return cryptoTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
|
|
}
|
|
|
|
private async void button1_Click(object sender, EventArgs e)
|
|
{
|
|
Console.WriteLine("开始运行。" + DateTime.Now.ToString());
|
|
button1.Enabled = false;
|
|
Stopwatch watch = Stopwatch.StartNew();
|
|
try
|
|
{
|
|
string txtKeyStr = txtKey.Text.Trim();
|
|
List<DataRow> list = await Task.Run(delegate
|
|
{
|
|
string where = "type='" + type + "' and (value16 ='" + Tools.GetMD5_32(HttpUtility.UrlEncode(AppSysConfig.userName) + "aaa").Substring(10) + "' or value16 IS NULL )";
|
|
string total = "";
|
|
string limit = "0," + getCount();
|
|
if (!string.IsNullOrEmpty(txtKeyStr))
|
|
{
|
|
limit = "";
|
|
}
|
|
DataTable dataTable = SqliteHelper.QueryTable("itunes_db", ref total, filDs, where, "id desc", limit);
|
|
Console.WriteLine("1--" + watch.Elapsed.TotalSeconds + "\n");
|
|
string guid = "";
|
|
int num = 0;
|
|
string guid2 = AppSysConfig.guid;
|
|
foreach (char c2 in guid2)
|
|
{
|
|
if (num % 2 != 0)
|
|
{
|
|
guid += c2;
|
|
}
|
|
num++;
|
|
}
|
|
guid = guid.PadRight(16, 'x');
|
|
Console.WriteLine("1-1-" + watch.Elapsed.TotalSeconds + "\n");
|
|
if (MultithreadingQuery)
|
|
{
|
|
List<DataTable> list2 = new List<DataTable>();
|
|
int num2 = 4;
|
|
for (int j = 0; j < num2; j++)
|
|
{
|
|
DataTable item2 = dataTable.Clone();
|
|
list2.Add(item2);
|
|
}
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
int num5 = dataTable.Rows.Count / num2;
|
|
foreach (DataRow row in dataTable.Rows)
|
|
{
|
|
if (num4 >= num5 && num3 < num2 - 1)
|
|
{
|
|
num3++;
|
|
num4 = 0;
|
|
}
|
|
list2[num3].ImportRow(row);
|
|
num4++;
|
|
}
|
|
Task[] array = new Task[num2];
|
|
for (int k = 0; k < num2; k++)
|
|
{
|
|
DataTable runTable = list2[k];
|
|
array[k] = Task.Run(delegate
|
|
{
|
|
Stopwatch stopwatch2 = Stopwatch.StartNew();
|
|
KeyValuePair<string, string>[] array2 = sqlTitle.ToArray();
|
|
Dictionary<int, byte[][]> dictionary = new Dictionary<int, byte[][]>();
|
|
byte indexRand = (byte)new Random(Guid.NewGuid().GetHashCode()).Next(0, 210);
|
|
foreach (DataRow row2 in runTable.Rows)
|
|
{
|
|
KeyValuePair<string, string>[] array3 = array2;
|
|
for (int l = 0; l < array3.Length; l++)
|
|
{
|
|
KeyValuePair<string, string> keyValuePair = array3[l];
|
|
string value2 = dectValueNew(keyValuePair.Key, row2[keyValuePair.Key].ToString(), guid, dictionary, indexRand);
|
|
row2[keyValuePair.Key] = value2;
|
|
}
|
|
}
|
|
dictionary.Clear();
|
|
dictionary = null;
|
|
stopwatch2.Stop();
|
|
Console.WriteLine("1-end-" + stopwatch2.Elapsed.TotalSeconds + "---" + runTable.Rows.Count + "\n");
|
|
});
|
|
}
|
|
Task.WaitAll(array);
|
|
dataTable.Rows.Clear();
|
|
foreach (DataTable item3 in list2)
|
|
{
|
|
dataTable.Merge(item3);
|
|
item3.Dispose();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Stopwatch stopwatch = Stopwatch.StartNew();
|
|
foreach (DataRow row3 in dataTable.Rows)
|
|
{
|
|
foreach (KeyValuePair<string, string> item4 in sqlTitle)
|
|
{
|
|
string value = dectValue(item4.Key, row3[item4.Key].ToString(), guid);
|
|
row3[item4.Key] = value;
|
|
}
|
|
}
|
|
stopwatch.Stop();
|
|
Console.WriteLine("1-end-" + stopwatch.Elapsed.TotalSeconds + "---" + dataTable.Rows.Count + "\n");
|
|
}
|
|
Console.WriteLine("2--" + watch.Elapsed.TotalSeconds + "\n");
|
|
IQueryable<DataRow> source = dataTable.Rows.Cast<DataRow>().AsQueryable();
|
|
Expression<Func<DataRow, bool>> expression = PredicateBuilder.False<DataRow>();
|
|
foreach (KeyValuePair<string, string> item in sqlTitle)
|
|
{
|
|
expression = expression.Or((DataRow c) => c[item.Key].ToString().Contains(txtKeyStr));
|
|
}
|
|
List<DataRow> result = source.Where(expression).Take(getCount()).ToList();
|
|
dataTable.Dispose();
|
|
return result;
|
|
});
|
|
Console.WriteLine("3--" + watch.Elapsed.TotalSeconds + "\n");
|
|
if (list.Count > 0)
|
|
{
|
|
loadListview(list.CopyToDataTable());
|
|
}
|
|
else
|
|
{
|
|
listView1.Items.Clear();
|
|
label8.Text = listView1.Items.Count.ToString();
|
|
}
|
|
Console.WriteLine("4--" + watch.Elapsed.TotalSeconds + "\n");
|
|
watch.Stop();
|
|
if (watch.Elapsed.TotalSeconds > 5.0 && !MultithreadingQuery)
|
|
{
|
|
labTip.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
labTip.Visible = false;
|
|
}
|
|
}
|
|
catch (Exception)
|
|
{
|
|
}
|
|
finally
|
|
{
|
|
button1.Enabled = true;
|
|
}
|
|
}
|
|
|
|
private void toolCopy_Click(object sender, EventArgs e)
|
|
{
|
|
string text = "";
|
|
foreach (ListViewItem selectedItem in listView1.SelectedItems)
|
|
{
|
|
int num = 0;
|
|
foreach (KeyValuePair<string, string> item in sqlTitle)
|
|
{
|
|
_ = item;
|
|
text = text + listView1.Columns[num + 1].Text + ":" + selectedItem.SubItems[num + 1].Text + " \t";
|
|
num++;
|
|
}
|
|
text += "\n";
|
|
}
|
|
if (text.Length > 0)
|
|
{
|
|
try
|
|
{
|
|
Clipboard.SetText(text);
|
|
MessageBox.Show("复制成功");
|
|
}
|
|
catch (Exception)
|
|
{
|
|
MessageBox.Show("复制失败");
|
|
}
|
|
}
|
|
}
|
|
|
|
private void button2_Click(object sender, EventArgs e)
|
|
{
|
|
ExperList(listView1);
|
|
}
|
|
|
|
public void ExperList(ListView lv)
|
|
{
|
|
Stopwatch stopwatch = Stopwatch.StartNew();
|
|
FromExper fromExper = new FromExper();
|
|
StringBuilder stringBuilder = new StringBuilder();
|
|
int num = 0;
|
|
foreach (ColumnHeader column in lv.Columns)
|
|
{
|
|
if (num != 0 && column.Width > 10)
|
|
{
|
|
stringBuilder.Append(column.Text + "\t");
|
|
}
|
|
num++;
|
|
}
|
|
stringBuilder.Append("\n");
|
|
foreach (ListViewItem item in lv.Items)
|
|
{
|
|
num = 0;
|
|
foreach (ListViewItem.ListViewSubItem subItem in item.SubItems)
|
|
{
|
|
if (num != 0 && lv.Columns[num].Width > 10)
|
|
{
|
|
stringBuilder.Append(subItem.Text + "\t");
|
|
}
|
|
num++;
|
|
}
|
|
stringBuilder.Append("\n");
|
|
}
|
|
fromExper.txtInfo = stringBuilder.ToString();
|
|
stopwatch.Stop();
|
|
fromExper.Show();
|
|
}
|
|
|
|
private void txtPwd_TextChanged(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
private void txtPwd_Leave(object sender, EventArgs e)
|
|
{
|
|
button1_Click(null, null);
|
|
}
|
|
|
|
private void 设置显示列ToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
FormEditListViewHander formEditListViewHander = new FormEditListViewHander();
|
|
formEditListViewHander.lvData = listView1;
|
|
formEditListViewHander.ShowDialog();
|
|
}
|
|
|
|
private void FromDBDataQuery_FormClosed(object sender, FormClosedEventArgs e)
|
|
{
|
|
}
|
|
|
|
private void ckMultithreadingQuery_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
ConfigUtlis.saveConfigKey("ckMultithreadingQuery", ckMultithreadingQuery.Checked.ToString());
|
|
MultithreadingQuery = ckMultithreadingQuery.Checked;
|
|
if (MultithreadingQuery)
|
|
{
|
|
labTip.Visible = false;
|
|
}
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AppleBatch_June.FromDBDataQuery));
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
this.label11 = new System.Windows.Forms.Label();
|
|
this.label10 = new System.Windows.Forms.Label();
|
|
this.txtPwd = new System.Windows.Forms.TextBox();
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
this.label9 = new System.Windows.Forms.Label();
|
|
this.label7 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
this.txtCount = new System.Windows.Forms.TextBox();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.txtKey = new System.Windows.Forms.TextBox();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.listView1 = new System.Windows.Forms.ListView();
|
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.toolCopy = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.设置显示列ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.ckMultithreadingQuery = new System.Windows.Forms.CheckBox();
|
|
this.labTip = new System.Windows.Forms.Label();
|
|
this.groupBox1.SuspendLayout();
|
|
this.contextMenuStrip1.SuspendLayout();
|
|
base.SuspendLayout();
|
|
this.groupBox1.Controls.Add(this.labTip);
|
|
this.groupBox1.Controls.Add(this.ckMultithreadingQuery);
|
|
this.groupBox1.Controls.Add(this.label11);
|
|
this.groupBox1.Controls.Add(this.label10);
|
|
this.groupBox1.Controls.Add(this.txtPwd);
|
|
this.groupBox1.Controls.Add(this.label8);
|
|
this.groupBox1.Controls.Add(this.label9);
|
|
this.groupBox1.Controls.Add(this.label7);
|
|
this.groupBox1.Controls.Add(this.label1);
|
|
this.groupBox1.Controls.Add(this.label6);
|
|
this.groupBox1.Controls.Add(this.txtCount);
|
|
this.groupBox1.Controls.Add(this.label5);
|
|
this.groupBox1.Controls.Add(this.label4);
|
|
this.groupBox1.Controls.Add(this.label3);
|
|
this.groupBox1.Controls.Add(this.button2);
|
|
this.groupBox1.Controls.Add(this.button1);
|
|
this.groupBox1.Controls.Add(this.txtKey);
|
|
this.groupBox1.Controls.Add(this.label2);
|
|
this.groupBox1.Location = new System.Drawing.Point(23, 17);
|
|
this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
this.groupBox1.Name = "groupBox1";
|
|
this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
this.groupBox1.Size = new System.Drawing.Size(886, 139);
|
|
this.groupBox1.TabIndex = 0;
|
|
this.groupBox1.TabStop = false;
|
|
this.groupBox1.Text = "搜索条件";
|
|
this.label11.AutoSize = true;
|
|
this.label11.Font = new System.Drawing.Font("微软雅黑", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
|
|
this.label11.ForeColor = System.Drawing.Color.Red;
|
|
this.label11.Location = new System.Drawing.Point(187, 85);
|
|
this.label11.Name = "label11";
|
|
this.label11.Size = new System.Drawing.Size(74, 22);
|
|
this.label11.TabIndex = 17;
|
|
this.label11.Text = "当前软件";
|
|
this.label10.AutoSize = true;
|
|
this.label10.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
|
|
this.label10.ForeColor = System.Drawing.Color.Black;
|
|
this.label10.Location = new System.Drawing.Point(144, 91);
|
|
this.label10.Name = "label10";
|
|
this.label10.Size = new System.Drawing.Size(280, 17);
|
|
this.label10.TabIndex = 16;
|
|
this.label10.Text = "请输入 账号的登录密码查看完整数据";
|
|
this.txtPwd.Location = new System.Drawing.Point(427, 88);
|
|
this.txtPwd.Name = "txtPwd";
|
|
this.txtPwd.PasswordChar = '*';
|
|
this.txtPwd.Size = new System.Drawing.Size(123, 23);
|
|
this.txtPwd.TabIndex = 15;
|
|
this.txtPwd.TextChanged += new System.EventHandler(txtPwd_TextChanged);
|
|
this.txtPwd.Leave += new System.EventHandler(txtPwd_Leave);
|
|
this.label8.AutoSize = true;
|
|
this.label8.Location = new System.Drawing.Point(90, 91);
|
|
this.label8.Name = "label8";
|
|
this.label8.Size = new System.Drawing.Size(43, 17);
|
|
this.label8.TabIndex = 14;
|
|
this.label8.Text = "label8";
|
|
this.label9.AutoSize = true;
|
|
this.label9.Location = new System.Drawing.Point(16, 91);
|
|
this.label9.Name = "label9";
|
|
this.label9.Size = new System.Drawing.Size(80, 17);
|
|
this.label9.TabIndex = 13;
|
|
this.label9.Text = "列表中数量:";
|
|
this.label7.AutoSize = true;
|
|
this.label7.Location = new System.Drawing.Point(92, 65);
|
|
this.label7.Name = "label7";
|
|
this.label7.Size = new System.Drawing.Size(43, 17);
|
|
this.label7.TabIndex = 12;
|
|
this.label7.Text = "label7";
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(16, 66);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(80, 17);
|
|
this.label1.TabIndex = 11;
|
|
this.label1.Text = "数据总数量:";
|
|
this.label6.AutoSize = true;
|
|
this.label6.Location = new System.Drawing.Point(507, 59);
|
|
this.label6.Name = "label6";
|
|
this.label6.Size = new System.Drawing.Size(47, 17);
|
|
this.label6.TabIndex = 10;
|
|
this.label6.Text = "条数据.";
|
|
this.txtCount.Location = new System.Drawing.Point(428, 57);
|
|
this.txtCount.Name = "txtCount";
|
|
this.txtCount.Size = new System.Drawing.Size(73, 23);
|
|
this.txtCount.TabIndex = 9;
|
|
this.txtCount.Text = "50";
|
|
this.label5.AutoSize = true;
|
|
this.label5.Location = new System.Drawing.Point(362, 61);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(56, 17);
|
|
this.label5.TabIndex = 8;
|
|
this.label5.Text = "查看最新";
|
|
this.label4.AutoSize = true;
|
|
this.label4.Font = new System.Drawing.Font("微软雅黑", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
|
|
this.label4.ForeColor = System.Drawing.SystemColors.Highlight;
|
|
this.label4.Location = new System.Drawing.Point(165, 26);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(74, 22);
|
|
this.label4.TabIndex = 7;
|
|
this.label4.Text = "区域查询";
|
|
this.label3.AutoSize = true;
|
|
this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
|
|
this.label3.Location = new System.Drawing.Point(11, 29);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(149, 19);
|
|
this.label3.TabIndex = 6;
|
|
this.label3.Text = "当前查看的缓存库为:";
|
|
this.button2.Location = new System.Drawing.Point(704, 68);
|
|
this.button2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
this.button2.Name = "button2";
|
|
this.button2.Size = new System.Drawing.Size(127, 33);
|
|
this.button2.TabIndex = 5;
|
|
this.button2.Text = "导出查找数据";
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
this.button2.Click += new System.EventHandler(button2_Click);
|
|
this.button1.Location = new System.Drawing.Point(704, 23);
|
|
this.button1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(127, 33);
|
|
this.button1.TabIndex = 4;
|
|
this.button1.Text = "快速查找";
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
this.button1.Click += new System.EventHandler(button1_Click);
|
|
this.txtKey.Location = new System.Drawing.Point(427, 23);
|
|
this.txtKey.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
this.txtKey.Name = "txtKey";
|
|
this.txtKey.Size = new System.Drawing.Size(242, 23);
|
|
this.txtKey.TabIndex = 3;
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(339, 28);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(80, 17);
|
|
this.label2.TabIndex = 2;
|
|
this.label2.Text = "查找关键字:";
|
|
this.listView1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
|
|
this.listView1.ContextMenuStrip = this.contextMenuStrip1;
|
|
this.listView1.FullRowSelect = true;
|
|
this.listView1.HideSelection = false;
|
|
this.listView1.Location = new System.Drawing.Point(23, 164);
|
|
this.listView1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
this.listView1.Name = "listView1";
|
|
this.listView1.Size = new System.Drawing.Size(886, 460);
|
|
this.listView1.TabIndex = 1;
|
|
this.listView1.UseCompatibleStateImageBehavior = false;
|
|
this.listView1.View = System.Windows.Forms.View.Details;
|
|
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[2] { this.toolCopy, this.设置显示列ToolStripMenuItem });
|
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
|
this.contextMenuStrip1.Size = new System.Drawing.Size(137, 48);
|
|
this.toolCopy.Name = "toolCopy";
|
|
this.toolCopy.Size = new System.Drawing.Size(136, 22);
|
|
this.toolCopy.Text = "复制信息";
|
|
this.toolCopy.Click += new System.EventHandler(toolCopy_Click);
|
|
this.设置显示列ToolStripMenuItem.Name = "设置显示列ToolStripMenuItem";
|
|
this.设置显示列ToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
|
|
this.设置显示列ToolStripMenuItem.Text = "设置显示列";
|
|
this.设置显示列ToolStripMenuItem.Click += new System.EventHandler(设置显示列ToolStripMenuItem_Click);
|
|
this.ckMultithreadingQuery.AutoSize = true;
|
|
this.ckMultithreadingQuery.Location = new System.Drawing.Point(560, 57);
|
|
this.ckMultithreadingQuery.Name = "ckMultithreadingQuery";
|
|
this.ckMultithreadingQuery.Size = new System.Drawing.Size(111, 21);
|
|
this.ckMultithreadingQuery.TabIndex = 18;
|
|
this.ckMultithreadingQuery.Text = "使用多线程查询";
|
|
this.ckMultithreadingQuery.UseVisualStyleBackColor = true;
|
|
this.ckMultithreadingQuery.CheckedChanged += new System.EventHandler(ckMultithreadingQuery_CheckedChanged);
|
|
this.labTip.AutoSize = true;
|
|
this.labTip.ForeColor = System.Drawing.Color.Chocolate;
|
|
this.labTip.Location = new System.Drawing.Point(577, 111);
|
|
this.labTip.Name = "labTip";
|
|
this.labTip.Size = new System.Drawing.Size(272, 17);
|
|
this.labTip.TabIndex = 19;
|
|
this.labTip.Text = "当前电脑性能查询速度较慢,建议使用多线程查询";
|
|
this.labTip.Visible = false;
|
|
base.AcceptButton = this.button1;
|
|
base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 17f);
|
|
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
base.ClientSize = new System.Drawing.Size(933, 637);
|
|
base.Controls.Add(this.listView1);
|
|
base.Controls.Add(this.groupBox1);
|
|
this.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
|
base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
|
|
base.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
base.MaximizeBox = false;
|
|
base.MinimizeBox = false;
|
|
base.Name = "FromDBDataQuery";
|
|
base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "缓存数据查看";
|
|
base.FormClosed += new System.Windows.Forms.FormClosedEventHandler(FromDBDataQuery_FormClosed);
|
|
base.Load += new System.EventHandler(FromDBDataQuery_Load);
|
|
this.groupBox1.ResumeLayout(false);
|
|
this.groupBox1.PerformLayout();
|
|
this.contextMenuStrip1.ResumeLayout(false);
|
|
base.ResumeLayout(false);
|
|
}
|
|
}
|
|
}
|