コード例 #1
0
ファイル: InstanceForm.cs プロジェクト: Wooyme/HIS-1
        /// <summary>
        /// 根据函数名称实例化窗体
        /// </summary>
        public void InstanceWorkForm()
        {
            if (_functionName == "")
            {
                throw new Exception("引出函数名不能为空!");
            }

            switch (_functionName)
            {
            case "Fun_ts_yf_cx_flmxz":
                Frmypmxz Frmypmxz = null;
                Frmypmxz = new Frmypmxz(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmypmxz.MdiParent = _mdiParent;
                }
                Frmypmxz.Show();
                break;

            case "Fun_ts_yf_cx_kccx_jy":
            case "Fun_ts_yf_cx_kccx":
                Frmkccx Frmkccx = null;
                Frmkccx = new Frmkccx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmkccx.MdiParent = _mdiParent;
                }
                Frmkccx.Show();
                break;

            case "Fun_ts_yf_cx_qykccx":
            case "Fun_ts_yf_cx_qykccx_qtbm":
                Frmqykccx Frmqykccx = null;
                Frmqykccx = new Frmqykccx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmqykccx.MdiParent = _mdiParent;
                }
                Frmqykccx.Show();
                break;

            case "Fun_ts_yf_cx_tjmx":
                Frmtjmx Frmtjmx = null;
                Frmtjmx = new Frmtjmx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmtjmx.MdiParent = _mdiParent;
                }
                Frmtjmx.Show();
                break;

//				case "Fun_ts_yf_cx_cfcx" :
//					Frmcfcx Frmcfcx=null;
//					Frmcfcx=new Frmcfcx(_menuTag,_chineseName,_mdiParent);
//					if(_mdiParent!=null)
//					{
//						Frmcfcx.MdiParent = _mdiParent;
//					}
//					Frmcfcx.Show();
//					break;
            case "Fun_ts_yf_cx_mztycx":
                Frmtyqktj Frmtyqktj = null;
                Frmtyqktj = new Frmtyqktj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmtyqktj.MdiParent = _mdiParent;
                }
                Frmtyqktj.Show();
                break;

            case "Fun_ts_yf_mzcfcx":
                FrmMzcfcx FrmMzcfcx = null;
                FrmMzcfcx = new FrmMzcfcx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    FrmMzcfcx.MdiParent = _mdiParent;
                }
                FrmMzcfcx.Show();
                break;

            case "Fun_ts_yf_ksstjzb":
                Frmkjywzbtj Frmkjywzbtj = null;
                Frmkjywzbtj = new Frmkjywzbtj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmkjywzbtj.MdiParent = _mdiParent;
                }
                Frmkjywzbtj.Show();
                break;

            case "Fun_ts_yf_ksstjzb_zyyp":
            case "Fun_ts_yf_ksstjzb_zyyp_ks":
                Frmkssdddtj_zy Frmkssdddtj_zy = null;
                Frmkssdddtj_zy = new Frmkssdddtj_zy(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmkssdddtj_zy.MdiParent = _mdiParent;
                }
                Frmkssdddtj_zy.Show();
                break;

            case "Fun_ts_yf_cx_zycfcx":
                Frmzycfcx Frmzycfcx = null;
                Frmzycfcx = new Frmzycfcx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmzycfcx.MdiParent = _mdiParent;
                }
                Frmzycfcx.Show();
                break;

            case "Fun_ts_yf_cx_gqyptj":
                Frmgqyptj gqyptj = null;
                gqyptj = new Frmgqyptj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    gqyptj.MdiParent = _mdiParent;
                }
                gqyptj.Show();
                break;

            default:
                throw new Exception("引出函数名称错误!");
            }
        }
