Exemple #1
0
        /// <summary>
        ///  根据流程Id获取内容
        /// </summary>
        /// <param name="SubjectId"></param>
        /// <returns></returns>
        public Result GetWorkFlowForm(int SubjectId)
        {
            var data = _repositorySubject.GetSingle(s => s.Id == SubjectId);
            WorkFlowMainFormDto model = new WorkFlowMainFormDto()
            {
                FormContent   = data.FormContent,
                FormAttribute = data.FormAttribute,
                SubjectId     = data.Id,
                SubjectName   = data.SubjectName
            };

            //查询流程节点
            model.SubjectPassList = _subjectStepBusiness.GetDataListBySubjectId(SubjectId);
            return(new Result <WorkFlowMainFormDto> {
                Succeed = true, Data = model
            });
        }