void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List <T_SYS_DICTIONARY> dicts = e.Result.ToList(); cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; if (SysMenu != null) { foreach (var item in cbxSystemType.Items) { T_SYS_DICTIONARY dict = item as T_SYS_DICTIONARY; if (dict != null) { if (dict.DICTIONARYVALUE.ToString() == SysMenu.SYSTEMTYPE) { cbxSystemType.SelectedItem = item; break; } } } } } }
/// <summary> /// 获取字典数据范围 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void RoleClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { tmpDictionary = e.Result.ToList(); } } }
void DictionNaryclinet_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (e.Error == null) { Deployment.Current.Dispatcher.BeginInvoke(delegate { List <T_SYS_DICTIONARY> dicts = e.Result.ToList(); BindComboBox(dicts, category, SelectedValue); }); } }
void GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e)//获取系统代码 { if (e.Result != null) { cbSYSTEMTYPE.ItemsSource = e.Result; cbSYSTEMTYPE.DisplayMemberPath = "DICTIONARYNAME"; cbSYSTEMTYPE.SelectedIndex = 0; InitModelCode(sender, null); } }
void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { ComboBox cbxSystemType = Utility.FindChildControl <ComboBox>(gridfirst, "cbxSystemType"); List <T_SYS_DICTIONARY> dicts = e.Result.ToList(); cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; } }
/// <summary> /// 获取所有岗位级别 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void permissionClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } else { postLevelDicts = e.Result; //获取已设置的岗位 client.GetPostLevelDistinctionBySystemIDAsync(salarySystemID); } }
void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List <T_SYS_DICTIONARY> dicts = e.Result.ToList(); tmpDicts = dicts; cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; if (FormType == FormTypes.Edit || formType == FormTypes.Browse) { ServiceClient.GetSysRoleSingleInfoByIdAsync(tmpRoleId); } //if(tmpDictionaryValue) } }
void client_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (e.Result != null) { sysTypeList = e.Result.ToList(); T_SYS_DICTIONARY temp = new T_SYS_DICTIONARY(); // temp.DICTIONARYNAME = "ALL"; temp.DICTIONARYNAME = Utility.GetResourceStr("ALL"); sysTypeList.Insert(0, temp); ComboBox cbSysType = Utility.FindChildControl <ComboBox>(expander, "cbSysType"); cbSysType.ItemsSource = sysTypeList; cbSysType.SelectedIndex = 0; } }
/// <summary> /// 获取系统列表加载到ComboBox上 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List <T_SYS_DICTIONARY> dicts = e.Result.ToList(); cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; if (cbxSystemType.Items.Count() > 0) { cbxSystemType.SelectedIndex = 0; } } }
void client_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Error.Message, Utility.GetResourceStr("CONFIRMBUTTON")); } else { cbxSystemType.ItemsSource = e.Result; foreach (T_SYS_DICTIONARY item in cbxSystemType.Items) { if (item.DICTIONARYNAME == dictionary.SYSTEMNAME) { cbxSystemType.SelectedItem = item; } } } }
void permClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (e.Error == null) { List <T_SYS_DICTIONARY> dicts = e.Result == null ? null : e.Result.ToList(); AddToResourceDictionary <List <T_SYS_DICTIONARY> >("SYS_DICTIONARY", dicts); //SaveDictionaryInfoByLocal(true, dicts); IsLoad = true; } if (this.OnDictionaryLoadCompleted != null) { OnDictionaryLoadCompleted(this, new OnDictionaryLoadArgs() { Result = IsLoad, Error = e.Error }); } }
private void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List <T_SYS_DICTIONARY> dicts = e.Result.ToList(); ComboBox cbxSystemType = Utility.FindChildControl <ComboBox>(expander, "cbxSystemType"); T_SYS_DICTIONARY NewDict = new T_SYS_DICTIONARY(); NewDict.DICTIONARYNAME = "--请选择--"; NewDict.DICTIONARYVALUE = null; dicts.Insert(0, NewDict); if (cbxSystemType != null) { cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; cbxSystemType.SelectedIndex = 0; } } }
void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { ComboBox cbxSystemType = Utility.FindChildControl<ComboBox>(expander, "cbxSystemType"); List<T_SYS_DICTIONARY> dicts = e.Result.ToList(); cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; } }
void DictionNaryclinet_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (e.Error == null) { Deployment.Current.Dispatcher.BeginInvoke(delegate { List<T_SYS_DICTIONARY> dicts = e.Result.ToList(); BindComboBox(dicts, category, SelectedValue); }); } }
/// <summary> /// 获取系统列表加载到ComboBox上 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientPerm_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List<T_SYS_DICTIONARY> dicts = e.Result.ToList(); cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; if (cbxSystemType.Items.Count() > 0) { cbxSystemType.SelectedIndex = 0; } } }
private void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List<T_SYS_DICTIONARY> dicts = e.Result.ToList(); ComboBox cbxSystemType = Utility.FindChildControl<ComboBox>(expander, "cbxSystemType"); T_SYS_DICTIONARY NewDict = new T_SYS_DICTIONARY(); NewDict.DICTIONARYNAME = "--请选择--"; NewDict.DICTIONARYVALUE = null; dicts.Insert(0,NewDict); if (cbxSystemType != null) { cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; cbxSystemType.SelectedIndex = 0; } } }
void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List<T_SYS_DICTIONARY> dicts = e.Result.ToList(); cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; if (SysMenu != null) { foreach (var item in cbxSystemType.Items) { T_SYS_DICTIONARY dict = item as T_SYS_DICTIONARY; if (dict != null) { if (dict.DICTIONARYVALUE.ToString() == SysMenu.SYSTEMTYPE) { cbxSystemType.SelectedItem = item; break; } } } } } }
void ServiceClient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { //绑定系统类型 if (e.Result != null) { List<T_SYS_DICTIONARY> dicts = e.Result.ToList(); tmpDicts = dicts; cbxSystemType.ItemsSource = dicts; cbxSystemType.DisplayMemberPath = "DICTIONARYNAME"; if (FormType == FormTypes.Edit || formType == FormTypes.Browse) { ServiceClient.GetSysRoleSingleInfoByIdAsync(tmpRoleId); } //if(tmpDictionaryValue) } }
void client_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { if (e.Result != null) { sysTypeList = e.Result.ToList(); T_SYS_DICTIONARY temp = new T_SYS_DICTIONARY(); // temp.DICTIONARYNAME = "ALL"; temp.DICTIONARYNAME = Utility.GetResourceStr("ALL"); sysTypeList.Insert(0, temp); ComboBox cbSysType = Utility.FindChildControl<ComboBox>(expander, "cbSysType"); cbSysType.ItemsSource = sysTypeList; cbSysType.SelectedIndex = 0; } }
void permclient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e) { List <T_SYS_DICTIONARY> aa = e.Result.ToList(); //throw new NotImplementedException(); }