void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbxMeetingType.Items.Clear(); this.cbxMeetingType.ItemsSource = e.Result; this.cbxMeetingType.DisplayMemberPath = "MEETINGTYPE"; if (SelectMeetingType.MEETINGTYPEID != null) { foreach (var item in cbxMeetingType.Items) { T_OA_MEETINGTYPE dict = item as T_OA_MEETINGTYPE; if (dict != null) { if (dict.MEETINGTYPE == SelectMeetingType.MEETINGTYPE) { cbxMeetingType.SelectedItem = item; break; } } } } else { cbxMeetingType.SelectedIndex = 0; } } loadbar.Stop(); }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingType.Items.Clear(); this.cbMeetingType.ItemsSource = e.Result; this.cbMeetingType.DisplayMemberPath = "MEETINGTYPE"; if (SelectMeetingType.MEETINGTYPEID != null) { foreach (var item in cbMeetingType.Items) { T_OA_MEETINGTYPE dict = item as T_OA_MEETINGTYPE; if (dict != null) { if (dict.MEETINGTYPE == SelectMeetingType.MEETINGTYPE) { cbMeetingType.SelectedItem = item; break; } } } //cbMeetingType.SelectedItem = SelectMeetingType; } else { cbMeetingType.SelectedIndex = 0; } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("FOUNDMEETINGTYPE"), Utility.GetResourceStr("CONFIRMBUTTON")); } loadbar.Stop(); }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingType.Items.Clear(); T_OA_MEETINGTYPE itemType = new T_OA_MEETINGTYPE(); itemType.MEETINGTYPE = "请选择"; e.Result.Insert(0, itemType); this.cbMeetingType.ItemsSource = e.Result; this.cbMeetingType.DisplayMemberPath = "MEETINGTYPE"; this.cbMeetingType.SelectedItem = itemType; } }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbxMeetingType.Items.Clear(); this.cbxMeetingType.ItemsSource = e.Result; if (strMeetingType == "") { this.cbxMeetingType.SelectedIndex = 0;//默认选中第一项 } else { this.cbxMeetingType.SelectedItem = strMeetingType; } } }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingType.Items.Clear(); //List<T_OA_MEETINGTYPE> TypeNames= e.Result.ToList(); //T_OA_MEETINGTYPE MeetingType = new T_OA_MEETINGTYPE(); //MeetingType.MEETINGTYPEID = System.Guid.NewGuid().ToString(); //MeetingType.MEETINGTYPE = "请选择"; //string StrInsert = "请选择"; //TypeNames.Insert(0, StrInsert); T_OA_MEETINGTYPE Meetingtype = new T_OA_MEETINGTYPE(); Meetingtype.MEETINGTYPE = "请选择"; e.Result.Insert(0, Meetingtype); this.cbMeetingType.ItemsSource = e.Result; this.cbMeetingType.DisplayMemberPath = "MEETINGTYPE"; //this.cbMeetingType.SelectedIndex = 0; } }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingType.Items.Clear(); this.cbMeetingType.ItemsSource = e.Result; this.cbMeetingType.DisplayMemberPath = "MEETINGTYPE"; if (SelectMeetingType.MEETINGTYPEID != null) { foreach (var item in cbMeetingType.Items) { T_OA_MEETINGTYPE dict = item as T_OA_MEETINGTYPE; if (dict != null) { if (dict.MEETINGTYPE == SelectMeetingType.MEETINGTYPE) { cbMeetingType.SelectedItem = item; break; } } } //cbMeetingType.SelectedItem = SelectMeetingType; } else { cbMeetingType.SelectedIndex = 0; } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("FOUNDMEETINGTYPE"), Utility.GetResourceStr("CONFIRMBUTTON")); } loadbar.Stop(); }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbxMeetingType.Items.Clear(); this.cbxMeetingType.ItemsSource = e.Result; this.cbxMeetingType.DisplayMemberPath = "MEETINGTYPE"; if (SelectMeetingType.MEETINGTYPEID != null) { foreach (var item in cbxMeetingType.Items) { T_OA_MEETINGTYPE dict = item as T_OA_MEETINGTYPE; if (dict != null) { if (dict.MEETINGTYPE == SelectMeetingType.MEETINGTYPE) { cbxMeetingType.SelectedItem = item; break; } } } } else { cbxMeetingType.SelectedIndex = 0; } } loadbar.Stop(); }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingType.Items.Clear(); T_OA_MEETINGTYPE itemType = new T_OA_MEETINGTYPE(); itemType.MEETINGTYPE = "请选择"; e.Result.Insert(0, itemType); this.cbMeetingType.ItemsSource = e.Result; this.cbMeetingType.DisplayMemberPath = "MEETINGTYPE"; this.cbMeetingType.SelectedItem = itemType; } }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingType.Items.Clear(); //List<T_OA_MEETINGTYPE> TypeNames= e.Result.ToList(); //T_OA_MEETINGTYPE MeetingType = new T_OA_MEETINGTYPE(); //MeetingType.MEETINGTYPEID = System.Guid.NewGuid().ToString(); //MeetingType.MEETINGTYPE = "请选择"; //string StrInsert = "请选择"; //TypeNames.Insert(0, StrInsert); T_OA_MEETINGTYPE Meetingtype = new T_OA_MEETINGTYPE(); Meetingtype.MEETINGTYPE = "请选择"; e.Result.Insert(0, Meetingtype); this.cbMeetingType.ItemsSource = e.Result; this.cbMeetingType.DisplayMemberPath = "MEETINGTYPE"; //this.cbMeetingType.SelectedIndex = 0; } }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (ActionType == FormTypes.New) { RefreshUI(RefreshedTypes.HideProgressBar); } if (e.Result != null) { this.cbxMeetingType.Items.Clear(); this.cbxMeetingType.ItemsSource = e.Result; this.cbxMeetingType.DisplayMemberPath = "MEETINGTYPE"; if (SelectMeetingType.MEETINGTYPEID != null) { foreach (var item in cbxMeetingType.Items) { T_OA_MEETINGTYPE dict = item as T_OA_MEETINGTYPE; if (dict != null) { if (dict.MEETINGTYPE == SelectMeetingType.MEETINGTYPE) { cbxMeetingType.SelectedItem = item; break; } } } } else { cbxMeetingType.SelectedIndex = 0; } } else { this.cbxMeetingType.IsEnabled = false;// 无会议类型,设成不可编辑 } }
void typeClient_GetMeetingTypeNameInfosToComboxCompleted(object send, GetMeetingTypeNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbxMeetingType.Items.Clear(); this.cbxMeetingType.ItemsSource = e.Result; if (strMeetingType == "") { this.cbxMeetingType.SelectedIndex = 0;//默认选中第一项 } else { this.cbxMeetingType.SelectedItem = strMeetingType; } } }