75 lines
2.8 KiB
C#
75 lines
2.8 KiB
C#
|
|
using System;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.Configuration;
|
|||
|
|
using System.Collections;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.Security;
|
|||
|
|
using System.Web.UI;
|
|||
|
|
using System.Web.UI.WebControls;
|
|||
|
|
using System.Web.UI.WebControls.WebParts;
|
|||
|
|
using System.Web.UI.HtmlControls;
|
|||
|
|
|
|||
|
|
public partial class Office_BookModify : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
ZWL.BLL.ERPBook Model = new ZWL.BLL.ERPBook();
|
|||
|
|
Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|||
|
|
this.txtBookName.Text=Model.BookName.ToString();
|
|||
|
|
this.txtBookSerils.Text=Model.BookSerils.ToString();
|
|||
|
|
this.txtSuoShuBuMen.Text=Model.SuoShuBuMen.ToString();
|
|||
|
|
this.txtBookType.Text=Model.BookType.ToString();
|
|||
|
|
this.txtAuother.Text=Model.Auother.ToString();
|
|||
|
|
this.txtISBN.Text=Model.ISBN.ToString();
|
|||
|
|
this.txtCoperStr.Text=Model.CoperStr.ToString();
|
|||
|
|
this.txtChuBanDate.Text=Model.ChuBanDate.ToString();
|
|||
|
|
this.txtCunFangDian.Text=Model.CunFangDian.ToString();
|
|||
|
|
this.txtShuLiang.Text=Model.ShuLiang.ToString();
|
|||
|
|
this.txtJiaGe.Text=Model.JiaGe.ToString();
|
|||
|
|
this.txtNeiRong.Text=Model.NeiRong.ToString();
|
|||
|
|
this.txtNowState.Text=Model.NowState.ToString();
|
|||
|
|
this.txtBackInfo.Text=Model.BackInfo.ToString();
|
|||
|
|
this.txtUserName.Text=Model.UserName.ToString();
|
|||
|
|
this.txtTimeStr.Text=Model.TimeStr.ToString();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
|
|||
|
|
{
|
|||
|
|
ZWL.BLL.ERPBook Model = new ZWL.BLL.ERPBook();
|
|||
|
|
|
|||
|
|
Model.ID = int.Parse(Request.QueryString["ID"].ToString());
|
|||
|
|
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=this.txtUserName.Text.ToString();
|
|||
|
|
Model.TimeStr=DateTime.Parse(this.txtTimeStr.Text);
|
|||
|
|
|
|||
|
|
Model.Update();
|
|||
|
|
|
|||
|
|
//дϵͳ<CFB5><CDB3>־
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>Ϣ(" + this.txtBookName.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
ZWL.Common.MessageBox.ShowAndRedirect(this, "ͼ<><CDBC><EFBFBD><EFBFBD>Ϣ<EFBFBD>ijɹ<C4B3><C9B9><EFBFBD>", "Book.aspx");
|
|||
|
|
}
|
|||
|
|
}
|