protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPBook Model = new ZWL.BLL.ERPBook(); Model.BookName = this.txtBookName.Text.ToString(); Model.BookSerils = this.txtBookSerils.Text.ToString(); Model.SuoShuBuMen = this.txtSuoShuBuMen.Text.ToString(); Model.BookType = this.txtBookType.Text.ToString(); Model.Auother = this.txtAuother.Text.ToString(); Model.ISBN = this.txtISBN.Text.ToString(); Model.CoperStr = this.txtCoperStr.Text.ToString(); Model.ChuBanDate = this.txtChuBanDate.Text.ToString(); Model.CunFangDian = this.txtCunFangDian.Text.ToString(); Model.ShuLiang = this.txtShuLiang.Text.ToString(); Model.JiaGe = this.txtJiaGe.Text.ToString(); Model.NeiRong = this.txtNeiRong.Text.ToString(); Model.NowState = this.txtNowState.Text.ToString(); Model.BackInfo = this.txtBackInfo.Text.ToString(); Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr = DateTime.Now; Model.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加图书信息(" + this.txtBookName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "图书信息添加成功!", "Book.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPBook Model = new ZWL.BLL.ERPBook(); Model.BookName=this.txtBookName.Text.ToString(); Model.BookSerils=this.txtBookSerils.Text.ToString(); Model.SuoShuBuMen=this.txtSuoShuBuMen.Text.ToString(); Model.BookType=this.txtBookType.Text.ToString(); Model.Auother=this.txtAuother.Text.ToString(); Model.ISBN=this.txtISBN.Text.ToString(); Model.CoperStr=this.txtCoperStr.Text.ToString(); Model.ChuBanDate=this.txtChuBanDate.Text.ToString(); Model.CunFangDian=this.txtCunFangDian.Text.ToString(); Model.ShuLiang=this.txtShuLiang.Text.ToString(); Model.JiaGe=this.txtJiaGe.Text.ToString(); Model.NeiRong=this.txtNeiRong.Text.ToString(); Model.NowState=this.txtNowState.Text.ToString(); Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.Add(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û����ͼ����Ϣ(" + this.txtBookName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "ͼ����Ϣ��ӳɹ���", "Book.aspx"); }