public TravelExpenseDetailRazorModel(ITravelExpenseDetailService CurrentService,
                                             BackendDBContext context,
                                             IMapper Mapper)
        {
            this.CurrentService = CurrentService;
            this.context        = context;
            mapper = Mapper;
            TravelExpenseDetailSort.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");
        }
Пример #2
0
 public TravelExpenseDetailController(ITravelExpenseDetailService TravelExpenseDetailService,
                                      IMapper mapper)
 {
     this.TravelExpenseDetailService = TravelExpenseDetailService;
     this.mapper = mapper;
 }