public string Save()
        {
            string html       = Request["html"];
            string name       = Request["name"];
            string att        = Request["att"];
            string id         = Request["id"];
            string type       = Request["type"];
            string subtable   = Request["subtable"];
            string formEvents = Request["formEvents"];

            if (name.IsNullOrEmpty())
            {
                return("表单名称不能为空!");
            }

            Guid formID;

            if (!id.IsGuid(out formID))
            {
                return("表单ID无效!");
            }

            BizProcess.Platform.WorkFlowForm   WFF = new BizProcess.Platform.WorkFlowForm();
            BizProcess.Data.Model.WorkFlowForm wff = WFF.Get(formID);
            bool   isAdd  = false;
            string oldXML = string.Empty;

            if (wff == null)
            {
                wff                = new BizProcess.Data.Model.WorkFlowForm();
                wff.ID             = formID;
                wff.Type           = type.ToGuid();
                wff.CreateUserID   = BizProcess.Platform.Users.CurrentUserID;
                wff.CreateUserName = BizProcess.Platform.Users.CurrentUserName;
                wff.CreateTime     = BizProcess.Utility.DateTimeNew.Now;
                wff.Status         = 0;
                isAdd              = true;
            }
            else
            {
                oldXML = wff.Serialize();
            }

            wff.Attribute      = att;
            wff.Html           = html;
            wff.LastModifyTime = BizProcess.Utility.DateTimeNew.Now;
            wff.Name           = name;
            wff.SubTableJson   = subtable;
            wff.EventsJson     = formEvents;

            if (isAdd)
            {
                WFF.Add(wff);
                BizProcess.Platform.Log.Add("添加了流程表单", wff.Serialize(), BizProcess.Platform.Log.Types.流程相关);
            }
            else
            {
                WFF.Update(wff);
                BizProcess.Platform.Log.Add("修改了流程表单", "", BizProcess.Platform.Log.Types.流程相关, oldXML, wff.Serialize());
            }
            return("保存成功!");
        }