protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing(); Model.GDName=this.txtGDName.Text.ToString(); Model.GDSerils=this.txtGDSerils.Text.ToString(); Model.GDType=this.txtGDType.Text.ToString(); Model.SuoShuBuMen=this.txtSuoShuBuMen.Text.ToString(); Model.GDAllCount=this.txtGDAllCount.Text.ToString(); Model.NowCount=this.txtNowCount.Text.ToString(); Model.NianXian=this.txtNianXian.Text.ToString(); Model.GDXingZhi=this.txtGDXingZhi.Text.ToString(); Model.QiYongDate=this.txtQiYongDate.Text.ToString(); Model.BaoGuanUser=this.txtBaoGuanUser.Text.ToString(); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.Add(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û�����ʲ���Ϣ(" + this.txtGDName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "�ʲ���Ϣ��ӳɹ���", "GuDing.aspx"); }
protected void ImageButton1_Click(object sender, EventArgs e) { ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.GDName = this.txtGDName.Text.ToString(); Model.GDSerils = this.txtGDSerils.Text.ToString(); Model.GDType = this.txtGDType.Text.ToString(); Model.SuoShuBuMen = this.txtSuoShuBuMen.Text.ToString(); Model.GDAllCount = this.txtGDAllCount.Text.ToString(); Model.NowCount = this.txtNowCount.Text.ToString(); Model.NianXian = this.txtNianXian.Text.ToString(); Model.GDXingZhi = this.txtGDXingZhi.Text.ToString(); Model.QiYongDate = this.txtQiYongDate.Text.ToString(); Model.BaoGuanUser = this.txtBaoGuanUser.Text.ToString(); Model.UserName = this.txtUserName.Text.ToString(); Model.TimeStr = DateTime.Parse(this.txtTimeStr.Text); Model.BackInfo = this.txtBackInfo.Text.ToString(); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改固定资产信息(" + this.txtGDName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "固定资产信息修改成功!", "GuDing.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblGDName.Text = Model.GDName.ToString(); GDName = Model.GDName.ToString(); this.lblGDSerils.Text = Model.GDSerils.ToString(); this.lblGDType.Text = Model.GDType.ToString(); this.lblSuoShuBuMen.Text = Model.SuoShuBuMen.ToString(); this.lblGDAllCount.Text = Model.GDAllCount.ToString(); this.lblNowCount.Text = Model.NowCount.ToString(); this.lblNianXian.Text = Model.NianXian.ToString(); this.lblGDXingZhi.Text = Model.GDXingZhi.ToString(); this.lblQiYongDate.Text = Model.QiYongDate.ToString(); this.lblBaoGuanUser.Text = Model.BaoGuanUser.ToString(); this.lblUserName.Text = Model.UserName.ToString(); this.lblTimeStr.Text = Model.TimeStr.ToString(); this.lblBackInfo.Text = Model.BackInfo.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看资产信息(" + this.lblGDName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblGDName.Text=Model.GDName.ToString(); GDName = Model.GDName.ToString(); this.lblGDSerils.Text=Model.GDSerils.ToString(); this.lblGDType.Text=Model.GDType.ToString(); this.lblSuoShuBuMen.Text=Model.SuoShuBuMen.ToString(); this.lblGDAllCount.Text=Model.GDAllCount.ToString(); this.lblNowCount.Text=Model.NowCount.ToString(); this.lblNianXian.Text=Model.NianXian.ToString(); this.lblGDXingZhi.Text=Model.GDXingZhi.ToString(); this.lblQiYongDate.Text=Model.QiYongDate.ToString(); this.lblBaoGuanUser.Text=Model.BaoGuanUser.ToString(); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); this.lblBackInfo.Text=Model.BackInfo.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴�ʲ���Ϣ(" + this.lblGDName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
public void DataBindToGridview() { ZWL.BLL.ERPGuDing MyModel = new ZWL.BLL.ERPGuDing(); GVData.DataSource = MyModel.GetList("GDName Like '%" + this.TextBox1.Text + "%' order by ID desc"); GVData.DataBind(); LabPageSum.Text = Convert.ToString(GVData.PageCount); LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1)); this.GoPage.Text = LabCurrentPage.Text.ToString(); }
public void DataBindToGridview() { GVData.PageSize = AspNetPager1.PageSize; GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1; ZWL.BLL.ERPGuDing MyModel = new ZWL.BLL.ERPGuDing(); DataSet ds = MyModel.GetList("GDName Like '%" + this.TextBox1.Text + "%' order by ID desc"); GVData.DataSource = ds; GVData.DataBind(); AspNetPager1.RecordCount = ds.Tables[0].Rows.Count; }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtGDName.Text = Model.GDName.ToString(); this.txtGDSerils.Text = Model.GDSerils.ToString(); this.txtGDType.Text = Model.GDType.ToString(); this.txtSuoShuBuMen.Text = Model.SuoShuBuMen.ToString(); this.txtGDAllCount.Text = Model.GDAllCount.ToString(); this.txtNowCount.Text = Model.NowCount.ToString(); this.txtNianXian.Text = Model.NianXian.ToString(); this.txtGDXingZhi.Text = Model.GDXingZhi.ToString(); this.txtQiYongDate.Text = Model.QiYongDate.ToString(); this.txtBaoGuanUser.Text = Model.BaoGuanUser.ToString(); this.txtUserName.Text = Model.UserName.ToString(); this.txtTimeStr.Text = Model.TimeStr.ToString(); this.txtBackInfo.Text = Model.BackInfo.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtGDName.Text=Model.GDName.ToString(); this.txtGDSerils.Text=Model.GDSerils.ToString(); this.txtGDType.Text=Model.GDType.ToString(); this.txtSuoShuBuMen.Text=Model.SuoShuBuMen.ToString(); this.txtGDAllCount.Text=Model.GDAllCount.ToString(); this.txtNowCount.Text=Model.NowCount.ToString(); this.txtNianXian.Text=Model.NianXian.ToString(); this.txtGDXingZhi.Text=Model.GDXingZhi.ToString(); this.txtQiYongDate.Text=Model.QiYongDate.ToString(); this.txtBaoGuanUser.Text=Model.BaoGuanUser.ToString(); this.txtUserName.Text=Model.UserName.ToString(); this.txtTimeStr.Text=Model.TimeStr.ToString(); this.txtBackInfo.Text=Model.BackInfo.ToString(); } }