コード例 #2
0
        /// <summary>
        /// 根据函数名称实例化窗体
        /// </summary>
        public void InstanceWorkForm()
        {
            if (_functionName == "")
            {
                throw new Exception("引出函数名不能为空!");
            }

            switch (_functionName)
            {
            case "Fun_ts_yf_cx_flmxz":
                Frmypmxz Frmypmxz = null;
                Frmypmxz = new Frmypmxz(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmypmxz.MdiParent = _mdiParent;
                }
                Frmypmxz.Show();
                break;

            case "Fun_ts_yf_cx_kccx_jy":
            case "Fun_ts_yf_cx_kccx_noKc":
            case "Fun_ts_yf_cx_kccx":
                Frmkccx Frmkccx = null;
                Frmkccx = new Frmkccx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmkccx.MdiParent = _mdiParent;
                }
                Frmkccx.Show();
                break;

            case "Fun_ts_yf_cx_qykccx":
            case "Fun_ts_yf_cx_qykccx_qtbm":
                Frmqykccx Frmqykccx = null;
                Frmqykccx = new Frmqykccx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmqykccx.MdiParent = _mdiParent;
                }
                Frmqykccx.Show();
                break;

            case "Fun_ts_yf_cx_tjmx":
                Frmtjmx Frmtjmx = null;
                Frmtjmx = new Frmtjmx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmtjmx.MdiParent = _mdiParent;
                }
                Frmtjmx.Show();
                break;

//				case "Fun_ts_yf_cx_cfcx" :
//					Frmcfcx Frmcfcx=null;
//					Frmcfcx=new Frmcfcx(_menuTag,_chineseName,_mdiParent);
//					if(_mdiParent!=null)
//					{
//						Frmcfcx.MdiParent = _mdiParent;
//					}
//					Frmcfcx.Show();
//					break;
            case "Fun_ts_yf_cx_mztycx":
                Frmtyqktj Frmtyqktj = null;
                Frmtyqktj = new Frmtyqktj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmtyqktj.MdiParent = _mdiParent;
                }
                Frmtyqktj.Show();
                break;

            case "Fun_ts_yf_mzcfcx":
                FrmMzcfcx FrmMzcfcx = null;
                FrmMzcfcx = new FrmMzcfcx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    FrmMzcfcx.MdiParent = _mdiParent;
                }
                FrmMzcfcx.Show();
                break;

            case "Fun_ts_yf_ksstjzb":
                Frmkjywzbtj Frmkjywzbtj = null;
                Frmkjywzbtj = new Frmkjywzbtj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmkjywzbtj.MdiParent = _mdiParent;
                }
                Frmkjywzbtj.Show();
                break;

            case "Fun_ts_yf_ksstjzb_zyyp":
            case "Fun_ts_yf_ksstjzb_zyyp_ks":
                Frmkssdddtj_zy Frmkssdddtj_zy = null;
                Frmkssdddtj_zy = new Frmkssdddtj_zy(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmkssdddtj_zy.MdiParent = _mdiParent;
                }
                Frmkssdddtj_zy.Show();
                break;

            case "Fun_ts_yf_cx_zycfcx":
                Frmzycfcx Frmzycfcx = null;
                Frmzycfcx = new Frmzycfcx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmzycfcx.MdiParent = _mdiParent;
                }
                Frmzycfcx.Show();
                break;

            case "Fun_ts_yf_cx_gqyptj":
                Frmgqyptj gqyptj = null;
                gqyptj = new Frmgqyptj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    gqyptj.MdiParent = _mdiParent;
                }
                gqyptj.Show();
                break;

            case "Fun_ts_yf_cx_jybqdy":
                Frmjyfdy Frmjyfdy = null;
                Frmjyfdy = new Frmjyfdy(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmjyfdy.MdiParent = _mdiParent;
                }
                Frmjyfdy.Show();
                break;

            case "Fun_ts_yf_cx_djcx":
                Frmdjcx Frmdjcx = null;
                Frmdjcx = new Frmdjcx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmdjcx.MdiParent = _mdiParent;
                }
                Frmdjcx.Show();
                break;

            case "Fun_ts_yf_djhz_fkbl":
                Frmdjhz_fkbl frmdjhz_fkbl = null;
                frmdjhz_fkbl = new Frmdjhz_fkbl(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    frmdjhz_fkbl.MdiParent = _mdiParent;
                }
                frmdjhz_fkbl.Show();
                break;

            case "Fun_ts_yf_cx_jmypcx":      //精麻药品查询  pengyang 2015-12-14
                Frmjmypcx frmjmypcx = null;
                frmjmypcx = new Frmjmypcx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    frmjmypcx.MdiParent = _mdiParent;
                }
                frmjmypcx.Show();
                break;

            case "Fun_ts_yf_cx_zcyjy":
                FrmZyMzJyCx frmZcyJy = null;
                frmZcyJy = new FrmZyMzJyCx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    frmZcyJy.MdiParent = _mdiParent;
                }
                frmZcyJy.Show();
                break;

            default:
                throw new Exception("引出函数名称错误!");
            }
        }