Exemplo n.º 1
0
    protected void btnDel_Click(object sender, EventArgs e)
    {
        eFileInfo model = this.eff.GetModel(Convert.ToInt32(this.HdnRecoreId.Value));

        if (this.eff.Delete(Convert.ToInt32(this.HdnRecoreId.Value)) == 1)
        {
            com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
            fileUpload.DeleteFile(model.FilePath.ToString());
            this.JS.Text = "alert('删除成功!');";
            if (this.RecordType == "2" && this.sl == "1")
            {
                SqlDataSource expr_8F = this.sqlBulletin;
                expr_8F.SelectCommand += " and SecretLevel = '3' ";
            }
            else
            {
                if (this.RecordType == "2" && this.sl == "")
                {
                    SqlDataSource expr_D0 = this.sqlBulletin;
                    expr_D0.SelectCommand += " and SecretLevel <> '3' ";
                }
            }
            this.GridView1.DataBind();
            return;
        }
        this.JS.Text = "alert('删除失败!');";
    }
Exemplo n.º 2
0
 protected void IBtn_DelAnnex_Click(object sender, ImageClickEventArgs e)
 {
     com.jwsoft.pm.entpm.action.FileUpload fileUpload = new com.jwsoft.pm.entpm.action.FileUpload();
     fileUpload.DeleteFile(this.HL_Annex.NavigateUrl.ToString());
     this.Td_Look.Visible      = false;
     this.Td_Up.Visible        = true;
     this.RBSelectPath.Enabled = true;
 }