Esempio n. 1
0
        private void QueryTaskID()
        {
            if (this._queryTask != null)
            {
                using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient())
                {
                    QueryRequest = _msc.GetQueryTaskRequestContext(this._queryTask.TaskID);
                    QueryModel   = MetaDataCache.GetQueryModelDefine(QueryRequest.QueryModelName);
                    switch (this._queryTask.TaskType)
                    {
                    case "HGSQL":
                        QueryResultData = _msc.GetTaskQueryResult_DataSet(this._queryTask.TaskID);
                        MC_QueryModel.CreateDataRelation(this.QueryModel, QueryResultData);
                        break;

                    case "LOCALORA":
                        QueryResultData = _msc.GetTaskQueryResult_ORA(this._queryTask.TaskID);
                        MC_QueryModel.CreateDataRelation(this.QueryModel, QueryResultData);
                        break;
                    }
                }
            }
        }