protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPCustomNeed model = new ZWL.BLL.ERPCustomNeed(); model.ID = int.Parse(Request.QueryString["ID"].ToString()); model.CustomName = this.txtCustomName.Text; model.NeedContent = this.txtNeedContent.Text; model.NeedNow = this.txtNeedNow.Text; model.NeedProduct = this.txtNeedProduct.Text; model.NeedTime = this.txtNeedTime.Text; model.NeedLike = this.txtNeedLike.Text; model.JingZhengDuiShou = this.txtJingZhengDuiShou.Text; model.HeZuoYiYuan = this.txtHeZuoYiYuan.Text; model.HeZuoJiLv = this.txtHeZuoJiLv.Text; model.NeedZhangAi = this.txtNeedZhangAi.Text; model.BackInfo = this.txtBackInfo.Text; model.UserName = this.Label1.Text; model.TimeStr = DateTime.Parse(this.Label2.Text); model.IFShare = this.txtIFShare.Text; model.CusBakA = this.txtCusBakA.Text; model.CusBakB = this.txtCusBakB.Text; model.CusBakC = this.txtCusBakC.Text; model.CusBakD = this.txtCusBakD.Text; model.CusBakE = this.txtCusBakE.Text; model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改需求信息(" + this.txtCustomName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "需求信息修改成功!", "MyCustomNeed.aspx?CustomName=" + Request.QueryString["CustomName"].ToString()); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPCustomNeed model = new ZWL.BLL.ERPCustomNeed(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtCustomName.Text = model.CustomName; this.txtNeedContent.Text = model.NeedContent; this.txtNeedNow.Text = model.NeedNow; this.txtNeedProduct.Text = model.NeedProduct; this.txtNeedTime.Text = model.NeedTime; this.txtNeedLike.Text = model.NeedLike; this.txtJingZhengDuiShou.Text = model.JingZhengDuiShou; this.txtHeZuoYiYuan.Text = model.HeZuoYiYuan; this.txtHeZuoJiLv.Text = model.HeZuoJiLv; this.txtNeedZhangAi.Text = model.NeedZhangAi; this.txtBackInfo.Text = model.BackInfo; this.Label1.Text = model.UserName; this.Label2.Text = model.TimeStr.ToString(); this.txtIFShare.Text = model.IFShare; this.txtCusBakA.Text = model.CusBakA; this.txtCusBakB.Text = model.CusBakB; this.txtCusBakC.Text = model.CusBakC; this.txtCusBakD.Text = model.CusBakD; this.txtCusBakE.Text = model.CusBakE; } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPCustomNeed model = new ZWL.BLL.ERPCustomNeed(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblCustomName.Text = model.CustomName; this.lblNeedContent.Text = model.NeedContent; this.lblNeedNow.Text = model.NeedNow; this.lblNeedProduct.Text = model.NeedProduct; this.lblNeedTime.Text = model.NeedTime; this.lblNeedLike.Text = model.NeedLike; this.lblJingZhengDuiShou.Text = model.JingZhengDuiShou; this.lblHeZuoYiYuan.Text = model.HeZuoYiYuan; this.lblHeZuoJiLv.Text = model.HeZuoJiLv; this.lblNeedZhangAi.Text = model.NeedZhangAi; this.lblBackInfo.Text = model.BackInfo; this.lblUserName.Text = model.UserName; this.lblTimeStr.Text = model.TimeStr.ToString(); this.lblIFShare.Text = model.IFShare; this.lblCusBakA.Text = model.CusBakA; this.lblCusBakB.Text = model.CusBakB; this.lblCusBakC.Text = model.CusBakC; this.lblCusBakD.Text = model.CusBakD; this.lblCusBakE.Text = model.CusBakE; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看客户需求信息(" + this.lblCustomName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
public void DataBindToGridview() { ZWL.BLL.ERPCustomNeed MyModel = new ZWL.BLL.ERPCustomNeed(); GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' and " + GetPageType() + " 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() { ZWL.BLL.ERPCustomNeed MyModel = new ZWL.BLL.ERPCustomNeed(); GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' and UserName='******' 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(); }