Пример #1
0
 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();
 }
Пример #2
0
 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();
 }
Пример #3
0
    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();
        }
    }