Ejemplo n.º 1
0
 protected void RaiseShowDetailDatal(ShowDetailDataArgs _args)
 {
     if (ShowDetailData != null)
     {
         ShowDetailData(this, _args);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 显示查询模型方式的详细信息
        /// </summary>
        /// <param name="_df"></param>
        /// <param name="_dr"></param>
        private void ShowDetailByQueryModel(MD_GuideLineDetailDefine _df, DataRow _dr)
        {
            //取链接明细参数定义
            List <MD_GuideLineDetailParameter> _detailParamList = MC_GuideLine.GetGuideLineDetailParam(_df.DetailParameterMeta);
            MD_GuideLineDetailParameter        _param           = _detailParamList[0];
            string             _data = ReplaceVerByRowData(_dr, _param.DataValue);
            ShowDetailDataArgs _args = new ShowDetailDataArgs(_df.DetailMethodID, _param.Name, _data);

            RaiseShowDetailDatal(_args);
        }
Ejemplo n.º 3
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);
                }
            }
        }
Ejemplo n.º 4
0
        void _uc_ShowDetailData(object sender, EventArgs e)
        {
            ShowDetailDataArgs _showArgs = e as ShowDetailDataArgs;
            GuideLineDetailControler.ShowDetail(_showArgs, _application);

        }
Ejemplo n.º 5
0
        private void sinoSZUC_GuideLineQueryResult1_ShowDetailData(object sender, EventArgs e)
        {
            ShowDetailDataArgs _showArgs = e as ShowDetailDataArgs;

            GuideLineDetailControler.ShowDetail(_showArgs, _application);
        }