示例#1
0
        private void SaveData()
        {
            using (MetaDataServiceClient _mdc = new MetaDataServiceClient())
            {
                this._nodesData.NameSpace    = this.TE_NAMESPACE.EditValue.ToString();
                this._nodesData.Description  = this.TE_DESCRIPT.EditValue.ToString();
                this._nodesData.MenuPosition = (this.TE_MENU.EditValue == null) ? "" : this.TE_MENU.EditValue.ToString();
                this._nodesData.DisplayTitle = this.TE_DISPLAY.EditValue.ToString();
                this._nodesData.Owner        = this.TE_OWNER.EditValue.ToString();
                this._nodesData.DisplayOrder = this.TE_ORDER.EditValue.ToString() == "" ? 0 : int.Parse(this.TE_ORDER.EditValue.ToString());
                this._nodesData.DWDM         = this.TE_DWDM.EditValue.ToString();
                this._nodesData.Concepts     = this.TE_CONCEPTS.EditValue.ToString();

                if (_mdc.SaveNameSapce(this._nodesData))
                {
                    XtraMessageBox.Show("保存成功!");
                    _haveChange = false;
                    this.RaiseMenuChanged();
                }
            }
        }