protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPProduct Model = new ZWL.BLL.ERPProduct(); Model.ProductName = this.txtProductName.Text.ToString(); Model.ProductSerils = this.txtProductSerils.Text.ToString(); Model.GongYingShang = this.txtGongYingShang.Text.ToString(); Model.ProductType = this.txtProductType.Text.ToString(); Model.XingHao = this.txtXingHao.Text.ToString(); Model.DanWei = this.txtDanWei.Text.ToString(); Model.ChengBen = this.txtChengBen.Text.ToString(); Model.ChuShou = this.txtChuShou.Text.ToString(); Model.RuKuSum = decimal.Parse(this.txtRuKuSum.Text); Model.ChuKuSum = decimal.Parse(this.txtChuKuSum.Text); Model.NowKuCun = decimal.Parse(this.txtNowKuCun.Text); Model.KuCunBaoJing = decimal.Parse(this.txtKuCunBaoJing.Text); Model.CunChuWeiZhi = this.txtCunChuWeiZhi.Text.ToString(); Model.ChanPinMiaoShu = this.txtChanPinMiaoShu.Text.ToString(); 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.txtProductName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "产品信息添加成功!", "Product.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPProduct Model = new ZWL.BLL.ERPProduct(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblProductName.Text = Model.ProductName.ToString(); this.lblProductSerils.Text = Model.ProductSerils.ToString(); this.lblGongYingShang.Text = Model.GongYingShang.ToString(); this.lblProductType.Text = Model.ProductType.ToString(); this.lblXingHao.Text = Model.XingHao.ToString(); this.lblDanWei.Text = Model.DanWei.ToString(); this.lblChengBen.Text = Model.ChengBen.ToString(); this.lblChuShou.Text = Model.ChuShou.ToString(); this.lblRuKuSum.Text = Model.RuKuSum.ToString(); this.lblChuKuSum.Text = Model.ChuKuSum.ToString(); this.lblNowKuCun.Text = Model.NowKuCun.ToString(); this.lblKuCunBaoJing.Text = Model.KuCunBaoJing.ToString(); this.lblCunChuWeiZhi.Text = Model.CunChuWeiZhi.ToString(); this.lblChanPinMiaoShu.Text = Model.ChanPinMiaoShu.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.lblProductName.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.ERPProduct Model = new ZWL.BLL.ERPProduct(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtProductName.Text = Model.ProductName.ToString(); this.txtProductSerils.Text = Model.ProductSerils.ToString(); this.txtGongYingShang.Text = Model.GongYingShang.ToString(); this.txtProductType.Text = Model.ProductType.ToString(); this.txtXingHao.Text = Model.XingHao.ToString(); this.txtDanWei.Text = Model.DanWei.ToString(); this.txtChengBen.Text = Model.ChengBen.ToString(); this.txtChuShou.Text = Model.ChuShou.ToString(); this.txtRuKuSum.Text = Model.RuKuSum.ToString(); this.txtChuKuSum.Text = Model.ChuKuSum.ToString(); this.txtNowKuCun.Text = Model.NowKuCun.ToString(); this.txtKuCunBaoJing.Text = Model.KuCunBaoJing.ToString(); this.txtCunChuWeiZhi.Text = Model.CunChuWeiZhi.ToString(); this.txtChanPinMiaoShu.Text = Model.ChanPinMiaoShu.ToString(); this.txtBackInfo.Text = Model.BackInfo.ToString(); this.txtProductSize.Text = Model.ProductSize; this.txtPerformance.Text = Model.Performance; this.txtCoating.Text = Model.Coating; this.txtSurfaceTreatment.Text = Model.SurfaceTreatment; this.txtMagnetizingDirection.Text = Model.MagnetizingDirection; this.txtTolerance.Text = Model.Tolerance; rdoIsContainingTax.SelectedValue = Model.IsContainingTax.ToString(); } }
public void DataBindToGridview() { ZWL.BLL.ERPProduct MyModel = new ZWL.BLL.ERPProduct(); GVData.DataSource = MyModel.GetList("ProductName 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(); }
protected void txtProductName_TextChanged(object sender, EventArgs e) { ZWL.BLL.ERPProduct Model = new ZWL.BLL.ERPProduct(); Model.GetModelByName(txtProductName.Text); this.txtProductSize.Text = Model.ProductSize; this.txtPerformance.Text = Model.Performance; this.txtCoating.Text = Model.Coating; this.txtSurfaceTreatment.Text = Model.SurfaceTreatment; this.txtMagnetizingDirection.Text = Model.MagnetizingDirection; this.txtTolerance.Text = Model.Tolerance; this.rdoIsContainingTax.SelectedValue = Model.IsContainingTax.ToString(); }
private void RefreshData() { ZWL.BLL.ERPProduct Model = new ZWL.BLL.ERPProduct(); Model.GetModelByName(txtChanPinName.Text); this.txtProductSize.Text = Model.ProductSize; this.txtPerformance.Text = Model.Performance; this.txtCoating.Text = Model.Coating; this.txtSurfaceTreatment.Text = Model.SurfaceTreatment; this.txtMagnetizingDirection.Text = Model.MagnetizingDirection; this.txtTolerance.Text = Model.Tolerance; this.rdoIsContainingTax.SelectedValue = Model.IsContainingTax.ToString(); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPBuyChanPin Model = new ZWL.BLL.ERPBuyChanPin(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblOrderName.Text = Model.OrderName.ToString(); this.lblProductName.Text = Model.ProductName.ToString(); this.lblProductSerils.Text = Model.ProductSerils.ToString(); this.lblGongYingShang.Text = Model.GongYingShang.ToString(); this.lblProductType.Text = Model.ProductType.ToString(); this.lblXingHao.Text = Model.XingHao.ToString(); this.lblDanWei.Text = Model.DanWei.ToString(); this.lblDanJia.Text = Model.DanJia.ToString(); this.lblShuLiang.Text = Model.ShuLiang.ToString(); this.lblZongJia.Text = Model.ZongJia.ToString(); this.lblYiFuKuan.Text = Model.YiFuKuan.ToString(); this.lblQianKuanShu.Text = Model.QianKuanShu.ToString(); this.lblIFJiaoFu.Text = Model.IFJiaoFu.ToString(); this.lblChanPinMiaoShu.Text = Model.ChanPinMiaoShu.ToString(); this.lblUserName.Text = Model.UserName.ToString(); this.lblTimeStr.Text = Model.TimeStr.ToString(); this.lblBackInfo.Text = Model.BackInfo.ToString(); ZWL.BLL.ERPProduct ModelProduct = new ZWL.BLL.ERPProduct(); ModelProduct.GetModelByName(Model.ProductName.ToString()); this.lblProductSize.Text = ModelProduct.ProductSize; this.lblPerformance.Text = ModelProduct.Performance; this.lblCoating.Text = ModelProduct.Coating; this.lblSurfaceTreatment.Text = ModelProduct.SurfaceTreatment; this.lblMagnetizingDirection.Text = ModelProduct.MagnetizingDirection; this.lblTolerance.Text = ModelProduct.Tolerance; this.lblIsContainingTax.Text = ModelProduct.IsContainingTax == 1 ? "是" : "否"; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看采购订单产品信息(" + this.lblOrderName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPProduct Model = new ZWL.BLL.ERPProduct(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.ProductName = this.txtProductName.Text.ToString(); Model.ProductSerils = this.txtProductSerils.Text.ToString(); Model.GongYingShang = this.txtGongYingShang.Text.ToString(); Model.ProductType = this.txtProductType.Text.ToString(); Model.XingHao = this.txtXingHao.Text.ToString(); Model.DanWei = this.txtDanWei.Text.ToString(); Model.ChengBen = this.txtChengBen.Text.ToString(); Model.ChuShou = this.txtChuShou.Text.ToString(); Model.RuKuSum = decimal.Parse(this.txtRuKuSum.Text); Model.ChuKuSum = decimal.Parse(this.txtChuKuSum.Text); Model.NowKuCun = decimal.Parse(this.txtNowKuCun.Text); Model.KuCunBaoJing = decimal.Parse(this.txtKuCunBaoJing.Text); Model.CunChuWeiZhi = this.txtCunChuWeiZhi.Text.ToString(); Model.ChanPinMiaoShu = this.txtChanPinMiaoShu.Text.ToString(); Model.BackInfo = this.txtBackInfo.Text.ToString(); Model.ProductSize = this.txtProductSize.Text; Model.Performance = this.txtPerformance.Text; Model.Coating = this.txtCoating.Text; Model.SurfaceTreatment = this.txtSurfaceTreatment.Text; Model.MagnetizingDirection = this.txtMagnetizingDirection.Text; Model.Tolerance = this.txtTolerance.Text; Model.IsContainingTax = Int32.Parse(rdoIsContainingTax.SelectedValue); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改产品信息(" + this.txtProductName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "产品信息修改成功!", "Product.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPProduct Model = new ZWL.BLL.ERPProduct(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtProductName.Text = Model.ProductName.ToString(); this.txtProductSerils.Text = Model.ProductSerils.ToString(); this.txtGongYingShang.Text = Model.GongYingShang.ToString(); this.txtProductType.Text = Model.ProductType.ToString(); this.txtXingHao.Text = Model.XingHao.ToString(); this.txtDanWei.Text = Model.DanWei.ToString(); this.txtChengBen.Text = Model.ChengBen.ToString(); this.txtChuShou.Text = Model.ChuShou.ToString(); this.txtRuKuSum.Text = Model.RuKuSum.ToString(); this.txtChuKuSum.Text = Model.ChuKuSum.ToString(); this.txtNowKuCun.Text = Model.NowKuCun.ToString(); this.txtKuCunBaoJing.Text = Model.KuCunBaoJing.ToString(); this.txtCunChuWeiZhi.Text = Model.CunChuWeiZhi.ToString(); this.txtChanPinMiaoShu.Text = Model.ChanPinMiaoShu.ToString(); this.txtBackInfo.Text = Model.BackInfo.ToString(); } }