private void BtnSearch_Click(object sender, EventArgs e) { this.BtnSearch.Enabled = false; this.RoleInfoView.DataSource = null; this.dataGridView1.DataSource = null; this.CmbPage.Items.Clear(); CEnum.Message_Body[] mContent = new CEnum.Message_Body[4]; mContent[0].eName = CEnum.TagName.RayCity_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[1].eName = CEnum.TagName.RayCity_GuildName; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; //mContent[1].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_RCode.iPageSize + 1; ; mContent[1].oContent = this.txtGuildName.Text.ToString(); mContent[2].eName = CEnum.TagName.Index; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; //mContent[1].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_RCode.iPageSize + 1; ; mContent[2].oContent = 1; mContent[3].eName = CEnum.TagName.PageSize; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = Operation_RCode.iPageSize; backgroundWorkerSerch.RunWorkerAsync(mContent); }
private void backgroundWorkerFormLoad_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { mServerInfo = Operation_RCode.GetServerList(this.m_ClientEvent, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerInitCombobox_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show("Θ杆称礚癘魁"); return; } Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, TradeInfoView, out iPageCount); if (iPageCount <= 1) { label8.Visible = false; comboBox1.Visible = false; } else { for (int i = 0; i < iPageCount; i++) { comboBox1.Items.Add(i + 1); } comboBox1.SelectedIndex = 0; bFirst = true; label8.Visible = true; comboBox1.Visible = true; } }
private void BtnSearch_Click(object sender, EventArgs e) { if (TxtAccount.Text.Length > 0 || TxtNick.Text.Length > 0) { this.BtnSearch.Enabled = false; this.RoleInfoView.DataSource = null; this.dataGridView1.DataSource = null; this.comboBox2.Items.Clear(); CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.RayCity_NyUserID; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtAccount.Text; mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.RayCity_NyNickName; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = TxtNick.Text; mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 1; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; backgroundWorkerSerch.RunWorkerAsync(mContent); } }
private void FrmQueryPlayerID_Load(object sender, EventArgs e) { try { IntiFontLib(); CmbServer.SelectedIndex = 0; BtnSearch.Enabled = false; PnlPage.Visible = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.ServerInfo_GameDBID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = 1; mContent[1].eName = CEnum.TagName.ServerInfo_GameID; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = m_ClientEvent.GetInfo("GameID_RC"); lock (typeof(C_Event.CSocketEvent)) { mServerInfo = Operation_RCode.GetServerList(this.m_ClientEvent, mContent); } BtnSearch.Enabled = true; } catch { } }
private void backgroundWorkerSerch_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { try { this.BtnSearch.Enabled = true; CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, RoleInfoView, out iPageCount); if (iPageCount <= 1) { PnlPage.Visible = false; } else { for (int i = 0; i < iPageCount; i++) { comboBox2.Items.Add(i + 1); } bFirst = true; comboBox2.SelectedIndex = 0; PnlPage.Visible = true; } } catch (Exception Exp1) { MessageBox.Show(Exp1.Message); } }
private void Frm_SDO_Pwd_Load(object sender, EventArgs e) { try { IntiFontLib(); CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.ServerInfo_GameDBID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = 1; mContent[1].eName = CEnum.TagName.ServerInfo_GameID; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = m_ClientEvent.GetInfo("GameID_RC"); mServerInfo = Operation_RCode.GetServerList(this.m_ClientEvent, mContent); if (mServerInfo[0, 0].eName != CEnum.TagName.ERROR_Msg) { CmbServer = Operation_RCode.BuildCombox(mServerInfo, CmbServer); CmbServer.SelectedIndex = 0; } } catch { } BtnSearch.Enabled = false; }
private void backgroundWorkerSerch_DoWork(object sender, DoWorkEventArgs e) { lock (typeof(C_Event.CSocketEvent)) { e.Result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_BasicAccount_Query, (CEnum.Message_Body[])e.Argument); } }
private void backgroundWorkerTradeInfo_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { BtnTradeSearch.Enabled = true; CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, TradeInfoView, out iPageCount); if (iPageCount <= 1) { CmbPage.Visible = false; label6.Visible = false; } else { for (int i = 0; i < iPageCount; i++) { CmbPage.Items.Add(i + 1); } CmbPage.SelectedIndex = 0; bFirst = true; CmbPage.Visible = true; label6.Visible = true; } }
private void backgroundWorkerSerch_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.BtnSearch.Enabled = true; CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } else { strCharIDX = mResult[0, 2].oContent.ToString(); CEnum.Message_Body[] mContent = new CEnum.Message_Body[3]; mContent[0].eName = CEnum.TagName.RayCity_CharacterID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = int.Parse(strCharIDX); mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.UserByID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); this.backgroundWorkerResearch.RunWorkerAsync(mContent); } }
private void backgroundWorkerSerch_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { BtnSearch.Enabled = true; CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); BtnSearch.Enabled = true; return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, dataGridView1, out iPageCount); } if (iPageCount <= 1) { PnlPage.Visible = false; this.label3.Visible = false; this.comboBox2.Visible = false; } else { for (int i = 0; i < iPageCount; i++) { comboBox2.Items.Add(i + 1); } comboBox2.SelectedIndex = 0; bFirst = true; PnlPage.Visible = true; this.label3.Visible = true; this.comboBox2.Visible = true; } }
/// <summary> /// 耋靡備 /// </summary> private void GetChannelList() { CEnum.Message_Body[] mContent = new CEnum.Message_Body[2]; mContent[0].eName = CEnum.TagName.ServerInfo_GameDBID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = 1; mContent[1].eName = CEnum.TagName.ServerInfo_GameID; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = m_ClientEvent.GetInfo("GameID_RC"); lock (typeof(C_Event.CSocketEvent)) { mChannelInfo = Operation_RCode.GetServerList(this.m_ClientEvent, mContent); } if (mChannelInfo[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mChannelInfo[0, 0].oContent.ToString()); return; } TxtCode.Items.Clear(); for (int i = 0; i < mChannelInfo.GetLength(0); i++) { TxtCode.Items.Add(mChannelInfo[i, 1].oContent.ToString()); } //tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_RCode.GetItemAddr(mChannelInfo, CmbServer.Text)); }
private void backgroundWorkerSearch1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, RoleInfoView, out iPageCount); }
private void InitComboboxInfo() { try { CEnum.Message_Body[,] mResult = null; CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[5]; mContent2[0].eName = CEnum.TagName.RayCity_ItemName; mContent2[0].eTag = CEnum.TagFormat.TLV_STRING; mContent2[0].oContent = textBox1.Text; mContent2[1].eName = CEnum.TagName.Index; mContent2[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent2[1].oContent = 1; mContent2[2].eName = CEnum.TagName.PageSize; mContent2[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent2[2].oContent = Operation_RCode.iPageSize; mContent2[3].eName = CEnum.TagName.RayCity_ItemID; mContent2[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent2[3].oContent = int.Parse(this.txtCode.Text); mContent2[4].eName = CEnum.TagName.RayCity_ServerIP; mContent2[4].eTag = CEnum.TagFormat.TLV_STRING; mContent2[4].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text); lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_ItemShop_Query, mContent2); } if (mResult.GetLength(1) == 3) { for (int i = 0; i < mResult.GetLength(0); i++) { itemEx item1 = new itemEx(mResult[i, 0].oContent.ToString(), mResult[i, 1].oContent.ToString()); Operation_RCode.BuildCombox(mResult, CmbPlayerItem, ssd); this.CmbPlayerItem.Items.Add(item1); } this.CmbPlayerItem.SelectedIndex = 0; } else { MessageBox.Show("没有道具列表"); } } catch (Exception ex) { } }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { try { if (bFirst) { CEnum.Message_Body[] mContent = new CEnum.Message_Body[6]; mContent[0].eName = CEnum.TagName.RayCity_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[1].eName = CEnum.TagName.RayCity_BeginDate; mContent[1].eTag = CEnum.TagFormat.TLV_TIMESTAMP; mContent[1].oContent = DptStart.Value; mContent[2].eName = CEnum.TagName.RayCity_EndDate; mContent[2].eTag = CEnum.TagFormat.TLV_TIMESTAMP; mContent[2].oContent = DptEnd.Value; mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = int.Parse(CmbPage.Text); mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; mContent[5].eName = CEnum.TagName.RayCity_CharacterID; mContent[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[5].oContent = int.Parse(strCarIDX); CEnum.Message_Body[,] mResult = null; lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_ItemConsume_Query, mContent); } if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, RoleInfoView, out iPageCount); } } } catch { } }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { CEnum.Message_Body[] mContent2 = new CEnum.Message_Body[7]; mContent2[0].eName = CEnum.TagName.RayCity_ServerIP; mContent2[0].eTag = CEnum.TagFormat.TLV_STRING; mContent2[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text); mContent2[1].eName = CEnum.TagName.RayCity_CharacterID; mContent2[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent2[1].oContent = Convert.ToInt32(this.TxtCharinfo.Text); mContent2[2].eName = CEnum.TagName.RayCity_BeginDate; mContent2[2].eTag = CEnum.TagFormat.TLV_DATE; mContent2[2].oContent = DtpBegin.Value; mContent2[3].eName = CEnum.TagName.RayCity_EndDate; mContent2[3].eTag = CEnum.TagFormat.TLV_DATE; mContent2[3].oContent = DtpEnd.Value; mContent2[4].eName = CEnum.TagName.Index; mContent2[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent2[4].oContent = int.Parse(CmbPage.Text); mContent2[5].eName = CEnum.TagName.PageSize; mContent2[5].eTag = CEnum.TagFormat.TLV_INTEGER; mContent2[5].oContent = Operation_RCode.iPageSize; itemEx item = (itemEx)this.CmbState.SelectedItem; mContent2[6].eName = CEnum.TagName.RayCity_TradeSessionState; mContent2[6].eTag = CEnum.TagFormat.TLV_INTEGER; mContent2[6].oContent = int.Parse(item.Tag); CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_TradeInfo_Query, mContent2); if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(result[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, result, TradeInfoView, out iPageCount); } } }
private void backgroundWorkerServerLoad_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { CmbServer.Items.Clear(); for (int i = 0; i < mServerInfo.GetLength(0); i++) { CmbServer.Items.Add(mServerInfo[i, 1].oContent); } CmbServer.SelectedIndex = 0; bFirst = true; tmp_ClientEvent = m_ClientEvent.GetSocket(m_ClientEvent, Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text)); }
private void TradeInfoView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex >= 0 && RoleInfoView.DataSource != null) { using (DataTable dt = (DataTable)TradeInfoView.DataSource) { CEnum.Message_Body[,] mResult = null; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.RayCity_ServerIP; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = Operation_RC.GetItemAddr(mServerInfo, CmbServer.Text); mContent[1].eName = CEnum.TagName.RayCity_CharacterID; mContent[1].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[1].oContent = Convert.ToInt32(this.TxtCharinfo.Text); mContent[2].eName = CEnum.TagName.RayCity_TradeSessionIDX; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(dt.Rows[e.RowIndex][0].ToString()); mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 1; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_TradeDetail_Query, mContent); if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(result[0, 0].oContent.ToString()); return; } else { BrowseMusicName browseMusicName = new BrowseMusicName(result, iPageCount, MousePosition.X, MousePosition.Y); browseMusicName.CreateModule(null, m_ClientEvent); } } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void backgroundWorkerCarInventory_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { CEnum.Message_Body[,] mResult = (CEnum.Message_Body[, ])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, dataGridView1, out iPageCount); tabControl1.SelectedIndex = 1; } }
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { try { if (bFirst) { this.CmbPage.Enabled = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; CEnum.Message_Body[,] mResult = null; mContent[0].eName = CEnum.TagName.RayCity_NyUserID; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtAccount.Text; mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.RayCity_NyNickName; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = TxtNick.Text; mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = int.Parse(this.comboBox2.Text.ToString()); mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; lock (typeof(C_Event.CSocketEvent)) { mResult = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_BasicAccount_Query, mContent); } CmbPage.Enabled = true; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, RoleInfoView, out iPageCount); } } } catch { } }
private void BtnActive_Click(object sender, EventArgs e) { if (textBox1.Text.Length > 0) { BtnActive.Enabled = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[4]; mContent[0].eName = CEnum.TagName.RayCity_NyUserID; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = textBox1.Text; mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.UserByID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[3].eName = CEnum.TagName.RayCity_AccountState; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = ReturnNum(comboBox1.Text); CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_GMUser_Update, mContent); BtnActive.Enabled = true; if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(result[0, 0].oContent.ToString()); return; } else if (result[0, 0].eName == CEnum.TagName.Status && result[0, 0].oContent.ToString() == "SUCCESS") { MessageBox.Show("操作成功"); //BtnSearch_Click(null, null); } else { MessageBox.Show("操作失败或者帐号不存在"); } } else { MessageBox.Show("请输入帐号"); return; } }
private void BtnSearch_Click(object sender, EventArgs e) { if (TxtAccount.Text.Length > 0 || TxtNick.Text.Length > 0) { this.BtnSearch.Enabled = false; this.RoleInfoView.DataSource = null; this.CmbPage.Items.Clear(); CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.RayCity_NyUserID; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtAccount.Text; mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); if (TxtNick.Text.Length > 0) { mContent[2].eName = CEnum.TagName.RayCity_NyNickName; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = TxtNick.Text + "%%%%%"; } else { mContent[2].eName = CEnum.TagName.RayCity_NyNickName; mContent[2].eTag = CEnum.TagFormat.TLV_STRING; mContent[2].oContent = TxtNick.Text; } mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 1; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent =1; backgroundWorkerSerch.RunWorkerAsync(mContent); } else { MessageBox.Show(config.ReadConfigValue("MRC", "FQP_Code_inputid")); } }
private void backgroundWorkerSerch_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.BtnSearch.Enabled = true; CEnum.Message_Body[,] mResult = (CEnum.Message_Body[,])e.Result; if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mResult[0, 0].oContent.ToString()); return; } else { strCharIDX = mResult[0, 2].oContent.ToString(); strCarIDX = mResult[0, 3].oContent.ToString(); CEnum.Message_Body[] mContent = new CEnum.Message_Body[3]; mContent[0].eName = CEnum.TagName.RayCity_CharacterID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = int.Parse(strCharIDX); mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.UserByID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_PlayerSkill_Query, mContent); if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(result[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, result, RoleInfoView, out iPageCount); } } //Operation_RCode.BuildDataTable(this.m_ClientEvent, mResult, RoleInfoView, out iPageCount); }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { CEnum.Message_Body[] mContent = new CEnum.Message_Body[7]; mContent[0].eName = CEnum.TagName.RayCity_AccountID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = int.Parse(strCharIDX); mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.UserByID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = int.Parse(CmbPage.Text);; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; mContent[5].eName = CEnum.TagName.RayCity_BeginDate; mContent[5].eTag = CEnum.TagFormat.TLV_TIMESTAMP; mContent[5].oContent = DtpBegin.Value; mContent[6].eName = CEnum.TagName.RayCity_EndDate; mContent[6].eTag = CEnum.TagFormat.TLV_TIMESTAMP; mContent[6].oContent = DtpEnd.Value; CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_UserCharge_Query, mContent); if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(result[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, result, RoleInfoView, out iPageCount); } } }
public void InitializeMusicList() { try { C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[2]; messageBody[0].eTag = C_Global.CEnum.TagFormat.TLV_STRING; messageBody[0].eName = C_Global.CEnum.TagName.RayCity_ServerIP; messageBody[0].oContent = _serverIP; messageBody[1].eTag = C_Global.CEnum.TagFormat.TLV_INTEGER; messageBody[1].eName = C_Global.CEnum.TagName.RayCity_CharacterID; messageBody[1].oContent = _musicID; musicResult = Operation_RCode.GetResult(m_ClientEvent, CEnum.ServiceKey.RayCity_CashItemDetailLog_Query, messageBody); //CEnum.Message_Body[] mContent = new CEnum.Message_Body[1]; //mContent[0].eName = CEnum.TagName.FJ_Item_GuID; //mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; //mContent[0].oContent = this._musicID; ////musicResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.FJ_ItemName_Query, C_Global.CEnum.Msg_Category.SDO_ADMIN, mContent); //musicResult = Operation_RCode.GetResult(m_ClientEvent, CEnum.ServiceKey.FJ_ItemName_Query, mContent); //检测状态 if (musicResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg) { musicName.Text = ""; return; } musicName.Text = musicResult[0, 0].oContent.ToString(); //Operation_RCode.BuildDataTable(this.m_ClientEvent, this._result, dataGridView1, out this.iPageCount); //musicName.Text ="记录明细"; } catch (Exception ex) { //MessageBox.Show(ex.Message); } }
private void RoleInfoView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0 && RoleInfoView.DataSource != null) { using (DataTable dt = (DataTable)RoleInfoView.DataSource) { CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.RayCity_CharacterID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = int.Parse(dt.Rows[e.RowIndex][2].ToString()); mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.UserByID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 1; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_ConnectionState_Query, mContent); if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(result[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, result, dataGridView1, out iPageCount); tabControl1.SelectedIndex = 1; } } } else { return; } }
public void InitializeMusicList() { try { //C_Global.CEnum.Message_Body[] messageBody = new C_Global.CEnum.Message_Body[2]; //messageBody[0].eTag = C_Global.CEnum.TagFormat.TLV_STRING; //messageBody[0].eName = C_Global.CEnum.TagName.SDO_ServerIP; //messageBody[0].oContent = _serverIP; //messageBody[1].eTag = C_Global.CEnum.TagFormat.TLV_INTEGER; //messageBody[1].eName = C_Global.CEnum.TagName.SDO_MusicID1; //messageBody[1].oContent = _musicID; //musicResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.SDO_MUSICDATA_OWN_QUERY, C_Global.CEnum.Msg_Category.SDO_ADMIN, messageBody); //CEnum.Message_Body[] mContent = new CEnum.Message_Body[1]; //mContent[0].eName = CEnum.TagName.FJ_Item_GuID; //mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; //mContent[0].oContent = this._musicID; ////musicResult = m_ClientEvent.RequestResult(C_Global.CEnum.ServiceKey.FJ_ItemName_Query, C_Global.CEnum.Msg_Category.SDO_ADMIN, mContent); //musicResult = Operation_RCode.GetResult(m_ClientEvent, CEnum.ServiceKey.FJ_ItemName_Query, mContent); //检测状态 //if (musicResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg) //{ // musicName.Text = ""; // return; //} //musicName.Text = musicResult[0, 0].oContent.ToString(); Operation_RCode.BuildDataTable(this.m_ClientEvent, this._result, dataGridView1, out this.iPageCount); //musicName.Text = "記錄明細"; musicName.Text = config.ReadConfigValue("MRC", "FRC_CODE_LogDetail"); } catch (Exception ex) { //MessageBox.Show(ex.Message); } }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { this.CmbPage.Enabled = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.RayCity_CharacterID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = int.Parse(strCharIDX); mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.UserByID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = int.Parse(CmbPage.Text); mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; lock (typeof(C_Event.CSocketEvent)) { mMailLog = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_UserMails_Query, mContent); } CmbPage.Enabled = true; if (mMailLog[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(mMailLog[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, mMailLog, RoleInfoView, out iPageCount); } } }
private void BtnSearch_Click(object sender, EventArgs e) { if (CmbServer.Text == "") { return; } BtnSearch.Enabled = false; this.RoleInfoView.DataSource = null; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.RayCity_NyUserID; mContent[0].eTag = CEnum.TagFormat.TLV_STRING; mContent[0].oContent = TxtAccount.Text; mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); if (checkBox1.Checked == true) { mContent[2].eName = CEnum.TagName.RayCity_AccountState; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = 255; } else { mContent[2].eName = CEnum.TagName.RayCity_AccountState; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = 999; } mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = 1; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; backgroundWorkerSearch.RunWorkerAsync(mContent); }
private void CmbPage_SelectedIndexChanged(object sender, EventArgs e) { if (bFirst) { this.CmbPage.Enabled = false; CEnum.Message_Body[] mContent = new CEnum.Message_Body[5]; mContent[0].eName = CEnum.TagName.RayCity_CharacterID; mContent[0].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[0].oContent = strcarid; mContent[1].eName = CEnum.TagName.RayCity_ServerIP; mContent[1].eTag = CEnum.TagFormat.TLV_STRING; mContent[1].oContent = Operation_RCode.GetItemAddr(mServerInfo, CmbServer.Text); mContent[2].eName = CEnum.TagName.UserByID; mContent[2].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString()); mContent[3].eName = CEnum.TagName.Index; mContent[3].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[3].oContent = int.Parse(CmbPage.Text);; mContent[4].eName = CEnum.TagName.PageSize; mContent[4].eTag = CEnum.TagFormat.TLV_INTEGER; mContent[4].oContent = Operation_RCode.iPageSize; CEnum.Message_Body[,] result = Operation_RCode.GetResult(tmp_ClientEvent, CEnum.ServiceKey.RayCity_RaceLog_Query, mContent); this.CmbPage.Enabled = true; if (result[0, 0].eName == CEnum.TagName.ERROR_Msg) { MessageBox.Show(result[0, 0].oContent.ToString()); return; } else { Operation_RCode.BuildDataTable(this.m_ClientEvent, result, dataGridView1, out iPageCount); } } }