private void InsertInput() { string _msg = ""; if (CheckInput(ref _msg)) { this.displayName = (this.te_DisplayName.EditValue == null) ? "" : this.te_DisplayName.EditValue.ToString(); this.description = (this.te_Des.EditValue == null) ? "" : this.te_Des.EditValue.ToString(); this.expression = (this.te_exp.EditValue == null) ? "" : this.te_exp.EditValue.ToString(); if (this.checkEdit1.Checked) { using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient()) { _msc.SaveComputeFieldDefine(this.DisplayName, this.Description, this.Expression, this.queryString, this.ResultDataType, this.TableDefine.TableName, this.TableDefine.QueryModelName); } } this.DialogResult = DialogResult.OK; this.Close(); } else { XtraMessageBox.Show(_msg, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } }