コード例 #1
0
        public void EditActiveContract(EmployeeContract newcontract)
        {
            EmployeeContract oldcontract = GetActiveContract();

            contracts.Remove(oldcontract);
            contracts.Add(newcontract);
        }
コード例 #2
0
        //Constructor

        public EmployeeEmploymentInformation(EmployeeDepartment employeeDepartment, EmployeeContract contract)
        {
            this.EmployeeDepartment = employeeDepartment;
            contracts = new List <EmployeeContract>();
            this.contracts.Add(contract);
            AssignContractNum(contract);
        }
コード例 #3
0
 private void AssignContractNum(EmployeeContract contract)
 {
     contract.ContractNum = $"{contract.EmplNum}.{contracts.Count()}";
 }
コード例 #4
0
 public void InitializeContractHistory(EmployeeContract contract)
 {
     contracts.Add(contract);
 }
コード例 #5
0
 public void AddNewContract(EmployeeContract contract)
 {
     contracts.Add(contract);
     AssignContractNum(contract);
 }