Exemplo n.º 1
0
 private void backgroundWorkerStatusQuery_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_UserBan_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemplo n.º 2
0
        private void CmbServer_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (bFirst)
            {
                TxtCode.Items.Clear();
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[1];

                mContent[0].eName    = CEnum.TagName.FJ_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = Operation_FJ.GetItemAddr(mChannelInfo, CmbServer.Text);

                CEnum.Message_Body[,] GsResult = null;
                lock (typeof(C_Event.CSocketEvent))
                {
                    GsResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_GS_Query, mContent);
                }
                if (GsResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(GsResult[0, 0].oContent.ToString());
                    return;
                }
                for (int i = 0; i < GsResult.GetLength(0); i++)
                {
                    TxtCode.Items.Add(GsResult[i, 0].oContent.ToString());
                }
            }
        }
Exemplo n.º 3
0
 private void backgroundWorkerType_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mType = Operation_FJ.GetResult(this.m_ClientEvent, CEnum.ServiceKey.FJ_ItemLogType_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemplo n.º 4
0
        private void PartInfo()
        {
            this.RoleInfoView.DataSource  = null;
            CEnum.Message_Body[,] mResult = null;
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[3];

            mContent[0].eName    = CEnum.TagName.FJ_UserID;
            mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[0].oContent = TxtAncont.Text;

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

            mContent[2].eName    = CEnum.TagName.FJ_UserNick;
            mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[2].oContent = TxtNick.Text;

            lock (typeof(C_Event.CSocketEvent))
            {
                mResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_CharacterInfo_Query, mContent);
            }


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

            Operation_FJ.BuildDataTable(this.m_ClientEvent, mResult, RoleInfoView, out iPageCount);
            this.BtnSearch.Enabled = true;
        }
        private void FrmNewMission_Load(object sender, EventArgs e)
        {
            IntiFontLib();

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


            mContent[0].eName    = CEnum.TagName.FJ_Level;
            mContent[0].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[0].oContent = this.level;

            this.mTaskInfo = Operation_FJ.GetResult(this.m_ClientEvent, CEnum.ServiceKey.FJ_QuestTable_Query, mContent);
            if (mTaskInfo[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mTaskInfo[0, 0].oContent.ToString());
                this.Close();
                return;
            }
            else
            {
                this.textBoxNick.Text   = this.nickName;
                this.comboBoxState.Text = this.state;
                this.comboBoxTaskID.Items.Clear();
                this.comboBoxTaskName.Items.Clear();
                for (int i = 0; i < mTaskInfo.GetLength(0); i++)
                {
                    this.comboBoxTaskID.Items.Add(mTaskInfo[i, 0].oContent.ToString());
                    this.comboBoxTaskName.Items.Add(mTaskInfo[i, 1].oContent.ToString());
                }
                this.comboBoxTaskID.Text   = this.questID;
                this.comboBoxTaskName.Text = this.content;
                this.comboBoxTaskID.Tag    = mTaskInfo;
                this.comboBoxTaskName.Tag  = mTaskInfo;
            }
        }
