public void updateStepAtt(PM_BPM_STEP_ATTRIBUTE sa) { PM_BPM_STEP_ATTRIBUTE nn = new PM_BPM_STEP_ATTRIBUTE(); nn.StepAtrrGuid = sa.StepAtrrGuid; list = saBO.GetEntities(nn); try { if (list != null && list.Count > 0) { sa.UpdatedOn = SSGlobalConfig.Now; sa.CreatedBy = list[0].CreatedBy; saBO.UpdateSome(sa); } else { sa.StepAtrrGuid = Guid.NewGuid(); sa.CreatedOn = SSGlobalConfig.Now; saBO.Insert(sa); } } catch (Exception e) { throw e; } }
public IList <PM_BPM_STEP_ATTRIBUTE> GetStepAtt(PM_BPM_STEP_ATTRIBUTE sa) { if (sa != null) { list = saBO.GetEntities(sa); return(list); } return(list); }