Exemplo n.º 1
0
        private void CMD_ShowDetail()
        {
            int _index = this.gridView1.FocusedRowHandle;

            if (_index >= 0)
            {
                MDSearch_ResultDataIndex _rd = this.gridView1.GetRow(_index) as MDSearch_ResultDataIndex;
                frmSinoSZ_DataDetail     _f  = new frmSinoSZ_DataDetail(_rd);
                this._application.AddForm(Guid.NewGuid().ToString(), _f);
            }
        }
Exemplo n.º 2
0
        public static void ShowDetail(ShowDetailDataArgs _showArgs, IApplication _application)
        {
            if (_showArgs.Type == "GuideLine")
            {
                frmGuideLineQueryWithoutInput _f = new frmGuideLineQueryWithoutInput(_showArgs.GuideLine, _showArgs.QueryParams);
                _application.AddForm(Guid.NewGuid().ToString(), _f);
            }

            if (_showArgs.Type == "QueryModel")
            {
                using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient())
                {
                    string _mainKey = _msc.GetMainTableKeyByColumnCondition(_showArgs.QueryModelName,
                                                                            _showArgs.QueryColumnName,
                                                                            _showArgs.QueryDataValue);
                    MDModel_QueryModel   _model = MetaDataCache.GetQueryModelDefine(_showArgs.QueryModelName);
                    frmSinoSZ_DataDetail _f     = new frmSinoSZ_DataDetail(_model, _mainKey);
                    _application.AddForm(Guid.NewGuid().ToString(), _f);
                }
            }
        }