Ejemplo n.º 1
0
        // 회원검색 - 이름
        public void searchNameFunction()
        {
            print.enterNameForSearch();
            name = Console.ReadLine();
            if (name == "b")
            {
                run.searchMenu();
            }

            print.memberTitle();

            ds = sd.selectCondition("member", "Name", name);
            if (ds.Tables.Count > 0)
            {
                foreach (DataRow r in ds.Tables[0].Rows)
                {
                    ID         = ID = Convert.ToString(r["ID"]);
                    name       = Convert.ToString(r["Name"]);
                    phoneNum   = Convert.ToString(r["PhoneNumber"]);
                    createTime = Convert.ToString(r["CreateTime"]);
                    print.memberResult(ID, name, phoneNum, createTime);
                    print.memberEndLine();
                }
            }
            else
            {
                print.noPrintInfoMessage();
                run.startMember();
            }
            Console.ReadKey();
        }