Beispiel #1
0
        private void ChangeView2ViewGroupID(MD_View2ViewGroup _group, MD_QueryModel _qv, SinoSZClientBase.MetaDataService.MetaDataServiceClient _mdc)
        {
            if (_group == null)
            {
                return;
            }
            _group.QueryModelID = _qv.QueryModelID;
            string _newid = GetNewID(_group.ID, "MD_VIEW2VIEWGROUP", "ID", _mdc);

            try
            {
                IDTable.Add(_group.ID, _newid);
            }
            catch (Exception e)
            {
                throw e;
            }
            _group.ID = _newid;
            if (_group.View2Views != null && _group.View2Views.Count > 0)
            {
                foreach (MD_View2View _v2v in _group.View2Views)
                {
                    ChangeView2ViewID(_v2v, _group, _mdc);
                }
            }
        }