public override DFDictionary Get(FormM form, DFDictionary entity, ref string message)
        {
            var formName = entity["FormName"];
            var f        = DFPub.GetFormM(formName);

            SessionHelper.Save <FormM>("f", f);
            return(base.Get(form, entity, ref message));
        }
        private static void AbortWF(string instanceId)
        {
            var model = WFDA.Instance.GetModelByInstanceId(instanceId);

            if (model == null)
            {
                throw new WFException(string.Format("根据工作流实例编号 {0} 不能找到对应的工作流模型定义", instanceId));
            }
            var f  = DFPub.GetFormM(model.DFFormName);
            var da = NinjectHelper.Get <IDA>(f.DAImp);

            if (da == null)
            {
                throw new WFException(string.Format("根据 {0} 不能创建 IDA 接口", f.DAImp));
            }
            var d = new DFDictionary();

            d.Add("InstanceId", instanceId);
            var msg = string.Empty;

            (da as BaseDA).AbortWF(f, d, ref msg);
        }