Esempio n. 1
0
    public bool DelBum()
    {
        bool b = true;

        blist = bm.GetModelList("b_hid=" + bid + "");
        if (blist.Count > 0)
        {
            b = false; //存在下级目录
        }
        else
        {
            bm.Delete(Convert.ToInt64(bid));
            if (tb.GetModelList("by_bid='" + bid + "'").Count != 0)
            {
                tb.Delete(Convert.ToInt32(tb.GetModelList("by_bid='" + bid + "'")[0].by_id));
            }
        }
        return(b);
    }