Exemple #1
0
        protected override void DeleteDomainObjects(ArrayList domainObjects)
        {
            if (_facade == null)
            {
                _facade = new TSModelFacadeFactory(base.DataProvider).CreateTSModelFacade();
            }
            ErrorCodeGroup2ErrorCode[] ecg2ec = (ErrorCodeGroup2ErrorCode[])domainObjects.ToArray(typeof(ErrorCodeGroup2ErrorCode));

            if (_facade.CheckErrorCodeGroup2ErrorCodeIsUsed(ecg2ec))
            {
                BenQGuru.eMES.Common.ExceptionManager.Raise(this.GetType(), "$Error_ErrorCode2Group_Has_Used");
            }
            _facade.DeleteErrorCodeGroup2ErrorCode(ecg2ec);
        }