Пример #1
0
 public void NotPermissionMessage()
 {
     ErrorMessage("権限がありません。");
     Employeenumber.Text = "";
     Password.Text       = "";
     Employeenumber.Focus();
 }
Пример #2
0
        public void NextForm(string employeeId)
        {
            if (IsSalesStaff(employeeId))
            {
                Visible = false;

                var staffMenuForm = new SalesStaffMenuForm(employeeId);
                staffMenuForm.ShowDialog();

                Visible = true;

                Activate();

                Employeenumber.Text = "";
                Password.Text       = "";

                Employeenumber.Focus();
            }
            else if (IsLogisticsManager(employeeId))
            {
                Visible = false;

                var LogisticsManagerMenuForm = new LogisticsMenuForm(employeeId);
                LogisticsManagerMenuForm.ShowDialog();

                Visible = true;

                Activate();

                Employeenumber.Text = "";
                Password.Text       = "";

                Employeenumber.Focus();
            }
            else
            {
                NotPermissionMessage();
            }
        }