예제 #1
0
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            GrdResult.DataSource = null;
            CmbPage.Items.Clear();

            if (TxtSenderAccount.Text.Trim().Length > 0 || TxtReciveAccount.Text.Trim().Length > 0)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

                mContent[0].eName    = CEnum.TagName.SDO_SendUserID;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtReciveAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ReceiveNick;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = TxtSenderAccount.Text;

                mContent[2].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.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_Kart.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_ITEMSHOP_TRADE_QUERY, mContent);

                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }

                Operation_Kart.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);

                if (iPageCount <= 0)
                {
                    PnlPage.Visible = false;
                }
                else
                {
                    for (int i = 0; i < iPageCount; i++)
                    {
                        CmbPage.Items.Add(i + 1);
                    }

                    CmbPage.SelectedIndex = 0;
                    bFirst          = true;
                    PnlPage.Visible = true;
                }
            }
            else
            {
                MessageBox.Show("请输入要发送口令的帐号!");
            }
        }
예제 #2
0
        private void CmbPage_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[7];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[2].eName = CEnum.TagName.SDO_MoneyType;
                mContent[2].eTag  = CEnum.TagFormat.TLV_INTEGER;

                if (CmbType.Text == "M币")
                {
                    mContent[2].oContent = 1;
                }
                else if (CmbType.Text == "G币")
                {
                    mContent[2].oContent = 0;
                }
                else
                {
                    mContent[2].oContent = 2;
                }

                mContent[3].eName    = CEnum.TagName.SDO_BeginTime;
                mContent[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[3].oContent = DtpBegin.Value;

                mContent[4].eName    = CEnum.TagName.SDO_EndTime;
                mContent[4].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[4].oContent = DtpEnd.Value;

                mContent[5].eName    = CEnum.TagName.Index;
                mContent[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[5].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Kart.iPageSize + 1;;

                mContent[6].eName    = CEnum.TagName.PageSize;
                mContent[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[6].oContent = Operation_Kart.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_CONSUME_QUERY, mContent);

                Operation_Kart.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);
            }
        }
        private void Btn_Search_Click(object sender, EventArgs e)
        {
            LblUser.Text       = "";
            PnlInput.Visible   = true;
            GrdList.DataSource = null;

            CmbPage.Items.Clear();
            TbcResult.SelectedTab = TpgList;

            CEnum.Message_Body[] mContent = new CEnum.Message_Body[3];

            mContent[0].eName    = CEnum.TagName.SDO_ServerIP;
            mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

            mContent[1].eName    = CEnum.TagName.Index;
            mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[1].oContent = 1;

            mContent[2].eName    = CEnum.TagName.PageSize;
            mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[2].oContent = Operation_Kart.iPageSize;

            CEnum.Message_Body[,] mGetResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_MEMBERBANISHMENT_QUERY, mContent);

            //无内容显示
            if (mGetResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mGetResult[0, 0].oContent.ToString());
                return;
            }

            Operation_Kart.BuildDataTable(this.m_ClientEvent, mGetResult, GrdList, out iPageCount);

            if (iPageCount <= 0)
            {
                PnlPage.Visible = false;
            }
            else
            {
                for (int i = 0; i < iPageCount; i++)
                {
                    CmbPage.Items.Add(i + 1);
                }

                CmbPage.SelectedIndex = 0;
                bFirst          = true;
                PnlPage.Visible = true;
            }
        }
        private void CmbPage_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[3];

                mContent[0].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[1].eName    = CEnum.TagName.Index;
                mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[1].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Kart.iPageSize + 1;

                mContent[2].eName    = CEnum.TagName.PageSize;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = Operation_Kart.iPageSize;

                CEnum.Message_Body[,] mGetResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_MEMBERBANISHMENT_QUERY, mContent);

                Operation_Kart.BuildDataTable(this.m_ClientEvent, mGetResult, GrdList, out iPageCount);
            }
        }
