Пример #1
0
        public List <MyBook> PhanTich(string searchname, string manxb, string madm, string searchby)
        {
            List <MyBook> list = new List <MyBook>();

            if (searchby == "ten")
            {
                searchname = ns.GetID(ns.Decode(searchname));
                list       = helper.GetSearchList(searchname, long.Parse(manxb), long.Parse(madm), searchby);
            }
            if (searchby == "dm")
            {
                int mdm = int.Parse(ns.GetID(ns.Decode(madm)));
                list = helper.GetSearchList(searchname, long.Parse(manxb), mdm, searchby);
            }
            if (searchby == "nxb")
            {
                int mnxb = int.Parse(ns.GetID(ns.Decode(manxb)));
                list = helper.GetSearchList(searchname, mnxb, long.Parse(madm), searchby);
            }
            return(list);
        }