예제 #1
0
        /// <summary>
        /// 根据函数名称实例化窗体
        /// </summary>
        public void InstanceWorkForm()
        {
            if (_functionName == "")
            {
                throw new Exception("引出函数名不能为空!");
            }
            switch (_functionName)
            {
            case "Fun_ts_yf_tjbb_xspm":
                //Frmxspm Frmxspm=new Frmxspm(_menuTag,_chineseName,_mdiParent);
                //if(_mdiParent!=null)
                //{
                //    Frmxspm.MdiParent = _mdiParent;
                //}
                //Frmxspm.Show();
                Xspm_kss xspmKss = new Xspm_kss(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    xspmKss.MdiParent = _mdiParent;
                }
                xspmKss.WindowState = FormWindowState.Maximized;
                xspmKss.Show();
                break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            case "Fun_ts_yf_tjbb_jyxshjtj":
                FrmJyxsHZtj Frmjyxshztj = new FrmJyxsHZtj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmjyxshztj.MdiParent = _mdiParent;
                }
                Frmjyxshztj.WindowState = FormWindowState.Maximized;
                Frmjyxshztj.Show();
                break;

            case "Fun_ts_yf_tjbb_yptlqk":
                FrmLYYP_KS Frmlyyp_ks = new FrmLYYP_KS(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmlyyp_ks.MdiParent = _mdiParent;
                }
                Frmlyyp_ks.WindowState = FormWindowState.Maximized;
                Frmlyyp_ks.Show();
                break;

            //add by jchl
            case "Fun_ts_yf_tjbb_pdfhl":
                FrmPDRate frmPdFhl = new FrmPDRate(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    frmPdFhl.MdiParent = _mdiParent;
                }
                frmPdFhl.WindowState = FormWindowState.Maximized;
                frmPdFhl.Show();
                break;

            //add by jchl
            case "Fun_ts_yf_tjbb_gzltjbb":
                FrmYfGzlTj frmGzlTjbb = new FrmYfGzlTj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    frmGzlTjbb.MdiParent = _mdiParent;
                }
                frmGzlTjbb.WindowState = FormWindowState.Maximized;
                frmGzlTjbb.Show();
                break;

            case "Fun_ts_yf_ckmxhz":
                Frmyfckmx frm = new Frmyfckmx(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    frm.MdiParent = _mdiParent;
                }
                frm.WindowState = FormWindowState.Maximized;
                frm.Show();
                break;

            case "Fun_ts_yf_tjbb_ksxspm":
                FrmMedSaleOrd KsxspmKss = new FrmMedSaleOrd();
                if (_mdiParent != null)
                {
                    KsxspmKss.MdiParent = _mdiParent;
                }
                KsxspmKss.WindowState = FormWindowState.Maximized;
                KsxspmKss.Show();
                break;

            default:
                throw new Exception("引出函数名称错误!");
            }
        }
예제 #2
0
        /// <summary>
        /// 根据函数名称实例化窗体
        /// </summary>
        public void InstanceWorkForm()
        {
            if (_functionName == "")
            {
                throw new Exception("引出函数名不能为空!");
            }
            //★需要调用的窗口类
            switch (_functionName)
            {
            case "Fun_ts_yk_tjbb_xspm":                     //销售排名
                Frmxspm Frmxspm = new Frmxspm(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmxspm.MdiParent = _mdiParent;
                }
                Frmxspm.Show();
                break;

            case "Fun_ts_yk_tjbb_jhpm":                     //进货排名
                Frmjhpm Frmjhpm = new Frmjhpm(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmjhpm.MdiParent = _mdiParent;
                }
                Frmjhpm.Show();
                break;

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

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

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

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

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

            case "Fun_ts_yk_tjbb_ylfltj_rk":                      //药理分类统计
            case "Fun_ts_yk_tjbb_ylfltj_ck":
                Frmylfltj Frmylfltj = new Frmylfltj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmylfltj.MdiParent = _mdiParent;
                }
                Frmylfltj.Show();
                break;

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

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

            case "Fun_ts_yk_tjbb_gzyp":                       //药品属性分类统计
                Frmgzyptj Frmgzyptj = new Frmgzyptj(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    Frmgzyptj.MdiParent = _mdiParent;
                }
                Frmgzyptj.Show();
                break;

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

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

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

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

            case "Fun_ts_yk_tjbb_fkhztj_jy":
                Frmrkhztj_jy frmrkhztj_jy = new Frmrkhztj_jy(_menuTag, _chineseName, _mdiParent);
                if (_mdiParent != null)
                {
                    frmrkhztj_jy.MdiParent = _mdiParent;
                }
                frmrkhztj_jy.WindowState = FormWindowState.Maximized;
                frmrkhztj_jy.Show();
                break;

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