Exemplo n.º 6
0
 private void backgroundWorkerAccont_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_FJ.GetResult(m_ClientEvent, CEnum.ServiceKey.FJ_AccountActive_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerUpdate_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_PlayPosition_Update, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemplo n.º 8
0
 private void backgroundWorkerSearch_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         mResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_TempPassword_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemplo n.º 9
0
        private void btnSearchLog_Click(object sender, EventArgs e)
        {
            if (this.TxtItemName.Text == "" || this.TxtItemName.Text == null)
            {
                MessageBox.Show(config.ReadConfigValue("MFj", "FB_Code_MsgInputItemName"));
                return;
            }


            CEnum.Message_Body[,] mResult = null;
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[6];

            mContent[0].eName    = CEnum.TagName.FJ_UserNick;
            mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[0].oContent = TxtCharinfo.Text.Trim();

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

            mContent[2].eName    = CEnum.TagName.FJ_ItemName;
            mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[2].oContent = this.TxtItemName.Text.ToString();

            mContent[3].eName    = CEnum.TagName.FJ_Type;
            mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
            mContent[3].oContent = Operation_FJ.GetItemType(mType, this.CmbType.Text.ToString());

            mContent[4].eName    = CEnum.TagName.FJ_StartTime;//时间段开始时间
            mContent[4].eTag     = CEnum.TagFormat.TLV_DATE;
            mContent[4].oContent = Convert.ToDateTime(this.dateTimePickerTimeFrom.Value.ToLongDateString());

            mContent[5].eName    = CEnum.TagName.FJ_EndTime;
            mContent[5].eTag     = CEnum.TagFormat.TLV_DATE;
            mContent[5].oContent = Convert.ToDateTime(this.dateTimePickerTimeTo.Value.ToLongDateString());

            lock (typeof(C_Event.CSocketEvent))
            {
                mResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_ItemLog_Query, mContent);
            }
            if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mResult[0, 0].oContent.ToString());
                return;
            }
            else
            {
                logInfoView.DataSource = null;
                Operation_FJ.BuildDataTableItemAdd(this.m_ClientEvent, mResult, logInfoView, out iPageCount);
            }
        }
        private void BtnQueryMap_Click(object sender, EventArgs e)
        {
            try
            {
                if (txtUserID.Text.Trim().Length <= 0)
                {
                    return;
                }
                if (txtCharname.Text.Trim().Length <= 0)
                {
                    return;
                }

                //float a = float.Parse(txtX.Text);
                //float b = float.Parse(txtY.Text);

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

                mContent[0].eName    = CEnum.TagName.FJ_XPosition;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = "";

                mContent[1].eName    = CEnum.TagName.FJ_YPosition;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = "";


                lock (typeof(C_Event.CSocketEvent))
                {
                    AreaResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_MAP_Query, mContent);
                }

                if (AreaResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(AreaResult[0, 0].oContent.ToString());
                    return;
                }
                else if (AreaResult[0, 0].eName == CEnum.TagName.FJ_Map)
                {
                    //txtMap.Text = mResult[0, 0].oContent.ToString();

                    txtMap = Operation_FJ.BuildAreaCombox(AreaResult, txtMap);

                    bFirst = true;
                }
            }
            catch
            {
                MessageBox.Show("坐标值有误");
            }
        }
        private void buttonDel_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Del_Info"), config.ReadConfigValue("MFj", "FM_Code_Del_Title"), MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];


                mContent[0].eName    = CEnum.TagName.FJ_ServerIP;
                mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[0].oContent = this.serverIP;

                mContent[1].eName    = CEnum.TagName.FJ_UserNick;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = this.nickName;

                mContent[2].eName    = CEnum.TagName.FJ_Quest_id;
                mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[2].oContent = this.questID;

                mContent[3].eName    = CEnum.TagName.UserByID;
                mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[3].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

                CEnum.Message_Body[,] result = Operation_FJ.GetResult(m_ClientEvent, CEnum.ServiceKey.FJ_Task_Delete, mContent);

                if (result[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg1"));
                    return;
                }

                if (result[0, 0].oContent.ToString() == "SUCESS")
                {
                    MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg4"));
                    this.Close();
                }
                else
                {
                    MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg5"));
                    return;
                }
            }
        }
Exemplo n.º 12
0
        /// <summary>
        /// 公告记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnRecord_Click(object sender, EventArgs e)

        {
            //ItmEdit.Enabled = true;
            //ItmDelete.Enabled = false;
            GrdList.DataSource = null;
            CEnum.Message_Body[] mContent = new CEnum.Message_Body[1];

            mContent[0].eName    = CEnum.TagName.FJ_ServerIP;
            mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
            mContent[0].oContent = Operation_FJ.GetItemAddr(mChannelInfo, CmbServer.Text);

            CEnum.Message_Body[,] mResult = null;
            lock (typeof(C_Event.CSocketEvent))
            {
                mResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_BoardList_Query, mContent);
            }
            if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
            {
                MessageBox.Show(mResult[0, 0].oContent.ToString());
                return;
            }
            Operation_FJ.BuildDataTable(this.m_ClientEvent, mResult, GrdList, out iPageCount);
        }