예제 #5
0
        private void CmbPage_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];

                mContent[0].eName    = CEnum.TagName.SDO_SendUserID;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtReciveAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ReceiveNick;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = TxtSenderAccount.Text;

                mContent[2].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[3].eName    = CEnum.TagName.Index;
                mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[3].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Kart.iPageSize + 1;

                mContent[4].eName    = CEnum.TagName.PageSize;
                mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[4].oContent = Operation_Kart.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_ITEMSHOP_TRADE_QUERY, mContent);

                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }

                Operation_Kart.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);
            }
        }
        private void BtnPost_Click_1(object sender, EventArgs e)
        {
            if (TxtAccount.Text.Trim().Length > 0)
            {
                if (MessageBox.Show("确认将服务器" + CmbServer.Text + "中的帐号" + TxtAccount.Text + "停封吗?", "停封帐号", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    CEnum.Message_Body[,] mResult = null;

                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];
                    mContent[0].eName    = CEnum.TagName.SDO_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                    mContent[1].eName    = CEnum.TagName.SDO_Account;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = TxtAccount.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.SDO_REASON;
                    mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[3].oContent = TxtContent.Text;

                    mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_MEMBERSTOPSTATUS_QUERY, mContent);

                    if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        //MessageBox.Show("操作失败!");
                        MessageBox.Show(mResult[0, 0].oContent.ToString());
                        return;
                    }

                    if (mResult[0, 0].eName == CEnum.TagName.SDO_StopStatus && mResult[0, 0].oContent.ToString() == "0")
                    {
                        mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_ACCOUNT_CLOSE, mContent);

                        if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                        {
                            //MessageBox.Show("操作失败!");
                            MessageBox.Show(mResult[0, 0].oContent.ToString());
                            return;
                        }

                        if (mResult[0, 0].eName == CEnum.TagName.Status && mResult[0, 0].oContent.Equals("FAILURE"))
                        //if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                        {
                            MessageBox.Show("操作失败!");
                            return;
                        }
                        else
                        {
                            MessageBox.Show("操作成功,该帐号已经成功被停封!");

                            TxtAccount.Text = "";
                            TxtContent.Text = "";
                        }
                    }
                    else
                    {
                        MessageBox.Show("该帐号已经被停封,不能再次处理!");
                    }

                    mContent = new CEnum.Message_Body[3];

                    mContent[0].eName    = CEnum.TagName.SDO_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                    mContent[1].eName    = CEnum.TagName.Index;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[1].oContent = 1;

                    mContent[2].eName    = CEnum.TagName.PageSize;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[2].oContent = Operation_Kart.iPageSize;

                    CEnum.Message_Body[,] mGetResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_MEMBERBANISHMENT_QUERY, mContent);

                    //无内容显示
                    if (mGetResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        MessageBox.Show(mGetResult[0, 0].oContent.ToString());
                        return;
                    }

                    Operation_Kart.BuildDataTable(this.m_ClientEvent, mGetResult, GrdList, out iPageCount);

                    TxtAccount.Clear();
                    TxtContent.Clear();
                    TxtMemo.Clear();
                }
            }
            else
            {
                MessageBox.Show("请输入帐号!");
            }
        }
        private void BtnSave_Click_1(object sender, EventArgs e)
        {
            strUserNick = TxtNick.Text.Trim();
            if (strUserNick != null && strUserNick != "")
            {
                if (MessageBox.Show("解封帐号", "确认将该用户解封吗?", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[3];
                    mContent[0].eName    = CEnum.TagName.SDO_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                    mContent[1].eName    = CEnum.TagName.SDO_Account;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = strUserNick;

                    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[,] mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_ACCOUNT_OPEN, mContent);

                    if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        MessageBox.Show(mResult[0, 0].oContent.ToString());
                        return;
                    }

                    if (mResult[0, 0].eName == CEnum.TagName.Status && mResult[0, 0].oContent.Equals("FAILURE"))
                    {
                        MessageBox.Show("操作失败!");
                    }
                    else
                    {
                        MessageBox.Show("操作成功,该帐号已经成功被解封!");
                    }

                    PnlInput.Visible = false;

                    mContent = new CEnum.Message_Body[3];

                    mContent[0].eName    = CEnum.TagName.SDO_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                    mContent[1].eName    = CEnum.TagName.Index;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[1].oContent = 1;

                    mContent[2].eName    = CEnum.TagName.PageSize;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[2].oContent = Operation_Kart.iPageSize;

                    CEnum.Message_Body[,] mGetResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_MEMBERBANISHMENT_QUERY, mContent);

                    //无内容显示
                    if (mGetResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        MessageBox.Show(mGetResult[0, 0].oContent.ToString());
                        return;
                    }

                    Operation_Kart.BuildDataTable(this.m_ClientEvent, mGetResult, GrdList, out iPageCount);

                    TxtAccount.Clear();
                    TxtContent.Clear();
                    TxtMemo.Clear();
                }
            }
            else
            {
                MessageBox.Show("请输入帐号名称!");
            }
        }
