protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPContractChanPin Model = new ZWL.BLL.ERPContractChanPin(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblHeTongName.Text = Model.HeTongName.ToString(); this.lblChanPinName.Text = Model.ChanPinName.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.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.lblHeTongName.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(); this.txtHeTongName.Attributes.Add("readonly", "true"); this.txtChanPinName.Attributes.Add("readonly", "true"); ZWL.BLL.ERPContractChanPin Model = new ZWL.BLL.ERPContractChanPin(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtHeTongName.Text = Model.HeTongName.ToString(); this.txtChanPinName.Text = Model.ChanPinName.ToString(); this.txtDanJia.Text = Model.DanJia.ToString(); this.txtShuLiang.Text = Model.ShuLiang.ToString(); this.Label1.Text = Model.ShuLiang.ToString(); this.txtZongJia.Text = Model.ZongJia.ToString(); this.txtYiFuKuan.Text = Model.YiFuKuan.ToString(); this.txtQianKuanShu.Text = Model.QianKuanShu.ToString(); this.RadioButtonList1.SelectedValue = Model.IFJiaoFu.ToString(); this.Label2.Text = Model.UserName.ToString(); this.Label3.Text = Model.TimeStr.ToString(); this.txtBackInfo.Text = Model.BackInfo.ToString(); this.Label4.Text = Model.IFJiaoFu.ToString(); RefreshData(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPContractChanPin Model = new ZWL.BLL.ERPContractChanPin(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblHeTongName.Text = Model.HeTongName.ToString(); this.lblChanPinName.Text = Model.ChanPinName.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.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.ChanPinName.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.lblHeTongName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }