/// <summary>
        /// 添加
        /// </summary>
        private static string Add(HttpContext context)
        {
            //if (!_isedit)
            //{
            //    return null;
            //}


            var userid = Comm.DataLoadTool.GetCurrUserID();

            if (string.IsNullOrEmpty(userid))
            {
                return("请重新登录");
            }
            var flowname    = context.Request["FlowName"];
            var flowkeyword = context.Request["FlowKeyword"];

            if (!bll.CheckUserKeyword(userid, flowkeyword))
            {
                return("关键字重复");
            }
            WXFlowInfo model = new WXFlowInfo();

            model.FlowID           = int.Parse(bll.GetGUID(TransacType.WeixinFlowAdd));
            model.UserID           = userid;
            model.FlowName         = flowname;
            model.FlowKeyword      = flowkeyword;
            model.FlowEndMsg       = context.Request["FlowEndMsg"];
            model.MemberLimitState = int.Parse(context.Request["MemberLimitState"]);
            model.FlowLimitMsg     = context.Request["FlowLimitMsg"];
            model.FlowSysType      = 1;
            model.IsEnable         = int.Parse(context.Request["IsEnable"]);
            return(bll.Add(model).ToString().ToLower());
        }
        /// <summary>
        /// 修改
        /// </summary>
        public static string Edit(HttpContext context)
        {
            //if (!_isedit)
            //{
            //    return null;
            //}
            var userid = Comm.DataLoadTool.GetCurrUserID();

            if (string.IsNullOrEmpty(userid))
            {
                return("请重新登录");
            }
            var flowid      = int.Parse(context.Request["FlowID"]);
            var flowname    = context.Request["FlowName"];
            var flowkeyword = context.Request["FlowKeyword"];
            var oldflowinfo = bll.Get <WXFlowInfo>(string.Format("FlowID={0}", flowid));

            if (oldflowinfo.FlowKeyword != flowkeyword)//对比关键字是否改变
            {
                //关键字改变,检查关键字是否重复
                if (!bll.CheckUserKeyword(userid, flowkeyword))
                {
                    return("关键字重复");
                }
            }
            WXFlowInfo model = new WXFlowInfo();

            model.FlowID           = flowid;
            model.UserID           = userid;
            model.FlowName         = flowname;
            model.FlowKeyword      = flowkeyword;
            model.FlowEndMsg       = context.Request["FlowEndMsg"];
            model.MemberLimitState = int.Parse(context.Request["MemberLimitState"]);
            model.FlowLimitMsg     = context.Request["FlowLimitMsg"];
            model.IsEnable         = int.Parse(context.Request["IsEnable"]);
            if (bll.Update(model, string.Format("FlowName='{0}',FlowKeyword='{1}',FlowEndMsg='{2}',MemberLimitState='{3}',FlowLimitMsg='{4}',IsEnable='{5}'", model.FlowName, model.FlowKeyword, model.FlowEndMsg, model.MemberLimitState, model.FlowLimitMsg, model.IsEnable), "FlowID=" + model.FlowID) > 0)
            {
                return("true");
            }
            return("false");
        }