Exemplo n.º 13
0
        private void BtnPost_Click(object sender, EventArgs e)
        {
            if (TxtAccount.Text.Trim().Length > 0 && TxtContent.Text.Trim().Length > 0)
            {
                if (MessageBox.Show(config.ReadConfigValue("MSDO", "BA_Code_MsgServer").Replace("{Server}", CmbServer.Text).Replace("{Account}", TxtAccount.Text), config.ReadConfigValue("MSDO", "BA_Code_MsgBan"), MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    BtnPost.Enabled = false;
                    //Cursor = Cursors.AppStarting;
                    strDBip = Operation_FJ.GetItemAddr(mServerInfo, CmbServer.Text);
                    strUser = TxtAccount.Text.Trim();


                    CEnum.Message_Body[,] mResult;
                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[4];
                    mContent[0].eName    = CEnum.TagName.FJ_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = strDBip;

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

                    mContent[3].eName    = CEnum.TagName.FJ_UserID;
                    mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[3].oContent = strUser;

                    lock (typeof(C_Event.CSocketEvent))
                    {
                        mResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_UserBan_Query, mContent);
                    }
                    if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        CEnum.Message_Body[,] mResult1 = null;

                        CEnum.Message_Body[] mContent1 = new CEnum.Message_Body[4];
                        mContent1[0].eName    = CEnum.TagName.FJ_ServerIP;
                        mContent1[0].eTag     = CEnum.TagFormat.TLV_STRING;
                        mContent1[0].oContent = Operation_FJ.GetItemAddr(mServerInfo, CmbServer.Text);

                        mContent1[1].eName    = CEnum.TagName.FJ_UserID;
                        mContent1[1].eTag     = CEnum.TagFormat.TLV_STRING;
                        mContent1[1].oContent = TxtAccount.Text.Trim();

                        mContent1[2].eName    = CEnum.TagName.UserByID;
                        mContent1[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                        mContent1[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

                        mContent1[3].eName    = CEnum.TagName.FJ_Reason;
                        mContent1[3].eTag     = CEnum.TagFormat.TLV_STRING;
                        mContent1[3].oContent = TxtContent.Text.Trim();

                        lock (typeof(C_Event.CSocketEvent))
                        {
                            mResult1 = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_UserBan_Close, mContent1);
                        }

                        if (mResult1[0, 0].eName == CEnum.TagName.ERROR_Msg)
                        {
                            //MessageBox.Show("²Ù×÷ʧ°Ü");
                            MessageBox.Show(config.ReadConfigValue("MFj", "FB_Code_MsgFail"));
                            BtnPost.Enabled = true;
                            return;
                        }
                        if (mResult1[0, 0].oContent.ToString() == "SUCESS")
                        {
                            MessageBox.Show(config.ReadConfigValue("MFj", "FB_Code_MsgSucc"));
                            BtnPost.Enabled = true;
                            TxtAccount.Text = "";
                            TxtContent.Text = "";
                        }
                        else
                        {
                            //MessageBox.Show("²Ù×÷ʧ°Ü»òÊäÈëÕʺŴíÎó");
                            MessageBox.Show(config.ReadConfigValue("MFj", "FB_Code_MsgFailorIDFail"));
                            BtnPost.Enabled = true;
                            return;
                        }
                    }
                    else
                    {
                        MessageBox.Show(config.ReadConfigValue("MFj", "FB_Code_MsgBanedUser"));
                        BtnPost.Enabled = true;
                        return;
                    }



                    //this.backgroundWorkerFreeze.RunWorkerAsync(mContent);
                }
            }
            else
            {
                MessageBox.Show(config.ReadConfigValue("MFj", "BA_Code_MsginputAccont"));
            }
        }
