Beispiel #1
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPSongYang model = new ZWL.BLL.ERPSongYang();
        model.ID               = int.Parse(Request.QueryString["ID"].ToString());
        model.CustomName       = this.txtCustomName.Text;
        model.SongYangLiaoHao  = this.txtSongYangLiaoHao.Text;
        model.SongYangType     = this.txtSongYangType.Text;
        model.SongYangShuLiang = this.txtSongYangShuLiang.Text;
        model.SongYangResult   = this.txtSongYangResult.Text;
        model.SongYangTime     = this.txtSongYangTime.Text;
        model.UserName         = this.Label1.Text;
        model.TimeStr          = DateTime.Parse(this.Label2.Text);
        model.IFShare          = this.txtIFShare.Text;
        model.CusBakA          = this.txtCusBakA.Text;
        model.CusBakB          = this.txtCusBakB.Text;
        model.CusBakC          = this.txtCusBakC.Text;
        model.CusBakD          = this.txtCusBakD.Text;
        model.CusBakE          = this.txtCusBakE.Text;
        model.Update();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改送样记录(" + this.txtCustomName.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "送样记录修改成功!", "MySongYang.aspx?CustomName=" + Request.QueryString["CustomName"].ToString());
    }
Beispiel #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.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;
     }
 }
Beispiel #3
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();
        }
    }
Beispiel #4
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPSongYang MyModel = new ZWL.BLL.ERPSongYang();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' and " + GetPageType() + " 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();
 }
Beispiel #5
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPSongYang MyModel = new ZWL.BLL.ERPSongYang();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' and UserName='******' 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();
 }