public static ApprovalStep SelApprovalStep(ApprovalStep _param) { ApprovalStep tmpApprovalStep = DaoFactory.GetData <ApprovalStep>("Comm.SelApprovalStep", _param); tmpApprovalStep.InboxTask = ApprovalTaskRepository.SelInboxTasks(new ApprovalTask { StepOID = tmpApprovalStep.OID }); return(tmpApprovalStep); }
public static List <ApprovalStep> SelApprovalSteps(ApprovalStep _param) { List <ApprovalStep> tmpApprovalSteps = DaoFactory.GetList <ApprovalStep>("Comm.SelApprovalStep", _param); tmpApprovalSteps.ForEach(step => { step.InboxTask = ApprovalTaskRepository.SelInboxTasks(new ApprovalTask { StepOID = step.OID }); }); return(tmpApprovalSteps); }