public ActionResult SaveForm(string keyValue, WfConditionEntity entity)
        {
            string flowcode = "bosafety";

            if (!string.IsNullOrEmpty(entity.SQLCONTENT))
            {
                entity.SQLCONTENT = HttpCommon.Decrypt(entity.SQLCONTENT.ToUpper(), flowcode, flowcode);
                entity.SQLCONTENT = HttpUtility.UrlDecode(entity.SQLCONTENT);
            }
            wfconditionbll.SaveForm(keyValue, entity);
            return(Success("操作成功。"));
        }
        public ActionResult SaveForm(string keyValue, WfSettingEntity entity)
        {
            string flowcode = "bosafety";

            if (!string.IsNullOrEmpty(entity.FLOWCODE))
            {
                if (entity.FLOWCODE.Length >= 8)
                {
                    flowcode = entity.FLOWCODE.Substring(0, 8);
                }
            }
            if (!string.IsNullOrEmpty(entity.SCRIPTCURCONTENT))
            {
                entity.SCRIPTCURCONTENT = HttpCommon.Decrypt(entity.SCRIPTCURCONTENT.ToUpper(), flowcode, flowcode);
                entity.SCRIPTCURCONTENT = HttpUtility.UrlDecode(entity.SCRIPTCURCONTENT);
            }
            if (!string.IsNullOrEmpty(entity.SCRIPTCONTENT))
            {
                entity.SCRIPTCONTENT = HttpCommon.Decrypt(entity.SCRIPTCONTENT.ToUpper(), flowcode, flowcode);
                entity.SCRIPTCONTENT = HttpUtility.UrlDecode(entity.SCRIPTCONTENT);
            }
            wfsettingbll.SaveForm(keyValue, entity);
            return(Success("操作成功。"));
        }