public ExceptionRecordViewModel(IExceptionRecordService CurrentService,
                                        BackendDBContext context, IMapper Mapper,
                                        TranscationResultHelper transcationResultHelper)
        {
            this.CurrentService = CurrentService;
            this.context        = context;
            mapper = Mapper;
            TranscationResultHelper = transcationResultHelper;
            ExceptionRecordSort.Initialization(SortConditions);

            #region 工具列按鈕初始化
            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");
            #endregion
        }
Beispiel #2
0
        public ExceptionRecordRazorModel(IExceptionRecordService CurrentService,
                                         BackendDBContext context,
                                         IMapper Mapper)
        {
            this.CurrentService = CurrentService;
            this.context        = context;
            mapper = Mapper;
            ExceptionRecordSort.Initialization(SortConditions);

            Toolbaritems.Add(new ItemModel()
            {
                Id          = ButtonIdHelper.ButtonIdRefresh,
                Text        = "重新整理",
                TooltipText = "重新整理",
                PrefixIcon  = "mdi mdi-refresh",
                Align       = ItemAlign.Left,
            });
            Toolbaritems.Add("Search");
        }
 public ExceptionRecordController(IExceptionRecordService ExceptionRecordService,
                                  IMapper mapper)
 {
     this.ExceptionRecordService = ExceptionRecordService;
     this.mapper = mapper;
 }