Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPSongYang model = new ZWL.BLL.ERPSongYang();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.lblCustomName.Text       = model.CustomName;
         this.lblSongYangLiaoHao.Text  = model.SongYangLiaoHao;
         this.lblSongYangType.Text     = model.SongYangType;
         this.lblSongYangShuLiang.Text = model.SongYangShuLiang;
         this.txtSongYangDanJia.Text   = model.SongYangDanJia;
         this.txtSongYangJinE.Text     = model.SongYangJinE;
         this.lblSongYangResult.Text   = model.SongYangResult;
         this.lblSongYangTime.Text     = model.SongYangTime;
         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;
     }
 }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPSongYang model = new ZWL.BLL.ERPSongYang();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblCustomName.Text       = model.CustomName;
            this.lblSongYangLiaoHao.Text  = model.SongYangLiaoHao;
            this.lblSongYangType.Text     = model.SongYangType;
            this.lblSongYangShuLiang.Text = model.SongYangShuLiang;
            this.lblSongYangDanJia.Text   = model.SongYangDanJia;
            this.lblSongYangJinE.Text     = model.SongYangJinE;
            this.lblSongYangResult.Text   = model.SongYangResult;
            this.lblSongYangTime.Text     = model.SongYangTime;
            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();
        }
    }