Exemple #1
0
 private void ShowTabPages(GuideLineLinkItem _gLine)
 {
     string[] _guideLineIDs    = _gLine.GuideLineID.Split(',');
     string[] _guideLineTitles = _gLine.ExtendParams.Split(',');
     this.xtraTabControl1.TabPages.Clear();
     using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient())
     {
         for (int i = 0; i < _guideLineIDs.Length; i++)
         {
             string      _title = (_guideLineTitles.Length > i) ? _guideLineTitles[i] : _gLine.Title;
             XtraTabPage _tp    = this.xtraTabControl1.TabPages.Add();
             _tp.Text = _title;
             string       _glid     = _guideLineIDs[i];
             MD_GuideLine _glDefine = _msc.GetGuideLineByID(_glid);
             _tp.Tag = _glDefine;
             SinoSZUC_GuideLineQueryResult _qr = new SinoSZUC_GuideLineQueryResult();
             _qr.Dock = DockStyle.Fill;
             _tp.Controls.Add(_qr);
             if (i == 0)
             {
                 this.sinoSZUC_GuideLineDynamicInput21.InitForm(_glDefine);
                 this.sinoSZUC_GuideLineDynamicInput21.WriteParamValue(_gLine.Params);
             }
             _qr.QueryFinished  += new EventHandler(_qr_QueryFinished);
             _qr.ShowDetailData += new EventHandler(_qr_ShowDetailData);
         }
         if (this.xtraTabControl1.TabPages.Count > 0)
         {
             this.xtraTabControl1.SelectedTabPageIndex = 0;
         }
     }
 }
Exemple #2
0
        private void ShowChart()
        {
            XtraTabPage _tp = this.xtraTabControl1.SelectedTabPage;
            SinoSZUC_GuideLineQueryResult _glRes = _tp.Controls[0] as SinoSZUC_GuideLineQueryResult;

            _glRes.ShowAsChart(_application);
        }
Exemple #3
0
 private void ReQuery()
 {
     if (this.sinoSZUC_GuideLineDynamicInput21.InputFinised)
     {
         this.xtraTabControl1.SelectedTabPageIndex = 0;
         QueryParameter = this.sinoSZUC_GuideLineDynamicInput21.GetParamters();
         foreach (XtraTabPage _tp in this.xtraTabControl1.TabPages)
         {
             MD_GuideLine _glDefine = _tp.Tag as MD_GuideLine;
             SinoSZUC_GuideLineQueryResult _rest = _tp.Controls[0] as SinoSZUC_GuideLineQueryResult;
             _rest.ShowGuideLineResult(_glDefine, QueryParameter);
         }
     }
 }
Exemple #4
0
        /// <summary>
        /// 执行菜单命令
        /// </summary>
        /// <param name="_cmdName"></param>
        /// <returns></returns>
        public bool DoCommand(string _cmdName)
        {
            switch (_cmdName)
            {
            case "查询":
                ReQuery();
                break;

            case "图表展示":
                ShowChart();
                break;

            case "导出":
                XtraTabPage _tp = this.xtraTabControl1.SelectedTabPage;
                SinoSZUC_GuideLineQueryResult _glRes = _tp.Controls[0] as SinoSZUC_GuideLineQueryResult;
                SinoSZExport_GridViewData.Export(_glRes.CurrentView);
                break;
            }
            this.RaiseMenuChanged();
            return(true);
        }