private void btn添加_Click(object sender, EventArgs e)
        {
            EmployeePickerForm form = new EmployeePickerForm(emp_list);

            form.OnSelected += OnEmployeeSelectd;
            form.ShowDialog();
        }
Exemple #2
0
        private void btn添加_Click(object sender, EventArgs e)
        {
            List <EmployeeInfo>    list   = new List <EmployeeInfo>();
            List <SalaryStructure> ssList = SalaryStructure.GetHasPerformanceSalaryEmployees();

            foreach (SalaryStructure ss in ssList)
            {
                EmployeeInfo emp = ss.员工信息;
                if (list.Find(a => a.员工编号 == emp.员工编号) == null)
                {
                    list.Add(emp);
                }
            }
            EmployeePickerForm form = new EmployeePickerForm(list);

            form.OnSelected += OnEmployeeSelectd;
            form.ShowDialog();
        }
        private void btn添加_Click(object sender, EventArgs e)
        {
            List <EmployeeInfo> list = new List <EmployeeInfo>();
            //获取正在执行的报账工资标准
            List <RembursementSalary> rsList = RembursementSalary.GetEffectiveRembursementSalarys();

            foreach (RembursementSalary rs in rsList)
            {
                EmployeeInfo emp = rs.员工信息;
                if (list.Find(a => a.员工编号 == emp.员工编号) == null)
                {
                    list.Add(emp);
                }
            }
            EmployeePickerForm form = new EmployeePickerForm(list);

            form.OnSelected += OnEmployeeSelectd;
            form.ShowDialog();
        }
        private void btn添加_Click(object sender, EventArgs e)
        {
            List <EmployeeInfo> list = new List <EmployeeInfo>();
            //获取正在执行的报账工资标准
            List <WageLoan> wlList = WageLoan.GetEffectiveWageLoans();

            foreach (WageLoan wl in wlList)
            {
                EmployeeInfo emp = wl.员工信息;
                if (list.Find(a => a.员工编号 == emp.员工编号) == null)
                {
                    list.Add(emp);
                }
            }

            EmployeePickerForm form = new EmployeePickerForm(list);

            form.OnSelected += OnEmployeeSelectd;
            form.ShowDialog();
        }