Exemple #1
0
    public void Del(int id)
    {
        Tunnel.BLL.Tunnel_Vote tv = new Tunnel.BLL.Tunnel_Vote();

        Tunnel.BLL.Tunnel_VoteRe          tvr     = new Tunnel.BLL.Tunnel_VoteRe();
        List <Tunnel.Model.Tunnel_VoteRe> tvrList = tvr.GetModelList("vate_voteId=" + id + "");

        foreach (Tunnel.Model.Tunnel_VoteRe item in tvrList)
        {
            tvr.Delete(item.vote_Id);
        }
        Tunnel.BLL.Tunnel_Votei          tvi     = new Tunnel.BLL.Tunnel_Votei();
        List <Tunnel.Model.Tunnel_Votei> tviList = tvi.GetModelList("ivote_voteId=" + id + "");

        foreach (Tunnel.Model.Tunnel_Votei item in tviList)
        {
            tvi.Delete(item.ivote_Id);
        }
        tv.Delete(id);

        Tunnel.BLL.Tunnel_Remind          tr     = new Tunnel.BLL.Tunnel_Remind();
        Tunnel.Model.Tunnel_Remind        trr    = new Tunnel.Model.Tunnel_Remind();
        List <Tunnel.Model.Tunnel_Remind> trList = new List <Tunnel.Model.Tunnel_Remind>();

        trList = tr.GetModelList("m_type=4 and m_typeid=" + id + "");
        foreach (Tunnel.Model.Tunnel_Remind item in trList)
        {
            tr.Delete(item.m_typeid);
        }
    }
Exemple #2
0
    public void Del()
    {
        Tunnel.BLL.Tunnel_workplan tw = new Tunnel.BLL.Tunnel_workplan();
        Tunnel.BLL.UserLogin       ul = new Tunnel.BLL.UserLogin();
        tw.Delete(int.Parse(Request.QueryString["id"].ToString()), ul.LoginID, Tunnel.Common.Common.GetIp());
        Tunnel.BLL.Tunnel_Remind   tr  = new Tunnel.BLL.Tunnel_Remind();
        Tunnel.Model.Tunnel_Remind trr = new Tunnel.Model.Tunnel_Remind();

        List <Tunnel.Model.Tunnel_Remind> trList = new List <Tunnel.Model.Tunnel_Remind>();

        trList = tr.GetModelList("m_type=3 and m_typeid=" + Request.QueryString["id"].ToString() + "");
        if (trList.Count > 0)
        {
            tr.Delete(trList[0].m_typeid);
        }
    }