Beispiel #1
0
 public ExternalDataImporter(MeetingController mc)
 {
     userModel         = new Model <User>();
     departmentModel   = new Model <Department>(true);
     positionModel     = new Model <Position>(true);
     meetingController = mc;
 }
Beispiel #2
0
        public AttendanceStatus(MeetingController mc, string msg = "")
        {
            InitializeComponent();
            statusNumberLabels = new Dictionary <int, Label>();
            meetingController  = mc;
            statuses           = new Dictionary <int, string>();
            statuses.Add(-1, "Нийт албан хаагч");
            statuses.Add(0, "Ирэх хүний тоо");
            Dictionary <int, string> dbstatuses = meetingController.statusModel.GetAll().ToDictionary(x => x.id, x => x.name);

            statuses = statuses.Concat(dbstatuses).ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
            if (meetingController.status == MeetingController.MEETING_STARTED)
            {
                PlaceStatuses(msg);
                Update();
            }
        }
Beispiel #3
0
        public DepartmentStatus(MeetingController mc, int depid)
        {
            InitializeComponent();

            meetingController = mc;
            statuses          = meetingController.statusModel.GetAll().ToDictionary(x => x.id, x => x.name);
            departments       = meetingController.departmentModel.GetAll().ToDictionary(x => x.id, x => x.name);
            departments.Add(-1, "Хэлтэсгүй");
            userGrids    = new Dictionary <int, Grid>();
            last         = new int[4];
            departmentId = depid;
            if (meetingController.status == MeetingController.MEETING_STARTED)
            {
                depNameTextBox.Text = departments[departmentId];
                status = 1;
                PlaceUsers(meetingController.onGoingMeetingUserAttendance);
            }
        }
Beispiel #4
0
        public UpdateFingerprint(int uid, MeetingController mc)
        {
            InitializeComponent();
            this.uid       = uid;
            this.mc        = mc;
            scannerHandler = mc.scannerHandler;

            userModel = new Model <User>();
            user      = userModel.Get(uid);

            RegisterCount = 0;

            if (mc.onGoingMeeting != null)
            {
                scannerHandler.Stop();
            }
            scannerHandler.InitializeDevice();
            scannerHandler.StartCaptureThread(scannerHandler.DoCaptureForMember);
            InfoLabel.Content = "Та хуруугаа 3 удаа уншуулна уу.";
        }
Beispiel #5
0
        //dummy data
        public MeetingStatus(MeetingController mc)
        {
            InitializeComponent();
            adminModel = new Model <Admin>();

            meetingController       = mc;
            statuses                = meetingController.statusModel.GetAll().ToDictionary(x => x.id, x => x.name);
            departments             = meetingController.departmentModel.GetAll().ToDictionary(x => x.id, x => x.name);
            departmentWrapPanels    = new Dictionary <int, WrapPanel>();
            departmentAttendance    = new Dictionary <int, TextBlock[]>();
            departmentStatusWindows = new Dictionary <int, DepartmentStatus>();
            attendanceStatusWindows = new Dictionary <string, AttendanceStatus>();
            userGrids               = new Dictionary <int, System.Windows.Controls.Grid>();
            last = new Dictionary <int, int[]>();
            if (meetingController.status == MeetingController.MEETING_STARTED)
            {
                status = 1;
                BuildDepartControls();
                PlaceUsers(meetingController.onGoingMeetingUserAttendance);
            }
        }
Beispiel #6
0
 public AttendanceList(MeetingController mc, int statusId)
 {
     InitializeComponent();
     meetingController = mc;
     if (meetingController.status == MeetingController.MEETING_STARTED)
     {
         departments = meetingController.departmentModel.GetAll().ToDictionary(x => x.id, x => x.name);
         statuses    = meetingController.statusModel.GetAll().ToDictionary(x => x.id, x => x.name);
         if (statusId == -1)
         {
             this.Title = "Хуралд оролцох нийт хүмүүсийн жагсаалт";
         }
         else if (statusId == 0)
         {
             this.Title = "Хурал оролцох боломжтой хүмүүсийн жагсаалт";
         }
         else
         {
             this.Title = "Хуралд \'" + statuses[statusId] + "\' төлөвтэй байгаа хүмүүсийн жагсаалт";
         }
         PlaceUsers(statusId);
     }
 }
Beispiel #7
0
 public ScannerHandler(MeetingController mc)
 {
     this.meetingController = mc;
 }
Beispiel #8
0
 public ReportExporter(MeetingController mc)
 {
     meetingController = mc;
 }