/// <summary> /// 弹出表单子窗口,新增班次定义 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnNew_Click(object sender, RoutedEventArgs e) { string strShiftDefineID = string.Empty; ShiftDefineForm formShiftDefine = new ShiftDefineForm(FormTypes.New, strShiftDefineID); EntityBrowser entBrowser = new EntityBrowser(formShiftDefine); entBrowser.FormType = FormTypes.New; entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent); entBrowser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => {}); }