private void ShowAsRelation(string _relationTableName) { SinoSZ_TableRelationCompose _trc = SinoSZ_TableRelationCompose.Compse(this.compareRequest as MDQuery_Request, this.QueryModel, CompareResult.Tables[_relationTableName]); this.sinoSZUC_GridControlEx1.ClearColumns(); this.sinoSZUC_GridControlEx1.ShowQueryResult(_trc.QueryRequest, _trc.QueryModel); this.sinoSZUC_GridControlEx1.DataSource = _trc.ResultData; this.tableLayoutPanel1.RowStyles[1].Height = 100; this.tableLayoutPanel1.RowStyles[2].Height = 0; _currentGrid = this.sinoSZUC_GridControlEx1.CurrentView; }
/// <summary> /// 关联展示 /// </summary> /// <param name="p"></param> private void ShowAsRelation(string _relationTableName) { this.sinoSZUC_GridControlEx1.Visible = false; this.sinoSZUC_GridControlEx2.Visible = true; this.sinoSZUC_GridControlEx3.Visible = false; if (!_relationDataDict.ContainsKey(_relationTableName)) { SinoSZ_TableRelationCompose _ret = SinoSZ_TableRelationCompose.Compse(this.QueryRequest, this.QueryModel, QueryResultData.Tables[_relationTableName]); _relationDataDict.Add(_relationTableName, _ret); } SinoSZ_TableRelationCompose _trc = _relationDataDict[_relationTableName]; this.sinoSZUC_GridControlEx2.ClearColumns(); this.sinoSZUC_GridControlEx2.ShowQueryResult(_trc.QueryRequest, _trc.QueryModel); this.sinoSZUC_GridControlEx2.DataSource = _trc.ResultData; _currentGrid = this.sinoSZUC_GridControlEx2; RaiseMenuChanged(); }