private void backgroundWorkerSearch_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());
                return;
            }

            Operation_Shop.BuildDataTable(this.m_ClientEvent, mResult, GrdResult, out iPageCount);
            LblSum.Text = config.ReadConfigValue("MAU", "CL_Code_sum") + Operation_Shop.Total;
            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 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;
        }
        public ExchangeMoreInfo(string sss, CEnum.Message_Body[,] val, CSocketEvent m_ClientEvent)
        {
            InitializeComponent();

            LblUser.Text = "玩家 " + sss + " 的兑换记录详细信息:";

            Operation_Shop.BuildDataTable(m_ClientEvent, val, GrdInfo, out iPageCount);
        }
        public ExchangeMoreInfo(string sss, CEnum.Message_Body[,] val, CSocketEvent m_ClientEvent)
        {
            ConfigValue config = (ConfigValue)m_ClientEvent.GetInfo("INI");

            this.Text = config.ReadConfigValue("MAUDITION", "EMI_UI_ExchangeMoreInfo");
            InitializeComponent();

            LblUser.Text = config.ReadConfigValue("MAUDITION", "EMI_Code_LblUser").Replace("{user}", sss);
            //LblUser.Text = "玩家 " + sss + " 的兑换记录详细信息:";

            Operation_Shop.BuildDataTable(m_ClientEvent, val, GrdInfo, out iPageCount);
        }
示例#5
0
        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 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)
        {
            if (CmbSort.Text == "" ||
                TxtName.Text == "" ||
                CmbItem.Text == "" ||
                CmbBuy.Text == "" ||
                CmbSex.Text == "")
            {
                MessageBox.Show(config.ReadConfigValue("MAUDITION", "FSI_Code_Full"));
                return;
            }

            CmbPage.Items.Clear();
            //列表附值
            //switch (CmbSort.Text)
            //{
            //    case "购买者":
            //        iSort = 0;
            //        break;
            //    case "接受者":
            //        iSort = 1;
            //        break;
            //    default:
            //        iSort = 0;
            //        break;
            //}
            if (CmbSort.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbSort1"))
            {
                iSort = 0;
            }
            else if (CmbSort.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbSort2"))
            {
                iSort = 1;
            }
            else
            {
                iSort = 0;
            }
            //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;
            //}
            if (CmbItem.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbItem1"))
            {
                iItem = 0;
            }
            else if (CmbItem.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbItem2"))
            {
                iItem = 1;
            }
            else if (CmbItem.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbItem3"))
            {
                iItem = 2;
            }
            else if (CmbItem.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbItem4"))
            {
                iItem = 3;
            }
            else if (CmbItem.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbItem5"))
            {
                iItem = 4;
            }
            else if (CmbItem.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbItem6"))
            {
                iItem = 5;
            }
            else if (CmbItem.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbItem7"))
            {
                iItem = 6;
            }
            else
            {
                iItem = 0;
            }


            //switch (CmbBuy.Text)
            //{
            //    case "M币购买":
            //        iBuy = 0;
            //        break;
            //    case "G币购买":
            //        iBuy = 1;
            //        break;
            //    default:
            //        iBuy = 0;
            //        break;
            //}
            if (CmbBuy.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbBuy1"))
            {
                iBuy = 0;
            }
            else if (CmbBuy.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbBuy2"))
            {
                iBuy = 1;
            }
            else
            {
                iBuy = 0;
            }
            //switch (CmbSex.Text)
            //{
            //    case "所有":
            //        iSex = "full";
            //        break;
            //    case "男女共用":
            //        iSex = "all";
            //        break;
            //    case "男":
            //        iSex = "m";
            //        break;
            //    case "女":
            //        iSex = "f";
            //        break;
            //    default:
            //        iSex = "all";
            //        break;
            //}
            if (CmbSex.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbSex1"))
            {
                iSex = "full";
            }
            else if (CmbSex.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbSex2"))
            {
                iSex = "all";
            }
            else if (CmbSex.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbSex3"))
            {
                iSex = "m";
            }
            else if (CmbSex.Text == config.ReadConfigValue("MAUDITION", "FSI_UI_CmbSex4"))
            {
                iSex = "f";
            }
            else
            {
                iSex = "all";
            }

            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;

            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);
                //    mResultSum = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), CEnum.ServiceKey.AUSHOP_USERMPURCHASE_SUM_QUERY, mContent);
                //}
                //else
                //{
                //    mResult = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), CEnum.ServiceKey.AUSHOP_USERGPURCHASE_QUERY, mContent);
                //    mResultSum = Operation_Shop.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, "61.152.150.205"), 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 = config.ReadConfigValue("MAUDITION", "FSI_Code_Total") + 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;
            }
        }
        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;
            }
        }