Esempio n. 1
0
 void client_GetPostLevelDistinctionBySystemIDCompleted(object sender, GetPostLevelDistinctionBySystemIDCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result != null)
         {
             postLevelList = e.Result.ToList();
             FillData();
         }
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 获取所有的岗位薪资 和级差额
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetPostLevelDistinctionBySystemIDCompleted(object sender, GetPostLevelDistinctionBySystemIDCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                postLevels = e.Result;
                if (postLevels != null)
                {
                    foreach (var dict in postLevelDicts)
                    {
                        if (!IsLevelAdded(dict))
                        {
                            T_HR_POSTLEVELDISTINCTION level = new T_HR_POSTLEVELDISTINCTION();
                            level.POSTLEVEL         = Convert.ToDecimal(dict.DICTIONARYVALUE);
                            level.POSTLEVELID       = Guid.NewGuid().ToString();
                            level.T_HR_SALARYSYSTEM = new T_HR_SALARYSYSTEM();
                            level.T_HR_SALARYSYSTEM.SALARYSYSTEMID = salarySystem.SALARYSYSTEMID;
                            postLevels.Add(level);
                        }
                    }
                }
                else
                {
                    postLevels = new ObservableCollection <T_HR_POSTLEVELDISTINCTION>();
                    foreach (var dict in postLevelDicts)
                    {
                        T_HR_POSTLEVELDISTINCTION level = new T_HR_POSTLEVELDISTINCTION();
                        level.POSTLEVEL         = Convert.ToDecimal(dict.DICTIONARYVALUE);
                        level.POSTLEVELID       = Guid.NewGuid().ToString();
                        level.T_HR_SALARYSYSTEM = new T_HR_SALARYSYSTEM();
                        level.T_HR_SALARYSYSTEM.SALARYSYSTEMID = salarySystem.SALARYSYSTEMID;
                        postLevels.Add(level);
                    }
                }


                DtGridPostDis.ItemsSource = postLevels.OrderBy(c => c.POSTLEVEL);
            }

            //client.GetAllSalaryLevelAsync();
        }
Esempio n. 3
0
        /// <summary>
        /// 获取所有的岗位薪资 和级差额
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetPostLevelDistinctionBySystemIDCompleted(object sender, GetPostLevelDistinctionBySystemIDCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);

            }
            else
            {
                postLevels = e.Result;
                if (postLevels != null)
                {
                    foreach (var dict in postLevelDicts)
                    {
                        if (!IsLevelAdded(dict))
                        {
                            T_HR_POSTLEVELDISTINCTION level = new T_HR_POSTLEVELDISTINCTION();
                            level.POSTLEVEL = Convert.ToDecimal(dict.DICTIONARYVALUE);
                            level.POSTLEVELID = Guid.NewGuid().ToString();
                            level.T_HR_SALARYSYSTEM = new T_HR_SALARYSYSTEM();
                            level.T_HR_SALARYSYSTEM.SALARYSYSTEMID = salarySystem.SALARYSYSTEMID;
                            postLevels.Add(level);
                        }
                    }
                }
                else
                {
                    postLevels = new ObservableCollection<T_HR_POSTLEVELDISTINCTION>();
                    foreach (var dict in postLevelDicts)
                    {

                        T_HR_POSTLEVELDISTINCTION level = new T_HR_POSTLEVELDISTINCTION();
                        level.POSTLEVEL = Convert.ToDecimal(dict.DICTIONARYVALUE);
                        level.POSTLEVELID = Guid.NewGuid().ToString();
                        level.T_HR_SALARYSYSTEM = new T_HR_SALARYSYSTEM();
                        level.T_HR_SALARYSYSTEM.SALARYSYSTEMID = salarySystem.SALARYSYSTEMID;
                        postLevels.Add(level);

                    }
                }


                DtGridPostDis.ItemsSource = postLevels.OrderBy(c => c.POSTLEVEL);
            }

            //client.GetAllSalaryLevelAsync();

        }
Esempio n. 4
0
        void client_GetPostLevelDistinctionBySystemIDCompleted(object sender, GetPostLevelDistinctionBySystemIDCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (e.Result != null)
                {
                    postLevelList = e.Result.ToList();
                    FillData();
                }

            }
        }