Exemplo n.º 1
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            OrderInfo info = OrderDB.GetInfo(_orderid);

            if (info == null)
            {
                return;
            }

            lblID.Text              = info.Order_ID.ToString();
            lblDateTime.Text        = ConvertUtility.ToDateTime(info.Order_CreateDate).ToString("dd/MM/yyyy HH:mm");
            lnkFullname.Text        = info.Order_Fullname;
            lnkFullname.NavigateUrl = AppEnv.ADMIN_CMD + "memberupdate&memberid=" + info.Member_ID;
            lblEmail.Text           = info.Order_Email;
            lblPhone.Text           = info.Order_Tel;
            lblAddress.Text         = info.Order_Address.Replace("\n", "<br>");
            lblDistrict.Text        = info.Order_District;
            lblCity.Text            = info.Order_City;
            lblContent.Text         = info.Order_Note.Replace("\n", "<br>");
            MiscUtility.SetSelected(dropStatus.Items, info.Order_Status.ToString());
            lblQuantity.Text = ConvertUtility.ToInt32(info.Order_Quantity).ToString();
            lblPrice.Text    = String.Format("{0:0,0}", info.Order_Price) + " VNÐ";

            dtlProduct.DataSource = OrderDB.GetProductByOrderID(_orderid);
            dtlProduct.DataBind();
        }