void BtnView_Click(object sender, RoutedEventArgs e) { V_MyMeetingInfosManagement VMeetingStaff = new V_MyMeetingInfosManagement(); 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) { VMeetingStaff = cb1.Tag as V_MyMeetingInfosManagement; break; } } } } if (VMeetingStaff.OAMeetingStaffT == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON")); } else { if (SelectMeeting.OAMeetingStaffT.ISOK == "1" || SelectMeeting.OAMeetingStaffT.ISOK == "2") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("ISOKNOTCONFIRMAGAIN")); return; } else { EmceeMemberMeetingForm AddWin = new EmceeMemberMeetingForm(tmpMeetingInfoT, VMeetingStaff, tmpRoom); EntityBrowser browser = new EntityBrowser(AddWin); browser.MinHeight = 650; browser.MinWidth = 600; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); //T_OA_MEETINGSTAFF staff = new T_OA_MEETINGSTAFF(); //staff = SelectMeeting.OAMeetingStaffT; //staff.ISOK = "2";////确认不通过 //MeetingClient.MeetingStaffUpdateInfosCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(MeetingClient_MeetingStaffUpdateInfosCompleted); //MeetingClient.MeetingStaffUpdateInfosAsync(staff); } } }
void BtnView_Click(object sender, RoutedEventArgs e) { V_MyMeetingInfosManagement VMeetingStaff = new V_MyMeetingInfosManagement(); 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) { VMeetingStaff = cb1.Tag as V_MyMeetingInfosManagement; break; } } } } if (VMeetingStaff.OAMeetingStaffT == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON")); } else { if (SelectMeeting.OAMeetingStaffT.ISOK == "1" || SelectMeeting.OAMeetingStaffT.ISOK == "2") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("ISOKNOTCONFIRMAGAIN")); return; } else { EmceeMemberMeetingForm AddWin = new EmceeMemberMeetingForm(tmpMeetingInfoT, VMeetingStaff, tmpRoom); EntityBrowser browser = new EntityBrowser(AddWin); browser.MinHeight = 650; browser.MinWidth = 600; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); //T_OA_MEETINGSTAFF staff = new T_OA_MEETINGSTAFF(); //staff = SelectMeeting.OAMeetingStaffT; //staff.ISOK = "2";////确认不通过 //MeetingClient.MeetingStaffUpdateInfosCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(MeetingClient_MeetingStaffUpdateInfosCompleted); //MeetingClient.MeetingStaffUpdateInfosAsync(staff); } } }