Beispiel #1
0
    protected void BtnDel_Click(object sender, EventArgs e)
    {
        string value = this.hdnID.Value;

        if (PrjInfoAction.Del(value) == 1)
        {
            this.GridBind(this.ViewState["SQLWHERE"].ToString());
            return;
        }
        this.js.Text = "alert('删除失败!')";
    }
Beispiel #2
0
 protected void btndelAdmin_Click(object sender, EventArgs e)
 {
     if (this.Session["twopass"] != null && this.Session["twopass"].ToString().Trim() == "IsAllowDel")
     {
         string value = this.hdnID.Value;
         if (PrjInfoAction.Del(value) == 1)
         {
             this.GridBind(this.ViewState["SQLWHERE"].ToString());
             string fid   = this.hdnID.Value.ToString();
             string fname = this.hdndelname.Value.ToString();
             myxml.SetTwoPWDlog(this.Session["yhdm"].ToString(), this.Page.Request.UserHostAddress.ToString(), "投标管理", fid, fname);
             return;
         }
         this.js.Text = "alert('删除失败!')";
     }
 }