Esempio n. 1
0
        /// <summary>
        /// 只能通过BeforeCheckinChanges(修改属性后触发)以及BeforeCreateNewObjectFinalize事件修改对象的属性
        /// </summary>
        /// <param name="env"></param>
        public static void SetAutomaticFlowNumber(EventHandlerEnvironment env)
        {
            if (env.ObjVer.Type != (int)MFBuiltInObjectType.MFBuiltInObjectTypeDocument)
            {
                return;
            }

            var flowNumberOp = new FlowNumberOp(env.Vault, env.ObjVer, env.PropertyValues, env.CurrentUserID, env.GetObjectClass(), env.EventType);

            flowNumberOp.SetFlowNumber();
        }