private void btnSearch_Click(object sender, EventArgs e) { CmbPage.Items.Clear(); CEnum.Message_Body[] mContent = new CEnum.Message_Body[6]; mContent[0].eName = CEnum.TagName.AU_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = "61.152.150.205"; mContent[1].eName = CEnum.TagName.AuShop_userid; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = TxtName.Text; mContent[2].eName = CEnum.TagName.AuShop_BeginDate; mContent[2].eTag = CEnum.TagFormat.TLV_DATE; mContent[2].oContent = DpkStar.Value; mContent[3].eName = CEnum.TagName.AuShop_EndDate; mContent[3].eTag = CEnum.TagFormat.TLV_DATE; mContent[3].oContent = DptStop.Value; mContent[4].eName = CEnum.TagName.Index; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = 1; mContent[5].eName = CEnum.TagName.PageSize; mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[5].oContent = Operation_Shop.iPageSize; CEnum.Message_Body[,] mResult = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_AVATARECOVER_QUERY, mContent); if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } Operation_Shop.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount); if (iPageCount <= 0) { PnlPage.Visible = false; lblPageCount.Text = "1"; } else { for (int i = 0; i < iPageCount; i++) { CmbPage.Items.Add(i + 1); } lblPageCount.Text = iPageCount.ToString(); CmbPage.SelectedIndex = 0; bFirst = true; PnlPage.Visible = true; } GrdResult.Columns[3].Visible = false; }
private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERGPURCHASE_QUERY, (CEnum.Message_Body[])e.Argument); } }
private void GrdResult_CellClick(object sender, DataGridViewCellEventArgs e) { try { DataTable mTable = (DataTable)GrdResult.DataSource; CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.AU_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = "61.152.150.205"; mContent[1].eName = CEnum.TagName.AuShop_orderid; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = mTable.Rows[e.RowIndex][3].ToString(); CEnum.Message_Body[,] mResult = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_AVATARECOVER_DETAIL_QUERY, mContent); if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } ExchangeMoreInfo mInfoFrm = new ExchangeMoreInfo(TxtName.Text, mResult, this.m_ClientEvent); mInfoFrm.ShowDialog(); } catch { } }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { lblCurrPage.Text = CmbPage.Text; CEnum.Message_Body[] mContent = new CEnum.Message_Body[6]; mContent[0].eName = CEnum.TagName.AU_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = "61.152.150.205"; mContent[1].eName = CEnum.TagName.AuShop_userid; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = TxtName.Text; mContent[2].eName = CEnum.TagName.AuShop_BeginDate; mContent[2].eTag = CEnum.TagFormat.TLV_DATE; mContent[2].oContent = DpkStar.Value; mContent[3].eName = CEnum.TagName.AuShop_EndDate; mContent[3].eTag = CEnum.TagFormat.TLV_DATE; mContent[3].oContent = DptStop.Value; mContent[4].eName = CEnum.TagName.Index; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Card.iPageSize + 1; mContent[5].eName = CEnum.TagName.PageSize; mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[5].oContent = Operation_Card.iPageSize; CEnum.Message_Body[,] mResult = null; lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), CEnum.ServiceKey.AUSHOP_AVATARECOVER_QUERY, mContent); } if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } Operation_Shop.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount); GrdResult.Columns[3].Visible = false; } else { lblCurrPage.Text = "1"; } }
private void backgroundWorkerLoad_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { ItemResult = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERINTERGRAL_QUERY, (CEnum.Message_Body[])e.Argument); } if (ItemResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(ItemResult[0, 0].oContent.ToString()); return; } else { AUServerIP = ItemResult[0, 14].oContent.ToString(); AuShopItemTable = ItemResult[0, 13].oContent.ToString(); AuShopReceiveSN = ItemResult[0, 11].oContent.ToString(); AuShopPresentID = ItemResult[0, 12].oContent.ToString(); } //¹ºÂòµÀ¾ß¼Ç¼ CEnum.Message_Body[] mContent = new CEnum.Message_Body[3]; mContent[0].eName = CEnum.TagName.ServerInfo_GameDBID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = int.Parse(AUServerIP); mContent[1].eName = CEnum.TagName.AuShop_ReceiveSN; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = int.Parse(AuShopReceiveSN); mContent[2].eName = CEnum.TagName.AuShop_PresentID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(AuShopPresentID); lock (typeof(C_Event.CSocketEvent)) { ItemBuyResult = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_AVATARECOVER_DETAIL_QUERY, mContent); } if (ItemBuyResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(ItemBuyResult[0, 0].oContent.ToString()); return; } }
private void GrdResult_CellClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex == 4) { DataTable mTable = (DataTable)GrdResult.DataSource; CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.AuShop_userid; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = mTable.Rows[e.RowIndex][4].ToString(); mContent[1].eName = CEnum.TagName.AU_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = "61.152.150.205"; lock (typeof(C_Event.CSocketEvent)) { mUserStat = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), CEnum.ServiceKey.AUSHOP_USERINTERGRAL_QUERY, mContent); } if (mUserStat[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mUserStat[0, 0].oContent.ToString()); return; } UserstatFrm mUserStatFrm = new UserstatFrm(mUserStat, m_ClientEvent); //mUserStatFrm.MdiParent = this.MdiParent; mUserStatFrm.ShowDialog(); } } catch { MessageBox.Show(config.ReadConfigValue("MAUDITION", "FSI_Code_InputName")); } }
private void GrdResult_CellClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex == 4) { DataTable mTable = (DataTable)GrdResult.DataSource; CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.AuShop_userid; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = mTable.Rows[e.RowIndex][4].ToString(); mContent[1].eName = CEnum.TagName.AU_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = "61.152.150.205"; mUserStat = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERINTERGRAL_QUERY, mContent); if (mUserStat[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mUserStat[0, 0].oContent.ToString()); return; } UserstatFrm mUserStatFrm = new UserstatFrm(mUserStat, m_ClientEvent); //mUserStatFrm.MdiParent = this.MdiParent; mUserStatFrm.ShowDialog(); } } catch { MessageBox.Show("请选择一个玩家的名字"); } }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { lblCurrPage.Text = CmbPage.Text; CEnum.Message_Body[] mContent = new CEnum.Message_Body[11]; mContent[0].eName = CEnum.TagName.AU_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = "61.152.150.205"; mContent[1].eName = CEnum.TagName.AuShop_getusername; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; if (iSort == 0) { mContent[1].oContent = ""; } else { mContent[1].oContent = TxtName.Text; } mContent[2].eName = CEnum.TagName.AuShop_username; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; if (iSort == 1) { mContent[2].oContent = ""; } else { mContent[2].oContent = TxtName.Text; } mContent[3].eName = CEnum.TagName.AuShop_BeginDate; mContent[3].eTag = CEnum.TagFormat.TLV_DATE; mContent[3].oContent = DpkStar.Value; mContent[4].eName = CEnum.TagName.AuShop_EndDate; mContent[4].eTag = CEnum.TagFormat.TLV_DATE; mContent[4].oContent = DptStop.Value; mContent[5].eName = CEnum.TagName.AuShop_psex; mContent[5].eTag = CEnum.TagFormat.TLV_STRING; mContent[5].oContent = iSex; mContent[6].eName = CEnum.TagName.AuShop_ispresent; mContent[6].eTag = CEnum.TagFormat.TLV_STRING; mContent[6].oContent = iSend; mContent[7].eName = CEnum.TagName.AuShop_islover; mContent[7].eTag = CEnum.TagFormat.TLV_STRING; mContent[7].oContent = iGift; mContent[8].eName = CEnum.TagName.AuShop_pcategory; mContent[8].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[8].oContent = iItem; mContent[9].eName = CEnum.TagName.Index; mContent[9].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[9].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Card.iPageSize + 1; mContent[10].eName = CEnum.TagName.PageSize; mContent[10].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[10].oContent = Operation_Card.iPageSize; CEnum.Message_Body[,] mResult = null; lock (typeof(C_Event.CSocketEvent)) { if (iBuy == 0) { mResult = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), CEnum.ServiceKey.AUSHOP_USERMPURCHASE_QUERY, mContent); } else { mResult = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), CEnum.ServiceKey.AUSHOP_USERGPURCHASE_QUERY, mContent); } if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } } Operation_Shop.BuildDataTable(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), mResult, GrdResult, out iPageCount); } else { lblCurrPage.Text = "1"; } }
private void BtnSearch_Click(object sender, EventArgs e) { CmbPage.Items.Clear(); //列表附值 switch (CmbSort.Text) { case "购买者": iSort = 0; break; case "接受者": iSort = 1; break; default: iSort = 0; break; } switch (CmbItem.Text) { case "所有": iItem = 0; break; case "发型": iItem = 1; break; case "上衣": iItem = 2; break; case "下衣": iItem = 3; break; case "鞋子": iItem = 4; break; case "套装": iItem = 5; break; case "特殊道具": iItem = 6; break; default: iItem = 0; break; } switch (CmbBuy.Text) { case "M币购买": iBuy = 0; break; case "G币购买": iBuy = 1; break; default: iBuy = 0; break; } switch (CmbSex.Text) { case "所有": iSex = "full"; break; case "男女共用": iSex = "all"; break; case "男": iSex = "m"; break; case "女": iSex = "f"; break; default: iSex = "all"; break; } iGift = ChkGift.Checked ? "y" : "n"; iSend = ChkSend.Checked ? "y" : "n"; CEnum.Message_Body[] mContent = new CEnum.Message_Body[11]; mContent[0].eName = CEnum.TagName.AU_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = "61.152.150.205"; mContent[1].eName = CEnum.TagName.AuShop_getusername; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; if (iSort == 0) { mContent[1].oContent = ""; } else { mContent[1].oContent = TxtName.Text; } mContent[2].eName = CEnum.TagName.AuShop_username; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; if (iSort == 1) { mContent[2].oContent = ""; } else { mContent[2].oContent = TxtName.Text; } mContent[3].eName = CEnum.TagName.AuShop_BeginDate; mContent[3].eTag = CEnum.TagFormat.TLV_DATE; mContent[3].oContent = DpkStar.Value; mContent[4].eName = CEnum.TagName.AuShop_EndDate; mContent[4].eTag = CEnum.TagFormat.TLV_DATE; mContent[4].oContent = DptStop.Value; mContent[5].eName = CEnum.TagName.AuShop_psex; mContent[5].eTag = CEnum.TagFormat.TLV_STRING; mContent[5].oContent = iSex; mContent[6].eName = CEnum.TagName.AuShop_ispresent; mContent[6].eTag = CEnum.TagFormat.TLV_STRING; mContent[6].oContent = iSend; mContent[7].eName = CEnum.TagName.AuShop_islover; mContent[7].eTag = CEnum.TagFormat.TLV_STRING; mContent[7].oContent = iGift; mContent[8].eName = CEnum.TagName.AuShop_pcategory; mContent[8].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[8].oContent = iItem; mContent[9].eName = CEnum.TagName.Index; mContent[9].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[9].oContent = 1; mContent[10].eName = CEnum.TagName.PageSize; mContent[10].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[10].oContent = Operation_Shop.iPageSize; CEnum.Message_Body[,] mResult = null; CEnum.Message_Body[,] mResultSum = null; if (iBuy == 0) { mResult = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERMPURCHASE_QUERY, mContent); mResultSum = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERMPURCHASE_SUM_QUERY, mContent); } else { mResult = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERGPURCHASE_QUERY, mContent); mResultSum = Operation_Shop.GetResult(this.m_ClientEvent, CEnum.ServiceKey.AUSHOP_USERGPURCHASE_SUM_QUERY, mContent); } if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } if (mResultSum[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } Operation_Shop.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount); if (mResultSum[0, 0].oContent != null) { LblSum.Text = "合计:" + mResultSum[0, 0].oContent.ToString(); } if (iPageCount <= 0) { PnlPage.Visible = false; lblPageCount.Text = "1"; } else { for (int i = 0; i < iPageCount; i++) { CmbPage.Items.Add(i + 1); } lblPageCount.Text = iPageCount.ToString(); CmbPage.SelectedIndex = 0; bFirst = true; PnlPage.Visible = true; } }