Exemplo n.º 14
0
        private void btnMod_Click(object sender, EventArgs e)
        {
            int vailnum = Getcishu();

            if (vailnum <= 0)
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_checktime"));
                return;
            }
            else
            {
                //Txtcishu.Text = vailnum.ToString();
            }
            //Txtcishu.Text = Getcishu();
            if (TxtConnet.Text == "" || TxtConnet.Text == null)
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_checktext"));
                return;
            }
            //if (//cmbStauas.Text == "" || //cmbStauas.Text == null)
            //{
            //    MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_checkip"));
            //    return;
            //}

            if (TxtCode.CheckedItems.Count <= 0)
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_msgchoosestate"));
                return;
            }

            if (MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_msgupdatenotice"), config.ReadConfigValue("MSDO", "FN_Code_msgnote"), MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
            {
                //Operation_FJ.GetItemAddr(mServerInfo, CmbServer.Text);


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

                mContent[0].eName    = CEnum.TagName.SDO_BeginTime;
                mContent[0].eTag     = CEnum.TagFormat.TLV_TIMESTAMP;
                mContent[0].oContent = Convert.ToDateTime(DptStart.Text);

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

                mContent[2].eName    = CEnum.TagName.SDO_Interval;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = Convert.ToInt32(NumMinnute.Value);

                mContent[3].eName    = CEnum.TagName.SDO_Status;
                mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[3].oContent = ReturnStauas("123");

                mContent[4].eName    = CEnum.TagName.SDO_BoardMessage;
                mContent[4].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[4].oContent = TxtConnet.Text.Trim();

                mContent[5].eName    = CEnum.TagName.SDO_ServerIP;
                mContent[5].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[5].oContent = ReturnSeverGsname();

                mContent[6].eName    = CEnum.TagName.UserByID;
                mContent[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[6].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

                mContent[7].eName    = CEnum.TagName.SDO_TaskID;
                mContent[7].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[7].oContent = iBoardID;


                CEnum.Message_Body[,] mResult1 = Operation_FJ.GetResult(m_ClientEvent.GetSocket(m_ClientEvent, ReturnSeverGsname()), CEnum.ServiceKey.SDO_BOARDTASK_UPDATE, mContent);

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

                if (mResult1[0, 0].eName == CEnum.TagName.Status && mResult1[0, 0].oContent.Equals("FAILURE"))
                {
                    MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_addfail"));
                }
                else
                {
                    MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_addsucces"));

                    GrdList.DataSource = null;
                    CEnum.Message_Body[] mContent1 = null;
                    mResult = null;
                    mResult = Operation_FJ.GetResult(this.m_ClientEvent, CEnum.ServiceKey.SDO_BOARDTASK_QUERY, mContent1);

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

                    //GrdList.DataSource = BrowseResultInfo();
                    Setdefault();

                    btnAdd.Enabled = true;
                    btnAdd.Visible = true;



                    lblserver.Visible = false;
                    //cmbStauas.Visible = false;

                    DptStart.Enabled   = true;
                    DptEnd.Enabled     = true;
                    TxtConnet.Enabled  = true;
                    NumMinnute.Enabled = true;
                }
            }
        }
Exemplo n.º 15
0
        /// <summary>
        /// 添加公告信息内容
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOk_Click(object sender, EventArgs e)
        {
            //int vailnum = Getcishu();
            //if (vailnum <= 0)
            //{
            //    MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_checktime"));
            //    return;
            //}

            if (TxtConnet.Text == "" || TxtConnet.Text == null)
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_checktext"));
                return;
            }

            if (TxtConnet.Text.Length > 500)
            {
                MessageBox.Show(config.ReadConfigValue("MFj", "FN_Code_MsgConnet"));
                return;
            }

            if (TxtCode.CheckedItems.Count <= 0)
            {
                MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_checkip"));
                return;
            }

            if (MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_msgaddnotice"), config.ReadConfigValue("MSDO", "FN_Code_msgnote"), MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
            {
                //Operation_FJ.GetItemAddr(mServerInfo, CmbServer.Text);


                CEnum.Message_Body[] mContent = new CEnum.Message_Body[7];
                if (CheckStart.Checked)
                {
                    mContent[0].eName    = CEnum.TagName.FJ_StartTime;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = "";
                }
                else
                {
                    mContent[0].eName    = CEnum.TagName.FJ_StartTime;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = DptStart.Text;
                }
                if (CheckEnd.Checked)
                {
                    mContent[1].eName    = CEnum.TagName.FJ_EndTime;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = "";
                }
                else
                {
                    mContent[1].eName    = CEnum.TagName.FJ_EndTime;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = DptEnd.Text;
                }

                mContent[2].eName    = CEnum.TagName.FJ_Interval;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = Convert.ToInt32(NumMinnute.Value);

                mContent[3].eName    = CEnum.TagName.FJ_MsgContent;
                mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[3].oContent = TxtConnet.Text.Trim();

                if (ischeck == true)
                {
                    mContent[4].eName    = CEnum.TagName.FJ_GSName;
                    mContent[4].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[4].oContent = "";
                }
                else
                {
                    mContent[4].eName    = CEnum.TagName.FJ_GSName;
                    mContent[4].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[4].oContent = ReturnSeverGsname();
                }
                mContent[5].eName    = CEnum.TagName.UserByID;
                mContent[5].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[5].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());



                mContent[6].eName    = CEnum.TagName.FJ_ServerIP;
                mContent[6].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[6].oContent = Operation_FJ.GetItemAddr(mChannelInfo, CmbServer.Text);

                CEnum.Message_Body[,] mResult1 = null;
                lock (typeof(C_Event.CSocketEvent))
                {
                    mResult1 = mResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_BoardList_Insert, mContent);
                }
                if (mResult1[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult1[0, 0].oContent.ToString());
                    return;
                }

                if (mResult1[0, 0].eName == CEnum.TagName.Status && mResult1[0, 0].oContent.Equals("FAILURE"))
                {
                    MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_addfail"));
                }
                else
                {
                    MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_addsucces"));


                    GrdList.DataSource = null;
                    CEnum.Message_Body[] MBContent = new CEnum.Message_Body[1];

                    MBContent[0].eName    = CEnum.TagName.FJ_ServerIP;
                    MBContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    MBContent[0].oContent = Operation_FJ.GetItemAddr(mChannelInfo, CmbServer.Text);

                    CEnum.Message_Body[,] mResult = null;
                    lock (typeof(C_Event.CSocketEvent))
                    {
                        mResult = Operation_FJ.GetResult(tmp_ClientEvent, CEnum.ServiceKey.FJ_BoardList_Query, MBContent);
                    }
                    if (mResult[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        MessageBox.Show(mResult[0, 0].oContent.ToString());
                        return;
                    }
                    Operation_FJ.BuildDataTable(this.m_ClientEvent, mResult, GrdList, out iPageCount);

                    Setdefault();
                }
            }
        }
        private void buttonOK_Click(object sender, EventArgs e)
        {
            if (this.buttonOK.Text == config.ReadConfigValue("MFj", "FMI_UI_buttonOK"))
            {
                if (MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Modify_Info"), config.ReadConfigValue("MFj", "FM_Code_Modify_Title"), MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];


                    mContent[0].eName    = CEnum.TagName.FJ_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = this.serverIP;

                    mContent[1].eName    = CEnum.TagName.FJ_UserNick;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = this.nickName;

                    mContent[2].eName    = CEnum.TagName.FJ_Quest_id;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[2].oContent = this.questID;

                    mContent[3].eName    = CEnum.TagName.FJ_Quest_state;
                    mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[3].oContent = this.comboBoxState.SelectedIndex.ToString();

                    mContent[4].eName    = CEnum.TagName.UserByID;
                    mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[4].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

                    CEnum.Message_Body[,] result = Operation_FJ.GetResult(m_ClientEvent, CEnum.ServiceKey.FJ_Task_Update, mContent);

                    if (result[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg1"));
                        return;
                    }

                    if (result[0, 0].oContent.ToString() == "SUCESS")
                    {
                        MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg2"));
                        this.Close();
                    }
                    else
                    {
                        MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg3"));
                        return;
                    }
                }
            }
            else if (this.buttonOK.Text == config.ReadConfigValue("MFj", "FMI_UI_buttonOK1"))
            {
                if (MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_ADD_Info"), config.ReadConfigValue("MFj", "FM_Code_ADD_Title"), MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    CEnum.Message_Body[] mContent = new CEnum.Message_Body[5];


                    mContent[0].eName    = CEnum.TagName.FJ_ServerIP;
                    mContent[0].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[0].oContent = this.serverIP;

                    mContent[1].eName    = CEnum.TagName.FJ_UserNick;
                    mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[1].oContent = this.nickName;

                    mContent[2].eName    = CEnum.TagName.FJ_Quest_id;
                    mContent[2].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[2].oContent = mTaskInfo[this.comboBoxTaskName.SelectedIndex, 0].oContent.ToString();

                    mContent[3].eName    = CEnum.TagName.FJ_Quest_state;
                    mContent[3].eTag     = CEnum.TagFormat.TLV_STRING;
                    mContent[3].oContent = this.comboBoxState.SelectedIndex.ToString();

                    mContent[4].eName    = CEnum.TagName.UserByID;
                    mContent[4].eTag     = CEnum.TagFormat.TLV_INTEGER;
                    mContent[4].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

                    CEnum.Message_Body[,] result = Operation_FJ.GetResult(m_ClientEvent, CEnum.ServiceKey.FJ_Task_Insert, mContent);

                    if (result[0, 0].eName == CEnum.TagName.ERROR_Msg)
                    {
                        MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg1"));
                        return;
                    }

                    if (result[0, 0].oContent.ToString() == "SUCESS")
                    {
                        MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg6"));
                        //this.Close();
                    }
                    else
                    {
                        MessageBox.Show(config.ReadConfigValue("MFj", "FM_Code_Msg1"));
                        return;
                    }
                    this.buttonOK.Text            = config.ReadConfigValue("MFj", "FMI_UI_buttonOK");
                    this.comboBoxTaskID.Enabled   = false;
                    this.comboBoxTaskName.Enabled = false;
                    this.comboBoxTaskID.Text      = this.questID;
                    this.comboBoxTaskName.Text    = this.content;
                }
            }
        }