public Yw_SubjectProcess GetNextProcess( int subjectId, int currentUser, SubjectStatusEnum nextStatus, SubjectActionEnum action) { if (currentUser < 10000) { throw new ArgumentException(nameof(currentUser)); } Yw_SubjectProcess nextProcess = new Yw_SubjectProcess(); nextProcess.Ysp_Action = (int)action; nextProcess.Ysp_CreateTime = DateTime.Now; nextProcess.Ysp_Id = 0; nextProcess.Ysp_Mark = ""; nextProcess.Ysp_Operator = currentUser; nextProcess.Ysp_Remark = ""; nextProcess.Ysp_Status = (int)nextStatus; nextProcess.Ysp_SubjectId = subjectId; if (subjectId >= 10000) { Yw_SubjectProcess currentProcess = SubjectProcessService.GetCurrentProcess( subjectId); if (currentProcess != null) { nextProcess.Ysp_Mark = currentProcess.Ysp_Mark; nextProcess.Ysp_Remark = currentProcess.Ysp_Remark; } } return(nextProcess); }
private SubjectStatus(SubjectStatusEnum subjectStatus) { _subjectStatus = subjectStatus; }