Exemplo n.º 1
0
 public void Del(int d)
 {
     Tunnel.BLL.Tunnel_MingXing tmx = new Tunnel.BLL.Tunnel_MingXing();
     if (File.Exists(Server.MapPath(tmx.GetModel(d).m_img)))
     {
         File.Delete(Server.MapPath(tmx.GetModel(d).m_img));
     }
     tmx.Delete(d);
 }
Exemplo n.º 2
0
 public void Del(int d)
 {
     try
     {
         Tunnel.BLL.Tunnel_MingXing tmx = new Tunnel.BLL.Tunnel_MingXing();
         if (File.Exists(Server.MapPath(tmx.GetModel(d).m_img)))
         {
             File.Delete(Server.MapPath(tmx.GetModel(d).m_img));
         }
         tmx.Delete(d);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Exemplo n.º 3
0
    public void PageBind()
    {
        string tmpUid = string.Empty;

        tmxx = tmx.GetModel(Convert.ToInt32(id));
        if (tmxx != null)
        {
            txtTitle.Text      = tmxx.Title.ToString();
            tmpUid             = tmxx.m_uid.ToString();
            Label2.Text        = tmxx.m_year.ToString();
            Label3.Text        = tmxx.m_moon.ToString();
            FreeTextBox1.Value = tmxx.m_content;
        }

        //Tunnel.BLL.Tunnel_menber tm = new Tunnel.BLL.Tunnel_menber();
        //Tunnel.Model.Tunnel_menber tmm = new Tunnel.Model.Tunnel_menber();
        //tmm = tm.GetModel(Convert.ToInt64(tmpUid));
        //if (tmm != null)
        //{
        //    Label1.Text = tmm.m_name;
        //}
    }