Exemplo n.º 1
0
        private void titlebtn_Click(object sender, MouseButtonEventArgs e)
        {
            TextBlock      titleBtn = sender as TextBlock;
            V_SystemNotice NoticeV  = titleBtn.Tag as V_SystemNotice;

            switch (NoticeV.Formtype)
            {
            case "Notice":    //会议通知
                MeetingNoticeWebPart form    = new MeetingNoticeWebPart(NoticeV.FormId);
                EntityBrowser        browser = new EntityBrowser(form);
                browser.MinHeight        = 570;
                browser.MinWidth         = 580;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
                break;

            case "HouseIssue":    //房源发布
                //MeetingNoticeWebPart Houseform = new MeetingNoticeWebPart(NoticeV.FormId);
                HouseIssueWebPart Houseform    = new HouseIssueWebPart(NoticeV.FormId);
                EntityBrowser     Housebrowser = new EntityBrowser(Houseform);
                Housebrowser.MinHeight        = 570;
                Housebrowser.MinWidth         = 580;
                Housebrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                Housebrowser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);

                break;
            }
        }
Exemplo n.º 2
0
        private void titlebtn_Click(object sender, MouseButtonEventArgs e)
        {
            TextBlock titleBtn = sender as TextBlock;
            V_SystemNotice NoticeV = titleBtn.Tag as V_SystemNotice;
            switch (NoticeV.Formtype)
            {
                case "Notice"://会议通知
                    MeetingNoticeWebPart form = new MeetingNoticeWebPart(NoticeV.FormId);
                    EntityBrowser browser = new EntityBrowser(form);
                    browser.MinHeight = 570;
                    browser.MinWidth = 580;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
                    break;
                case "HouseIssue"://房源发布
                    //MeetingNoticeWebPart Houseform = new MeetingNoticeWebPart(NoticeV.FormId);
                    HouseIssueWebPart Houseform = new HouseIssueWebPart(NoticeV.FormId);
                    EntityBrowser Housebrowser = new EntityBrowser(Houseform);
                    Housebrowser.MinHeight = 570;
                    Housebrowser.MinWidth = 580;
                    Housebrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    Housebrowser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);

                    break;
                
            }

        }
Exemplo n.º 3
0
        private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                V_SystemNotice source = (sender as HyperlinkButton).DataContext as V_SystemNotice;
                //NewsShow newsview = new NewsShow() { ViewModel = source };

                switch (source.Formtype)
                {
                case "会议通知":    //会议通知
                    MeetingNoticeWebPart form    = new MeetingNoticeWebPart(source.FormId);
                    EntityBrowser        browser = new EntityBrowser(form);
                    browser.MinHeight        = 570;
                    browser.MinWidth         = 580;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
                    break;

                case "房源发布":    //房源发布
                    //MeetingNoticeWebPart Houseform = new MeetingNoticeWebPart(NoticeV.FormId);
                    HouseIssueWebPart Houseform    = new HouseIssueWebPart(source.FormId);
                    EntityBrowser     Housebrowser = new EntityBrowser(Houseform);
                    Housebrowser.MinHeight        = 570;
                    Housebrowser.MinWidth         = 580;
                    Housebrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    Housebrowser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);

                    break;
                    //case "CompanyDoc"://公司公文
                    //    CompanyDocWebPart SendDocform = new CompanyDocWebPart(source.FormId);
                    //    System.Windows.Controls.Window.Show("公司发文", "", source.FormId, true, true, SendDocform, null);
                    //    //EntityBrowser SendDocbrowser = new EntityBrowser(SendDocform);
                    //    //SendDocbrowser.MinHeight = 850;
                    //    //SendDocbrowser.MinWidth = 650;
                    //    //SendDocbrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    //    //SendDocbrowser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);

                    //break;
                }
                if (source.Formtype != "会议通知" && source.Formtype != "房源发布")
                {
                    CompanyDocWebPart SendDocform     = new CompanyDocWebPart(source.FormId);
                    System.Windows.Controls.Window wd = new System.Windows.Controls.Window();
                    wd.MinWidth     = 980;
                    wd.MinHeight    = 460;
                    wd.Content      = SendDocform;
                    wd.TitleContent = "公司发文";

                    wd.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true, false, source.FormId);
                }
                //switch (source.NEWSTYPEID)
                //{
                //    case "0": titel = "新闻"; break;
                //    case "1": titel = "动态"; break;
                //    case "2": titel = "公告"; break;
                //    case "3": titel = "通知"; break;
                //    default:
                //        break;
                //}
                //System.Windows.Controls.Window.Show(titel, "", source.NEWSID, true, true, newsview, null);
            }
            catch (Exception ex)
            {
                string aa = "";
            }
        }
Exemplo n.º 4
0
        private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                V_SystemNotice source = (sender as HyperlinkButton).DataContext as V_SystemNotice;
                //NewsShow newsview = new NewsShow() { ViewModel = source };
                
                switch (source.Formtype)
                {
                    case "会议通知"://会议通知
                        MeetingNoticeWebPart form = new MeetingNoticeWebPart(source.FormId);
                        EntityBrowser browser = new EntityBrowser(form);
                        browser.MinHeight = 570;
                        browser.MinWidth = 580;
                        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                        browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
                        break;
                    case "房源发布"://房源发布
                        //MeetingNoticeWebPart Houseform = new MeetingNoticeWebPart(NoticeV.FormId);
                        HouseIssueWebPart Houseform = new HouseIssueWebPart(source.FormId);
                        EntityBrowser Housebrowser = new EntityBrowser(Houseform);
                        Housebrowser.MinHeight = 570;
                        Housebrowser.MinWidth = 580;
                        Housebrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                        Housebrowser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);

                        break;
                    //case "CompanyDoc"://公司公文
                    //    CompanyDocWebPart SendDocform = new CompanyDocWebPart(source.FormId);
                    //    System.Windows.Controls.Window.Show("公司发文", "", source.FormId, true, true, SendDocform, null);
                    //    //EntityBrowser SendDocbrowser = new EntityBrowser(SendDocform);
                    //    //SendDocbrowser.MinHeight = 850;
                    //    //SendDocbrowser.MinWidth = 650;
                    //    //SendDocbrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    //    //SendDocbrowser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);

                    //break;
                }
                if (source.Formtype != "会议通知" && source.Formtype != "房源发布")
                {
                    CompanyDocWebPart SendDocform = new CompanyDocWebPart(source.FormId);
                    System.Windows.Controls.Window wd = new System.Windows.Controls.Window();
                    wd.MinWidth = 980;
                    wd.MinHeight = 460;
                    wd.Content = SendDocform;
                    wd.TitleContent = "公司发文";
                    
                    wd.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true, false, source.FormId);

                }
                //switch (source.NEWSTYPEID)
                //{
                //    case "0": titel = "新闻"; break;
                //    case "1": titel = "动态"; break;
                //    case "2": titel = "公告"; break;
                //    case "3": titel = "通知"; break;
                //    default:
                //        break;
                //}
                //System.Windows.Controls.Window.Show(titel, "", source.NEWSID, true, true, newsview, null);

            }
            catch (Exception ex)
            {
                string aa = "";
            }
        }