예제 #1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            string username = Request.Cookies["usernameLoginSystem"].Value;

            tbl_TransportCompany receivePlaceUpdate = new tbl_TransportCompany();

            receivePlaceUpdate.ID         = Convert.ToInt32(this.hdfID.Value);
            receivePlaceUpdate.SubID      = Convert.ToInt32(this.hdfSubID.Value);
            receivePlaceUpdate.ShipTo     = this.txtShipTo.Text;
            receivePlaceUpdate.Address    = this.txtAddress.Text;
            receivePlaceUpdate.Prepay     = Convert.ToBoolean(this.rdbPrepay.SelectedValue);
            receivePlaceUpdate.COD        = Convert.ToBoolean(this.rdbCOD.SelectedValue);
            receivePlaceUpdate.Note       = this.pNote.Text;
            receivePlaceUpdate.ModifiedBy = username;

            TransportCompanyController.UpdateReceivePlace(receivePlaceUpdate);

            Response.Redirect(String.Format("/chi-tiet-nha-xe/?id={0}", this.hdfID.Value));
        }