Esempio n. 1
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;
                            }
                        }
                    }
                }
            }
        }
Esempio n. 2
0
 /// <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();
         }
     }
 }
Esempio n. 3
0
 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);
         });
     }
 }
Esempio n. 4
0
        /// <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();
                }
            }

        }
Esempio n. 5
0
        void GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e)//获取系统代码
        {
            if (e.Result != null)
            {
                cbSYSTEMTYPE.ItemsSource       = e.Result;
                cbSYSTEMTYPE.DisplayMemberPath = "DICTIONARYNAME";
                cbSYSTEMTYPE.SelectedIndex     = 0;

                InitModelCode(sender, null);
            }
        }
Esempio n. 6
0
        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";
            }
        }
Esempio n. 7
0
 /// <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);
     }
 }
Esempio n. 8
0
 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)
     }
 }
Esempio n. 9
0
        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;
            }
        }
Esempio n. 10
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;
                }
            }
        }
Esempio n. 11
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;
             }
         }
     }
 }
Esempio n. 12
0
        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
                });
            }
        }
Esempio n. 13
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;
         }
     }
 }
Esempio n. 14
0
        void GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e)//获取系统代码
        {
            if (e.Result != null)
            {
                cbSYSTEMTYPE.ItemsSource = e.Result;
                cbSYSTEMTYPE.DisplayMemberPath = "DICTIONARYNAME";
                cbSYSTEMTYPE.SelectedIndex = 0;

                InitModelCode(sender, null);
            }
        }
Esempio n. 15
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";
            }
        }
Esempio n. 16
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;
             }
         }
     }
 }
Esempio n. 17
0
 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;
                }
            }
        }
Esempio n. 19
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;
         }
     }
 }
Esempio n. 20
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;
                            }
                        }
                    }
                }
            }
        }
Esempio n. 21
0
 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)
     }
 }
Esempio n. 22
0
 /// <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);
     }
 }
Esempio n. 23
0
        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;
            }
        }
Esempio n. 24
0
 void permclient_GetSysDictionaryByCategoryCompleted(object sender, GetSysDictionaryByCategoryCompletedEventArgs e)
 {
     List <T_SYS_DICTIONARY> aa = e.Result.ToList();
     //throw new NotImplementedException();
 }