private void ValideBindPosition() { if (_Paper.PositionList != null) { List <string> errorpositionList = new List <string>(); foreach (Position position in _Paper.PositionList) { if ( _IAssessTemplatePaperBindPosition.GetAssessTemplatePaperBindPostionByPositionIDDiffPaperID( _Paper.AssessTemplatePaperID, position.Id).Count > 0) { errorpositionList.Add(_IPostionBll.GetPositionById(position.Id, null).Name); } } if (errorpositionList.Count > 0) { HrmisUtility.ThrowException( string.Format("职位:{0}已被其它考评表使用", RequestUtility.GetNameListString(errorpositionList))); } } }