private void HyperlinkButton_Click(object sender, RoutedEventArgs e) { try { V_SystemNotice source = (sender as HyperlinkButton).DataContext as V_SystemNotice; switch (source.Formtype) { case "StaffSurvey": //员工调查 StaffSurveyWebPart form = new StaffSurveyWebPart(source.FormId); EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 550; browser.MinWidth = 750; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); break; case "SatisfactionSurvey": //满意度调查 SatisfactionSurveyWebPart Houseform = new SatisfactionSurveyWebPart(source.FormId); EntityBrowser Housebrowser = new EntityBrowser(Houseform); Housebrowser.MinHeight = 650; Housebrowser.MinWidth = 800; Housebrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); Housebrowser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); break; } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }
private void HyperlinkButton_Click(object sender, RoutedEventArgs e) { try { V_SystemNotice source = (sender as HyperlinkButton).DataContext as V_SystemNotice; switch (source.Formtype) { case "StaffSurvey"://员工调查 StaffSurveyWebPart form = new StaffSurveyWebPart(source.FormId); EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 550; browser.MinWidth = 750; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); break; case "SatisfactionSurvey"://满意度调查 SatisfactionSurveyWebPart Houseform = new SatisfactionSurveyWebPart(source.FormId); EntityBrowser Housebrowser = new EntityBrowser(Houseform); Housebrowser.MinHeight = 650; Housebrowser.MinWidth = 800; Housebrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); Housebrowser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); break; } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }