void BtnView_Click(object sender, RoutedEventArgs e)
        {

            if (Meetingtemplate != null)
            {
                MeetingTemplateForm form = new MeetingTemplateForm(Action.Read, Meetingtemplate.MEETINGTEMPLATEID, "");
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Browse;
                browser.MinWidth = 850;
                browser.MinHeight = 600;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }


            ////会议类型ID  
            //string TypeId = "";

            //if (DaGr.ItemsSource != null)
            //{
            //    foreach (object obj in DaGr.ItemsSource)
            //    {
            //        if (DaGr.Columns[0].GetCellContent(obj) != null)
            //        {
            //            CheckBox cb1 = DaGr.Columns[0].GetCellContent(obj).FindName("myChkBox") as CheckBox; //cb为
            //            if (cb1.IsChecked == true)
            //            {
            //                T_OA_MEETINGTEMPLATE ChkTemplate = new T_OA_MEETINGTEMPLATE();
            //                ChkTemplate = cb1.Tag as T_OA_MEETINGTEMPLATE;

            //                TypeId = ChkTemplate.MEETINGTEMPLATEID.ToString();
            //                break;
            //            }
            //        }
            //    }

            //}


            //if (string.IsNullOrEmpty(TypeId))
            //{
            //    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("PLEASESELECT", "MEETINGTYPETEMPLATE"));
            //    return;
            //}
            //else
            //{
            //    MeetingTemplateForm form = new MeetingTemplateForm(Action.Read, TypeId, "");
            //    EntityBrowser browser = new EntityBrowser(form);
            //    browser.MinWidth = 400;
            //    browser.MinHeight = 500;
            //    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            //    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            //}

        }
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            
            //AddMeetingTemplate AddWin = new AddMeetingTemplate("Add");
            //AddWin.Show();
            //AddWin.ReloadDataEvent += new AddMeetingTemplate.refreshGridView(AddWin_ReloadDataEvent);

            MeetingTemplateForm form = new MeetingTemplateForm(Action.Add, "", "");
            EntityBrowser browser = new EntityBrowser(form);
            browser.MinWidth = 850;
            browser.MinHeight = 600;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) =>{});
        }