Пример #1
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);
        }
    }