private void AddNewsInfo(WSS.Model.Tasks n)
        {
            int tid = new WSS.BLL.Tasks().Add(n);

            if (tid > 0)
            {
                WSS.BLL.T_TasksLog a = new WSS.BLL.T_TasksLog();
                a.F_ID         = tid;
                a.F_Title      = n.F_Title;
                a.F_Note       = n.F_Note;
                a.F_From       = n.F_From;
                a.F_Type       = n.F_Type;
                a.F_JinjiLevel = n.F_JinjiLevel;
                a.F_GameName   = n.F_GameName;
                a.F_GameZone   = n.F_GameZone;
                a.F_GUserID    = n.F_GUserID;
                a.F_GRoleName  = n.F_GRoleName;
                a.F_Tag        = n.F_Tag;
                a.F_State      = n.F_State;
                a.F_Telphone   = n.F_Telphone;
                a.F_DutyMan    = n.F_DutyMan;
                a.F_PreDutyMan = n.F_PreDutyMan;
                a.F_DateTime   = n.F_DateTime;
                a.F_EditMan    = n.F_EditMan;
                a.F_Rowtype    = n.F_Rowtype;
                a.Add();



                GridPanelNewsList.Reload();
                //Ext.Msg.Confirm(ConfigurationManager.AppSettings["MsgTitle"], "数据已经添加成功,是否继续添加?", new MessageBox.ButtonsConfig
                //{
                //    Yes = new MessageBox.ButtonConfig
                //    {
                //        Handler = "#{FormPanelNews}.getForm().reset();var oEditor = FCKeditorAPI.GetInstance('fckHtmlEditor');oEditor.SetHTML('');#{txtTitle}.focus(true);",
                //        Text = "确 定"
                //    },
                //    No = new MessageBox.ButtonConfig
                //    {
                //        Handler = "#{FormPanelNews}.getForm().reset();#{NewsWindow}.hide();",
                //        Text = "取 消"
                //    }
                //}).Show();
                Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgAlert"], "数据已经添加成功").Show();
                WSS.BLL.AllOther.AddNotify("qq", "qqqqqq");
            }
            else
            {
                Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgError"], ConfigurationManager.AppSettings["ErrorMessage"]).Show();
            }
        }
        private string GetHistory(int f_id)//得到工单历史
        {
            WSS.BLL.T_TasksLog t  = new WSS.BLL.T_TasksLog();
            DataSet            ds = t.GetList(" F_ID=" + f_id + "");

            if (ds != null && ds.Tables.Count > 0)
            {
                string Rstr = "";
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    Rstr += "<hr><br />";
                    if (dr["F_DateTime"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<font color=red><b>---编辑时间:" + dr["F_DateTime"].ToString() + "---&nbsp;&nbsp</b><br />";
                    }
                    if (dr["F_EditMan"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>---编辑用户</b>:" + dr["F_EditMan"].ToString() + "&nbsp;---</font><br />";
                    }

                    if (dr["F_Title"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>标题:</b>" + dr["F_Title"].ToString() + "<br />";
                    }
                    if (dr["F_Note"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>内容:</b><br />" + dr["F_Note"].ToString() + " <br />";
                    }
                    if (dr["F_From"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>工单来源:</b>" + dr["F_From"].ToString() + "<br />";
                    }
                    if (dr["F_Type"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>工单类型:</b>" + dr["F_Type"].ToString() + "<br />";
                    }
                    if (dr["F_JinjiLevel"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>紧急程度:</b>" + dr["F_JinjiLevel"].ToString() + "<br />";
                    }
                    if (dr["F_GameName"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>游戏名:</b>" + dr["F_GameName"].ToString() + "<br />";
                    }
                    //if (dr["F_Tag"].ToString().Trim().Length > 0)
                    //{
                    //    Rstr += "标签:" + dr["F_Title"].ToString() + ";";
                    //}
                    if (dr["F_State"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>工单状态:</b>" + dr["F_State"].ToString() + "<br />";
                    }
                    if (dr["F_Telphone"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>玩家电话:</b>" + dr["F_Telphone"].ToString() + "<br />";
                    }
                    if (dr["F_DutyMan"].ToString().Trim().Length > 0)
                    {
                        Rstr += "<b>当前职责人</b>:" + dr["F_DutyMan"].ToString() + "<br />";
                    }
                    //if (dr["F_PreDutyMan.Text"].ToString().Trim().Length > 0)
                    //{
                    //    Rstr += "F_PreDutyMan:" + dr["F_Title"].ToString() + ";";
                    //}

                    //if (dr["F_Rowtype.Text"].ToString().Trim().Length > 0)
                    //{
                    //    Rstr += "行状态:" + dr["F_Title"].ToString() + ";";
                    //}
                }
                if (Rstr.Trim().Length == 0)
                {
                    Rstr = "暂无";
                }
                return(Rstr);
            }
            else
            {
                return("暂无");
            }
        }
        private void UpdateNewsInfoByID(WSS.Model.Tasks n)//修改操作
        {
            if (new WSS.BLL.Tasks().Update(n) == true)
            {
                WSS.BLL.T_TasksLog TLoglist = new WSS.BLL.T_TasksLog();

                TLoglist.F_ID = TList.F_ID;

                if (n.F_Note.Trim().Length != 0)
                {
                    TLoglist.F_Note = n.F_Note;
                }
                if (n.F_Title != TList.F_Title)
                {
                    TLoglist.F_Title = n.F_Title;
                }
                if (n.F_DateTime != TList.F_DateTime)
                {
                    TLoglist.F_DateTime = n.F_DateTime;
                }
                if (n.F_DutyMan != TList.F_DutyMan)
                {
                    TLoglist.F_DutyMan = n.F_DutyMan;
                }

                TLoglist.F_EditMan = TList.F_EditMan;
                if (n.F_From != TList.F_From)
                {
                    TLoglist.F_From = n.F_From;
                }
                if (n.F_GameName != TList.F_GameName)
                {
                    TLoglist.F_GameName = n.F_GameName;
                }
                if (n.F_JinjiLevel != TList.F_JinjiLevel)
                {
                    TLoglist.F_JinjiLevel = n.F_JinjiLevel;
                }
                if (n.F_PreDutyMan != TList.F_PreDutyMan)
                {
                    TLoglist.F_PreDutyMan = n.F_PreDutyMan;
                }
                if (n.F_Rowtype != TList.F_Rowtype)
                {
                    TLoglist.F_Rowtype = n.F_Rowtype;
                }
                if (n.F_State != TList.F_State)
                {
                    TLoglist.F_State = n.F_State;
                }
                if (n.F_Telphone != TList.F_Telphone)
                {
                    TLoglist.F_Telphone = n.F_Telphone;
                }
                if (n.F_Type != TList.F_Type)
                {
                    TLoglist.F_Type = n.F_Type;
                }

                TLoglist.Add();
                GridPanelNewsList.Reload();
                Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgTitle"], "数据已经修改成功!").Show();
                NewsWindow.Hide();
            }
            else
            {
                Ext.Msg.Alert(ConfigurationManager.AppSettings["MsgError"], ConfigurationManager.AppSettings["ErrorMessage"]).Show();
            }
        }