Esempio n. 1
0
        public bool createIll(string name_ill, string status_ill, int id_user_patient, int id_user_doctor)
        {
            ill  Ill    = new ill();
            bool result = Ill.Create(name_ill, status_ill, id_user_patient, id_user_doctor);

            return(result);
        }
Esempio n. 2
0
        public ActionResult getUserById(int id_user_patient)
        {
            ill tempIll = new ill();
            ill result  = tempIll.getIllOfUserById(id_user_patient);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Esempio n. 3
0
        public bool deleteIll(int id_ill)
        {
            ill  Ill    = new ill();
            bool result = Ill.Delete(id_ill);

            return(result);
        }
Esempio n. 4
0
        public bool updateIll(int id_ill, string name_ill, string status_ill)
        {
            ill  Ill    = new ill();
            bool result = Ill.Update(id_ill, name_ill, status_ill);

            return(result);
        }
Esempio n. 5
0
        public ActionResult pageIll(int?page)
        {
            user test = new user();

            string id_user = Request["id_user_patient"];

            ill tempIll = new ill();

            var allIll = tempIll.Read();

            var pageNumber = page ?? 1;

            var onePageOfIlls = allIll.ToPagedList(pageNumber, 5);

            ViewBag.onePageOfIlls = onePageOfIlls;

            ViewBag.id_user_patient = id_user;

            ViewBag.totalDoctor = test.queryDoctor();

            List <string> allTooth = new List <string>();

            for (int n = 1; n <= 4; n++)
            {
                for (int i = 1; i <= 8; i++)
                {
                    allTooth.Add("R" + n + i);
                }
            }

            ViewBag.totalTooth = allTooth;

            return(View());
        }
Esempio n. 6
0
        //create
        public int createUser(string name_user, string phone_user, string address_user, string email_user, int id_tier)
        {
            user   patient = new user();
            object result  = patient.Create(name_user, phone_user, address_user, email_user, id_tier);
            int    result2 = Convert.ToInt32(result);

            if (result2 > 0)
            {
                ill  ill         = new ill();
                bool resultOfIll = ill.Create("Unknow", "Unknow", result2, 6);
            }
            return(result2);
        }