public string QueryIdTherapy()
    {
        TherapistDAO therapyDAO   = new TherapistDAO();
        int          idTherapy    = therapyDAO.GetIdTherapy(inputTherapyId.text);
        string       idTherapyStr = idTherapy.ToString();

        if (idTherapyStr != "0")
        {
            stateTherapist = true;
            Debug.Log(stateTherapist);
        }
        return(idTherapyStr);
    }
Exemplo n.º 2
0
    public void Login()
    {
        GameObject input = GameObject.Find("Input ID Text");
        string     id    = input.GetComponent <Text>().text;

        patient   = PatientDAO.ConsultPatient(id);
        therapist = TherapistDAO.ConsultTherapist("123");

        if (patient != null && therapist != null)
        {
            therapySession = new TherapySession(therapist.Id_num, patient.Id_num);
            bool insertion = TherapySessionDAO.InsertTherapySession(therapySession);
        }
    }