Ejemplo n.º 1
0
    protected void Unnamed1_Click(object sender, ImageClickEventArgs e)
    {
        int bookId = Convert.ToInt32(Request.QueryString["BookId"]);
        int count  = IA.AuaddVolume(bookId, txnewVO.Text, Convert.ToInt32(txnum.Text));


        if (count > 0)
        {
            ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "ok", "<script type='text/javascript'>alert('添加成功!');this.location.href=this.location.href;</script>", false);
        }
        else
        {
            ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "err", "<script type='text/javascript'>alert('添加失败!');</script>", false);
        }
    }
Ejemplo n.º 2
0
 //添加卷
 public int AuaddVolume(int bookId, string valumeName, int valumeNumber)
 {
     return(IA.AuaddVolume(bookId, valumeName, valumeNumber));
 }