コード例 #1
0
    private void DenetimlerDoldur(string orderID)
    {
        OrderIfo o = OrderAccess.GetOrderInfo(orderID);

        lblTotalAmount.Text       = String.Format("{0:c}", o.TotalAmount);
        txtDateCreated.Text       = o.DateCreated;
        txtShippedDate.Text       = o.DateShipped;
        verifiedCheckBox.Checked  = o.Verified;
        completedCheckBox.Checked = o.Completed;
        canceledCheckBox.Checked  = o.Canceled;
        txtComments.Text          = o.AuthCode;
        txtCustomerName.Text      = o.CustomerName;
        txtCustomerEmail.Text     = o.CustomeEmail;
        txtShippingAddress.Text   = o.ShippingAddress;



        btnEdit.Enabled   = true;
        btnUpdate.Enabled = false;
        btnCancel.Enabled = false;

        if (canceledCheckBox.Checked || completedCheckBox.Checked)
        {
            btnMarkVerified.Enabled  = false;
            btnMarkCompleted.Enabled = false;
            btnMarkCalceled.Enabled  = false;
        }
        else if (verifiedCheckBox.Checked)
        {
            btnMarkVerified.Enabled  = false;
            btnMarkCompleted.Enabled = true;
            btnMarkCalceled.Enabled  = true;
        }
        else
        {
            btnMarkVerified.Enabled  = true;
            btnMarkCompleted.Enabled = false;
            btnMarkCalceled.Enabled  = true;
        }

        grid.DataSource = OrderAccess.GetOrderDetails(orderID);
        grid.DataBind();
    }