Exemplo n.º 1
0
        /// <summary>
        /// 加载本流程的所有状态
        /// </summary>
        /// <returns></returns>
        public bool LoadStatus()
        {
            if (FlowInterface == null)
            {
                return(false);
            }
            List <Flow_StateDefine> _ts = FlowInterface.GetFlowStatusByFlow(this._flowDefine);

            this.status = new List <Biz_FlowState>();
            if (_ts == null)
            {
                return(true);
            }
            foreach (Flow_StateDefine _sd in _ts)
            {
                Biz_FlowState _ret = new Biz_FlowState(this, _sd);
                this.status.Add(_ret);
            }
            return(true);
        }
Exemplo n.º 2
0
 public Biz_StateAction(Biz_FlowState _state, Flow_StateActionDefine _action)
 {
     _isNew        = false;
     stateDefine   = _state;
     _actionDefine = _action;
 }
Exemplo n.º 3
0
 public Biz_StateAction(string _id, Biz_FlowState _state)
 {
     _isNew        = true;
     stateDefine   = _state;
     _actionDefine = new Flow_StateActionDefine(_id, "NEWACTION", "新动作", _state.StateDefine, null, "业务流处理", 3, 0, "");
 }