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(); } }
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(); } }