//保存
        protected void Button_Click(object sender, EventArgs e)
        {
            M_Question    qinfo  = new M_Question();
            M_QuestOption option = new M_QuestOption();

            option.FillByForm(Request);
            if (Qid > 0)
            {
                qinfo = B_Survey.GetQuestion(Qid);
            }
            qinfo.QuestionTitle   = this.TxtQTitle.Text.Trim();
            qinfo.TypeID          = Convert.ToInt32(Request.Form["type_rad"]);
            qinfo.IsNull          = Convert.ToBoolean(Convert.ToInt32(NotNull.SelectedValue));
            qinfo.QuestionContent = Content_T.Text;
            qinfo.Qoption         = JsonConvert.SerializeObject(option);
            if (Qid > 0)
            {
                B_Survey.UpdateQuestion(qinfo);
            }
            else
            {
                qinfo.SurveyID = Sid;
                qinfo.OrderID  = B_Survey.GetMaxOrderID(Sid) + 1;
                int qid = B_Survey.AddQuestion(qinfo);
            }
            function.WriteSuccessMsg("操作成功", "SurveyItemList.aspx?SID=" + Sid);
        }
        protected void Lnk_Click(object sender, GridViewCommandEventArgs e)
        {
            int Id = DataConverter.CLng(e.CommandArgument);

            if (e.CommandName == "Edit")
            {
                Response.Redirect("SurveyItem.aspx?SID=" + Sid + "&QID=" + Id);
            }
            if (e.CommandName == "MovePre")
            {
                M_Question info = B_Survey.GetQuestion(Id);
                if (info.OrderID != B_Survey.GetMinOrderID(info.SurveyID))
                {
                    M_Question Pre       = B_Survey.GetQuestion(B_Survey.PreQusID(info.SurveyID, info.OrderID));
                    int        CurrOrder = info.OrderID;
                    info.OrderID = Pre.OrderID;
                    Pre.OrderID  = CurrOrder;
                    B_Survey.UpdateQuestion(info);
                    B_Survey.UpdateQuestion(Pre);
                }
            }
            if (e.CommandName == "MoveNext")
            {
                M_Question info = B_Survey.GetQuestion(Id);
                if (info.OrderID != B_Survey.GetMaxOrderID(info.SurveyID))
                {
                    M_Question Pre       = B_Survey.GetQuestion(B_Survey.NexQusID(info.SurveyID, info.OrderID));
                    int        CurrOrder = info.OrderID;
                    info.OrderID = Pre.OrderID;
                    Pre.OrderID  = CurrOrder;
                    B_Survey.UpdateQuestion(info);
                    B_Survey.UpdateQuestion(Pre);
                }
            }
            MyBind();
        }