/// <summary>
        /// 创建或更新提资标准
        /// </summary>
        /// <param name="seq">序号</param>
        /// <param name="rise_rate">增幅</param>
        /// <param name="year_salary">年薪</param>
        /// <param name="rise_type">提资方式</param>
        private void CreateOrUpdatePayStandard(string level, int seq, decimal rise_rate, decimal year_salary, RiseType rise_type)
        {
            ManagementTraineePayRiseStandard m = ManagementTraineePayRiseStandard.AddManagementTraineePayRiseStandard(届别, 岗位级别, 类别, level, seq);

            m.序号   = 序号;
            m.增幅   = rise_rate;
            m.年薪   = year_salary;
            m.提资方式 = (int)rise_type;
            if (AccessController.CurrentUser != null)
            {
                m.创建人 = AccessController.CurrentUser.姓名;
            }
            m.Save();
        }
        public static ManagementTraineePayRiseStandard AddManagementTraineePayRiseStandard(string division, string grade, string type, string level, int seq)
        {
            ManagementTraineePayRiseStandard item = GetManagementTraineePayRiseStandard(division, grade, type, level, seq);

            if (item == null)
            {
                item = new ManagementTraineePayRiseStandard();

                item.标识   = Guid.NewGuid();
                item.届别   = division;
                item.岗位级别 = grade;
                item.类别   = type;
                item.能力级别 = level;
                item.提资序数 = seq;
                item.创建时间 = DateTime.Now;

                //提资周期
                switch (level)
                {
                case "A":
                    item.提资周期 = "6个月";
                    break;

                case "B":
                    item.提资周期 = "9个月";
                    break;

                case "C":
                    item.提资周期 = "12个月";
                    break;
                }

                item.Save();
            }

            return(item);
        }