public static TravelExpenseMasterDetail GetTravelExpense(int Id, IOpdExpenseService _opdExpenseService, ITravelExpenseService _travelExpenseService) { OpdExpenseVM opdExpense = _opdExpenseService.GetOpdExpensesAgainstId(Id); var opdInformation = new TravelExpenseMasterDetail() { ListTravelExpense = _travelExpenseService.GetTravelExpensesAgainstOpdExpenseId(Id), ID = opdExpense.ID, ClaimantSufferedIllness = opdExpense.ClaimantSufferedIllness, ClaimantSufferedIllnessDetails = opdExpense.ClaimantSufferedIllnessDetails, ClaimantSufferedIllnessDate = opdExpense.ClaimantSufferedIllnessDate, DateIllnessNoticed = opdExpense.DateIllnessNoticed, DateRecovery = opdExpense.DateRecovery, Diagnosis = opdExpense.Diagnosis, DoctorName = opdExpense.DoctorName, DrugsPrescribedBool = opdExpense.DrugsPrescribedBool, DrugsPrescribedDescription = opdExpense.DrugsPrescribedDescription, EmployeeDepartment = opdExpense.EmployeeDepartment, EmployeeName = opdExpense.EmployeeName, EmployeeEmailAddress = opdExpense.EmployeeEmailAddress, HospitalName = opdExpense.HospitalName, FinanceApproval = opdExpense.FinanceApproval, FinanceComment = opdExpense.FinanceComment, FinanceApprovalDate = opdExpense.FinanceApprovalDate, FinanceEmailAddress = opdExpense.FinanceEmailAddress, FinanceName = opdExpense.FinanceName, HrApproval = opdExpense.HrApproval, HrComment = opdExpense.HrComment, HrName = opdExpense.HrName, HrApprovalDate = opdExpense.HrApprovalDate, HrEmailAddress = opdExpense.HrEmailAddress, ManagementApproval = opdExpense.ManagementApproval, ManagementComment = opdExpense.ManagementComment, ManagementName = opdExpense.ManagementName, ManagementApprovalDate = opdExpense.ManagementApprovalDate, ManagementEmailAddress = opdExpense.ManagementEmailAddress, PeriodConfinementDateFrom = opdExpense.PeriodConfinementDateFrom, PeriodConfinementDateTo = opdExpense.PeriodConfinementDateTo, Status = opdExpense.Status, OpdType = opdExpense.OpdType, TotalAmountClaimed = opdExpense.TotalAmountClaimed, TotalAmountApproved = opdExpense.TotalAmountApproved, ClaimMonth = opdExpense.ClaimMonth, ClaimYear = opdExpense.ClaimYear, CreatedDate = opdExpense.CreatedDate, ModifiedDate = opdExpense.ModifiedDate, ManagerName = opdExpense.ManagerName, PhysicalDocumentReceived = opdExpense.PhysicalDocumentReceived, PayRollMonth = opdExpense.PayRollMonth, ExpenseNumber = opdExpense.ExpenseNumber, OpdEncrypted = opdExpense.OpdEncrypted, HospitalizationType = opdExpense.HospitalizationType, MaternityType = opdExpense.MaternityType }; return(opdInformation); }
public void UpdateTravelExpense(TravelExpenseMasterDetail travelExpenseMasterDetail, string emailAddress) { _travelExpenseRepository.Update(Mapper.Map <TravelExpense>(travelExpenseMasterDetail), emailAddress); }