public ModifyInfoForm(ClientSocket _clientsocket, string _id) : this()
        {
            clientsocket = _clientsocket;
            currentNurse = clientsocket.getNurse(_id);

            if (currentNurse == null)
            {
                MessageBox.Show("getNurse 에러");

                return;
            }
            #region 콤보박스 셋팅
            if (currentNurse.IsChiefNurse == true)  //수간호사 일 경우
            {
                comboBoxType.SelectedIndex = 0;
            }
            else
            {
                comboBoxType.SelectedIndex = 1;
            }

            if (currentNurse.Sex == SEX.Male)   //남자일 경우
            {
                comboBoxSex.SelectedIndex = 0;
            }
            else
            {//여자일 경우
                comboBoxSex.SelectedIndex = 1;
            }
            textBoxName.Text = currentNurse.Name;
            textBoxID.Text   = currentNurse.ID;
            textBoxPW.Text   = textBoxPW2.Text = currentNurse.Password;
            textBoxLic.Text  = currentNurse.LicenseNum;
            textBoxPh.Text   = currentNurse.PhoneNum;
            #endregion
        }
Example #2
0
 public Find_Info(ClientSocket _clientsocket) : this()
 {
     clientsocket = _clientsocket;
 }
Example #3
0
 public ModifyPwForm(ClientSocket _clientsocket, Nurse _target) : this()
 {
     clientSocket = _clientsocket;
     target       = _target;
 }
Example #4
0
 public CheckTableForm(ClientSocket _clientsocket) : this()
 {
     clientsocket = _clientsocket;
 }
Example #5
0
        public UI()
        {
            InitializeComponent();

            clientSocket = new ClientSocket();
        }
 public ManageMemberForm(ClientSocket _clientsocket) : this()
 {
     clientsocket = _clientsocket;
     loadNurse();
 }
Example #7
0
 public OffOptionForm(ClientSocket _clientsocket) : this()
 {
     clientsocket = _clientsocket;
     loadOption();
 }
Example #8
0
 public NightShiftForm(ClientSocket _clientsocket, Option _option) : this()
 {
     this.option       = _option;
     this.clientsocket = _clientsocket;
 }
Example #9
0
 public ApplyOff(ClientSocket clientsocket, string currentUserID) : this()
 {
     this.clientsocket  = clientsocket;
     this.currentUserID = currentUserID;
 }