private void advBandedGridView1_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            MonthlySalaryInput row = advBandedGridView1.GetRow(e.FocusedRowHandle) as MonthlySalaryInput;

            //重置职等列表
            if (jobgrade == null && row != null)
            {
                JobGrade currJobGrade = JobGrade.GetJobGrade(row.薪酬体系, row.职等);
                if (currJobGrade != null)
                {
                    repositoryItemRank.ReadOnly       = false;
                    repositoryItemSalaryType.ReadOnly = false;

                    repositoryItemRank.Items.Clear();
                    repositoryItemRank.Items.Add("");

                    foreach (JobRank rank in currJobGrade.职级表)
                    {
                        repositoryItemRank.Items.Add(rank.称);
                    }
                }
                else
                {
                    repositoryItemRank.ReadOnly       = true;
                    repositoryItemSalaryType.ReadOnly = true;

                    repositoryItemRank.Items.Clear();
                }
            }
        }
        public AdjustMonthlySalaryForm(string salary_plan, string group, int year, SemiannualType st, bool isCheck)
            : this()
        {
            this.salary_plan = salary_plan;
            this.group       = group;
            this.year        = year;
            this.sntype      = st;
            this.isCheck     = isCheck;

            this.period = year * 10 + (byte)st;
            //获取公司代码
            company_code = PsHelper.GetCompanyCode(salary_plan);
            //获取职等(默认自动为每个职等建立一个群组)
            jobgrade = JobGrade.GetJobGrade(salary_plan, group);

            //通过薪等编号获取员工名单
            emp_list = GetEmployeeList();
            //设置标记, 标记有异动的人员
            foreach (EmployeeInfo emp in emp_list)
            {
                MonthlySalary effectiveMonthlySalary = MonthlySalary.GetEffective(emp.员工编号, DateTime.Today);
                if (effectiveMonthlySalary == null)
                {
                    emp.标记 = true;
                }
            }
        }
        public IndividualAdjustMonthlySalaryForm(string salary_plan, string group, bool isCheck)
            : this()
        {
            this.salary_plan = salary_plan;
            this.group       = group;
            this.isCheck     = isCheck;
            //获取公司代码
            company_code = PsHelper.GetCompanyCode(salary_plan);
            //获取职等(默认自动为每个职等建立一个群组)
            jobgrade = JobGrade.GetJobGrade(salary_plan, group);
            //获取期号
            int lastestPeriodNonYear = MonthlySalary.GetLastestPeriodNonYear(salary_plan, group);

            period = lastestPeriodNonYear == -1 ? 100001 : lastestPeriodNonYear + 1;

            //通过薪等编号获取员工名单
            emp_list = GetEmployeeList();
            //设置标记, 标记有异动的人员
            foreach (EmployeeInfo emp in emp_list)
            {
                MonthlySalary effectiveMonthlySalary = MonthlySalary.GetEffective(emp.员工编号, DateTime.Today);
                if (effectiveMonthlySalary == null)
                {
                    emp.标记 = true;
                }
            }
        }
Exemplo n.º 4
0
 public MonthlySalaryForm(string salary_plan, string group)
     : this()
 {
     this.salary_plan = salary_plan;
     this.group       = group;
     //获取公司代码
     company_code = PsHelper.GetCompanyCode(salary_plan);
     //获取职等(默认自动为每个职等建立一个群组)
     jobgrade = JobGrade.GetJobGrade(salary_plan, group);
 }
        List <EmployeeSalaryStructure> all_rows = new List <EmployeeSalaryStructure>();   //所有记录
        public SalaryDetailListForm(string salary_plan, string group)
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitializeComponent call
            this.salary_plan = salary_plan;
            this.group       = group;
            //获取公司代码
            company_code = PsHelper.GetCompanyCode(salary_plan);
            //获取职等(默认自动为每个职等建立一个群组)
            jobgrade = JobGrade.GetJobGrade(salary_plan, group);
        }