//private void cbDictionay_SelectionChanged(object sender, SelectionChangedEventArgs e) //{ // LoadData(); //} #region 添加 修改 删除 void BtnView_Click(object sender, RoutedEventArgs e) { if (DtGrid.SelectedItems.Count != 0) { Form.SysDictionaryForm form = new Form.SysDictionaryForm(FormTypes.Browse, (DtGrid.SelectedItems[0] as T_SYS_DICTIONARY).DICTIONARYID); EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 310; browser.FormType = FormTypes.Browse; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.EntityEditor = form; browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "请选择查看记录", Utility.GetResourceStr("CONFIRMBUTTON")); } }
//private void cbDictionay_SelectionChanged(object sender, SelectionChangedEventArgs e) //{ // LoadData(); //} #region 添加 修改 删除 void BtnView_Click(object sender, RoutedEventArgs e) { if (DtGrid.SelectedItems.Count != 0) { Form.SysDictionaryForm form = new Form.SysDictionaryForm(FormTypes.Browse, (DtGrid.SelectedItems[0] as T_SYS_DICTIONARY).DICTIONARYID); EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 310; browser.FormType = FormTypes.Browse; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.EntityEditor = form; browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "请选择查看记录", Utility.GetResourceStr("CONFIRMBUTTON")); } }