public ExamsViewModel( IExamService examService, ICourseService courseService, IEnrolmentService enrolmentService, IStudentExamService studentExamService, ISemesterService semesterService, IExportService exportService, IDownloadFileService downloadFileService) { _examService = examService; _courseService = courseService; _enrolmentService = enrolmentService; _studentExamService = studentExamService; _semesterService = semesterService; _exportService = exportService; _downloadFileService = downloadFileService; _startExportCommand = new DelegateCommand(OnStartExport, CanStartExport); _exportCommand = new DelegateCommand(OnExport, CanExport); _addStudentsCommand = new DelegateCommand(OnAddStudents, CanAddStudents); _addStudentsSaveCommand = new DelegateCommand(OnAddStudentsSave, CanAddStudentsSave); _addStudentsDiscardCommand = new DelegateCommand(OnAddStudentsDiscard, CanAddStudentsDiscard); _studentsCommand = new DelegateCommand(OnStudents, CanStudents); _saveEditStudentsCommand = new DelegateCommand(OnSaveEditStudents, CanSaveEditStudents); _deleteStudentsCommand = new DelegateCommand(OnDeleteStudents, CanDeleteStudents); _saveAllStudentsCommand = new DelegateCommand(OnSaveAllStudents, CanSaveAllStudents); }
public CreateViewModel( IEnrolmentService enrolmentService, IStudentService studentService, ICourseService courseService) { _enrolmentService = enrolmentService; _studentService = studentService; _courseService = courseService; }
public Enrolments( IEnrolmentService enrolmentService, ICourseService courseService, IStudentService studentService) { viewModel = new EnrolmentsViewModel(enrolmentService, courseService, studentService); InitializeComponent(); this.Loaded += EnrolmentsTable_Load; }
public EnrolmentsViewModel( IEnrolmentService enrolmentService, CoreApp.IServices.IStudentService studentService, ICourseService courseService, UtilityService utilityService) { _enrolmentService = enrolmentService; _studentService = studentService; _courseService = courseService; _utilityService = utilityService; }
public OralExam( IExamService examService, ICourseService courseService, ISemesterService semesterService, IEnrolmentService enrolmentService, IStudentService studentService, IStudentExamService studentExamService) { viewModel = new OralExamViewModel(examService, courseService, semesterService, enrolmentService, studentService, studentExamService); InitializeComponent(); this.Loaded += Data_Load; }
public ExamsViewModel( IExamService examService, ICourseService courseService, IEnrolmentService enrolmentService, IStudentExamService studentExamService, ISemesterService semesterService, IExportService exportService) { _examService = examService; _courseService = courseService; _enrolmentService = enrolmentService; _studentExamService = studentExamService; _semesterService = semesterService; _exportService = exportService; }
public Exams( IExamService examService, ICourseService courseService, IEnrolmentService enrolmentService, IStudentExamService studentExamService, ISemesterService semesterService, IExportService exportService, IDownloadFileService downloadFileService) { viewModel = new ExamsViewModel(examService, courseService, enrolmentService, studentExamService, semesterService, exportService, downloadFileService); InitializeComponent(); this.Loaded += ExamsTable_Load; }
public OralExamViewModel( IExamService examService, ICourseService courseService, ISemesterService semesterService, IEnrolmentService enrolmentService, IStudentService studentService, IStudentExamService studentExamService) { _examService = examService; _courseService = courseService; _semesterService = semesterService; _enrolmentService = enrolmentService; _studentService = studentService; _studentExamService = studentExamService; _startExamCommand = new DelegateCommand(OnStartExam, CanStartExam); _selectExistingExam = new DelegateCommand(OnSelectExistingExam, CanSelectExistingExam); _selectNewExam = new DelegateCommand(OnSelectNewExam, CanSelectNewExam); }
public PlanTaskInOutWarehouseService(Repository <PlanTaskInWarehouse> planTaskInWarehouseDal, Repository <PlanTaskOutWarehouse> planTaskOutWarehouseDal, RepositoryCustomerQuary repositoryCustomerQuary, ISysBillNoService sysBillNoService, IWarehouseStoreInfoService wareHouseStoreInforService, IWarehouseInOutRecordService wareHouseInOUTService, SPGetSysDateTimeService sPGetSysDateTimeService, Repository <PlanTask> planTaskDal, Repository <PlanTaskBatch> planTaskBatchDal, IPlanTaskBatchSiteScaleService planScaleService, IPlanTaskBatchVehicleService planVehicleService, IPlanTaskBatchWorkPlaceService planWorkPlaceService, Repository <Enrolment> enrolmentDal, Repository <InnerVehicle> innervehicle, IEnrolmentService enrolmentService, IPlanTaskBatchService plantaskbatchService, IPlanTaskService plantaskService, UnitOfWork unitOfWork) { _planTaskInWarehouseDal = planTaskInWarehouseDal; _planTaskOutWarehouseDal = planTaskOutWarehouseDal; _repositoryCustomerQuary = repositoryCustomerQuary; _sysBillNoService = sysBillNoService; _wareHouseStoreInforService = wareHouseStoreInforService; _wareHouseInOUTService = wareHouseInOUTService; _sPGetSysDateTimeService = sPGetSysDateTimeService; _planTaskDal = planTaskDal; _planTaskBatchDal = planTaskBatchDal; _planScaleService = planScaleService; _planVehicleService = planVehicleService; _planWorkPlaceService = planWorkPlaceService; _enrolmentDal = enrolmentDal; _innervehicle = innervehicle; _enrolmentService = enrolmentService; _plantaskbatchService = plantaskbatchService; _plantaskService = plantaskService; _unitOfWork = unitOfWork; }
public EnrolmentsViewModel( IEnrolmentService enrolmentService, ICourseService courseService, IStudentService studentService) { _enrolmentService = enrolmentService; _courseService = courseService; _studentService = studentService; _editItemCommand = new DelegateCommand(OnEditItem, CanEditItem); _discardEditCommand = new DelegateCommand(OnDiscardEdit, CanDiscardEdit); _saveEditCommand = new DelegateCommand(OnSaveEdit, CanSaveEdit); _deleteItemCommand = new DelegateCommand(OnDeleteItem, CanDeleteItem); _startAddCommand = new DelegateCommand(OnStartAdd, CanStartAdd); _discardAddCommand = new DelegateCommand(OnDiscardAdd, CanDiscardAdd); _saveSafeAddCommand = new DelegateCommand(OnSafeSaveAdd, CanSafeSaveAdd); _saveNewAddCommand = new DelegateCommand(OnNewSaveAdd, CanNewSaveAdd); _pendingAddCommand = new DelegateCommand(OnPendingAdd, CanPendingAdd); _pendingDeleteCommand = new DelegateCommand(OnPendingDelete, CanPendingDelete); _toggleDetailsCommand = new DelegateCommand(OnToggleDetails, CanToggleDetails); }
public MainWindow( ICourseService courseService, IStudentService studentService, ISemesterService semesterService, IStudentExamService studentExamService, IEnrolmentService enrolmentService, IExamService examService, IExportService exportService, IDownloadFileService downloadFileService) { _courseService = courseService; _studentService = studentService; _semesterService = semesterService; _studentExamService = studentExamService; _enrolmentService = enrolmentService; _examService = examService; _exportService = exportService; _downloadFileService = downloadFileService; InitializeComponent(); }
public StudentController ( IClassService classService, IEnrolmentService enrolmentService, IStudentService studentService ) { if (classService == null) { throw new ArgumentNullException("classService"); } if (enrolmentService == null) { throw new ArgumentNullException("enrolmentService"); } if (studentService == null) { throw new ArgumentNullException("studentService"); } _classService = classService; _enrolmentService = enrolmentService; _studentService = studentService; }
private void tm_Read_Tick(object sender, EventArgs e) { //先获取信息。 //_batchNum = txtPlanBatchNumber.Text = "11EPI20130926001001"; //读取方法标签方法================================== IEnrolmentService myServiceInstance = ClientHelper.GetServiceInstance <IEnrolmentService>("enrolmentService"); IPlanTaskBatchService myPlanTaskBatchInstance = ClientHelper.GetServiceInstance <IPlanTaskBatchService>("planTaskBatchService"); if (DeviceHelper.DeskReader.Used == 0) { return; } AisinoJK116Reader read = new AisinoJK116Reader(); read.ComPort = Convert.ToInt16(DeviceHelper.DeskReader.Port); read.BaudRate = Convert.ToInt16(DeviceHelper.DeskReader.Rate); read.CardType = Enum.Parse(typeof(EnrolmentRFIDReader.CardType), DeviceHelper.DeskReader.CardType).ToString(); IRFIDTagIssueService myservice = ClientHelper.GetServiceInstance <IRFIDTagIssueService>("rfidTagIssueService"); EnrolmentInfo newEnrolmentInfo = new EnrolmentInfo(); string MessageString = string.Empty; string cardID = read.ReadTagMainid(); if (cardID == string.Empty) { return; } if (cardID == LastCardID) { return; } else { LastCardID = cardID; } ShowMessageInfo(myservice, cardID); }
public EnrolmentsController(IEnrolmentService enrolmentService, IMapper mapper) : base(enrolmentService) { EnrolmentService = enrolmentService; Mapper = mapper; }