protected void LoadData()
        {
            gridBand岗位类型.Visible = grade == "一级";
            gridBand专业属性.Visible = grade != "一级";

            CreateWaitDialog("正在查询...", "请稍等");
            //获取管培生名单
            List <ManagementTraineeInfo> trainee_info_list = ManagementTraineeInfo.GetManagementTraineeInfoList(division, grade);
            int order = 1;

            //构造年薪计算器
            foreach (ManagementTraineeInfo trainee in trainee_info_list)
            {
                ManagementTraineeYearlySalaryCalulator c = new ManagementTraineeYearlySalaryCalulator(trainee, year);
                c.序号 = order++;
                calulator_list.Add(c);
            }

            SetWaitDialogCaption("正在加载...");

            gridControl1.DataSource = calulator_list;
            gridControl1.RefreshDataSource();

            CloseWaitDialog();
        }
Exemple #2
0
        List <ManagementTraineeAbilityInput> CreateEditingRows()
        {
            //清除旧记录
            ManagementTraineeAbilityInput.ClearTraineeAbility(division, grade, year);

            List <ManagementTraineeAbilityInput> list = new List <ManagementTraineeAbilityInput>();
            //通过管培生名单
            List <ManagementTraineeInfo> traineeList = ManagementTraineeInfo.GetManagementTraineeInfoList(division, grade);

            //排序
            traineeList = traineeList.OrderBy(a => a.公司).ThenBy(a => a.入职时间).ToList();

            int order = 1;

            foreach (ManagementTraineeInfo trainee in traineeList)
            {
                if (trainee.员工信息.状态 == "A") //只需要录入在职的管培生
                {
                    ManagementTraineeAbilityInput item = ManagementTraineeAbilityInput.AddManagementTraineeAbilityInput(division, grade, trainee.员工编号, trainee.姓名, year, order++, isCheck);
                    list.Add(item);
                }
            }

            return(list);
        }
        protected void LoadData()
        {
            lbl标题.Text         = division + " 届定职人员(" + grade + ")" + year + "年度年薪计算表";
            gridBand今年.Caption = year + "年";
            gridBand明年.Caption = (year + 1) + "年";

            //控制第一年样式
            bool isFirstYear = division == year.ToString();

            gridBand明年.Visible      = !isFirstYear;
            gridBand今年一季度.Visible   = !isFirstYear;
            gridBand今年二季度.Visible   = !isFirstYear;
            gridBand评定结果.Visible    = !isFirstYear;
            gridBand今年三季度月薪.Visible = isFirstYear;
            gridBand今年四季度月薪.Visible = isFirstYear;
            gridBand今年三季度提幅.Visible = !isFirstYear;
            gridBand今年四季度提幅.Visible = !isFirstYear;

            gridBand上期年薪.Caption = isFirstYear ? "起薪" : "上期年薪";

            gridBand岗位类型.Visible = grade == "一级";
            gridBand专业属性.Visible = grade != "一级";

            CreateWaitDialog("正在查询...", "请稍等");
            //获取管培生名单
            List <ManagementTraineeInfo> trainee_info_list = ManagementTraineeInfo.GetManagementTraineeInfoList(division, grade);

            //排序
            trainee_info_list = trainee_info_list.OrderBy(a => a.公司).ThenBy(a => a.入职时间).ToList();

            int order = 1;

            calulator_list.Clear();
            //构造年薪计算器
            foreach (ManagementTraineeInfo trainee in trainee_info_list)
            {
                ManagementTraineeYearlySalaryCalulator c = new ManagementTraineeYearlySalaryCalulator(trainee, year);
                c.序号 = order++;
                calulator_list.Add(c);
            }

            SetWaitDialogCaption("正在加载...");

            gridControl1.DataSource = calulator_list;
            gridControl1.RefreshDataSource();
            advBandedGridView1.ExpandAllGroups();

            CloseWaitDialog();
        }
        protected void LoadData()
        {
            lbl标题.Text = division + " 届定职人员(" + grade + ")个人年度评定结果及提资表";

            CreateWaitDialog("正在查询...", "请稍等");

            trainee_info_list = ManagementTraineeInfo.GetManagementTraineeInfoList(division, grade);
            trainee_info_list = trainee_info_list.OrderBy(a => a.届别).ThenBy(a => a.岗位级别).ThenBy(a => a.入职时间).ToList();
            //+序号
            int order = 1;

            foreach (ManagementTraineeInfo item in trainee_info_list)
            {
                item.序号 = order++;
            }

            SetWaitDialogCaption("正在加载...");

            gridControl1.DataSource = trainee_info_list;
            gridControl1.RefreshDataSource();

            CloseWaitDialog();
        }