public TravelExpenseRazorModel(ITravelExpenseService CurrentService, BackendDBContext context, IMapper Mapper) { this.CurrentService = CurrentService; this.context = context; mapper = Mapper; TravelExpenseSort.Initialization(SortConditions); Toolbaritems.Add(new ItemModel() { Id = ButtonIdHelper.ButtonIdAdd, Text = "新增", TooltipText = "新增", Type = ItemType.Button, PrefixIcon = "mdi mdi-plus-thick", Align = ItemAlign.Left, }); Toolbaritems.Add(new ItemModel() { Id = ButtonIdHelper.ButtonIdRefresh, Text = "重新整理", TooltipText = "重新整理", PrefixIcon = "mdi mdi-refresh", Align = ItemAlign.Left, }); Toolbaritems.Add("Search"); }
public ManApprovalController(IOpdExpenseService opdExpenseService, IOpdExpenseImageService opdExpenseImageService, IOpdExpensePatientService opdExpensePatientService, ITravelExpenseService travelExpenseService, IEmailService emailService, ISetupExpenseAmountService setupExpenseAmountService) { _opdExpenseService = opdExpenseService; _opdExpenseImageService = opdExpenseImageService; _opdExpensePatientService = opdExpensePatientService; _travelExpenseService = travelExpenseService; _emailService = emailService; _setupExpenseAmountService = setupExpenseAmountService; }
public TravelExpenseController(ITravelExpenseService TravelExpenseService, IMapper mapper) { this.TravelExpenseService = TravelExpenseService; this.mapper = mapper; }
public TravelExpenseController(ITravelExpenseService travelExpenseService, IOpdExpenseService opdExpenseService) { _travelExpenseService = travelExpenseService; _opdExpenseService = opdExpenseService; }
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); }