Exemple #1
0
 private void SaveData()
 {
     _queryModel.Description     = this.TE_DES.EditValue.ToString();
     _queryModel.DisplayTitle    = this.TE_DISPLAY.EditValue.ToString();
     _queryModel.DisplayOrder    = Convert.ToInt32(this.TE_DISPLAYORDER.EditValue.ToString());
     _queryModel.QueryModelName  = this.TE_MODELNAME.EditValue.ToString();
     _queryModel.IsFixQuery      = (this.TE_TYPE.Items[0].CheckState == CheckState.Checked);
     _queryModel.IsRelationQuery = (this.TE_TYPE.Items[1].CheckState == CheckState.Checked);
     _queryModel.IsDataAuditing  = (this.TE_TYPE.Items[2].CheckState == CheckState.Checked);
     _queryModel.QueryInterface  = (this.te_Ics.SelectedItem.ToString());
     _queryModel.EXTMeta         = (this.te_ExtMeta.EditValue == null) ? "" : this.te_ExtMeta.EditValue.ToString();
     using (MetaDataServiceClient _mdc = new MetaDataServiceClient())
     {
         _mdc.SaveQueryModel(_queryModel);
     }
     _haveChange = false;
     RaiseDataChanged();
 }