예제 #8
0
        private void GetGridContent()
        {
            try
            {
                GrdList.DataSource = null;
                CmbPage.Items.Clear();
                bFirst            = false;
                ItmEdit.Enabled   = false;
                ItmDelete.Enabled = false;

                C_Global.CEnum.Message_Body[] mContent = new CEnum.Message_Body[6];

                mContent[0].eName    = CEnum.TagName.CR_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[1].eName    = CEnum.TagName.CR_ValidTime;
                mContent[1].eTag     = CEnum.TagFormat.TLV_TIMESTAMP;
                mContent[1].oContent = Convert.ToDateTime(DtpDate.Text);


                try
                {
                    mContent[2].eName    = CEnum.TagName.CR_PublishID;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[2].oContent = int.Parse(TxtID.Text.Trim());
                }
                catch
                {
                    mContent[2].eName    = CEnum.TagName.CR_PublishID;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[2].oContent = 0;
                }

                mContent[3].eName = CEnum.TagName.CR_ACTION;
                mContent[3].eTag  = CEnum.TagFormat.TLV_INTEGER;
                if (ChkOpen.Checked && !ChkClose.Checked)
                {
                    mContent[3].oContent = 1;
                }
                else if (!ChkOpen.Checked && ChkClose.Checked)
                {
                    mContent[3].oContent = 0;
                }
                else if (ChkOpen.Checked && ChkClose.Checked)
                {
                    mContent[3].oContent = 2;
                }
                else
                {
                    mContent[3].oContent = 2;
                }

                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_Kart.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.CR_CALLBOARD_QUERY, mContent);

                if (mResult[0, 0].eName == C_Global.CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }

                Operation_Kart.BuildDataTable(this.m_ClientEvent, mResult, GrdList, out iPageCount);

                if (iPageCount <= 0)
                {
                    PnlPage.Visible = false;
                }
                else
                {
                    for (int i = 0; i < iPageCount; i++)
                    {
                        CmbPage.Items.Add(i + 1);
                    }

                    CmbPage.SelectedIndex = 0;
                    bFirst          = true;
                    PnlPage.Visible = true;
                }

                ItmEdit.Enabled   = true;
                ItmDelete.Enabled = true;

                GrdList.Columns[10].HeaderText = "发布状态";
                GrdList.Columns[11].Visible    = false;
                GrdList.Columns[2].Visible     = false;
                GrdList.Columns[3].Visible     = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #9
0
        private void CmbPage_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                C_Global.CEnum.Message_Body[] mContent = new CEnum.Message_Body[6];

                mContent[0].eName    = CEnum.TagName.CR_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[1].eName    = CEnum.TagName.CR_ValidTime;
                mContent[1].eTag     = CEnum.TagFormat.TLV_TIMESTAMP;
                mContent[1].oContent = Convert.ToDateTime(DtpDate.Text);

                try
                {
                    mContent[2].eName    = CEnum.TagName.CR_PublishID;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[2].oContent = int.Parse(TxtID.Text.Trim());
                }
                catch
                {
                    mContent[2].eName    = CEnum.TagName.CR_PublishID;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[2].oContent = 0;
                }

                mContent[3].eName = CEnum.TagName.CR_ACTION;
                mContent[3].eTag  = CEnum.TagFormat.TLV_INTEGER;
                if (ChkOpen.Checked && !ChkClose.Checked)
                {
                    mContent[3].oContent = 1;
                }
                else if (!ChkOpen.Checked && ChkClose.Checked)
                {
                    mContent[3].oContent = 0;
                }
                else if (ChkOpen.Checked && ChkClose.Checked)
                {
                    mContent[3].oContent = 2;
                }
                else
                {
                    mContent[3].oContent = 2;
                }

                mContent[4].eName    = CEnum.TagName.Index;
                mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[4].oContent = (int.Parse(CmbPage.Text) - 1) * Operation_Kart.iPageSize + 1;

                mContent[5].eName    = CEnum.TagName.PageSize;
                mContent[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[5].oContent = Operation_Kart.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.CR_CALLBOARD_QUERY, mContent);

                Operation_Kart.BuildDataTable(this.m_ClientEvent, mResult, GrdList, out iPageCount);

                GrdList.Columns[11].Visible = false;
                GrdList.Columns[2].Visible  = false;
                GrdList.Columns[3].Visible  = false;
            }
        }
예제 #10
0
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            GrdResult.DataSource = null;
            CmbPage.Items.Clear();
            LblTotal.Text = "";

            if (TxtAccount.Text.Trim().Length > 0)
            {
                GrdResult.DataSource = null;

                CEnum.Message_Body[] mContent = new CEnum.Message_Body[7];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[2].eName = CEnum.TagName.SDO_MoneyType;
                mContent[2].eTag  = CEnum.TagFormat.TLV_INTEGER;

                if (CmbType.Text == "M币")
                {
                    mContent[2].oContent = 1;
                }
                else if (CmbType.Text == "G币")
                {
                    mContent[2].oContent = 0;
                }
                else
                {
                    mContent[2].oContent = 2;
                }

                mContent[3].eName    = CEnum.TagName.SDO_BeginTime;
                mContent[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[3].oContent = DtpBegin.Value;

                mContent[4].eName    = CEnum.TagName.SDO_EndTime;
                mContent[4].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[4].oContent = DtpEnd.Value;

                mContent[5].eName    = CEnum.TagName.Index;
                mContent[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[5].oContent = 1;

                mContent[6].eName    = CEnum.TagName.PageSize;
                mContent[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[6].oContent = Operation_Kart.iPageSize;

                CEnum.Message_Body[,] mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_CONSUME_QUERY, mContent);

                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }

                Operation_Kart.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);

                if (iPageCount <= 0)
                {
                    PnlPage.Visible = false;
                }
                else
                {
                    for (int i = 0; i < iPageCount; i++)
                    {
                        CmbPage.Items.Add(i + 1);
                    }

                    CmbPage.SelectedIndex = 0;
                    bFirst          = true;
                    PnlPage.Visible = true;
                }

                //合计
                mContent = new CEnum.Message_Body[5];

                mContent[0].eName    = CEnum.TagName.SDO_Account;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = TxtAccount.Text;

                mContent[1].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = Operation_Kart.GetItemAddr(mServerInfo, CmbServer.Text);

                mContent[2].eName = CEnum.TagName.SDO_MoneyType;
                mContent[2].eTag  = CEnum.TagFormat.TLV_INTEGER;

                if (CmbType.Text == "M币")
                {
                    mContent[2].oContent = 1;
                }
                else if (CmbType.Text == "G币")
                {
                    mContent[2].oContent = 0;
                }
                else
                {
                    mContent[2].oContent = 2;
                }

                mContent[3].eName    = CEnum.TagName.SDO_BeginTime;
                mContent[3].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[3].oContent = DtpBegin.Value;

                mContent[4].eName    = CEnum.TagName.SDO_EndTime;
                mContent[4].eTag     = CEnum.TagFormat.TLV_DATE;
                mContent[4].oContent = DtpEnd.Value;

                if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult[0, 0].oContent.ToString());
                    return;
                }

                mResult = Operation_Kart.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_USERCONSUMESUM_QUERY, mContent);

                LblTotal.Text = "合计:" + mResult[0, 0].oContent.ToString();
            }
            else
            {
                MessageBox.Show("请输入玩家帐号!");
            }
        }