Exemplo n.º 1
0
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        public void Initialize()
        {
            bdsMedicine.DataSource = this._medicineRepo.GetAll();

            // Init Clinic combobox
            var clinic = this._clinicRepo.GetAll();

            clinic.Insert(0, new Clinic()
            {
                Id = 0, Name = "Tất cả"
            });
            this.bdsClinic.DataSource    = clinic;
            this.cboClinic.SelectedValue = AppContext.CurrentClinic.Id;

            // Init User
            var users = _userRepo.GetAll();

            clinic.Insert(0, new Clinic()
            {
                Id = 0, Name = "..."
            });
            this.bdsEmployee.DataSource = users;

            // Get status
            bdsStatus.DataSource = MedicinePlaningStatus.GetPlanningStatus();

            InitializeData();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        private void Initialize()
        {
            // Init Clinic combobox
            var clinic = this._clinicRepo.GetAll();

            clinic.Insert(0, new Clinic()
            {
                Id = 0, Name = "Tất cả"
            });
            this.bdsClinic.DataSource    = clinic;
            this.cboClinic.SelectedValue = AppContext.CurrentClinic.Id;

            // Set current year for first time initialize
            this.txtYear.Value = DateTime.Today.Year;

            this.bdsStatus.DataSource = MedicinePlaningStatus.GetPlanningStatus();
            this.bdsUser.DataSource   = this._userRepo.GetAll();

            InitializeData();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 private void Initialize()
 {
     this.bdsStatus.DataSource = MedicinePlaningStatus.GetPlanningStatus();
     this.bdsUser.DataSource   = this._userRepo.GetAll();
     this.InitializeData();
 }