public FrmSflbMx(string chineseName, Form mdiParent) { InitializeComponent(); InitInfo(); this._chineseName = chineseName; this._mdiParent = mdiParent; frmmain = this; this.dataGridView1.AutoGenerateColumns = false; }
/// <summary> /// 根据函数名称实例化窗体 /// </summary> public void InstanceWorkForm() { if (_functionName == "") { throw new Exception("引出函数名不能为空!"); } Form frm = null; switch (_functionName) { case "Fun_Ts_zyys_sflb": frm = new FrmSflb(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_sflbmx": frm = new FrmSflbMx(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_gflb": frm = new FrmGflb(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_gflbmx": frm = new FrmGflbMx(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_GfBcBl": frm = new FrmGfBcBl(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_PatRcrds": frm = new FrmPatRcrds(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_PfWrkUnits": frm = new FrmPfWrkUnits(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_MatSflb": frm = new FrmMatSflb(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_PubFeeQuery": frm = new FrmPubFeeQuery(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_ExpPubFee": frm = new FrmExpPubFee(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_JAQExpPubFee": string jaq_yblx = "22"; frm = new FrmExpPubFee(jaq_yblx); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_MzGfSh": frm = new FrmGfChk(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; case "Fun_Ts_zyys_GfItem": frm = new FrmGfItem(); if (_mdiParent != null) { frm.MdiParent = _mdiParent; // frmyzgl.Show(); } frm.WindowState = FormWindowState.Maximized; frm.Show(); break; default: throw new Exception("引出函数名错误!"); } }