Files
kami_itunes_june/AppleBatch_June/FormGiftcardInfo.cs
2024-07-22 00:43:14 +08:00

1273 lines
47 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using AppleBatch_June.Model;
using AppleBatch_June.Utils;
using DotNet.Utilities;
using Microsoft.VisualBasic;
namespace AppleBatch_June
{
public class FormGiftcardInfo : BaseForm
{
private Action<string, DisplyType, string> appleAction;
private AppleItunesLogin loginInfo;
private string selectDsid = "";
private string selectAccount = "";
private IContainer components;
private TabControl tabControl1;
private TabPage tabPage1;
private RichTextBox txtGiftcard;
private Label labError;
private Label label45;
private TextBox txtGiftcardInfoLoadAccount;
private ListView listGiftcardInfo;
private ColumnHeader columnHeader8;
private ColumnHeader columnHeader9;
private ColumnHeader columnHeader12;
private ColumnHeader columnHeader1;
private ColumnHeader columnHeader14;
private ColumnHeader columnHeader2;
private CheckBox ckGiftcardInfoVpn;
private Label labRemovePayDianShu;
private Label label31;
private GroupBox groupBox5;
private Button btnExprtGiftcardInfo;
private Button btnStopGiftcardInfo;
private Button btnGiftcardInfoLog;
private Button btnStartGiftcardInfo;
private Label label5;
private ColumnHeader columnHeader5;
private ColumnHeader columnHeader3;
private ColumnHeader columnHeader4;
private ColumnHeader columnHeader6;
private Label labMsg;
private Button button1;
private TextBox txtDsid;
private Label label1;
private Panel panel1;
private Label label2;
private CheckBox ckDuplicate;
private Label label3;
private Button btnEmptyLogList;
private ContextMenuStrip contextMenuStrip1;
private ToolStripMenuItem ToolStripMenuItem;
private ToolStripMenuItem ToolStripMenuItem;
private ToolStripMenuItem ToolStripMenuItem;
private ToolStripMenuItem ToolStripMenuItem;
private ContextMenuStrip contextMenuStrip2;
private ToolStripMenuItem ToolStripMenuItem1;
private CheckBox ckMerchModel;
private Label label4;
private Button btnGiftcardBalance;
public FromMain mainFrom { get; set; }
public FormGiftcardInfo()
: base("查询卡片信息", null)
{
InitializeComponent();
}
private void FormGiftcardInfo_Load(object sender, EventArgs e)
{
appleAction = apple_info_Action;
panel1.Visible = false;
labRemovePayDianShu.Text = AppSysConfig.getTypeById(25).consNum.ToString();
label4.Text = AppSysConfig.getConfig("CardInfoError").Replace("\\n", "\n");
txtGiftcardInfoLoadAccount.Text = ConfigUtlis.getConfigValue("txtGiftcardInfoLoadAccount");
ckGiftcardInfoVpn.Checked = ((ConfigUtlis.getConfigValue("ckGiftcardInfoVpn") == "True") ? true : false);
ckMerchModel.Checked = ((ConfigUtlis.getConfigValue("ckMerchModel") == "True") ? true : false);
if (string.IsNullOrEmpty(txtGiftcardInfoLoadAccount.Text))
{
txtGiftcardInfoLoadAccount.Text = "账号输入格式xxxx@xxx.com----密码";
}
else
{
List<AppleAcount> list = AppleUtlis.accountInput(txtGiftcardInfoLoadAccount.Text.Trim());
if (list.Count == 1)
{
button1.Enabled = false;
Task tak = SwitchingLoginid(logType: AppSysConfig.getConfig("logTypeLoad"), acount: list[0], startVpn: ckGiftcardInfoVpn.Checked, duplicate: ckDuplicate.Checked, typeAct: 0);
Task.Run(delegate
{
try
{
tak.Wait();
}
catch (Exception)
{
}
UpdataUi(delegate
{
button1.Enabled = true;
});
});
}
}
InitLv(listGiftcardInfo);
}
public Task SwitchingLoginid(AppleAcount acount, bool startVpn, bool duplicate, int typeAct, string logType = "other")
{
return Task.Run(delegate
{
try
{
if (!base.taskState.isRun)
{
base.taskState.isRun = true;
}
insertLog(acount.appleId + ",正在登录");
UpUiact(delegate
{
txtDsid.Text = "";
panel1.Visible = false;
});
ItunesUtlis itunesUtlis = new ItunesUtlis(base.taskState, acount.appleId, delegate(string appleKey, DisplyType type, string reust)
{
insertLog(appleKey + "," + reust);
}, startVpn);
string msgReust = "";
AppleItunesLogin itunesLogin = null;
if (logType == "load")
{
AppleItunesLogin loginIdUserInfo = iTunesAccountLoginCache.getLoginIdUserInfo(acount.appleId, acount.applePwd);
if (loginIdUserInfo == null)
{
itunesLogin = itunesUtlis.remoteAppleLogin(acount.appleId, acount.applePwd + (acount.isDoubleModl ? acount.DoublePwd : ""), ref msgReust, 1);
if (itunesLogin != null)
{
if (acount.isDoubleModl)
{
itunesLogin.pwd = acount.applePwd;
}
iTunesAccountLoginCache.addReddemUserInfo(acount.appleId, itunesLogin);
}
}
else
{
itunesLogin = loginIdUserInfo;
}
}
else
{
itunesLogin = getItunesLogin(startVpn, acount, 26, itunesUtlis, ref msgReust, 1);
}
if (itunesLogin != null)
{
insertLog(acount.appleId + ",登录成功 \n\n国家" + itunesLogin.Area + " \t ");
loginInfo = itunesLogin;
UpUiact(delegate
{
txtDsid.Text = itunesLogin.dsis;
panel1.Visible = true;
});
if (typeAct == 1)
{
ApiApplyAct(26, "查询dsid");
}
}
else if (duplicate)
{
object obj = Invoke((Func<string>)(() => Interaction.InputBox("请输入ID双重验证码", "请输入ID双重验证码")));
if (obj.ToString().Length == 0)
{
insertLog(acount.appleId + ",登录失败:\n" + msgReust);
return;
}
acount.applePwd = acount.applePwd;
acount.isDoubleModl = true;
acount.DoublePwd = string.Concat(obj);
itunesLogin = getItunesLogin(startVpn, acount, 25, itunesUtlis, ref msgReust, 1);
if (itunesLogin != null)
{
if (AppSysConfig.DoubleGuid.ContainsKey(acount.appleId))
{
AppSysConfig.DoubleGuid[acount.appleId] = itunesLogin.Guid;
}
else
{
AppSysConfig.DoubleGuid.TryAdd(acount.appleId, itunesLogin.Guid);
}
loginInfo = itunesLogin;
insertLog(acount.appleId + ",登录成功 \n\n国家" + itunesLogin.Area + " \t ");
UpUiact(delegate
{
txtDsid.Text = itunesLogin.dsis;
panel1.Visible = true;
});
if (typeAct == 1)
{
ApiApplyAct(26, "查询dsid");
}
}
else
{
insertLog(acount.appleId + ",登录失败:\n" + msgReust);
}
}
else
{
insertLog(acount.appleId + ",登录失败:\n" + msgReust);
}
if (!base.taskState.TaskIsRun)
{
base.taskState.isRun = false;
}
}
catch (Exception ex)
{
insertLog(acount.appleId + ",登录失败:\n" + ex.Message);
}
});
}
public override void insertLog(string txt)
{
if (!base.IsHandleCreated || base.IsDisposed)
{
return;
}
try
{
BeginInvoke((Action)delegate
{
labMsg.Text = txt;
});
}
catch (Exception)
{
}
}
public void UpUiact(Action act)
{
if (base.IsHandleCreated && !base.IsDisposed)
{
try
{
BeginInvoke(act);
}
catch (Exception)
{
}
}
}
private void btnStartGiftcardInfo_Click(object sender, EventArgs e)
{
if (txtGiftcardInfoLoadAccount.Text != "账号输入格式xxxx@xxx.com----密码")
{
List<AppleAcount> list = AppleUtlis.accountInput(txtGiftcardInfoLoadAccount.Text.Trim());
if (list.Count == 1)
{
ConfigUtlis.saveConfigKey("ckGiftcardInfoVpn", ckGiftcardInfoVpn.Checked.ToString());
ConfigUtlis.saveConfigKey("txtGiftcardInfoLoadAccount", txtGiftcardInfoLoadAccount.Text.Trim());
List<AppleAcount> list2 = new List<AppleAcount>();
string[] array = txtGiftcard.Text.Split('\n');
foreach (string text in array)
{
if (!string.IsNullOrEmpty(text))
{
list2.Add(new AppleAcount
{
reddemCode = text.Trim()
});
}
}
if (!base.taskState.TaskIsRun)
{
btnStartGiftcardInfo.Enabled = false;
StartGiftcardInfo(list2, ckGiftcardInfoVpn.Checked, ckDuplicate.Checked, list[0].appleId, list[0].applePwd);
}
else
{
MessageBox.Show("请点停止或等待任务结束...");
}
}
else
{
MessageBox.Show("账号输入格式不正确");
txtGiftcardInfoLoadAccount.Focus();
}
}
else
{
MessageBox.Show("请输入账号");
txtGiftcardInfoLoadAccount.Focus();
}
}
public async void StartGiftcardInfo(List<AppleAcount> appleIds, bool startVpn, bool ckDuplicate, string LoginAppleId, string LoginApwd, bool isAgain = false)
{
int TaskSize = Tools.getTaskSize(startVpn, appleIds.Count);
base.taskState.isRun = true;
base.taskState.TaskIsRun = true;
AppleExecuteTask.TaskRunAppleIdCount = 0L;
AppleExecuteTask.TaskRunModels.Clear();
ApiNetReq.startNowFun = 25;
if (loginInfo == null)
{
await SwitchingLoginid(new AppleAcount
{
appleId = LoginAppleId,
applePwd = LoginApwd
}, startVpn, ckDuplicate, 0);
}
if (loginInfo != null)
{
selectDsid = loginInfo.dsis;
selectAccount = loginInfo.account;
if (AppSysConfig.getConfig("CardInfoSingleThread") == "1")
{
TaskSize = 1;
}
Task[] array = new Task[TaskSize];
for (int i = 0; i < TaskSize; i++)
{
array[i] = Task.Run(delegate
{
string guid = Guid.NewGuid().ToString("n");
TaskRunModel taskRunModel = new TaskRunModel
{
guid = guid,
isRuning = false
};
AppleExecuteTask.TaskRunModels.Add(taskRunModel);
while (base.taskState.isRun)
{
try
{
AppleAcount appleAcount = null;
lock (appleIds)
{
appleAcount = appleIds.Where((AppleAcount c) => !c.isAct).FirstOrDefault();
if (appleAcount == null)
{
break;
}
appleAcount.isAct = true;
}
if (startRuning(taskRunModel, delegate(string appleid, DisplyType reustType, string dasReust2)
{
insertLog(dasReust2);
}, appleAcount.appleId))
{
if (!isAgain)
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.init, "正在处理");
}
else
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.chongzhi, "正在处理");
}
ItunesUtlis itunesUtlis = new ItunesUtlis(base.taskState, appleAcount.reddemCode, appleAction, startVpn);
appleAcount.reddemCode = appleAcount.reddemCode.Replace(" ", "").Replace("-", "").Trim();
int num = 25;
HttpResult isLogin = APIUtlis.getIsLogin(25);
if (isLogin.StatusCode == HttpStatusCode.OK)
{
_ = isLogin.Html;
object obj = Tools.Todejosn<object>(isLogin.Html);
if (((dynamic)obj)["Code"] == "0000")
{
if (((dynamic)obj)["Data"]["integral"] >= AppSysConfig.getTypeById(num).consNum)
{
bool flag = false;
int num2 = 0;
do
{
flag = false;
appleAcount.appleId = LoginAppleId;
appleAcount.applePwd = LoginApwd;
string msg = "";
AppleItunesLogin itunesLogin = getItunesLogin(startVpn, appleAcount, num, itunesUtlis, ref msg, 1, itunesUtlis.notyKey, isLogin);
if (itunesLogin == null)
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, msg);
insertLog(LoginAppleId + ",登录失败:\n" + msg);
loginInfo = null;
UpUiact(delegate
{
txtDsid.Text = "";
panel1.Visible = false;
});
}
else
{
HttpResult giftCardInfo = getGiftCardInfo(appleAcount.reddemCode, itunesLogin, itunesUtlis);
_ = giftCardInfo.Html;
if (giftCardInfo.StatusCode == HttpStatusCode.OK)
{
object obj2 = Tools.Todejosn<object>(giftCardInfo.Html);
if ((dynamic)obj2 != null)
{
int num3 = ((dynamic)obj2)["status"];
ApiApplyAct(num, "卡片信息查询");
if (num3 == 0 && giftCardInfo.Html.Contains("codeInfo"))
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.balance, giftCardInfo.Html);
break;
}
if (((dynamic)obj2).ContainsKey("userPresentableErrorMessage"))
{
msg = ((dynamic)obj2)["userPresentableErrorMessage"];
if (string.IsNullOrEmpty(msg))
{
msg = new Regex("\"message\":\"([\\s\\S]*?)\"").Match(((dynamic)obj2).Html).Groups[1].Value;
}
}
if (msg.Contains("安全原因"))
{
iTunesAccountLoginCache.removeReddemUserInfo(itunesLogin.account, itunesLogin.StdndbyKeyGuid);
iCloudAccountLoginCache.removeUserInfoByAppleId(itunesLogin.account, itunesLogin.pwd);
}
string text = "";
if (!(((dynamic)obj2).ContainsKey("errorMessageKey") ? true : false))
{
msg = AppleUtlis.Html2Text(msg, isEmorp: false);
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, msg);
break;
}
text = ((dynamic)obj2)["errorMessageKey"];
if (!text.ToLower().Contains("sign") && !text.ToLower().Contains("login"))
{
msg = AppleUtlis.Html2Text(msg, isEmorp: false);
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, msg);
break;
}
iTunesAccountLoginCache.removeReddemUserInfo(itunesLogin.account, itunesLogin.StdndbyKeyGuid);
flag = true;
}
else
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, "请求错误,请重新查询");
flag = true;
}
}
else
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, "请求错误,请重新查询");
flag = true;
}
num2++;
}
}
while (flag && base.taskState.isRun && num2 < 1);
}
else
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, "点数不足,请联系客服充值");
}
}
else
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, ((dynamic)obj)["Message"]);
}
}
else
{
appleAction?.Invoke(appleAcount.reddemCode, DisplyType.xinxi, "网络请求失败");
}
goto IL_0dd2;
}
}
catch (Exception ex)
{
APIUtlis.ApiSeriveError(ex);
insertLog("请求失败:" + ex.Message);
goto IL_0dd2;
}
continue;
IL_0dd2:
endRuning(taskRunModel);
}
});
}
await Task.WhenAll(array);
}
AppleExecuteTask.TaskRunModels.Clear();
base.taskState.isRun = false;
base.taskState.TaskIsRun = false;
btnStartGiftcardInfo.Enabled = true;
}
private void apple_info_Action(string creadNo, DisplyType type, string reust)
{
if (!base.IsHandleCreated || base.IsDisposed)
{
return;
}
Invoke((Action)delegate
{
try
{
if (type == DisplyType.init)
{
listViewItemInit(creadNo, reust);
}
if (type == DisplyType.balance)
{
Dictionary<string, string> dictionary = new Dictionary<string, string>
{
{ "type", "giftcardInfo" },
{
"addTime",
Tools.GenerateTimeStamp().ToString()
},
{ "value1", creadNo },
{ "value2", selectAccount }
};
object obj = Tools.Todejosn<object>(reust);
if ((int)Tools.GetDynamic((dynamic)obj, "status", -1) == 0)
{
Dictionary<string, object> dataSource = ((dynamic)obj)["codeInfo"];
string code = Tools.GetDynamic(dataSource, "code", "");
string dynamic = Tools.GetDynamic(dataSource, "productTypeDesc", "");
int dynamic2 = Tools.GetDynamic(dataSource, "status", 0);
decimal dynamic3 = Tools.GetDynamic(dataSource, "amount", 0m);
long dynamic4 = Tools.GetDynamic(dataSource, "recipientDsId", 0L);
if (dynamic4 != 0L)
{
}
string dynamic5 = Tools.GetDynamic(dataSource, "salesOrg", "");
string[] array = dynamic.Split('-');
string text = array[array.Length - 1].Trim();
string text2 = AppleUtlis.GetAreaByCode(text.Trim(), addArer: true);
if (text2 == text)
{
dynamic5 = AppleUtlis.GetNameBydisplayName(dynamic5);
text2 = dynamic5;
}
IEnumerable<ListViewItem> enumerable = from ListViewItem c in listGiftcardInfo.Items
where c.SubItems[1].Text.ToUpper() == code.ToUpper()
select c;
Color foreColor = Color.Black;
string[] array2 = AppSysConfig.getConfig("CardInfoStatus").Split('|');
if (ckMerchModel.Checked)
{
array2 = AppSysConfig.getConfig("CardInfoMerchModelStatus").Split('|');
}
string value = "未知(" + dynamic2 + ")";
string[] array3 = array2;
for (int i = 0; i < array3.Length; i++)
{
string[] array4 = array3[i].Split(',');
if (array4[0] == dynamic2.ToString())
{
foreColor = Color.FromName(array4[2]);
value = array4[1];
break;
}
}
Font font = new Font(Font, FontStyle.Bold);
foreach (ListViewItem item in enumerable)
{
item.SubItems[2].Text = dynamic3.ToString();
item.SubItems[3].Text = text2;
item.SubItems[4].Text = dynamic;
item.SubItems[5].Text = selectDsid;
if (dynamic4.ToString() == selectDsid)
{
item.SubItems[5].Font = font;
item.SubItems[6].Font = font;
item.SubItems[5].ForeColor = Color.DarkCyan;
item.SubItems[6].ForeColor = Color.DarkCyan;
}
item.SubItems[6].Text = dynamic4.ToString();
item.SubItems[7].Text = value;
item.SubItems[7].Font = font;
item.SubItems[7].ForeColor = foreColor;
item.SubItems[8].Text = "查询完成";
item.SubItems[9].Text = DateTime.Now.ToString("MM-dd HH:mm");
}
dictionary.Add("value3", dynamic3.ToString());
dictionary.Add("value4", text2);
dictionary.Add("value5", dynamic);
dictionary.Add("value6", selectDsid);
dictionary.Add("value7", dynamic4.ToString());
dictionary.Add("value8", value);
dictionary.Add("value9", "查询完成");
}
else
{
string value2 = Tools.GetDynamic((dynamic)obj, "msg", "-");
foreach (ListViewItem item2 in from ListViewItem c in listGiftcardInfo.Items
where c.SubItems[1].Text.ToUpper() == creadNo.ToUpper()
select c)
{
item2.SubItems[8].Text = value2;
item2.SubItems[9].Text = DateTime.Now.ToString("MM-dd HH:mm");
}
dictionary.Add("value9", value2);
}
SqliteHelper.ExecuteInsert("itunes_db", dictionary);
}
foreach (ListViewItem item3 in from ListViewItem c in listGiftcardInfo.Items
where c.SubItems[1].Text.ToUpper() == creadNo.ToUpper()
select c)
{
switch (type)
{
case DisplyType.chongzhi:
{
item3.SubItems[2].Text = "-";
item3.SubItems[3].Text = "-";
item3.SubItems[4].Text = "";
item3.SubItems[5].Text = "";
item3.SubItems[6].Text = "";
item3.SubItems[7].Text = "-";
item3.SubItems[7].ForeColor = Color.Black;
Font font2 = new Font(Font, FontStyle.Regular);
item3.Font = font2;
item3.SubItems[8].Text = reust;
item3.SubItems[9].Text = "";
break;
}
case DisplyType.xinxi:
item3.SubItems[8].Text = reust;
break;
}
}
}
catch (Exception ex)
{
APIUtlis.ApiSeriveError(ex);
}
});
}
private void listViewItemInit(string code, string reust)
{
ListViewItem listViewItem = new ListViewItem((listGiftcardInfo.Items.Count + 1).ToString());
string text = code.Replace(" ", "").Replace("-", "").Trim();
listViewItem.SubItems.Add(text.Trim());
listViewItem.SubItems.Add("-");
listViewItem.SubItems.Add("-");
listViewItem.SubItems.Add("");
listViewItem.SubItems.Add("");
listViewItem.SubItems.Add("");
listViewItem.SubItems.Add("-");
listViewItem.SubItems.Add(reust);
listViewItem.SubItems.Add("");
listViewItem.UseItemStyleForSubItems = false;
listGiftcardInfo.Items.Insert(0, listViewItem);
string[] array = txtGiftcard.Text.Split('\n');
foreach (string text2 in array)
{
if (text2.Trim().StartsWith(code))
{
txtGiftcard.Text = txtGiftcard.Text.Replace(text2 + "\n", "");
if (!string.IsNullOrEmpty(text2))
{
txtGiftcard.Text = txtGiftcard.Text.Replace(text2, "");
}
}
}
}
public HttpResult getGiftCardInfo(string code, AppleItunesLogin itunesLogin, ItunesUtlis utlis)
{
string text = "https://p" + itunesLogin.ServerId + "-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/getCodeInfoSrv?code=" + code.Trim() + "&guid=" + itunesLogin.Guid;
Dictionary<string, string> dictionary = new Dictionary<string, string>();
dictionary.Add("X-Apple-Store-Front", itunesLogin.software);
return utlis.getItunesWebContext(text, text, itunesLogin, dictionary, addToken: true);
}
public HttpResult getGiftCardInfo(string code, string appleId, string applePwd, string guid, int serverIndex)
{
return APIUtlis.serviceSend(Tools.Toenjson(new Dictionary<string, object>
{
{ "appleId", appleId },
{ "applePwd", applePwd },
{ "guid", guid },
{ "code", code },
{ "serviceIndex", serverIndex },
{ "type", "IGetCodeInfoSrv" }
}));
}
private void txtLoadAccount_Enter(object sender, EventArgs e)
{
if (txtGiftcardInfoLoadAccount.Text == "账号输入格式xxxx@xxx.com----密码")
{
txtGiftcardInfoLoadAccount.Text = "";
}
}
private void txtLoadAccount_Leave(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(txtGiftcardInfoLoadAccount.Text))
{
txtGiftcardInfoLoadAccount.Text = "账号输入格式xxxx@xxx.com----密码";
}
}
private void btnStopGiftcardInfo_Click(object sender, EventArgs e)
{
base.taskState.Stop();
}
private void button1_Click(object sender, EventArgs e)
{
List<AppleAcount> list = AppleUtlis.accountInput(txtGiftcardInfoLoadAccount.Text.Trim());
if (list.Count == 1)
{
SwitchingLoginid(list[0], ckGiftcardInfoVpn.Checked, ckDuplicate.Checked, 1);
}
else
{
MessageBox.Show("请在左侧输入账号和密码");
}
}
private void btnEmptyLogList_Click(object sender, EventArgs e)
{
if (MessageBox.Show("确认清空列表数据吗", "提示", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
listGiftcardInfo.Items.Clear();
}
}
private void btnExprtGiftcardInfo_Click(object sender, EventArgs e)
{
ExperList(listGiftcardInfo);
}
private void btnGiftcardInfoLog_Click(object sender, EventArgs e)
{
FromDBDataQuery fromDBDataQuery = new FromDBDataQuery();
fromDBDataQuery.sqlTitle = new Dictionary<string, string>
{
{ "value1", "卡号|150" },
{ "value2", "查询账号|150" },
{ "value3", "初始金额|80" },
{ "value4", "卡国家|80" },
{ "value5", "卡类型|100" },
{ "value6", "查询的Dsid|90" },
{ "value7", "使用的Dsis|90" },
{ "value8", "卡状态|80" },
{ "value9", "信息|100" }
};
fromDBDataQuery.type = "giftcardInfo";
fromDBDataQuery.typeName = "礼品卡信息查询";
fromDBDataQuery.Show();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
ListView listView = listGiftcardInfo;
foreach (ListViewItem selectedItem in listView.SelectedItems)
{
listView.Items.Remove(selectedItem);
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (txtGiftcardInfoLoadAccount.Text != "账号输入格式xxxx@xxx.com----密码")
{
List<AppleAcount> list = AppleUtlis.accountInput(txtGiftcardInfoLoadAccount.Text.Trim());
if (list.Count == 1)
{
ConfigUtlis.saveConfigKey("ckGiftcardInfoVpn", ckGiftcardInfoVpn.Checked.ToString());
ConfigUtlis.saveConfigKey("txtGiftcardInfoLoadAccount", txtGiftcardInfoLoadAccount.Text.Trim());
List<AppleAcount> list2 = new List<AppleAcount>();
foreach (ListViewItem selectedItem in listGiftcardInfo.SelectedItems)
{
list2.Add(new AppleAcount
{
reddemCode = selectedItem.SubItems[1].Text.Trim()
});
}
StartGiftcardInfo(list2, ckGiftcardInfoVpn.Checked, ckDuplicate.Checked, list[0].appleId, list[0].applePwd, isAgain: true);
}
else
{
MessageBox.Show("账号输入格式不正确");
txtGiftcardInfoLoadAccount.Focus();
}
}
else
{
MessageBox.Show("请输入账号");
txtGiftcardInfoLoadAccount.Focus();
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
ListView listView = listGiftcardInfo;
string text = "";
foreach (ListViewItem selectedItem in listView.SelectedItems)
{
text += selectedItem.SubItems[1].Text;
text += "\n";
}
if (text.Length > 0)
{
try
{
Clipboard.SetText(text);
MessageBox.Show("复制成功");
}
catch (Exception)
{
MessageBox.Show("复制失败");
}
}
}
private void ToolStripMenuItem1_Click(object sender, EventArgs e)
{
try
{
IDataObject dataObject = Clipboard.GetDataObject();
if (dataObject.GetDataPresent(DataFormats.Text))
{
txtGiftcard.Text = (string)dataObject.GetData(DataFormats.Text);
}
}
catch (Exception)
{
MessageBox.Show("粘贴失败");
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
copy();
}
private void ckMerchModel_CheckedChanged(object sender, EventArgs e)
{
ConfigUtlis.saveConfigKey("ckMerchModel", ckMerchModel.Checked.ToString());
}
private void btnGiftcardBalance_Click(object sender, EventArgs e)
{
if (mainFrom != null)
{
string formKey = "FormGiftcardBalance";
mainFrom.ShowFromItem<FormGiftcardBalance>(formKey);
}
}
protected override void Dispose(bool disposing)
{
if (disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.txtGiftcard = new System.Windows.Forms.RichTextBox();
this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.labError = new System.Windows.Forms.Label();
this.label45 = new System.Windows.Forms.Label();
this.txtGiftcardInfoLoadAccount = new System.Windows.Forms.TextBox();
this.listGiftcardInfo = new System.Windows.Forms.ListView();
this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
this.columnHeader14 = new System.Windows.Forms.ColumnHeader();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ckGiftcardInfoVpn = new System.Windows.Forms.CheckBox();
this.labRemovePayDianShu = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.btnExprtGiftcardInfo = new System.Windows.Forms.Button();
this.btnStopGiftcardInfo = new System.Windows.Forms.Button();
this.btnGiftcardInfoLog = new System.Windows.Forms.Button();
this.btnStartGiftcardInfo = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.labMsg = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.txtDsid = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.ckDuplicate = new System.Windows.Forms.CheckBox();
this.label3 = new System.Windows.Forms.Label();
this.btnEmptyLogList = new System.Windows.Forms.Button();
this.ckMerchModel = new System.Windows.Forms.CheckBox();
this.label4 = new System.Windows.Forms.Label();
this.btnGiftcardBalance = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.contextMenuStrip2.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.groupBox5.SuspendLayout();
this.panel1.SuspendLayout();
base.SuspendLayout();
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(19, 44);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(444, 197);
this.tabControl1.TabIndex = 55;
this.tabPage1.Controls.Add(this.txtGiftcard);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(436, 171);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "礼品卡代码";
this.tabPage1.UseVisualStyleBackColor = true;
this.txtGiftcard.ContextMenuStrip = this.contextMenuStrip2;
this.txtGiftcard.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtGiftcard.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.txtGiftcard.Location = new System.Drawing.Point(3, 3);
this.txtGiftcard.Name = "txtGiftcard";
this.txtGiftcard.Size = new System.Drawing.Size(430, 165);
this.txtGiftcard.TabIndex = 0;
this.txtGiftcard.Text = "";
this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[1] { this.ToolStripMenuItem1 });
this.contextMenuStrip2.Name = "contextMenuStrip2";
this.contextMenuStrip2.Size = new System.Drawing.Size(101, 26);
this.ToolStripMenuItem1.Name = "粘贴ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(100, 22);
this.ToolStripMenuItem1.Text = "粘贴";
this.ToolStripMenuItem1.Click += new System.EventHandler(ToolStripMenuItem1_Click);
this.labError.AutoSize = true;
this.labError.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
this.labError.ForeColor = System.Drawing.Color.Red;
this.labError.Location = new System.Drawing.Point(485, 257);
this.labError.Name = "labError";
this.labError.Size = new System.Drawing.Size(0, 14);
this.labError.TabIndex = 54;
this.label45.AutoSize = true;
this.label45.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.label45.ForeColor = System.Drawing.Color.Firebrick;
this.label45.Location = new System.Drawing.Point(16, 14);
this.label45.Name = "label45";
this.label45.Size = new System.Drawing.Size(45, 17);
this.label45.TabIndex = 53;
this.label45.Text = "登录ID";
this.txtGiftcardInfoLoadAccount.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.txtGiftcardInfoLoadAccount.Location = new System.Drawing.Point(67, 11);
this.txtGiftcardInfoLoadAccount.Name = "txtGiftcardInfoLoadAccount";
this.txtGiftcardInfoLoadAccount.Size = new System.Drawing.Size(372, 23);
this.txtGiftcardInfoLoadAccount.TabIndex = 52;
this.txtGiftcardInfoLoadAccount.Text = "账号输入格式xxxx@xxx.com----密码";
this.txtGiftcardInfoLoadAccount.Enter += new System.EventHandler(txtLoadAccount_Enter);
this.txtGiftcardInfoLoadAccount.Leave += new System.EventHandler(txtLoadAccount_Leave);
this.listGiftcardInfo.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
this.listGiftcardInfo.Columns.AddRange(new System.Windows.Forms.ColumnHeader[10] { this.columnHeader8, this.columnHeader9, this.columnHeader12, this.columnHeader14, this.columnHeader1, this.columnHeader5, this.columnHeader2, this.columnHeader3, this.columnHeader6, this.columnHeader4 });
this.listGiftcardInfo.ContextMenuStrip = this.contextMenuStrip1;
this.listGiftcardInfo.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.listGiftcardInfo.FullRowSelect = true;
this.listGiftcardInfo.HideSelection = false;
this.listGiftcardInfo.Location = new System.Drawing.Point(12, 286);
this.listGiftcardInfo.Name = "listGiftcardInfo";
this.listGiftcardInfo.Size = new System.Drawing.Size(1037, 327);
this.listGiftcardInfo.TabIndex = 51;
this.listGiftcardInfo.UseCompatibleStateImageBehavior = false;
this.listGiftcardInfo.View = System.Windows.Forms.View.Details;
this.columnHeader8.Text = "序号";
this.columnHeader8.Width = 50;
this.columnHeader9.Text = "礼品卡代码";
this.columnHeader9.Width = 150;
this.columnHeader12.Text = "初始金额";
this.columnHeader12.Width = 80;
this.columnHeader14.Text = "卡国家";
this.columnHeader14.Width = 80;
this.columnHeader1.Text = "卡类型";
this.columnHeader1.Width = 80;
this.columnHeader5.Text = "查询的Dsid";
this.columnHeader5.Width = 100;
this.columnHeader2.Text = "使用者DsId";
this.columnHeader2.Width = 100;
this.columnHeader3.Text = "状态";
this.columnHeader3.Width = 110;
this.columnHeader6.Text = "信息";
this.columnHeader6.Width = 170;
this.columnHeader4.Text = "查询时间";
this.columnHeader4.Width = 100;
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[4] { this.ToolStripMenuItem, this.ToolStripMenuItem, this.ToolStripMenuItem, this.ToolStripMenuItem });
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(161, 92);
this.ToolStripMenuItem.Name = "删除ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
this.ToolStripMenuItem.Text = "删除";
this.ToolStripMenuItem.Click += new System.EventHandler(ToolStripMenuItem_Click);
this.ToolStripMenuItem.Name = "重新执行ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
this.ToolStripMenuItem.Text = "重新执行";
this.ToolStripMenuItem.Click += new System.EventHandler(ToolStripMenuItem_Click);
this.ToolStripMenuItem.Name = "复制ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
this.ToolStripMenuItem.Text = "复制";
this.ToolStripMenuItem.Click += new System.EventHandler(ToolStripMenuItem_Click);
this.ToolStripMenuItem.Name = "复制礼品卡代码ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
this.ToolStripMenuItem.Text = "复制礼品卡代码";
this.ToolStripMenuItem.Click += new System.EventHandler(ToolStripMenuItem_Click);
this.ckGiftcardInfoVpn.AutoSize = true;
this.ckGiftcardInfoVpn.ForeColor = System.Drawing.Color.Red;
this.ckGiftcardInfoVpn.Location = new System.Drawing.Point(19, 255);
this.ckGiftcardInfoVpn.Name = "ckGiftcardInfoVpn";
this.ckGiftcardInfoVpn.Size = new System.Drawing.Size(108, 16);
this.ckGiftcardInfoVpn.TabIndex = 50;
this.ckGiftcardInfoVpn.Text = "使用随机IP代理";
this.ckGiftcardInfoVpn.UseVisualStyleBackColor = true;
this.labRemovePayDianShu.AutoSize = true;
this.labRemovePayDianShu.Font = new System.Drawing.Font("微软雅黑", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
this.labRemovePayDianShu.ForeColor = System.Drawing.Color.Crimson;
this.labRemovePayDianShu.Location = new System.Drawing.Point(293, 252);
this.labRemovePayDianShu.Name = "labRemovePayDianShu";
this.labRemovePayDianShu.Size = new System.Drawing.Size(18, 19);
this.labRemovePayDianShu.TabIndex = 48;
this.labRemovePayDianShu.Text = "0";
this.label31.AutoSize = true;
this.label31.Location = new System.Drawing.Point(228, 255);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(65, 12);
this.label31.TabIndex = 47;
this.label31.Text = "消耗点数:";
this.groupBox5.Controls.Add(this.btnExprtGiftcardInfo);
this.groupBox5.Controls.Add(this.btnStopGiftcardInfo);
this.groupBox5.Controls.Add(this.btnGiftcardInfoLog);
this.groupBox5.Controls.Add(this.btnStartGiftcardInfo);
this.groupBox5.Location = new System.Drawing.Point(474, 44);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(161, 193);
this.groupBox5.TabIndex = 46;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "操作";
this.btnExprtGiftcardInfo.Location = new System.Drawing.Point(15, 115);
this.btnExprtGiftcardInfo.Name = "btnExprtGiftcardInfo";
this.btnExprtGiftcardInfo.Size = new System.Drawing.Size(130, 24);
this.btnExprtGiftcardInfo.TabIndex = 9;
this.btnExprtGiftcardInfo.Text = "导出记录";
this.btnExprtGiftcardInfo.UseVisualStyleBackColor = true;
this.btnExprtGiftcardInfo.Click += new System.EventHandler(btnExprtGiftcardInfo_Click);
this.btnStopGiftcardInfo.Location = new System.Drawing.Point(15, 72);
this.btnStopGiftcardInfo.Name = "btnStopGiftcardInfo";
this.btnStopGiftcardInfo.Size = new System.Drawing.Size(130, 24);
this.btnStopGiftcardInfo.TabIndex = 8;
this.btnStopGiftcardInfo.Text = "停止查询";
this.btnStopGiftcardInfo.UseVisualStyleBackColor = true;
this.btnStopGiftcardInfo.Click += new System.EventHandler(btnStopGiftcardInfo_Click);
this.btnGiftcardInfoLog.Location = new System.Drawing.Point(15, 157);
this.btnGiftcardInfoLog.Name = "btnGiftcardInfoLog";
this.btnGiftcardInfoLog.Size = new System.Drawing.Size(130, 23);
this.btnGiftcardInfoLog.TabIndex = 7;
this.btnGiftcardInfoLog.Text = "信息查询记录";
this.btnGiftcardInfoLog.UseVisualStyleBackColor = true;
this.btnGiftcardInfoLog.Click += new System.EventHandler(btnGiftcardInfoLog_Click);
this.btnStartGiftcardInfo.Location = new System.Drawing.Point(15, 15);
this.btnStartGiftcardInfo.Name = "btnStartGiftcardInfo";
this.btnStartGiftcardInfo.Size = new System.Drawing.Size(130, 46);
this.btnStartGiftcardInfo.TabIndex = 6;
this.btnStartGiftcardInfo.Text = "开始查询";
this.btnStartGiftcardInfo.UseVisualStyleBackColor = true;
this.btnStartGiftcardInfo.Click += new System.EventHandler(btnStartGiftcardInfo_Click);
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.label5.Location = new System.Drawing.Point(322, 256);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(612, 17);
this.label5.TabIndex = 49;
this.label5.Text = "通过 使用者的Dsid 和 查询的Dsid 对比可以知道当前ID是否兑换了此代码查询的Dsid为当前登录的Id的 dsid";
this.labMsg.AutoSize = true;
this.labMsg.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.labMsg.Location = new System.Drawing.Point(659, 62);
this.labMsg.Name = "labMsg";
this.labMsg.Size = new System.Drawing.Size(0, 17);
this.labMsg.TabIndex = 56;
this.button1.Location = new System.Drawing.Point(510, 11);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(130, 23);
this.button1.TabIndex = 57;
this.button1.Text = "查询账号 Dsid";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(button1_Click);
this.txtDsid.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.txtDsid.Location = new System.Drawing.Point(52, 10);
this.txtDsid.Name = "txtDsid";
this.txtDsid.ReadOnly = true;
this.txtDsid.Size = new System.Drawing.Size(121, 23);
this.txtDsid.TabIndex = 58;
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.label1.Location = new System.Drawing.Point(11, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 17);
this.label1.TabIndex = 59;
this.label1.Text = "Dsid :";
this.panel1.Controls.Add(this.txtDsid);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(764, 84);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(190, 47);
this.panel1.TabIndex = 60;
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(658, 17);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(155, 12);
this.label2.TabIndex = 61;
this.label2.Text = "单独查询 Dsid 扣除5个点数";
this.ckDuplicate.AutoSize = true;
this.ckDuplicate.Location = new System.Drawing.Point(448, 15);
this.ckDuplicate.Name = "ckDuplicate";
this.ckDuplicate.Size = new System.Drawing.Size(60, 16);
this.ckDuplicate.TabIndex = 62;
this.ckDuplicate.Text = "有双重";
this.ckDuplicate.UseVisualStyleBackColor = true;
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
this.label3.Location = new System.Drawing.Point(649, 215);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(268, 34);
this.label3.TabIndex = 63;
this.label3.Text = "请注意:初始金额不等于卡内余额\r\n如需要查询具体金额请使用 礼品卡查余额 功能";
this.btnEmptyLogList.Location = new System.Drawing.Point(944, 254);
this.btnEmptyLogList.Name = "btnEmptyLogList";
this.btnEmptyLogList.Size = new System.Drawing.Size(97, 23);
this.btnEmptyLogList.TabIndex = 64;
this.btnEmptyLogList.Text = "清空列表";
this.btnEmptyLogList.UseVisualStyleBackColor = true;
this.btnEmptyLogList.Click += new System.EventHandler(btnEmptyLogList_Click);
this.ckMerchModel.AutoSize = true;
this.ckMerchModel.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.ckMerchModel.ForeColor = System.Drawing.SystemColors.HotTrack;
this.ckMerchModel.Location = new System.Drawing.Point(139, 253);
this.ckMerchModel.Name = "ckMerchModel";
this.ckMerchModel.Size = new System.Drawing.Size(75, 21);
this.ckMerchModel.TabIndex = 65;
this.ckMerchModel.Text = "卡商模式";
this.ckMerchModel.UseVisualStyleBackColor = true;
this.ckMerchModel.CheckedChanged += new System.EventHandler(ckMerchModel_CheckedChanged);
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.Color.Red;
this.label4.Location = new System.Drawing.Point(643, 142);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(74, 22);
this.label4.TabIndex = 66;
this.label4.Text = "功能无效";
this.btnGiftcardBalance.Font = new System.Drawing.Font("微软雅黑", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
this.btnGiftcardBalance.Location = new System.Drawing.Point(863, 195);
this.btnGiftcardBalance.Name = "btnGiftcardBalance";
this.btnGiftcardBalance.Size = new System.Drawing.Size(178, 29);
this.btnGiftcardBalance.TabIndex = 67;
this.btnGiftcardBalance.Tag = "13";
this.btnGiftcardBalance.Text = "礼品卡查余额";
this.btnGiftcardBalance.UseVisualStyleBackColor = true;
this.btnGiftcardBalance.Click += new System.EventHandler(btnGiftcardBalance_Click);
base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
base.ClientSize = new System.Drawing.Size(1053, 619);
base.Controls.Add(this.btnGiftcardBalance);
base.Controls.Add(this.label4);
base.Controls.Add(this.ckMerchModel);
base.Controls.Add(this.btnEmptyLogList);
base.Controls.Add(this.label3);
base.Controls.Add(this.ckDuplicate);
base.Controls.Add(this.label2);
base.Controls.Add(this.panel1);
base.Controls.Add(this.button1);
base.Controls.Add(this.labMsg);
base.Controls.Add(this.tabControl1);
base.Controls.Add(this.labError);
base.Controls.Add(this.label45);
base.Controls.Add(this.txtGiftcardInfoLoadAccount);
base.Controls.Add(this.listGiftcardInfo);
base.Controls.Add(this.ckGiftcardInfoVpn);
base.Controls.Add(this.label5);
base.Controls.Add(this.labRemovePayDianShu);
base.Controls.Add(this.label31);
base.Controls.Add(this.groupBox5);
base.MaximizeBox = false;
base.Name = "FormGiftcardInfo";
base.ShowIcon = false;
base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "礼品卡信息查询";
base.Load += new System.EventHandler(FormGiftcardInfo_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.contextMenuStrip2.ResumeLayout(false);
this.contextMenuStrip1.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
}
}